|
Post by SDL on Jan 13, 2019 11:44:01 GMT -8
Peter,
What version of GWP are you running? (Yes, I know we are deeply involved in other parts of this forum). Blynk is driven by the GWP code.
It's pretty easy to send more information to the Blank app.
BP
|
|
|
Post by triggerfish on Jan 14, 2019 0:00:37 GMT -8
Peter, What version of GWP are you running? (Yes, I know we are deeply involved in other parts of this forum). Blynk is driven by the GWP code. It's pretty easy to send more information to the Blank app. BP At the moment I went back to 3.12, because 3.13 did not even start on my system.
|
|
|
Post by triggerfish on Jan 14, 2019 0:14:49 GMT -8
Yes, I know we are deeply involved in other parts of this forum No problem. I know info can be found elsewhere, but I desperately try to keep the right info in the right threads, so all is where it should be. So if it is significant to know what version, I do not mind stating that here, just because you could have known from elsewhere. It's relevant here, so...
|
|
|
Post by doxidad on Jan 22, 2019 4:39:41 GMT -8
I noticed that the indicator for Barometric Trend "B Trend" never changes when the barometer falls. Looking back at the past week's logs and barometric.trend is always TRUE. We've had a few low pressures go through here where the barometer dropped from in to 30s into the 29s. I found the problem why the the barometric trend LED doesn't change. The code copies the current pressure into the past pressure. this makes the current and past always the same. Move the line that is after the sampleWeather() call to before the call and you now will compare the past and current in the barometricTrend() routine. Original Code... sampleWeather() state.pastBarometricReading = state.currentBarometricPressure
New Code...
state.pastBarometricReading = state.currentBarometricPressure
sampleWeather()
|
|
|
Post by doxidad on Jan 23, 2019 7:24:01 GMT -8
I noticed that the indicator for Barometric Trend "B Trend" never changes when the barometer falls. Looking back at the past week's logs and barometric.trend is always TRUE. We've had a few low pressures go through here where the barometer dropped from in to 30s into the 29s. I found the problem why the the barometric trend LED doesn't change. The code copies the current pressure into the past pressure. this makes the current and past always the same. Move the line that is after the sampleWeather() call to before the call and you now will compare the past and current in the barometricTrend() routine. Original Code... sampleWeather() state.pastBarometricReading = state.currentBarometricPressure
New Code...
state.pastBarometricReading = state.currentBarometricPressure
sampleWeather()
This actually looked like it worked for a while - IT DOES NOT. Sorry for the bad info.
|
|
|
Post by SDL on Jan 23, 2019 16:28:50 GMT -8
This sounds like a bug to me. I'll log it as a bug to check it out.
BP
|
|
|
Post by doxidad on Jan 25, 2019 15:20:27 GMT -8
I now have the Barometric trend working - REALLY! It's a 2 line fix. It can probably be massaged a bit but this works.
HERE'S WHAT TO DO:
FIND: sampleWeather()
#state.pastBarometricReading = state.currentBarometricPressure <--- COMMENT THIS LINE OUT with a #
FIND: state.currentBarometricPressure = bmp180SeaLevel
ADD THIS LINE ABOVE IT: state.pastBarometricReading = state.currentBarometricPressure
SO IT LOOKS LIKE THIS:
state.pasBarometricReading = state.currentBarometricPressure state.currentBarometricPressure = bmp180SeaLevel
That's it - trending should now work - remember the check is done only every 15 minutes so don't expect an immediate change.
|
|
|
Post by SDL on Jan 27, 2019 16:23:37 GMT -8
I'll add that to our next version. Thanks!
BP
|
|
|
Post by triggerfish on Jan 29, 2019 12:53:32 GMT -8
I now have the Barometric trend working - REALLY! It's a 2 line fix. It can probably be massaged a bit but this works. HERE'S WHAT TO DO:FIND:sampleWeather() #state.pastBarometricReading = state.currentBarometricPressure <--- COMMENT THIS LINE OUT with a # FIND:state.currentBarometricPressure = bmp180SeaLevel ADD THIS LINE ABOVE IT:state.pastBarometricReading = state.currentBarometricPressure SO IT LOOKS LIKE THIS: state.pasBarometricReading = state.currentBarometricPressure state.currentBarometricPressure = bmp180SeaLevel That's it - trending should now work - remember the check is done only every 15 minutes so don't expect an immediate change. Since I changed this, my station is instable as never before Reverting the code to see if things get better again.
|
|
|
Post by doxidad on Jan 29, 2019 13:18:39 GMT -8
Gee that shouldn't have affected anything. Basically moved stuff around. Sorry it made things difficult for you
|
|
|
Post by triggerfish on Jan 29, 2019 13:30:38 GMT -8
I would nog have expected problems but just to rule of out, I changed back. We'll see
|
|
|
Post by triggerfish on Jan 31, 2019 12:25:29 GMT -8
I would nog have expected problems but just to rule of out, I changed back. We'll see Well, it did not make any diference. Problems stayed, so I re-did yor change and see what happens.
|
|
|
Post by triggerfish on Apr 5, 2019 2:43:23 GMT -8
Peter, To fix the battery gauge - in update Blynk.py look for the statement that formats V56. Remove the '%' from the format statement and it will work. Evidently the gauge widget just wants a pure number in the text. Thanx,! Initially that lead to "0.0%" in stead of dashes. Somehwere in the code state.batteryCharge was not filled with the current batterCharge... After fixing that, my gauge came alive! Thanks. This is still not fixed in the main repo... I upgraded tot 3.16 and I lost my gauge again...
|
|
|
Post by triggerfish on Apr 5, 2019 2:46:36 GMT -8
Thanx,! Initially that lead to "0.0%" in stead of dashes. Somehwere in the code state.batteryCharge was not filled with the current batterCharge... After fixing that, my gauge came alive! Thanks. This is still not fixed in the main repo... I upgraded tot 3.16 and I lost my gauge again... github.com/switchdoclabs/SDL_Pi_GroveWeatherPi/pull/13
|
|
|
Post by SDL on Apr 5, 2019 9:01:51 GMT -8
I merged this issue this morning into the main archive!
BP
|
|