JVital2013 / vitality-goes

Web App for showcasing Geostationary Weather Satellite Data
GNU General Public License v3.0
71 stars 6 forks source link

Current Conditions not working #55

Closed mattfox27 closed 4 months ago

mattfox27 commented 6 months ago

When I leave the system defaults I get the current conditions, temp and all that...When I put in my info for my city I get some but not all current conditions weather info.

I get the Radar, weather summary, and forecast but nothing else, any insight into why not the other info?

JVital2013 commented 6 months ago

Hello @mattfox27!

This can happen for a few different reasons. It usually depends on your config and physical location. I did some research and I believe I found your rough area on a certain social media website for professionals - it seems to be accurate since I see the same thing you are describing when I configure my station for that location. If not, let me know your rough location and I can do some more digging.

There are two issues here.

Missing Current Weather

The LOX Weather Forecast Office formats the Regional Weather Roundup slightly differently from other locations - specifically, some areas are not official and are missing some information, and these areas were prefixed with a *.

I fixed support for this in the latest commit - can you update your dataHandler.php file and see if Current Weather shows up now? The top "weather" line will usually show up as N/A for these regions.

Missing graphical 7-day forecast

The other missing card is the graphical 7-day forecast (it looks like the text-based forecast is there, fortunately). Unfortunately there's nothing I can do here - it appears the LOX office only issues the PFM (required for the graphical 7-day forecast) for specific areas, and yours is not one of them.

You could work around the issue by changing wxZone in your config to one listed in the *PFMLOXCA.TXT emwin files, if there's one close with similar weather.

mattfox27 commented 6 months ago

What would be the best way to update dataHandler.php? Can I just do 'git pull' or will that mess up my current config?

JVital2013 commented 6 months ago

That depends on how you installed it, which I could only guess at.

No matter the system, though, you could just delete the current dataHandler.php from your web server folder, and replace it with this one: https://raw.githubusercontent.com/JVital2013/vitality-goes/main/html/dataHandler.php

mattfox27 commented 6 months ago

I just installed it on a raspberry pi, following the directions on the GitHub page.

JVital2013 commented 6 months ago

Got it - in that case, you can do a git pull to update your copy of the git repo, then run rsync -av --exclude 'config' --exclude 'videos' html/ /var/www/html/ --delete