Unable to change rain chart type

91 views
Skip to first unread message

Blake Garner

unread,
Dec 19, 2021, 3:01:36 PM12/19/21
to weewx-user
Have been reading docs and posts but I have to be missing something when it comes to making changes to the weewx.conf. My understanding is that config in the skins.conf can be overridden by settings in weewx.conf. My goal is to have all the settings in that main conf file.

The specific thing I want to change today is the rain chart type from bar to line. I found this block in one of the examples and have been trying to use that to test with the default theme. I have added this to the end of my weewx.conf and nothing changed after the next render.

https://github.com/trodemaster/weather/blob/90147065ab8c206038762637163716f162bfb695/devweewx.conf#L620

[ImageGenerator]
    [[day_images]]
        [[[dayrain]]]
            yscale = None, None, 0.02
            plot_type = line
            [[[[rain]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                label = Rain (hourly total)

Am I on the right track configuring this in the ImageGenerator?
Does it matter where in the config file I put this?
Is there a way to see if my config file throws errors when it gets read?
 

Weewx log : https://gist.github.com/trodemaster/e0d4e897a145f5e497927cf6902c8639

Weewx config file: https://github.com/trodemaster/weather/blob/90147065ab8c206038762637163716f162bfb695/devweewx.conf

Station type: simulator (for testing)
weewx 5.4.1 installed from source on macOS 12.1

Thanks,
Blake
 

p q

unread,
Dec 19, 2021, 3:08:04 PM12/19/21
to weewx...@googlegroups.com
Did you restart weewx after you made your change? Changes to weewx.conf require a restart to take effect.

--
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/30051da0-94dd-471f-b2a0-e364042dc7f7n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

Blake Garner

unread,
Dec 19, 2021, 3:11:31 PM12/19/21
to weewx-user
Yes, I have restarted weewx after making config changes. The log linked is from the last restart of my testing. 

Tom Keffer

unread,
Dec 19, 2021, 6:03:19 PM12/19/21
to weewx-user
You're close! You just need to nest it under the skin settings, and add two more sets of brackets. Assuming you are using the Seasons skin, this would look like

[[SeasonsReport]]

# What skin this report should be based on:
skin = Seasons
enable = True

[[[ImageGenerator]]]

[[[[day_images]]]]
[[[[[dayrain]]]]]
yscale = None, None, 0.02
plot_type = line
[[[[[[rain]]]]]]
aggregate_type = sum
aggregate_interval = 3600
label = Rain (hourly total)

-tk


On Sun, Dec 19, 2021 at 12:01 PM Blake Garner <bl...@netjibbing.com> wrote:
--

matthew wall

unread,
Dec 19, 2021, 6:07:20 PM12/19/21
to weewx-user
On Sunday, December 19, 2021 at 6:03:19 PM UTC-5 tke...@gmail.com wrote:
You're close! You just need to nest it under the skin settings, and add two more sets of brackets.


hey tom,

can you put this in the Defaults section so that it applies to all reports?

i'm working on a small update to the customization guide for the 4.6 release, and this is one of the use cases

m
 

Tom Keffer

unread,
Dec 19, 2021, 6:15:53 PM12/19/21
to weewx-user
I don't see why you couldn't put it under [[Defaults]]. The Defaults section has a higher priority than skin.conf, so anything there will have precedence. 

--
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.

Blake Garner

unread,
Dec 19, 2021, 7:35:46 PM12/19/21
to weewx-user
OK, I added it to the defaults section and it is now working for the default skin. Progress! When I toggle back on the neowx-material skin I'm using for my actual station the settings don't get picked up by that. So maybe that skin has bugs or again the config block needs to be in a different location? 

Tom Keffer

unread,
Dec 19, 2021, 7:47:24 PM12/19/21
to weewx-user
I'm not familiar with the neowx skin. It would need to use identical names for the time groups ([[day_images]], etc), and plot file names.

Blake Garner

unread,
Dec 20, 2021, 7:20:42 PM12/20/21
to weewx-user
OK I can dig into the theme to figure out what the settings are called. 
Reply all
Reply to author
Forward
0 new messages