gotermux
gotermux copied to clipboard
Implement Termux-sensor in real time
Assistance in the creation of this function would be nice!
As far as I understand, calling this command in Termux
, he will send a response in the JSON
in stdout
after some time (delay in ms, flag -d
).
It is necessary to do so that the function constantly listens to its answers and somehow processes them.
Log:
Usage: termux-sensor
Get information about types of sensors as well as live data
-h, help Show this help
-a, all Listen to all sensors (WARNING! may have battery impact)
-c, cleanup Perform cleanup (release sensor resources)
-l, list Show list of available sensors
-s, sensors [,,,] Sensors to listen to (can contain just partial name)
-d, delay [ms] Delay time in milliseconds before receiving new sensor update
-n, limit [num] Number of times to read sensor(s) (default: continuous) (min: 1)