• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[APP] Alti/Barometer app w/ Tile, Auto Calibration, Notifications and More!

Search This thread

Mr Groch

Senior Member
Mar 16, 2007
240
1
The value you see in the barometer section is the raw data that the sensor outputs. There is no calibration on that side. You can check this by using another app that shows the sensor data. In my huawei watch 2 I used to have a test mode hidden in the settings where I could see all the sensor values, including the barometer.

As you said air pressure decreases when climbing up, so it might be that the station is at a lower altitude than you are now. If you live in a hilly city this is plausible. But these are just assumptions.

My weather station is 3 meters above me, and 10 meters in horizontal plane :) My other watch (TicWatch 3 Pro) shows 1025 hPa correctly and automatic Calibration works there.

But inacurate pressure is not the problem - real problem is why automatic calibration doesnt work on Watch4? I've tried rebooting and connecting with wifi with no luck...
 

calugj

Senior Member
Sep 22, 2018
70
66
My weather station is 3 meters above me, and 10 meters in horizontal plane :) My other watch (TicWatch 3 Pro) shows 1025 hPa correctly and automatic Calibration works there.

But inacurate pressure is not the problem - real problem is why automatic calibration doesnt work on Watch4? I've tried rebooting and connecting with wifi with no luck...
I'd wait for other users to reply as I don't know this situation
 

Mr Groch

Senior Member
Mar 16, 2007
240
1
I've tried intsalling this app on my wife's Galaxy Watch4 40mm and same issue with no auto calibration is there. Waiting whole day - calibartion stays "never". Barometer works.

Old TicWatch 3 Pro no issue with auto calibration on the same wifi network.

I think that problem is related to WearOS 3
 

calugj

Senior Member
Sep 22, 2018
70
66
I've tried intsalling this app on my wife's Galaxy Watch4 40mm and same issue with no auto calibration is there. Waiting whole day - calibartion stays "never". Barometer works.

Old TicWatch 3 Pro no issue with auto calibration on the same wifi network.

I think that problem is related to WearOS 3
This is interesting. Thanks for the report. I'll try to see what's going on.
 

hippocamera

New member
Nov 19, 2008
3
3
GW4:
Automatic altimeter calibration does not work.
The automatic calibration of the altimeter was performed only once immediately after the first start-up after installation.
Thank you for solving calugj
 
  • Like
Reactions: calugj

TheKerevas

Senior Member
Sep 7, 2014
264
19
25
Agrigento
This is interesting. Thanks for the report. I'll try to see what's going on.
Samsung Galaxy Watch 4 Classic 46mm BT, same problem, does not calibrate by itself

UPDATE: I opened it and used it for a while and it didn't calibrate, now I reopened it and it calibrated. Comparing the values with my POCO F2 Pro and the MIUI stock "Compass" app the values are very similar
 

Reeccoo

New member
Oct 29, 2021
1
0
Hi. What do you think about the idea to add the both values as complications for watch faces?
 

Ajaja2021

New member
Nov 18, 2021
3
0
Hi there

Please can you kindly assit as I cannot install this on my Suunto 7.

I am using windows 10 and I installed the adb and also installed the APK 1.16

I copied the apk to inside the adb file.

I have adb debug enabled under developer option on the watch but I cannot see ISB debug?

I would love some support as I really like this app and wish to make it work.

Thanks in advance.

Slim
 

Ajaja2021

New member
Nov 18, 2021
3
0
Introduction

Google's Wear OS lacks many things from competitors... One of these is a Barometer-Altimeter application. So why not building one by getting the inspiration from the best one out in the market?

Read the instructions before installation!




Demonstration

App Screenshots
View attachment 5166803View attachment 5166805View attachment 5205013View attachment 5166807View attachment 5205015

Tile Screenshot
View attachment 5166811

Tour of the app (gif)
View attachment 5166813




Features

Barometer:
● Real-time pressure display digital
● Real-time pressure red hand indicator
● Graph for the past 6 hours
● Pressure trend over the past 6 hours
● Background collecting of pressure
Notification for possible storms

Altimeter:
● Real-time altitude display digital
● Real-time altitude red hand indicator
● Graph for the past 6 hours
Auto calibration of altitude based on weather data
Manual calibration

TILE:
Thanks to the Unofficial Tile API: Tile showing pressure and altitude!


Settings:
● Enable / disable storm alert
● Enable / disable automatic calibration of altitude
● Set manual altitude
● Metric / imperial units
● Advanced settings





