Upgrade Belchertown 1.2: website in coma

144 views
Skip to first unread message

blee...@xs4all.nl

unread,
Oct 5, 2020, 1:57:40 PM10/5/20
to weewx-user
After upgrading to Belchertown 1.2 with Aeris I'm missing

On te mainpage:
- MQTT updates
- Graphs
- Earthquake data
- Aeris Forecast

And also:
- Graphs-page is dead
- Reports-page is dead

as well as switching light/dark theme.

Checked, checked, and rechecked configs, MQTT (same as in 1.1), Aereis, ROOT_directories, ...

Someone an idea what I have done wrong?


Regards Keimpe
   

Arend

unread,
Oct 5, 2020, 3:23:56 PM10/5/20
to weewx-user
Hi, Keimpe

The file belchertown.js seems to be missing. That could mean it isn't generated. Check if the file Belchertown/js/belchertown.js.tmpl exists. If it is present, check the configuration in skin.conf. Under [CheetahGenerator] there must me a leaf showing something like this and check if the Belchertown entry is present:

    [[ToDate]]
        # Reports that show statistics "to date", such as day-to-date,
        # week-to-date, month-to-date, etc.
        [[[weewx_data]]]
            template = json/weewx_data.json.tmpl

        [[Belchertown]]
            template = js/belchertown.js.tmpl

        [[[home]]]
            template = index.html.tmpl

        [[[about]]]
            template = about/index.html.tmpl

        [[[graphs]]]
            template = graphs/index.html.tmpl

        [[[records]]]
            template = records/index.html.tmpl

        [[[reports]]]
            template = reports/index.html.tmpl

        [[[pi]]]
            template = pi/index.html.tmpl

        [[[manifest]]]
            encoding = utf8
            template = manifest.json.tmpl

Op maandag 5 oktober 2020 om 19:57:40 UTC+2 schreef blee...@xs4all.nl:

Arend

unread,
Oct 5, 2020, 5:36:44 PM10/5/20
to weewx-user
There seems to be an error in your skin.conf. Maybe that is the cause the belchertown.js isn't showing:

In skin.conf:


forecast_cloud_code_FW = "Licht bewolkt ("2/8)" there is one quotation mark (") too many in front of number 2
Op maandag 5 oktober 2020 om 21:23:56 UTC+2 schreef Arend:

Keimpe Bleeker

unread,
Oct 6, 2020, 5:28:59 AM10/6/20
to weewx...@googlegroups.com
Hoi Arend,

Thanks for your response. The extra " has been fixed. The Belchertown /js/belchertown.js.tmpl is in the right place, the Cheetah group in skin.conf is exactly as you described. Json files with forecast and earthquake data are correctly downloaded and placed in /home/weewx/public_html/belchertown/json. The report shows no errors (see undermentioned) and the FTP upload is also fine: all files on the server are updated every 5 minutes. Mosquitto works great too, checked it with MQTT Explorer. Do you have another idea? 

Regards, Keimpe

Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:16 CEST (1601975416)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.manager: Added record 2020-10-06 11:10:00 CEST (1601975400) to database 'weewx.sdb'
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.manager: Added record 2020-10-06 11:10:00 CEST (1601975400) to daily summary in 'weewx.sdb'
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: Windy: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: AWEKAS: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:16 CEST (1601975416)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: PWSWeather: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.cheetahgenerator: Generated 1 files for report MobileReport in 0.07 seconds
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.imagegenerator: Generated 4 images for report MobileReport in 0.19 seconds
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.reportengine: Copied 2 files to /home/weewx/public_html/belchertown/mobile
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO user.belchertown: version 1.2
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: StationRegistry: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:16 Pi4Wwx weewx[7356] INFO weewx.restx: Wunderground-PWS: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:17 Pi4Wwx weewx[7356] INFO user.belchertown: New forecast file downloaded to /home/weewx/public_html/belchertown//json/forecast.json
Oct  6 11:10:18 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:18 CEST (1601975418)
Oct  6 11:10:20 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:20 CEST (1601975420)
Oct  6 11:10:22 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:22 CEST (1601975422)
Oct  6 11:10:22 Pi4Wwx weewx[7356] INFO weewx.cheetahgenerator: Generated 12 files for report Belchertown in 5.82 seconds
Oct  6 11:10:22 Pi4Wwx weewx[7356] INFO weewx.reportengine: Copied 37 files to /home/weewx/public_html/belchertown/
Oct  6 11:10:24 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:24 CEST (1601975424)
Oct  6 11:10:26 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:26 CEST (1601975426)
Oct  6 11:10:28 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:28 CEST (1601975428)
Oct  6 11:10:28 Pi4Wwx systemd[1]: Starting Daily apt download activities...
Oct  6 11:10:28 Pi4Wwx weewx[7356] INFO weewx.reportengine: ftpgenerator: Ftp'd 64 files in 4.62 seconds
Oct  6 11:10:29 Pi4Wwx systemd[1]: apt-daily.service: Succeeded.
Oct  6 11:10:29 Pi4Wwx systemd[1]: Started Daily apt download activities.
Oct  6 11:10:30 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:30 CEST (1601975430)
Oct  6 11:10:31 Pi4Wwx weewx[7356] INFO weewx.restx: WOW: Published record 2020-10-06 11:10:00 CEST (1601975400)
Oct  6 11:10:32 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:32 CEST (1601975432)
Oct  6 11:10:34 Pi4Wwx weewx[7356] INFO weewx.restx: MQTT: Published record 2020-10-06 11:10:34 CEST (1601975434)



Op ma 5 okt. 2020 om 21:24 schreef Arend <arendh...@gmail.com>:
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/Y18E1Dpt3gw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/f89c1829-5fce-4905-ae2c-d835472fbe2an%40googlegroups.com.

Virusvrij. www.avast.com
Message has been deleted

blee...@xs4all.nl

unread,
Oct 6, 2020, 6:28:21 AM10/6/20
to weewx-user
Hoi Arend,

Another striking point: the texts in the generated pages do not match the config file:

index.html ('about'):

        <meta charset="UTF-8" />
        <title>Oentsjerk Weather Conditions</title>
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <meta name="description" content="Weather conditions for Oentsjerk as observed by a personal weather station and the weewx weather software"/>
        <meta name="robots" content="noodp"/>
        <link rel="canonical" href="http://oentsjerk.eu/" />
        <meta property="og:locale" content="nl_NL" />
        <meta property="og:type" content="website" />
        <meta property="og:title" content="Oentsjerk Weather Conditions" />
        <meta property="og:description" content="Weather conditions for Oentsjerk as observed by a personal weather station and the weewx weather software" />
        <meta property="og:url" content="http://oentsjerk.eu/" />
        <meta property="og:site_name" content="Oentsjerk Weather Conditions" />

Skin.conf

    #General Site Defaults
    belchertown_debug = 0
#  belchertown_locale = "auto"
    belchertown_locale = "nl_NL.utf8"
    theme = light
    theme_toggle_enabled = 1
    site_title = "het weer Oentsjerk"

Op dinsdag 6 oktober 2020 om 11:28:59 UTC+2 schreef blee...@xs4all.nl:

blee...@xs4all.nl

unread,
Oct 6, 2020, 7:04:38 AM10/6/20
to weewx-user
Hoi Arend,

MIRACLE! 

Today nothing changed in any file. Before lunch I was kind of hopeless, after lunch everything is up and running...
Should I have lunch more often? In any case, thank you for your tips!

Regards,
Keimpe
Op dinsdag 6 oktober 2020 om 12:28:21 UTC+2 schreef blee...@xs4all.nl:
Reply all
Reply to author
Forward
0 new messages