n0bel / PiClock

A Fancy Clock built around a monitor and a Raspberry Pi
MIT License
564 stars 182 forks source link

Temp not updating? #236

Closed ScottChapman closed 2 years ago

ScottChapman commented 2 years ago

So, I noticed recently, like a couple of days ago, that the temperature does not appear to be updating.

But... It kinda looks like things are updating OK, like the forecasts on the right appear to be advancing.

I took a quick scan through the logs and didn't see any errors (except for an occassional index out of range when I think it is doing something with images. But that seems different...

When I look at my darksky dashboard I don't see any calls in last couple of days...

n0bel commented 2 years ago

I have one PiClock still using DarkSky. Mine is updating normally. My guess would be your ISP or somewhere there's a caching proxy in the middle thats defeating the random number querystring.

ScottChapman commented 2 years ago

OK, it looks like there was just some lag in darksky updating their dashboard metrics, I do see pretty consistent calls every day. And I did test the URL I saw in the logs and got correct current forecast. So I think that's not it.

To be clear, it is only the box in the upper left that appears to be stale. Everything else looks like it is updating OK.

Can you point me to the code which is responsible for that and perhaps I can instrument it to get some idea.

ScottChapman commented 2 years ago

Oh! http://tgftp.nws.noaa.gov/data/observations/metar/stations/KFIT.TXT

I'm not sure exactly how that is supposed to work, but it looks like it isn't updating for me and seems to be the source of the current conditions?

ScottChapman commented 2 years ago

Picked the next nearest station. All set!