Introduction
A non-visible extension that measures the ambient air pressure in units of hPa or mbar. Not all devices have a pressure sensor. To check whether a device does, use the Available block in this extension.
This works exactly like it should in AppyBuilder, and should also be like Kodular, because I modified the source code from AppyBuilder in GitHub to here. Thank you @Hossein!
This extension is currently under beta testing and may not work.
Release date: 2022-05-09T07:00:00Z
Package name: com.gordonlu.pressuresensor
Version: 1
Built with: Niotron IDE
Documentation
Event blocks
PressureChanged
This event is fired when the pressure detected has changed.
Parameters: pressure = number (float), altitude = number (float)
Property blocks
Altitude (read, blocks)
Returns the current altitude of the pressure sensor.
Requires: number (float)
Available (read, blocks)
Checks whether the pressure sensor is available on this device.
Requires: boolean
Distance (read, blocks)
Returns the distance of the pressure sensor. I am still figuring out the unit for this block.
Returns: number (float)
Enabled (read, write, designer, blocks)
Checks whether the sensor should be enabled.
Requires: boolean
KeepRunningWhenOnPause (read, write, designer, blocks)
Checks whether the sensor is keep running even when paused.
Requires: boolean
MaximumRange (read, blocks)
Requires: number (float)
Pressure (read, blocks)
Returns the pressure of the pressure sensor.
Requires: number (float)
Downloads
AIX: com.gordonlu.pressuresensor.aix (9.8 KB)
Credits
Thanks for Hossein!
Made with Niotron IDE.
Kindly PM me if you have any questions! Also, if you like my extension, please like it! It takes some effort for me to make it...
Likes tell me the general user feedback of my extension. If you read this extension, please take 20 seconds to drop by and give a like!
If you have any features that you want to add and you know the code, PM me or directly reply below using the button.
By downloading my extension, you agree the terms and conditions in my website.
Gordon Lu