I should mention that I'm assuming that this workaround doesn't turn off certificate validation system-wide but I'm not well-versed enough in how this works to know for sure. Since the daemons are managed by root I guess it's possible.
On Sunday, February 2, 2020 at 9:14:24 PM UTC-8, J B wrote: > > Like some of you I'm still getting intermittent errors that stop weewx > 3.9.2 from uploading until I restart. Someone over at > https://apicommunity.wunderground.com/ posted this creative > workaround that seems to be working so far. It lowers the security of > python but it's better than sending everything over http. > > tmarschner > <https://apicommunity.wunderground.com/weatherapi/people/tmarschner> > > - 2 Posts > - 0 Reply Likes > > Hi there, > > Here's an alternative workaround that doesn't require you to send your > Wunderground credentials in clear text. It turns off certificate validation > for python. I've tested this on weewx 3.9.2 on a Raspberry Pi (v. 9 > Stretch) running python 2.7.13. > > Modify the weewx startup script /etc/init.d/weewx. > > Find the start-stop-daemon line that starts up weewx (the do_start > routine) and insert "/usr/bin/env PYTHONHTTPSVERIFY=0" into the --exec > parameter as shown below: > > start-stop-daemon --start --chuid $WEEWX_USER --pidfile $PIDFILE --exec > /usr/bin/env PYTHONHTTPSVERIFY=0 $DAEMON -- $DAEMON_ARGS || return 2 > > Cheers, > Tom > -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/0b003603-6086-4d16-8612-ddb526efa1b9%40googlegroups.com.
