App Inventor Extensions: Temperature | Pura Vida Apps

App Inventor Extensions


Ambient Temperature Sensor Extension

See the App Inventor Extensions document about how to use an App Inventor Extension.

For questions about this extension or bug reports please start a new thread in the App Inventor community. Thank you.

For feature requests please contact me by email. To be a sponsor of a new method already is possible starting from only 10 USD! With your contribution you will help the complete App Inventor community. Thank you.

March 15th, 2019: Initial version.

Note: This extension has been deprecated. Please use the built-in thermometer sensor from the sensor drawer..

Description

Ambient Temperature Sensor component.
Minimum Android version to be able to use that sensor is Android 4 (API Level 14).
Required permissions: none
Thank you Adam for being the sponsor of this extension.

Properties


Returns whether sensor is available.


Returns whether sensor is enabled.


Specifies whether sensor is enabled.


Returns the temperature in Celsius. To return meaningful values the sensor must be enabled.

Events


Event indicating that a sensor change occurred.

Example App: Temperature

Obviously the example app will only work for devices, which offer an ambient temperature sensor.

Test

Tested successfully on Samsung Galaxy S4.

For questions about App Inventor,
please ask in the App Inventor community.Thank you.

Back to top of page ...


Home | Snippets | Tutorials | Extensions | Links | Search | Privacy Policy | Contact