eggtimer icon indicating copy to clipboard operation
eggtimer copied to clipboard

Make use of the barometer on the device

Open sergimn opened this issue 2 years ago • 2 comments

Some devices have a barometer sensor built in. If the app used it the location permission wouldn't be mandatory and the barometer would provide better precision when it comes to computing how much time is needed. Not all devices have it so there should be a fallback to using GPS

sergimn avatar Sep 23 '21 21:09 sergimn

Good idea, but I do not have a phone with pressure sensor. A GPS should be available in every phone and accuracy also for altitude is quite high. Even +/-50m does not make a big difference for this application. Will consider once I get a phone with pressure sensor.

woheller69 avatar Sep 24 '21 05:09 woheller69

Please also allow to enter pressure or altitude manually in case no GPS is available.

H34dl3ss avatar Feb 24 '22 23:02 H34dl3ss

Please try this version. If a pressure sensor is available it is used instead of GPS.

-Uninstall old version -Remove .zip from filename -Install

SmartEggtimer_pressure.apk.zip

woheller69 avatar Nov 09 '22 16:11 woheller69

Hey! Thanks for giving this feature a try :)

So I've tried with different pressures along the day and while it works I think it has some bugs.

https://user-images.githubusercontent.com/13437098/200954410-bf0bc27d-2e8c-46ae-b8d0-d2fa1d2eae64.mp4 In this video the timer works correctly (or so I think, I haven't made the actual numbers)

https://user-images.githubusercontent.com/13437098/200954556-c373cba1-b85a-430c-b235-d2d15d2e01a8.mp4 However in this one, the timer jumps to 20min+ and it has a significant variation on the time needed.

I looked in the implementation and I've seen you use a lookup table for pressure -> boiling temperature. Maybe it would smooth things if a formula was used, this way decimal points would also be taken into account

sergimn avatar Nov 09 '22 22:11 sergimn

There was a "," instead of a "." in the lookup table at 1013.25 mbar.

Should work now

Eggtimer_pressure_fix.apk.zip

woheller69 avatar Nov 10 '22 05:11 woheller69

-> V2.5

woheller69 avatar Dec 19 '22 08:12 woheller69