Belchertown - Windy and Forecast Incorrect Location

78 views
Skip to first unread message

ccroom

unread,
Dec 20, 2021, 8:59:25 AM12/20/21
to weewx-user
I was using the Belchertown skin with Python2 without any issues.  I upgraded the station to Python3 and now I'm having problems with the Belchertown skin pulling the correct location for Windy and the Forecast.  I'm not suggesting the change had anything to do with the problem because I'm no expert so please bear with me.  

I have been able to do some troubleshooting and after looking over the forecast file at --- /var/www/html/weewx/json/forecast.json  --- it seems that the forecast and windy display is pulling from  {"long": 82.026, "lat": 28.621} and the longitude should be -82.026.  As a result I'm receiving a forecast somewhere around Nepal.  

Here is a portion of the json forecast file.

{"timestamp": 1640007017, "current": [{"success": true, "error": {"code": "warn_no_data", "description":

 "Valid request. No results available based on your query parameters."}, "response": []}], "forecast":

 [{"success": true, "error": null, "response": [{"loc": {"long": 82.026, "lat": 28.621},

 "interval": "day", "periods": [{"timestamp": 1639962900, "validTime": "2021-12-20T07:00:00+05:45",

Does anyone have a suggestion on how to fix?   Clay


vince

unread,
Dec 20, 2021, 11:49:06 AM12/20/21
to weewx-user
I'm assuming your forecast now shows snow :-)

Just in case, check your weewx.conf to see if it's correct there.

ccroom

unread,
Dec 20, 2021, 12:10:05 PM12/20/21
to weewx-user
Oh my... I feel so stupid.  Thanks for the suggestion about the weewx.conf.  I looked over it multiple times and don't know how I missedd it or how it was changed but the longitude was missing the "-" mark.  Added that and deleted the forecast json file so it could be regenerated and it's fixed.  Thanks, Vince.
Reply all
Reply to author
Forward
0 new messages