Belchertown forecast not being generated

59 views
Skip to first unread message

David Levine

unread,
Jan 1, 2021, 8:10:41 PM1/1/21
to weewx-user
Today I added PWS output via WeeWX and then signed up at Aeris Weather and got the API & Secret key. I configured weewx.conf to enable the forecast option in the skin but all I'm getting is the heading of 7 Day Forecast output on the homepage with no forecast displayed under it. There's no forecast.json file generated which results in a 404 when the home page references it. 

I enabled debugging in the weewx.conf file but saw no messages in syslog when the files are generated every 5 minutes.  I've confirmed the Aeris keys are correct. Any options for troubleshooting why forecast.json isn't getting generated?

What is the underlying call between weewx and aerisweather ? 
Is it something like : https://api.aerisapi.com/forecasts/waldwick,nj?&format=json&filter=day&limit=7&client_id=xxxxxx&client_secret=yyyyyy 
This URL works for me when I specify the client api id and secret key values.

Here's the relevant snippet from the conf file with my forecast keys replaced. 

    [[Belchertown]]
        skin = Belchertown
        HTML_ROOT = /var/www/html/weewx/belchertown
        [[[Extras]]]
            forecast_enabled = 1
            forecast_api_key = "xxxxxx"
            forecast_api_secret = "yyyyyy"
            forecast_alert_enabled = 1
            earthquake_enabled = 1
            earthquake_server = USGS
            theme = auto
            site_title = Waldwick NJ Weather
            manifest_name = Waldwick NJ Weather
            manifest_short_name = WWK
            graph_page_show_all_button = 1
            webpage_autorefresh = 300000

Thanks in advance!
David

vince

unread,
Jan 1, 2021, 8:44:29 PM1/1/21
to weewx-user
Try changing 'forecast_api_key' to be 'forecast_api_id' according to the docs (here) and see if that helps any...

David Levine

unread,
Jan 1, 2021, 8:59:15 PM1/1/21
to weewx-user
Thank you Vince!!

It looks like some default settings block I copied had it as forecast_api_key and I just uncommented it when I got the keys. I also see it referenced as forecast_api_key on the Belchertown site such as in the example settings at https://github.com/poblabs/weewx-belchertown#skin-options 

Thanks so much again Vince as it is indeed working now. Happy New Year!

David

vince

unread,
Jan 1, 2021, 10:44:58 PM1/1/21
to weewx-user
If you see documentation errors, I'm sure Pat would like a pull request with the fix (or open an issue there saying where you saw the typo).

My guess is that the name changed at one point in time, but my memory is a little hazy there.

Reply all
Reply to author
Forward
0 new messages