Request sensor data

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Request sensor data

Post by jassing » 09 Nov 2019 01:58

I was using device orientation, but find I would be better suited to trigger on an accelerometer threshold. But, I don't see any trigger or conditions on sensor data...

Another I ran into, I wish there was a proximity se sor access... I think having raw sensor data access, as well as triggers on sensors would be useful.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Request sensor data

Post by Desmanto » 10 Nov 2019 18:13

I think the better solution is to have trigger that allow us to record the gesture, which is more useful than reading raw sensor. Tasker has the method to record the gesture, but as I ever tested, not so accurate in my old devices. (never test it again at current phone).

To get the raw data of the x, y, z orientation, use action init variables device orientation. You will get the azimuth, pitch and roll. To get continuous data, you have to use loop sleep and show it on widget or notification on screen. The fastest you can get is 2 data persecond (using widget).

There are trigger and condition Proximity sensor, including the raw data it has. Of course the raw data vary depends on the hardware. At mine, it is only 0 and 5 cm.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
jassing
Posts: 94
Joined: 16 Jul 2017 01:42
Location: SF Bay Area

Re: Request sensor data

Post by jassing » 24 Nov 2019 03:50

Thanks, I completely missed that.

Locked