WXforum.net
Weather Software => WeeWX Software => Topic started 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:
# [[[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.
-
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:
# 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.
-
Maybe try adding this in the appropriate place in the "index.html" file for the Seasons skin:
<img src="yearhilow.png" alt="$obs.label.hilowTemp" />
-
Maybe try adding this in the appropriate place in the "index.html" file for the Seasons skin:
<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.
-
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.
-
It seems that weewx cant do simple calculations like 22-0.4 (Inside temp - Outside temp)
Chart shows a value of ~43 C
-
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 ?
-
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.
-
Well 4.0 came out almost 3 years ago, so I can't speculate any more on the ancient versions....
-
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.
[[[[diff]]]]
data_type = inTemp-outTemp
label = Inside - Outside
The result of this calculation is wrong as I stated before.
-
Looks reasonable when I add the same plot...
[ You are not allowed to view attachments ]
-
I am not surprised if there is a bug and "diff" used F and not C for who knows what reason.