Installation instructions

● Only supports Wear OS, not standard Android
● Android version must be 8.0+
0 - If any previous version in installed, go to "Settings" > "Apps & Notifications" > "App info" > "Alti-Barometer" > "App Info" > "Clear data" > Confirm
1 - Download the latest .apk file
2 - Install the .apk with adb (tutorial on the third post)
3 - Start the app
4 - Grant the Location permission (optional but recommended, if you want the automatic calibration)
Done!




Update instructions

If you want to update this app to a newer version, uninstall the old version and then install the latest using ADB!




Detailed info about the app

Every 5 minutes a the app will get the pressure from the sensor and store the data.
The weather notification is sent if 4 hPa are dropped in the past three hours.
The trend seen in the barometer is calculated in the past 6 hours.
For the first 6 hours the trend is going to be inaccurate because it doesn't have real data to compare.
Altitude is measured using the barometric formula, considering standard the pressure of 1013.25 hPa.






Download
 

calugj

Senior Member
Sep 22, 2018
70
66
Hi there

Please can you kindly assit as I cannot install this on my Suunto 7.

I am using windows 10 and I installed the adb and also installed the APK 1.16

I copied the apk to inside the adb file.

I have adb debug enabled under developer option on the watch but I cannot see ISB debug?

I would love some support as I really like this app and wish to make it work.

Thanks in advance.

Slim
Did you follow the guide? Did some errors appear?
 

TheKerevas

Senior Member
Sep 7, 2014
264
19
25
Agrigento
I discovered that on my Watch 4 after doing the manual calibration, after a while the Altimeter is also wrong by over 100 meters. Barometer always ok instead
 

calugj

Senior Member
Sep 22, 2018
70
66
I discovered that on my Watch 4 after doing the manual calibration, after a while the Altimeter is also wrong by over 100 meters. Barometer always ok instead
That's because the air pressure naturally changes. The altimeter keeps the calibration only if air pressure remains constant. When there's a change in air pressure, the altimeter won't be calibrated.

There are 2 solutions: calibrate quite often the altimeter or use the automatic calibration.
 

TheKerevas

Senior Member
Sep 7, 2014
264
19
25
Agrigento
That's because the air pressure naturally changes. The altimeter keeps the calibration only if air pressure remains constant. When there's a change in air pressure, the altimeter won't be calibrated.

There are 2 solutions: calibrate quite often the altimeter or use the automatic calibration.
But from what I can see the automatic calibration on Watch 4 doesn't work...
 

calugj

Senior Member
Sep 22, 2018
70
66
Yes, unfortunally though I don't have a Samsung Watch 4 to test this application. My idea under this issue is that Samsung customized vanilla Android to reduce background tasks to save battery, and this conflicts with my application.
 

TheKerevas

Senior Member
Sep 7, 2014
264
19
25
Agrigento
Yes, unfortunally though I don't have a Samsung Watch 4 to test this application. My idea under this issue is that Samsung customized vanilla Android to reduce background tasks to save battery, and this conflicts with my application.
But manual calibration is also broken. Last night I calibrated and I was 90 meters high, now it marks 163. I'm in the same point where I calibrated yesterday.

To take the tests I can help you and also other people who have Warch 4 if you are interested
 

calugj

Senior Member
Sep 22, 2018
70
66
Read message #133 again, just above here :)
It's physics


EDIT
For the same reason aircraft pilots have to calibrate their altimeters several times during flight, always asking the closest station which air pressure they records.
 
Last edited:

DuCray

