Minor Belchertown issue

97 views
Skip to first unread message

Ron

unread,
Dec 22, 2021, 2:53:15 PM12/22/21
to weewx-user
I installed and setup this (magnificent!) skin today. Generally things are working as I expect with two exceptions. I cannot change the copyright (displayed bottom left). It stays with the default "Copyright © 2021 My Weather Website". The second issue is the "powered by" text won't change either. I am running the development version 1.3b1 and weewx 4.5.1. Below is the config segment for Belchertown with Aeris info removed. I 've also attached a file with the log contents from a Report cycle. Any advice appreciated.

[[[Extras]]]
            logo_image = "https://ronguest.net/uploads/2021/c0d9b17eca.png"
            #site_title = Allen TX Weather Conditions
            footer_copyright_text = "ronguest.net"
            forecast_enabled = 1
            forecast_api_id = ...
            forecast_api_secret = ...
            station_observations = barometer, dewpoint, outHumidity, rainWithRainRate, cloudbase, visibility, cloud_cover
            earthquake_enabled = 1
            earthquake_server = USGS
            webpage_autorefresh = 60000
            powered_by = Observations are powered by a Ambient Weather WS-1001

log.txt

vince

unread,
Dec 22, 2021, 4:00:38 PM12/22/21
to weewx-user
The docs can be a little hard to decipher....

Try putting them under:
    [[Extras]]
        [[[Labels]]]
            [[[[Generic]]]]
                powered_by = My Fabulous Station

That said, this one's on me.  Looks like when I gave Pat a PR to try to write a complete commented-out template into weewx.conf I messed up and put some items into the wrong place in the skeleton it writes out.

The *_header, footer_* and powered_by items need to go under Extras=>Labels=>Generic, not at the top-level of Extras.   Sorry 'bout that.

Ron

unread,
Dec 22, 2021, 4:45:27 PM12/22/21
to weewx-user
Thanks for a super fast response Vince! On my first attempt I missed that there were 4 sets of brackets on Generic - just mentioning that for others who might follow. It is working fine now.

One other comment: you have two sets of brackets on Extras rather than the 3 the documentation emphasizes. I left 3 in my config and it is working. Is that a future problem? I.e. is it supposed to be 2 sets on Extras, 3 on the next layer down Labels and then 4 on the level below that? I'm not familiar with this technique/format.

Cheers and happy holidays!

vince

unread,
Dec 22, 2021, 5:18:47 PM12/22/21
to weewx-user
Yes - typo (sigh).
Basically you add a [ ] as you go one level deeper.

Something like the following.
Indenting doesn't matter, I just use it in my weewx.conf for readability.

[StdReport]

  [[Belchertown]]
     enable = true

     [[[Extras]]]
         earthquake_enabled = 1

     [[[Labels]]]
          [[[[Generic]]]]
              powered_by = Powered_by: WeeWX of course

vince

unread,
Dec 22, 2021, 8:14:15 PM12/22/21
to weewx-user
Just a quick followup - I did PR-746 to Pat to merge when he gets a chance, but I thought I'd mention that if you are uncertain what goes where, look in Belchertown's skin.conf to see the expected hierarchy of what's configurable.  The code always wins, as a former coworker used to say...

Ron

unread,
Dec 22, 2021, 9:00:08 PM12/22/21
to weewx-user
Thanks a lot for the help!
Reply all
Reply to author
Forward
0 new messages