GravityDeficient / RHC-Weatherstation-Listener

0 stars 0 forks source link

BME Not Present: Services Showing 0 Temp #6

Closed Misplon closed 1 year ago

Misplon commented 1 year ago

Hi guys, the BME at the Glen Club in Cape Town went down a couple of weeks ago due to corrosion. I didn't heat-shrink it adequately. The station's string length appears correct without the BME present; a 10-character string:

Nov 13 13:35:28 purothems node[20102]: [2022-11-13 13:35:28] [LOG]    {"rawData":"0506227770","errorMessage":"","wind":5,"gust":6,"dir":227,"timestamp":"2022-11-13T11:35:28.437Z","pwr":"12.70","startup":0}
Nov 13 13:35:28 purothems node[20102]: [2022-11-13 13:35:28] [LOG]    WUnderground Get response: 200
Nov 13 13:35:28 purothems node[20102]: [2022-11-13 13:35:28] [LOG]    PWSWeather Get response: 200

Both WU and PWS seem to be reading the temperature as 0, which is converted to -17.8 °C. I'm a bit stuck at the moment. If someone could perhaps offer advice as to where I could insert debugging code, that might be a good place to start.

Personal_Weather_Station_Dashboard___Weather_Underground

Misplon commented 1 year ago

I've commented out https://github.com/GravityDeficient/RHC-Weatherstation-Listener/blob/master/services/wunderground.js#L23-L34 and the issue seems to be resolved. I tried this a few days ago and forgot to restart the app.

I'll take another look when I get time in the coming weeks, but for now, the station looks better.

glen