Notifications
Clear all

10/18/2023 Map Stopped Working?
Visit this post for the fix

New TLS certificate on weather.gov - check your time settings if the map quits working

3 Posts
2 Users
0 Reactions
645 Views
(@zeroengineland)
Trusted Member
Joined: 4 years ago
Posts: 52
Topic starter  

My map quit working recently, and I only just had time to look at it.  The short version: make sure your system time is set right.

The error that I received was that that there would be an attempt to fetch the weather, with the URL on weather.gov, but the log was reporting "Internet NOT Available."  If I hit control-C, the metar.py script would stop, and it would say that the SSL certificate was invalid.

So, head on over to the desktop, pull up the URL by pasting into Chrome, it works and returns the XML weather doc that I'm expecting.  Click on the lock in the URL field to check the certificate, and its valid date is March 21, expiring in October.  Check system time on the Pi and it is March 10.

Now I'm having fun trying to figure out how to make NTP work out of the box on Raspbian, since they changed from NTP to timedatectl somewhere along the line...


   
Quote
Mark Harris
(@markyharris)
Member Admin Registered
Joined: 5 years ago
Posts: 557
 

Wow, what a great catch. I'm sorry you had to figure this out, but I'm sure it wouldn't have occurred to me.

Thanks for the write up. - Mark


   
ReplyQuote
(@zeroengineland)
Trusted Member
Joined: 4 years ago
Posts: 52
Topic starter  

Professionally, I've spent a lot of time in networking.  Time errors on TLS certificates are a well-known problem.  The "full size" Pi boards have a real time clock, but the Pi Zero does not.

If I have time (which is doubtful), I'll try and send you a configuration that enables NTP out of the box.  You'd have to set up the image to do the equivalent of apt-get install ntp, and then point at the pool servers (see https://www.ntppool.org/en/).


   
ReplyQuote
Share: