Hi, Thanks for that, not much snow in these parts so unlikely I would have ever come across the issue :)
I am a bit pressed for time now but will put this down as an issue in the rtgd repo so that I can get back to it later. Gary On Monday, 28 January 2019 01:20:06 UTC+10, [email protected] wrote: > > I found a small, easy to fix, problem when testing the Dark Sky forecast > function in rtgd.py v.0.3.5. > > I was quite surprised when the scrolling forecast indicated 47in of snow. > A quick check of Dark Sky indicated 4-7 inches of snow. > > I was able to track the problem back to line 3318: summary = > response[self.block]['summary'].encode('ascii', 'ignore') > > Changing the encode parameter from "ascii' to 'UTF-8' seems to have fixed > the problem: summary = response[self.block]['summary'].encode('UTF-8', > 'ignore') > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
