locus-api icon indicating copy to clipboard operation
locus-api copied to clipboard

GetTemperatue returns 0

Open alogblog opened this issue 3 years ago • 3 comments

I tried to get temperature value using Tasker's Locus Map Tasker Plugin .

Of course in LocauMap4, it shows temperatures well in Sensor Manager.

In Tasker, all other sensor values are gotten well, but tempeature is 0 all the time.

So I doubt the missing part may be in Locus Map itself, not Tasker plugin or LocusMap API.

I'm not sure this place is for this problem. Anyway, I'd like to notify this problem.

Thanks.

alogblog avatar Feb 28 '22 05:02 alogblog

There are multiple temperatures, some are related to Bluetooth connected Sensors. Some related to ANT Sensors and one is for the Battery Temperature.

Did you try to output all Temperature values to see which field has your readout?

But I agree that you may found a device/version which may have an API issue because temperature readout is less tested than other API functionalities.

Falcosc avatar Feb 28 '22 08:02 Falcosc

Hi guys, if values are visible directly in the app dashboard (please check this). then it should be available over API as well > they share the exactly same object. I'm double-checking it and do not see any problem here.

Btw. are we talking about temperature from the external sensors right?

menion avatar Mar 06 '22 11:03 menion

6_98hUd018svc16x5lbz2v2swt_efsapq

In Locus Map's dashboard, sensor temperature is well displayed.

In Tasker's Locus plugin, I'm using "Request sensors and stats" action, however, in list, only one temperature is displayed(for example, battery temperatue is not there).

When triggering that action, I get "0.0" value. I'm not sure this problem is on Locus Map's API part or plugin part...

alogblog avatar Mar 07 '22 02:03 alogblog

@alogblog could you retry testing? It wasn't clear if you have external temperature sensors available or if this issue was a misunderstanding about temperature sensor sources. So I did add Battery Temp in the plugin as a 2nd option to make it more obvious that locus uses multiple temperature sources.

use this link to join or leave the beta program https://play.google.com/apps/testing/falcosc.locus.addon.tasker

@menion I suggest closing and let him reopen it if this wasn't a misunderstanding.

Falcosc avatar Feb 01 '25 15:02 Falcosc

Just to make it clear:

  • sensor_temperature - temperature from the ANT+ based temperature sensor
  • sensor_battery_temperature - temperature of you devices battery (phone battery)

menion avatar Feb 03 '25 12:02 menion