Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Change zoom charts

Discussion of the Cumulusutils tool and website generator.

Moderator: HansR

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

Change zoom charts

Post by Dador »

Hi HansR,

Quick question. Is it possible to add values ​​e.g. 12h, 24h in the zoom options on the charts?

I admit that I would be more interested in a 24-hour chart than, for example, on an 18 or 36-hour chart.
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Change zoom charts

Post by HansR »

Hi Dador,

The zoom options for the ChartsCompiler charts (I assume from your website that is what you are talking about) are governed by the nr of hours you are plotting (CMX setting: Station Settings=>Graphs=>Graph hours). The first button gives [nr of hrs]/4, the second button gives [nr of hrs/2.

So if you set your nr of hours to 48, you get your 12 and 24 hr buttons.
Hope this helps, I will add a note in the Wiki for the CDL
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 188
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Change zoom charts

Post by Dador »

Thanks a lot. I had no idea it worked that way.
User avatar
Dador
Posts: 188
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Change zoom charts

Post by Dador »

Hans,

I currently have 96h, 48h and 24h set. Is it possible for the graph window to open with a 24h zoom instead of 96h? This can be easily set in CMX options, but how is cutils? Can something be changed in the code or added?
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Change zoom charts

Post by HansR »

Dador wrote: Tue 27 Sep 2022 7:37 pm I currently have 96h, 48h and 24h set. Is it possible for the graph window to open with a 24h zoom instead of 96h? This can be easily set in CMX options, but how is cutils? Can something be changed in the code or added?
Hi,

CumulusUtils uses the number of hours as defined by CMX. You want the 96 as possible but start with with 24? The charts always open to the highest nr of hrs in Cutils. I have no idea how to configure that in CMX. Could you point me how I do configure that in CMX, than I could use that parameter to do the same in CUtils. Or is it configured in the CMX standard website?
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 188
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Change zoom charts

Post by Dador »

Sample my settings for C:\CumulusMX\interface\js\charts.js

Code: Select all

var myRanges = {
    buttons: [{
        count: 6,
        type: 'hour',
        text: '6h'
    }, {
        count: 12,
        type: 'hour',
        text: '12h'
    }, {
        count: 24,
        type: 'hour',
        text: '24h'
    }, {
        count: 2,
        type: 'day',
        text: '2d'
    }, {
        type: 'all',
        text: 'All'
    }],
    inputEnabled: false,
    selected: 2
};
Zoom effects visible to the page https://pogodarybnik.pl/cumulusMX/trends.htm

I wish I had something similar for the chart generated by Utils, right here - https://pogodarybnik.pl/cumulusMX/extrachart.htm
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Change zoom charts

Post by HansR »

Aha. Yes that's possible but it will require either a cookie (remember usersetting) or a parameter.
I'll think about this one. You definitely can't configure it this way: the idea of CumulusUtils is that you don't touch the generated code ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 188
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Change zoom charts

Post by Dador »

Aha. Yes that's possible but it will require either a cookie (remember usersetting) or a parameter.
No problem.
I'll think about this one.
Would be great :clap:
You definitely can't configure it this way: the idea of CumulusUtils is that you don't touch the generated code
I thought so, that's why I ask ;)
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Change zoom charts

Post by HansR »

Zoom keyword has been added to 6.12.1 that should do the trick.
For you, if you want the 24 hr as default, add the following line before the first PLOT line:

Code: Select all

Zoom 1
See the Wiki
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
Dador
Posts: 188
Joined: Thu 24 Nov 2011 2:22 pm
Weather Station: Davis VP2 Plus & Ecowitt
Operating System: Windows 10
Location: Rybnik, Poland
Contact:

Re: Change zoom charts

Post by Dador »

HansR wrote: Wed 28 Sep 2022 12:11 pm Zoom keyword has been added to 6.12.1 that should do the trick.
For you, if you want the 24 hr as default, add the following line before the first PLOT line:

Code: Select all

Zoom 1
See the Wiki
Works! Thanks :)
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Change zoom charts

Post by HansR »

Good.
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply