|
Post by jrwilling on Aug 7, 2019 8:32:08 GMT -8
Ran the 'pull' on the 042 software here a bit ago, and now my unit is reporting a rational "Indoor" (internal) temperature (currently 72.2) but is reporting the "Outdoor" temperature as 32.0 degrees.
Something seems a bit sideways here. These values are being shown in the new overlay in the camera images and reported to WeatherStem.
|
|
|
Post by jrwilling on Aug 7, 2019 8:46:59 GMT -8
UPDATE: it appears this but was triggered when I added text to the new overlay, suggesting a buffer size issue somewhere?
I prefixed "Yates Center KS " to the myText definition in the SkyCamera.py" module and this appears to have triggered the issue after a restart.
Any insights as to why this might have occurred? Removing the text and restarting the unit has returned it to reporting rational Outdoor temperatures.
|
|
|
Post by SDL on Aug 7, 2019 14:20:37 GMT -8
Boy, now that is an interesting problem. Probably buried deep inside the PIL Image library!
You might replace the "SkyWeather" with your name.
BP
|
|
|
Post by jrwilling on Aug 7, 2019 16:36:52 GMT -8
Well... it gets more interesting (annoying!) Tried replacing "SkyWeather" with "Yates Center KS", and still got an outside temperature of 32.0 degrees reported.
So, changed it back to just "SkyWeather", and now I'm still getting an outside temperature of 32.0 degrees!
This would tend to suggest that there is something written into persistent storage that needs to be cleared or reset. Where are the SkyWeather code &/or Python interpreter 'tmp' (or scratch) area(s)?
|
|
|
Post by jrwilling on Aug 7, 2019 16:47:37 GMT -8
OK, after much flailing I have proper outside temperatures again...
I think I'm done with this for today! I'll just live with it saying "SkyWeather" for the moment...
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Aug 7, 2019 21:28:57 GMT -8
To add to the overlay text issue...
I had created a variable in the config file that I use for the overlay and email notifications - much more friendlier....
So just upgraded to v42... I have not even used my config variable - but by just changing the date format... (I hate software that assumes a month day format where majority of the world is not only metric, but also has different date formats - so I prefer to spell it out in somewhat a better fashion!)
Changed the line to ;
myText = "SkyWeather %s Wind Speed: %s Wind Gust: %s Temp: %s " % (dt.datetime.now().strftime('%d-%b-%Y %H:%M:%S'),WindStval, WindGtval, OTtval) and added a print myText
Gives me a better date format - SkyWeather 08-Aug-2019 15:13:23 Wind Speed: 3.6KPH Wind Gust: 0.0KPH Temp: 13.7 C
But it does not get placed on the picture at all.... Effectively I have only really added 1 character to the length - month is moved from 2 chars to 3 chars to spell it out in case your not in North America !!!!
So something is strange...
Its 84 characters for my text - Would not have thought it was a magic number, and the text size is not making it exceed the size of the pixels in the image.... I am going to take a guess that the display dies if its too long ? Number of Characters ? WTF ?
SO I dropped a few characters of SkyWeather to just Sky and it still is not working...
Something strange occurring here!
|
|
|
Post by SDL on Aug 8, 2019 8:24:00 GMT -8
IMpactoz,
Would you put the original code and in a verify it still works?
I'll try your code here in a minute.
BP
|
|
|
Post by SDL on Aug 8, 2019 8:44:22 GMT -8
OK. I installed your code into my test unit (no instruments installed) and your format worked. Pic added. I like your format and I have added it into the code base. I have no idea why it is not working in your code: myText = "SkyWeather %s Wind Speed: %s Wind Gust: %s Temp: %s " % (dt.datetime.now().strftime('%d-%b-%Y %H:%M:%S'),WindStval, WindGtval, OTtval) BP Attachments:
|
|
|
Post by Powderjockey on Aug 8, 2019 19:04:56 GMT -8
Thru a trying day to day with the wifi needing replacing and changing routers, I did have an outside temp into the mid 30's C, but after rebooting a couple of times, I now I have zero Celsius outdoor.
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Aug 8, 2019 22:56:51 GMT -8
Don't know what I did wrong yesterday... but today, it worked all AOK.... Of course - lots of modifications..... Title / Name comes from my config file.... Modified Util to show lowercase instead of uppercase kph and of course a few other nit bits added.... like deciding I don't need to see seconds anymore on the time for this! Just in case someone also wants to modify / hack things... here is my modification to SkyCamera.py # set up units
#wind
val = util.returnWindSpeed(state.ScurrentWindSpeed)
WindStval = "{0:0.1f}".format(val) + util.returnWindSpeedUnit()
val = util.returnWindSpeed(state.ScurrentWindGust)
WindGtval = "{0:0.1f}".format(val) + util.returnWindSpeedUnit()
val = util.returnTemperatureCF(state.currentOutsideTemperature)
OTtval = "{0:0.1f}".format(val) + util.returnTemperatureCFUnit()
val = state.currentTotalRain
RDval = "{0:0.1f}".format(val) + "mm"
val = state.currentSunlightUVIndex
if val < 3:
[span] [/span]UVval = "Low"
elif val >=3 and val < 6:
[span] [/span]UVval = "Moderate"
elif val >=6 and val < 8:
[span] [/span]UVval = "High"
elif val >=8 and val < 11:
[span] [/span]UVval = "Very High"
else:
[span] [/span]UVval = "Extreme"
myText = config.HEADERPIC + ": %s Wind Speed: %s Wind Gust: %s Temp: %s Rain Today: %s UV: %s" % (dt.datetime.now().strftime('%d-%b-%Y %H:%M'),WindStval, WindGtval, OTtval, RDval, UVval)
# Draw the text
|
|
|
Post by jrwilling on Aug 9, 2019 6:16:09 GMT -8
Have you looked at the daily time lapse also? Since this last set of changes the image on mine randomly brightens substantially, almost looks like lightning even though there was no storm activity though the latter part of the day.
Curious to know if it is just something on mine, or if these changes introduced some other bug beyond the temperature reporting.
|
|
|
Post by SDL on Aug 9, 2019 7:31:48 GMT -8
Post your WeatherSTEM link for others so we all can check this out!
BP
|
|
|
Post by jrwilling on Aug 9, 2019 8:11:00 GMT -8
|
|
|
Post by SDL on Aug 10, 2019 6:55:56 GMT -8
Hmm. Totally bizarre. A new problem.
Turn the power off to your system and see if that fixes it.
BP
|
|
|
Post by jrwilling on Aug 10, 2019 11:39:13 GMT -8
Have just power cycled the unit, will have to wait for the next time-lapse to complete to see if that changed anything. In the interim, to add insult to aggravation the unit is back to reporting outside temperature as 32.0F and looking a bit farther it is also reporting outside humidity as 0.
Additional note: the unit is writing these bogus values into the SQL database as well...
|
|