Member
Sep 23, 2009
44
9
Paris
Hi,
Is it possible to add this kind of icones on the main screen ?
Screenshot_2021-12-03-16-48-46-879_com.dungelin.barometerplus.jpg
 

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    Introduction

    Google's Wear OS lacks many things from competitors... One of these is a Barometer-Altimeter application. So why not building one by getting the inspiration from the best one out in the market?

    Read the instructions before installation!




    Demonstration

    App Screenshots
    Altimeter.pngBarometer.pngSettings.pngCalibration.pngUnits.png

    Tile Screenshot
    Tile.png

    Tour of the app (gif)
    Tour.gif




    Features

    Barometer:
    ● Real-time pressure display digital
    ● Real-time pressure red hand indicator
    ● Graph for the past 6 hours
    ● Pressure trend over the past 6 hours
    ● Background collecting of pressure
    Notification for possible storms

    Altimeter:
    ● Real-time altitude display digital
    ● Real-time altitude red hand indicator
    ● Graph for the past 6 hours
    Auto calibration of altitude based on weather data
    Manual calibration

    TILE:
    Thanks to the Unofficial Tile API: Tile showing pressure and altitude!


    Settings:
    ● Enable / disable storm alert
    ● Enable / disable automatic calibration of altitude
    ● Set manual altitude
    ● Metric / imperial units
    ● Advanced settings





    Installation instructions

    ● Only supports Wear OS, not standard Android
    ● Android version must be 8.0+
    0 - If any previous version in installed, go to "Settings" > "Apps & Notifications" > "App info" > "Alti-Barometer" > "App Info" > "Clear data" > Confirm
    1 - Download the latest .apk file
    2 - Install the .apk with adb (tutorial on the third post)
    3 - Start the app
    4 - Grant the Location permission (optional but recommended, if you want the automatic calibration)
    Done!




    Update instructions

    If you want to update this app to a newer version, uninstall the old version and then install the latest using ADB!




    Detailed info about the app

    Every 5 minutes a the app will get the pressure from the sensor and store the data.
    The weather notification is sent if 4 hPa are dropped in the past three hours.
    The trend seen in the barometer is calculated in the past 6 hours.
    For the first 6 hours the trend is going to be inaccurate because it doesn't have real data to compare.
    Altitude is measured using the barometric formula, considering standard the pressure of 1013.25 hPa.





    Issues

    Automatic calibration not working on Samsung watches. I don't have a watch to test and I can't fix this bug unfortunally.




    Download
    8
    By popular demand, after almost a year: Alti-Barometer 1.16

    - Bugs fixed
    - Found a solution for the user limit. It will work for quite a long time!
    4
    Changelog

    1.11
    ● Changed the app UI to make it different from the original app
    ● Added "Advanced Settings"...
    ... and that's a secret

    1.14
    ● Added manual calibration
    ● Fixed a bug involving calibration

    1.15
    ● Added fully customisable units
    3
    Auto calibration of altitude - explanation of the physics

    I think this is cool to share :)
    Air pressure depends on your altitude, but since air pressure changes normally, the readings are not accurate if the instrument is not correctly calibrated.
    Manual calibration can be done... but it's just not practical! Automatic calibration is instead much better.
    Let's start with the barometric formula:

    Ph = P0 × e^(-α × h)
    with constant α = (M × g) / (R × T)

    The app gets your location, then finds thanks to the weather API the pressure P0 at sea level.
    Once found P0, I can substitute it in the same formula to finally find the actual calibrated altitude

    h = ln(Ph / P0) / - α
    Ph is now the reading from the sensor and h is the current altitude

    The calibration of the altitude highly depends on how accurate are the weather forecast provided...
    From my testing I had a +- 10 m which is considerably good, but it depends from place to place.



    ADB Tutorial

    1) You will need to install ADB drivers to your computer. Suggested tutorial --> [OFFICIAL][TOOL][WINDOWS] ADB, Fastboot and Drivers - 15 seconds ADB Installer v1.4.3 | XDA Developers Forums (xda-developers.com)
    Assuming you are using Windows, you should find a folder named "adb" inside the C drive with some files in it.
    2) Place inside this folder the apk you want to install.
    3) Enable "USB Debugging" on the device you want to install the apk on. This setting is hidden inside the "Developer Settings", that you can enable by pressing 7 times on the "Build Number" under "Device Info". There are many videos that show this.
    4) Open the command prompt inside the "adb" folder. To do so using Windows, just press Shift + Right Click of the mouse and then select "Open PowerShell Window".
    5) Connect your smartwatch to the PC with the usb cable.
    6) On the PowerShell type "adb devices" without quotes and confirm with enter. Make sure the android device shows a message.
    7) On the device press "Allow always" (or something like that).
    8) On the PowerShell type "adb install Alti-Barometer1.15.apk" without quotes and confirm with enter.
    DONE!
    3
    Updated!
    Automatic calibration should now work!
    Please tell me if this function works... Perform a clean installation of the app and wait a few minutes for it to get the calibration. :)

    The reason was that I misunderstood the meaning of data given by the weather api... The pressure given by the weather data is not referred to the ground pressure, but is the sea level pressure. This small (and stupid) mistake made an error gap that grew the more you climbed.

    I'm sorry and thanks for your feedback!