Skip to content

Takes the barometer reading that is published with owntracks client

Notifications You must be signed in to change notification settings

matbor/Owntracks-Barometer

Repository files navigation

Owntracks-Barometer

Quick example of what is possible when using owntracks for iOS, an mqtt broker with websockets enabled and the new pressure reading value.

This webpage subscribes to the owntracks topic owntracks/username/devicename and waits for a message payload in JSON format.

When it recieves the p value which is the barometric pressure in kPa (kilo Pascal) it converts it to hPa (hectopascals)and plots it on the gauge.

The values are at the altitude of the reading, not at sea level, I haven't added that feature. This was just a quick example of something you can do with Owntracks.

All settings: mqtt broker, port and topic are set in baro.htm

About

Takes the barometer reading that is published with owntracks client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published