Hi,
I want to display the ambient pressure with an icon that will indicate the trend.
In order to do this I have to compare with the latest from PressureHistory?
Thanks
Hi,
I want to display the ambient pressure with an icon that will indicate the trend.
In order to do this I have to compare with the latest from PressureHistory?
Thanks
Hi,
It is how I do, I compare the first and the last entry with SensorHistory.
When I try to display Sensor.getInfo() .pressure I have an error that the watchface doesn't have permission to use Sensor, even in manifest.xml the Sensor is there
Sensor is only available to watchface apps when running in the background.
That is why I wrote SensorHistory ans not sensor.
A watchface can deal with SensorHistory
if ((Toybox has :SensorHistory) && (Toybox.SensorHistory has :getPressureHistory)) { var p = new Time.Duration(10800); var previuosPressure = Toybox.SensorHistory.getPressureHistory({:period => p, :order => 1}); // An error occurs } Error Name: Unhandled Exception Occurrences: 8 First Occurrence: 2021-06-02 Last Occurrence: 2021-06-23 Devices: fД“nixВ® 6 Pro / 6 Sapphire / 6 Pro Solar / 6 Pro Dual Power / quatixВ® 6: 16.70 vГvoactiveВ® 3: 7.80, 7.70 vГvoactiveВ® 3 Mercedes-BenzВ® Collection: 2.90 App Versions: 28.05.2021 Languages: chs, eng, fre Backtrace: VICView.onUpdate:591
Hi,
Does someone can share the codes to make like the Suunto : 3 and 6 hours history trend and display only if the difference is >2 hPa/3hours.
Best regards