WXforum.net

Weather Software => WeeWX Software => Topic started by: BaseLine on February 13, 2023, 07:16:37 AM

Title: RESOLVED - cant add new graph to weewex Seasons
Post by: BaseLine on February 13, 2023, 07:16:37 AM
I was planning to add a new graph to Seasons skin and edited the skins.conf by uncommenting the example:

Code: [Select]
#        [[[yearhilow]]]
#            [[[[hi]]]]
#                data_type = outTemp
#                aggregate_type = max
#                label = High
#            [[[[low]]]]
#                data_type = outTemp
#                aggregate_type = min
#                label = Low Temperature
Nothing.

I am out of ideas.
Title: Re: cant add new graph to weewex Seasons
Post by: SnowHiker on February 15, 2023, 12:15:30 PM
Edit: Your best bet would probably be to read the next post first.  :???:

I'll see if I can mess you up again.

Here is what I have, you can delete the freeze line of course:
Code: [Select]
        # Plot of high/low outdoor temperatures
       [[[yearhilow]]]
    [[[[freezeLine]]]]
                data_type = 32
                label = ' '
                color = 0x42b442       
            [[[[hi]]]]
                data_type = highOutTemp
                aggregate_type = max
                label = High Outside Temperature
                color = 0x4242b4
            [[[[low]]]]
                data_type = lowOutTemp
                aggregate_type = min
                label = Low Outside Temperature
                color = 0xb48242       

This is my result:

 [ You are not allowed to view attachments ]

But as I recall I also had to add the columns highOutTemp and lowOutTemp to the database as I read from the archives instead of loop on my VP and have a fairly long archive interval and would otherwise miss some highs and lows, so as I say, I may be messing you up again.  I don't know why the example isn't working.
Title: Re: cant add new graph to weewex Seasons
Post by: SnowHiker on February 15, 2023, 01:33:42 PM
Maybe try adding this in the appropriate place in the "index.html" file for the Seasons skin:

Code: [Select]
            <img src="yearhilow.png"     alt="$obs.label.hilowTemp" />
Title: Re: cant add new graph to weewex Seasons
Post by: BaseLine on February 18, 2023, 12:52:44 PM
Maybe try adding this in the appropriate place in the "index.html" file for the Seasons skin:

Code: [Select]
            <img src="yearhilow.png"     alt="$obs.label.hilowTemp" />
There is absolutely no need to screw around with index.html. It's a generated file and is based on skin templates etc.
 
Took a closer look of the skin.conf file and found this interesting and undocumented (in customizing.htm) configuration option:

plot_groups =
Added my "hilow" to it and that was it.

No idea how I missed this in the first place. Wasted like an hour on this. LOL.
Title: Re: cant add new graph to weewex Seasons
Post by: SnowHiker on February 18, 2023, 09:24:15 PM

There is absolutely no need to screw around with index.html. It's a generated file and is based on skin templates etc.
 
Took a closer look of the skin.conf file and found this interesting and undocumented (in customizing.htm) configuration option:

plot_groups =
Added my "hilow" to it and that was it.

No idea how I missed this in the first place. Wasted like an hour on this. LOL.

Interesting.  There is no plot_groups = in my skin.conf.  It appears to have been added later as I chose to keep my current file through upgrades.

Whatever I did worked for me, and has lasted through upgrades.  I've also reordered the graphs, among other things.

So I'll screw around with what a want to.  I've learned from the docs, experimentation, and sometimes from reading the WeeWX users group, and yes, sometimes it's taken me some time. 

Title: Re: RESOLVED - cant add new graph to weewex Seasons
Post by: BaseLine on February 19, 2023, 11:37:38 AM
It seems that weewx cant do simple calculations like 22-0.4 (Inside temp - Outside temp)
Chart shows a value of ~43 C
 
   
Title: Re: cant add new graph to weewex Seasons
Post by: vinceskahan on February 19, 2023, 05:05:16 PM
There is no plot_groups = in my skin.conf.  It appears to have been added later as I chose to keep my current file through upgrades.

It was added in weewx 4.6.0 in Nov 2021.  Looks like the old name was 'plot_names' from poking around in the git repo.


It seems that weewx cant do simple calculations like 22-0.4 (Inside temp - Outside temp)
Chart shows a value of ~43 C 

I have no idea what you're talking about there.   In a plot via skin.conf or in a Cheetah template like index.html.tmpl ?


Title: Re: cant add new graph to weewex Seasons
Post by: SnowHiker on February 19, 2023, 09:31:58 PM
There is no plot_groups = in my skin.conf.  It appears to have been added later as I chose to keep my current file through upgrades.

It was added in weewx 4.6.0 in Nov 2021.  Looks like the old name was 'plot_names' from poking around in the git repo.




Thanks Vince.  There's no "plot_names" in my skins.conf either, it must have been added later too, I'm not seeing it in the 3.9 version where the Seasons skin was first released and when I first started using Seasons.  I see it is in the skin.conf.dpkg-dist for my latest installed version.

I appreciate WeeWX is being improved, and I've enjoyed tweaking it (or screwing with it  :lol:) to suit myself.
Title: Re: RESOLVED - cant add new graph to weewex Seasons
Post by: vinceskahan on February 19, 2023, 09:44:16 PM
Well 4.0 came out almost 3 years ago, so I can't speculate any more on the ancient versions....
Title: Re: cant add new graph to weewex Seasons
Post by: BaseLine on February 20, 2023, 06:46:55 AM

It seems that weewx cant do simple calculations like 22-0.4 (Inside temp - Outside temp)
Chart shows a value of ~43 C 

I have no idea what you're talking about there.   In a plot via skin.conf or in a Cheetah template like index.html.tmpl ?
](*,) I do not want to change how the skin looks like so I there is no need to edit any of the .tmpl files.

What's plotted is configured via skins.conf.

Code: [Select]
             [[[[diff]]]]
                 data_type = inTemp-outTemp
                 label = Inside - Outside
The result of this calculation is wrong as I stated before.
Title: Re: RESOLVED - cant add new graph to weewex Seasons
Post by: vinceskahan on February 20, 2023, 11:06:09 AM
Looks reasonable when I add the same plot...

 [ You are not allowed to view attachments ]
Title: Re: RESOLVED - cant add new graph to weewex Seasons
Post by: BaseLine on February 20, 2023, 11:23:03 AM
I am not surprised if there is a bug and "diff" used F and not C for who knows what reason.