GravityDeficient / RHC-Weatherstation-Listener

0 stars 0 forks source link

Updated the PWS pressure calculation #5

Closed Misplon closed 1 year ago

Misplon commented 2 years ago

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:

Weather_for_GLENCLUB_-_a_Personal_Weather_Station_in_Cape_Town__South_Africa___PWSWeather

In the future, they'll allow the station to choose between:

https___dashboard_pwsweather_com_station_61ebde41b82d58001dfc2038_profile

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.

GravityDeficient commented 1 year ago

I missed this one. Is this still needed? I'm not using pwsweather anywhere.

Misplon commented 1 year ago

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.