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

Extending Charts in CUtils

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Not doing very well this afternoon!!

Try again Andrew!
You do not have the required permissions to view the files attached to this post.
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: Extending Charts in CUtils

Post by HansR »

In CutilsCharts.def change the first two occurrences of SolarRadiation to MomentarilySolarRad, that should do it.

And in future that will be CurrentSolarRad but not for the executable you have.
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
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Hi Hans

Well that is starting to make sense, the Overview and recent solar charts look just fine now.

The long term ALL Solar is starting to work but the final entry looks very odd as it contains a sum of all values when I looked at it after a CompileOnlyy . Then I ran the full Website update and the chart looks just great :clap: as per the attached screen shot.

The current log file and charts .def files are attached.

I suppose the next movement is for the ALL Temp chart which still just shows loading :(
You do not have the required permissions to view the files attached to this post.
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: Extending Charts in CUtils

Post by HansR »

OK, working on it besides other things ... :)
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
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: Extending Charts in CUtils

Post by HansR »

OK. Something totally different: https://assets.highcharts.com/errors/18/
Tomorrow is another day :)
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
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Hi Hans

I have been doing some testing this morning on various keywords and eval statements. The first test was just to have ALL Temp which worked just fine, one complete record graphed.

Then I tried various iterations of ALL Temp and Average Dewpoint just changing the spelling of Dewpoint in the expression EVAL [ (MaxDewPoint + MinDewPoint / 2) ] I was unable to get any combination to work. I also did a similar exercise on FeelsLike to no success.

Any other thoughts from the master ;)
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: Extending Charts in CUtils

Post by HansR »

Hi Andy,
You're becoming a real tester putting the compiler (me?) on the rack ;)
OK.... but you really need to enclose or embed the corresponding CutilsCharts.def (or multiple if it is a combination issue) otherwise I can't make much of it.
Regards,
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
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Hi Hans

Following on from previous testing I have attached the current .def file and the last 2 log files. You will see that I have put anEVAL expression for the AverageFeelsLike at the top of the .def file. I tried to see if doing the calculation and then putting the definition without the EVAL expression on the same line would work. It did not!

Looking at the ...929 log file it seems that certain keywords are not being found for the failing charts, have these changed against those I use here.

As an extra I noticed today that the ALL pwsFWI chart has stopped behaving normally.
You do not have the required permissions to view the files attached to this post.
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: Extending Charts in CUtils

Post by HansR »

Hi Andy,

OK. Thanks.
The most important is the charts code, more than the logs as I use that for reproducing. So if you say a chart works on its own but in combination with others it does not, then just post the code of the combination. I run it myself and see what comes out.
If only two charts show the issue, then leave the rest out and post the minimal charts code. Reduction is the key to success here.

Oh, and you write you try a lot of spelling exercises: that is not really necessary because CDL is case independent. I mostly use (Pascal) camel case for variables and capital for keywords because I like that style and makes it easier to read but it does not matter: the parser compares case independent.

Regards,
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
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: Extending Charts in CUtils

Post by HansR »

Hi Andy,

Patch 2 is online in the distribution post.

The issue was that if you did not specify an axis for an equation it did not get one because you do not know what dimension the outcome is (so, an axis was actually implicitly obligatory which is kind of a specification error). Now, if you do not specify an Axis for an equation, the FREE axis is assigned and a warning is written to the log. I think all other averages are solved with this one.

Do you have any others :lol:

Regards,
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
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Hi Hans

Well I downloaded the patch 2 script and loaded, and ran it through the usual update process. No problems at the initial run but the Solar Charts did not work, this was down to the MomentarilySolarRadiation being used rather than CurrentSolarRadiation. I changed the definition file and that worked fine :)

Next moving onto the pwsFireindex chart no issues there now. :)

Moving onto the ALLTemp chart this did not work. I tried various fixes to get it to compile and did eventually succeed, as per the attached .def file however running the website update produced a Loading.... notification rather than a real chart :groan:

It is strange that the log files on compileonly and website seem to indicate that it is all good but in reality it does not work.
You do not have the required permissions to view the files attached to this post.
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: Extending Charts in CUtils

Post by HansR »

AndyKF650 wrote: Mon 20 Dec 2021 2:49 pm Moving onto the ALLTemp chart this did not work. I tried various fixes to get it to compile and did eventually succeed, as per the attached .def file however running the website update produced a Loading.... notification rather than a real chart :groan:

It is strange that the log files on compileonly and website seem to indicate that it is all good but in reality it does not work.
That is a nice find thank you :clap:

I had just stated that CDL is case independent so you write:

Code: Select all

( MaxDewpoint + MinDewPoint ) / 2
The subtle difference between the two :groan:
Indeed I had two calls where there was no case independ comparison. I will not bore you with the details but you can find issue and solution here. A bit technical and theoretical.

Anyway, I have to follow the flow to check a bit more, then patch 3 will follow.
Great testing !
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
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

Ah Ha the mist lifts!!!

The All Temp chart is now starting to work with Average temperature and average feelslike showing as lines in a chart :)

The odd thing is that average dew point still does not show despite the correction in my spelling ;)

The current .def file and logfiles are attached
You do not have the required permissions to view the files attached to this post.
AndyKF650
Posts: 818
Joined: Thu 20 Aug 2020 8:35 am
Weather Station: Davis VP2 Plus
Operating System: RPiv5B 64bit Linux 12 Bookworm
Location: Jersey Channel Islands
Contact:

Re: Extending Charts in CUtils

Post by AndyKF650 »

If you define the Axis as Temp the chart looks even better but still no dewpoint
You do not have the required permissions to view the files attached to this post.
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: Extending Charts in CUtils

Post by HansR »

My indication of the subtlety in

Code: Select all

( MaxDewpoint + MinDewPoint ) / 2
made you change it to

Code: Select all

( MaxDewPoint + MinDewPoint ) / 2
but it must be

Code: Select all

( MaxDewpoint + MinDewpoint ) / 2
With issues like this you really need to read the spec. of the ALL/DAILY Plotvariables.
But anyway it is for the 'emperors beard' because with patch 3 all variations, even all lower case or upper case should work.
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