Author Topic: RESOLVED - cant add new graph to weewex Seasons  (Read 1939 times)

0 Members and 1 Guest are viewing this topic.

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
RESOLVED - cant add new graph to weewex Seasons
« 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 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.
« Last Edit: February 18, 2023, 12:53:31 PM by BaseLine »
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 358
Re: cant add new graph to weewex Seasons
« Reply #1 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.
« Last Edit: February 15, 2023, 01:39:32 PM by SnowHiker »

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 358
Re: cant add new graph to weewex Seasons
« Reply #2 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" />

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: cant add new graph to weewex Seasons
« Reply #3 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.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 358
Re: cant add new graph to weewex Seasons
« Reply #4 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. 

« Last Edit: February 18, 2023, 09:33:20 PM by SnowHiker »

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: RESOLVED - cant add new graph to weewex Seasons
« Reply #5 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
 
   
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 249
    • home site
Re: cant add new graph to weewex Seasons
« Reply #6 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 ?


WeeWX sites on a pi4:
  Davis VP2+DFARS
  EcoWitt GW1200, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture, WH34 soilTemp
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/  - sorry, but I block incoming other than US/CA/AU due to bots from elsewhere
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

Offline SnowHiker

  • Forecaster
  • *****
  • Posts: 358
Re: cant add new graph to weewex Seasons
« Reply #7 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.

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 249
    • home site
Re: RESOLVED - cant add new graph to weewex Seasons
« Reply #8 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....
WeeWX sites on a pi4:
  Davis VP2+DFARS
  EcoWitt GW1200, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture, WH34 soilTemp
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/  - sorry, but I block incoming other than US/CA/AU due to bots from elsewhere
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: cant add new graph to weewex Seasons
« Reply #9 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.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

Offline vinceskahan

  • Senior Contributor
  • ****
  • Posts: 249
    • home site
Re: RESOLVED - cant add new graph to weewex Seasons
« Reply #10 on: February 20, 2023, 11:06:09 AM »
Looks reasonable when I add the same plot...

 [ You are not allowed to view attachments ]
WeeWX sites on a pi4:
  Davis VP2+DFARS
  EcoWitt GW1200, WH32 outdoor T+H, multiple WH31 indoor T+H, WH51 soilMoisture, WH34 soilTemp
  Davis AirLink (inside)
  PurpleAir (outside)
Home site:        https://www.skahan.net/  - sorry, but I block incoming other than US/CA/AU due to bots from elsewhere
Wunderground: KWAFEDER15
PWS:                KWFEDER15
CWOP:              CW6881

Offline BaseLine

  • Senior Contributor
  • ****
  • Posts: 184
Re: RESOLVED - cant add new graph to weewex Seasons
« Reply #11 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.
Sun cooked nothingburger of climate change hysteria with a side order of peak-oil nonsense fries.

 

anything