Weather Software > WeeWX Software

RESOLVED - cant add new graph to weewex Seasons

(1/3) > >>

BaseLine:
I was planning to add a new graph to Seasons skin and edited the skins.conf by uncommenting the example:


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


* I restarted weewx - nothing. No errors in the log
* cleared out browsers cache - nothing
* I deleted everything from /html - it was regenerated as expected but no new graph.
* I even updated to new version of weewex :) - nothing   I am out of ideas.

SnowHiker:
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: ---        # 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       
--- End code ---

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.

SnowHiker:
Maybe try adding this in the appropriate place in the "index.html" file for the Seasons skin:


--- Code: ---            <img src="yearhilow.png"     alt="$obs.label.hilowTemp" />
--- End code ---

BaseLine:

--- Quote from: 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: ---            <img src="yearhilow.png"     alt="$obs.label.hilowTemp" />
--- End code ---

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

SnowHiker:

--- Quote from: BaseLine on February 18, 2023, 12:52:44 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.

--- End quote ---

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. 

Navigation

[0] Message Index

[#] Next page

Go to full version