Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Visibility of variables on the chart

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

Post Reply
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Visibility of variables on the chart

Post by Dador »

Hi Hans,

I was wondering recently if you would be able to add new keywords in the CDL that would change the visibility of the variables in the chart legend? So something like VISIBILITY.

In CMX it looks like this:

Code: Select all

		var visibility = {
                'temp'     : true,
                'dew'      : true,
                'apptemp'  : false,
                'feelslike': false,
                'wchill'   : false,
                'heatindex': false,
                'humidex'  : false,
                'intemp'   : false
             };
What gives the effect as in my graphs (look at the legend below the graph):
https://cmx.pogodarybnik.pl/trends.htm

Then I can add a lot of variables to the graph, but only selected ones are active. Personally, I'd rather enable new values ​​than disable them ;) .
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Visibility of variables on the chart

Post by HansR »

Somewhere I thought this question has been asked before... can't find it though.

I get your point, I could create a keyword (IN)ACTIVE on a plotvariable to include it in the chart but have it default displayed or not.

But after the interval period the new data is loaded and the chart is refreshed so functionality like ZOOM and ACTIVE (or something like that) will be reset because the whole chart is reinitialized, that is how it is implemented at the moment.

Because I see Interval frequencies at the moment of 15 s (RT) and 2 mins (Interval), which are pretty high frequencies, it can be very annoying to get the variables change to their defaults. I may review the runtime system sometime but definitely not at the moment. I will look into another idea to solve that issue but can't guarantee at the moment.

Do you (plural, question to all users) think the reset will be a nuisance or doesn't it matter?
How do you look at these charts? Do you keep them open to watch an see them change? Nah... ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Visibility of variables on the chart

Post by watsonm »

Hans,
My two euros worth....
Yes the reset would be a nuisance but I could live with it.
I would vote for the option to deselect some of the variables.....
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Visibility of variables on the chart

Post by Dador »

For me it is important that I can decide whether a given variable will be active or not. I think it will be nice if there is just such an option, and each user can decide whether it suits him.
HansR wrote: Thu 01 Dec 2022 8:10 pm Do you (plural, question to all users) think the reset will be a nuisance or doesn't it matter?
I'd have to see how it works in practice. I won't tell you now.
HansR wrote: Thu 01 Dec 2022 8:10 pm How do you look at these charts? Do you keep them open to watch an see them change? Nah... ;)
I usually look at them for a while. Sometimes I will turn on other parameters, e.g. internal temperature, to see changes. I watch charts often, but briefly.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Visibility of variables on the chart

Post by HansR »

OK, I'll make an INVISIBLE keyword to switch the initial visibility off.
Maybe I'll use the word OFF or INACTIVE... not clear yet where my preference is :)

I'll see what I can do at the refresh moment of the chart, but the setting in the chart will not be memorised by the system: it is a compile time config so any restart of that chart will show that initial config.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Visibility of variables on the chart

Post by Dador »

Would be great.

Good luck working on it :) .

EDIT:

I downloaded version 6.15.1. The INVISIBLE option worked great.
That was it.
Thanks Hans.
watsonm
Posts: 209
Joined: Sun 03 Jan 2016 3:39 pm
Weather Station: N96GY -but like Triggers Broom!!
Operating System: Raspberry Pi4 Vers:11 Bullseye
Location: Poundbury, Dorset

Re: Visibility of variables on the chart

Post by watsonm »

Hans,
Thanks for that although I came across an issue:

This first option did not work but the second option worked!

Code: Select all

Plot RainFall  As Area colour #33B400 opacity 0.2 zindex 10  invisible

Code: Select all

Plot RainFall  invisible As Area colour #33B4FF opacity 0.2 zindex 10
Error returned:

Code: Select all

 Generating Website: Generating cumuluscharts.txt (only emergency fall back for the Compiler when syntax errors)
 CutilsCharts.def exists so: Parsing User Defined utils/CutilsCharts.def
 DefineUsercharts: Parsing User charts definitions - start
 Error Parsing User Charts Definitions : Error at EndChart of Chart 'Overview'
 Error Errors in Charts definition. See logfile, please correct and run again.
 Error No new cumuluscharts.txt is generated and the old one remains in place!
Regards Mike
Image
Raspberry Pi 4 Bullseye
Directly connected : BMP388 pressure sensor. DHT22 For internal Humidity/temp Sensor. PMS5003 Particle Sensor
Wireless connected: 3 (WS2083)Temp TXr's, WH57 Lightning Sensor, FO Solar sensor
User avatar
Dador
Posts: 352
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Visibility of variables on the chart

Post by Dador »

Watsonm, you are right. I also tested different options and this setting worked:

Code: Select all

  PLOT Temperature As SPline Colour #058DC7 zindex 90
  PLOT FeelsLike Invisible As SPline Colour #ED561B zindex 80
  PLOT DewPoint Invisible As SPline Colour #50B432 zindex 70
It looks like INVISIBLE must be the first argument.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Visibility of variables on the chart

Post by HansR »

Yes, Mike is right.
It could be the first or a middle argument but failed as final argument of a PLOT statement.
I created a fix release (6.15.2) which will be released soon.
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Post Reply