Belchertown Report Issues

113 views
Skip to first unread message

Michael McClane

unread,
Sep 11, 2020, 6:09:18 AM9/11/20
to weewx-user
I was having trouble with Belchertown.  Some of it can be attributed that I didn't read all of the documentation more than once and I think I may have mixed versions.  So I uninstalled Belchertown using sudo weewx_extension --uninstall Belchertown.  I reviewed my weewx.conf and the Belchertown skin and they appeared to be normal.

I proceeded to install Belchertown following the instructions on the README.md for Aeris Weather  replacement.  I downloaded the file and ran sudo  wee_extension  --weewx-belchertown-1.1.tar.gz.  Edited weewx.conf and here's the  current Belchertown section:

 [[Belchertown]]
242         skin = Belchertown
243         HTML_ROOT = /var/www/html/weewx/belchertown
244         # enable = true
245
246         [[[Extras]]]
247     belchertown_root = http://localhost/weewx/belchertown
248     #logo_image =
249     site_title = "Amelia Island"
250     foot_copyright_text = "BelchertownWeather.com"
251     forecast_enabled = 1
252     forecast_provider = "aeris"
253     forecast_api_id = 123456789
254     forecast_api_secret = 987654321
255     forecast_lang = en
256     forecast_units = us
257     forecast_stale = 3540
258     forecast_alert_enabled = 0
259     #twitter_enabled = 1
260
I've attached the debug results of my weewx.conf file. I'm not a python expert.  The first errors are http related in request.py Lines 569 and 649

Then it gets weird.  It's a darksky forecast error in belchertown.py  Line 597. Finally permission denied /belchertown/favicon.ico and /json/homepage.json.

  My HTML_ROOT at /var/www/html/Belchertown has the Belchertown report from Sep 7 which I believe was ran under this installation as I total wiped out HTML_ROOT before the new install per Pat's suggestion.

I'm having fun, learning new things, but at a loss here.  Any insight is appreciated.

Mike
WeeWX Debug

Pat

unread,
Sep 11, 2020, 2:47:31 PM9/11/20
to weewx-user
Aeris does not work in version 1.1. 

Good news; version 1.2 has been released which Aeris works in. I suggest you upgrade.

Mike McClane

unread,
Sep 11, 2020, 3:53:12 PM9/11/20
to weewx...@googlegroups.com
I’m running Debian 10 on a MacBook Pro. I uninstalled Belchertown and did a deep cleaning of /var/www/html.  Also double checked weewx.conf for any remnants.  

I installed Belchertown using wget https://github.com/poblabs/weewx-belchertown/releases/download/weewx-belchertown-1.1/weewx-belchertown-release-1.1.tar.gz and sudo wee_extension --install weewx-belchertown-release-1.1.tar.gz.  wee_reports ran without error. I could access in my browser at http://localhost/weewx/belechertown.  It worked through couple iterations, then quit. The HTML_ROOT =/var/www/weewx/belchertown showed the last run before it died.

I’ve removed Belchertown again and the generic weewx seems to work fine. It seems that I have an issue with pitting the results of the report generation in the right place.
Mike

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/09ccb05c-7d89-4cdc-94a6-ef4c0f37001do%40googlegroups.com.
<WeeWX Debug>

Mike McClane

unread,
Sep 11, 2020, 3:53:46 PM9/11/20
to weewx...@googlegroups.com
Could that have been the issue?

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.

Pat

unread,
Sep 11, 2020, 3:54:42 PM9/11/20
to weewx-user
Tough to say without debug logs

Mike McClane

unread,
Sep 11, 2020, 3:55:58 PM9/11/20
to weewx...@googlegroups.com
They were attached to my first message - No worries on with 1.2

Pat

unread,
Sep 11, 2020, 3:56:37 PM9/11/20
to weewx-user
Ah, I missed that! Is 1.2 working for you?

Mike McClane

unread,
Sep 11, 2020, 3:58:20 PM9/11/20
to weewx...@googlegroups.com
Getting ready to install now.  I assume that since I uninstalled and cleared up the previous Belchertown tracks that It is a new install.

Pat

unread,
Sep 11, 2020, 3:59:12 PM9/11/20
to weewx-user
Looking at the debug logs, something was up with your forecast settings. Could be the Aeris setting on 1.1 which doesn't support it. 

raise Warning( "Error downloading forecast data. Check the URL in your configuration and try again. You are trying to use URL: %s, and the error is: %s" % ( forecast_url, error ) )
Warning: Error downloading forecast data. Check the URL in your configuration and try again. You are trying to use URL: https://api.darksky.net/forecast//30.651880,-81.438522?units=auto&lang=en, and the error is: HTTP Error 400: Bad Request
Reply all
Reply to author
Forward
0 new messages