impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 3, 2019 1:17:44 GMT -8
SO I just did the update of the skyweather software.... Not saying this is the cause - it may have been there before - but I only just noticed it today.... If I look at my data at Weather Underground - all looks good - except the pressure... It is showing me 10851.00hPa If I look at my local government meteorological sources it shows in my region pressure is 1032hPa Forgetting I am not using their equipment, and I am maybe 4 miles away from their sensor - I certainly do not expect to see the actual exact same value... But the difference is out by a factor of 10 We have 10 Thousand on Weather Underground and 1 Thousand on my local government service.... It may not be a heart attack I am feeling on my chest - its just all that air pressure around me! Oh I use metric - sorry - so lets continue with changing the defaults on weather underground to F instead of C... I can see the URL that updates weather underground is doing 'baromin=326.16' Weather Underground is showing 326.16in So that seems the same.... Not sure how I can do a test of just pressure - but feel somewhere it might be actually multiplying it by 10 ? Any other clues ?
|
|
|
Post by SDL on Jul 3, 2019 6:06:44 GMT -8
Interesting. Is the value being reported correctly on your screen and to WeatherSTEM? That would help us run down the problem. If it is correct, I can fix the code very easily. This will release the crushing pressure on your head. BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 3, 2019 15:02:43 GMT -8
I am not using WeatherSTEM - as I don't have a key. (I bought all the hardware as I already and all the weather vanes, rain gauge etc - thinking I would save money, but didn't realise at that time, I cant use WeatherSTEM without a code).
So I cant tell you if it is doing the calculations right or not - someone else will need to test that...
I am just going to divide by 10 in my version of software and give that a try.
Thanks
|
|
|
Post by SDL on Jul 4, 2019 7:03:19 GMT -8
What about the display on the screen? Is the software showing the BP correctly there?
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 14, 2019 5:32:22 GMT -8
Good and Bad news... Latest version of the software ( 2 days ago) - somebody added the divide by 10 on pressure to get it right for Weather Underground...
Bad news is whoever did it - did not test it !!!!
I just spent 3 hours trying to work out why weather underground was not updating.... and finally worked it out - well I have other issues as well - so too many variables...
But the offending line in weatherunderground.py has the divide by 10.0 without additional brackets - for whatever reason it causes an error and the trap breaks you out with an error sending data to weather underground...
The line should read as
myURL += "&baromin=%0.2f" % (((bmp180SeaLevel) * 0.2953) / 10)
I just put the extra brackets around it and dropped the .0
It now will successfully send data to weather underground. It is showing correct pressure...
Now all I need to work out is why outside temperature is being sent as 0... If I do a test on testAM2315.py I do get a correct reading of the temperature - but it appears something else has gone astray - and Temp, Humidity is not being updated - dewpoint is but that's calculated from temp...
|
|
|
Post by SDL on Jul 14, 2019 17:21:37 GMT -8
Phhht. We will fix it. Sorry about that. Our test suite didn't run WeatherUnderground. Bad BP!
BP
|
|