AutoWear air pressure as variable in AutoWear?

Discussion in 'AutoApps' started by curlyel, Dec 14, 2015.

  1. curlyel

    curlyel New Member

    Joined:
    Oct 7, 2015
    Messages:
    5
    Likes Received:
    0
    I'm wondering if AutoWear is capable of reading the barometer in the watch (Huawei in my case) an send the air pressure as variable to tasker. This would give a bunch of options considering altitude or changes of altitude in tasks.

    If this is possible, what's the name of the variable the pressure is stored in?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes, as a matter of fact it's possible :) Use the <sensor-x> option with the number of the sensor you want to get the values from. Check this page: http://developer.android.com/reference/android/hardware/Sensor.html
    Click on any of the "TYPE_" variables to see what number you need to use in place of the "x".
    For example, for TYPE_PRESSURE you need to use 6
    Hope this helps!
     
  3. curlyel

    curlyel New Member

    Joined:
    Oct 7, 2015
    Messages:
    5
    Likes Received:
    0
    Excellent! I'll check this out. Many thanks!
     

Share This Page