image genarator/skin.config

139 views
Skip to first unread message

bwal...@gmail.com

unread,
Feb 1, 2021, 8:35:28 AM2/1/21
to weewx-user

Hi

 i have some problems with image genaration.

First i found out, if no font is specified or (font is not found), change of of fontsize has  no effekt.

 

im also not able to change line width:

sektion in skin config:

    # Default colors for the plot lines. These can be overridden for

    # individual lines using option 'color'

    chart_line_width = 3, 1, 1

    chart_line_colors = "#4282b4", "#b44242" , "#42b442"

 

"chart_line_colors" as hex should be in quotes, unlike in the decription of imagegenerator.

 

an an other wired thing:

uv plot weekly  could be more than 16?
not shure whats going on there...

 by the way no errors in logfile.

Raspi 4B

Davis vantage2 with uv sensor.

weewx 4.3.0

monthuv.png
skin.conf
weekuv.png
dayuv.png

Tom Keffer

unread,
Feb 1, 2021, 3:11:08 PM2/1/21
to weewx-user
Yes, this is a little subtle.

The option `width` is overriding option `chart_line_widths`. Comment it out, and `chart_line_widths` will work.

    chart_line_width = 20, 1, 1

    # Default plot parameters
    plot_type = line
    aggregate_type = none
    # width = 1   # <- comment this line out
    time_length = 86400 # 24 hours

-tk

--
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/98cfa1f8-b5b4-425f-beda-54aba3c9c20en%40googlegroups.com.

gjr80

unread,
Feb 1, 2021, 5:14:51 PM2/1/21
to weewx-user
Hi,

Some answers to some of your outstanding queries below.

Gary


On Monday, 1 February 2021 at 23:35:28 UTC+10 bwal...@gmail.com wrote:

    chart_line_colors = "#4282b4", "#b44242" , "#42b442"

 

"chart_line_colors" as hex should be in quotes, unlike in the decription of imagegenerator.

Indeed some colours need to be enclosed in single or double quotes, not so much because they contain hex characters, but rather because they contain the # character. In a config file the # character indicates a comment and any text on the same line following the # is ignored. I see the config extracts in the manuals don't have quotes but actual config files do and that could be confusing. I will update the manuals.
 

an an other wired thing:

uv plot weekly  could be more than 16?
not shure whats going on there...


The source of your UV week plot problems is that you are asking the plot generator to plot the sum of the UV values in each hour. If you have the typical five minute archive period there will be 12 UV readings being summed to make up each point on the plot. To fix it remove the below highlighted line and you will instead see the average UV reading each hour:

        [[[weekuv]]]
            yscale = 0, 16, 1
            [[[[UV]]]]
                aggregate_type = sum
                aggregate_interval = 3600
                label = Ultraviolette Strahlung
 
Reply all
Reply to author
Forward
0 new messages