PWS is expecting our pressure reading in baromin (inHg). pdata.pres is reported in tenths of a mBar.
pdata.pres / 10 gets us to mBar * 0.02952999 to convert to inHg.
--
(My understanding of the pressure reading types is quite shakey so please, correct any mistakes. Thanks.)
For a future PR:
PWS is currently expecting an altimeter based reading:
In the future, they'll allow the station to choose between:
MSLP
Station/Surface Pressure
Altimeter
In a future PR, we could perhaps introduce functionality to output an Altimeter-based pressure reading. For the moment though, this PR will output an absolute reading in baromin.
Thanks. I'm pushing to PWS here. The station's BME has been removed for the moment. I'll put a new chip up in late January when I'm home. This PR is still needed.
This PR is a follow-on from https://github.com/GravityDeficient/RHC-Weatherstation-Listener/pull/3.
PWS is expecting our pressure reading in baromin (inHg). pdata.pres is reported in tenths of a mBar. pdata.pres / 10 gets us to mBar * 0.02952999 to convert to inHg.
--
(My understanding of the pressure reading types is quite shakey so please, correct any mistakes. Thanks.)
For a future PR:
PWS is currently expecting an altimeter based reading:
In the future, they'll allow the station to choose between:
In a future PR, we could perhaps introduce functionality to output an Altimeter-based pressure reading. For the moment though, this PR will output an absolute reading in baromin.