Belchertown not generating forecast

113 views
Skip to first unread message

Mark Jenks

unread,
Jun 4, 2023, 9:12:47 PM6/4/23
to weewx-user
It's downloading it form aeris and I see it in the API as being queries.  Also I see it in the logs and the json is downloaded.

Jun  4 20:00:27 fedora journal[3171401]: weewx[3171401] INFO user.belchertown: New forecast file downloaded to /var/www/html/weewx/belchertown/json/forecast.json

But I have no forecast on the webpage, and don't see any errors.

Not sure where to look next.. 

[[Belchertown]]
        skin = Belchertown
        HTML_ROOT = /var/www/html/weewx/belchertown
        enable = true
        #        HTML_ROOT = /var/www/html/weewx/belchertown
        [[[Extras]]]
            forecast_enabled = 1
            forecast_api_id = xxxx
            forecast_api_secret = xxxxx


vince

unread,
Jun 5, 2023, 12:06:51 AM6/5/23
to weewx-user
Your syslog should show something like....
Jun  4 21:00:20 pi4 weewx[10457] INFO user.belchertown: New forecast file downloaded to /home/pi/weewx-data/public_html/weewx_belchertown/json/forecast.json

And the timestamp of the first record of that forecast.json file should match that date....
{"timestamp": 1685937620, "current": [{"success": true, "error": null, "response": {"id": "KSEA", "dataSource": "METAR_NOAA", "loc": {"long": -122.31666666667, "lat": 47.45}, "place"
: {"name": "seattle/metro", "city": "seattle/metro",........

pi@pi4:/var/www/html/weewx/weewx_belchertown $ date -d @1685937620
Sun 04 Jun 2023 09:00:20 PM PDT

Mark Jenks

unread,
Jun 5, 2023, 6:54:40 AM6/5/23
to weewx-user
date -d doesn't do that for me, but inside the json, I found the current date and time.  So it's downloading, but not generating the HTML.

 "dateTimeISO": "2023-06-05T07:00:00-05:00"

Mark Jenks

unread,
Jun 5, 2023, 7:15:22 AM6/5/23
to weewx-user
Works different for me.  But it is getting downloaded.
[root@fedora json]# date --date="@1685959229"
Mon Jun  5 05:00:29 AM CDT 2023
Reply all
Reply to author
Forward
0 new messages