Page 1 of 2

Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 1:59 pm
by buffaloseven
I just want to say, first off, thanks for the continued development of CumulusMX. It's a fantastic program and I really appreciate its ability to show my data quickly, and store/send it in accessible formats wherever I need it.

I've been tinkering with output for a while, and one place I think the changes I've made are good enough for an actual suggestion would be with regards to the Daily Temperature graph. Currently, it's composed of 3 line graphs: high, average, and minimum temperatures. I'd suggest altering it to a box plot for max/min with a line series for the average temperature:
daily-temperature.png
Some of it might just be my preference, but I feel that this style of plot reveals the daily trends in the values more readily and is easier to read than the existing format. I'd be interested in others thoughts; maybe it's just me! I can easily share the config if anyone would like to use it.

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 2:26 pm
by beteljuice
I'm a non-user, but for the 'month' range it is a style I've always preferred.

... but there are those that will say (for whatever reason) that they can't show just the min, or just the max.

Hmm... someone should be able to produce some logic to show all graph types based on if min and max are selected ... :ugeek:

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 2:28 pm
by mcrossley
I quite like that type of plot, let's see what others think.

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 2:43 pm
by Mapantz
I simply love any types of graphs, so any new or improved ways are welcomed by me. :D

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 2:59 pm
by buffaloseven
beteljuice wrote: Thu 13 May 2021 2:26 pm I'm a non-user, but for the 'month' range it is a style I've always preferred.

... but there are those that will say (for whatever reason) that they can't show just the min, or just the max.

Hmm... someone should be able to produce some logic to show all graph types based on if min and max are selected ... :ugeek:
You could keep the min and max as line graphs, but have them inactive by default. That could be a functional compromise.

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 5:50 pm
by HansR
buffaloseven wrote: Thu 13 May 2021 1:59 pm I'd suggest altering it to a box plot for max/min with a line series for the average temperature:
Looks good, but would need to be able to switch to the original version as well.
btw: do you have a site or do you have this only on the interface?

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Thu 13 May 2021 8:06 pm
by buffaloseven
HansR wrote: Thu 13 May 2021 5:50 pm
buffaloseven wrote: Thu 13 May 2021 1:59 pm I'd suggest altering it to a box plot for max/min with a line series for the average temperature:
Looks good, but would need to be able to switch to the original version as well.
btw: do you have a site or do you have this only on the interface?
It's up on my website: https://www.aweathermoment.com/pws/glenwood/

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 12:11 am
by beteljuice
me wrote:Hmm... someone should be able to produce some logic to show all graph types based on if min and max are selected ...
First of all, what a lot of palaver to get the basics working !

To do the columns you need highcharts-more.js, but that is not compatible with all the other HS /8.2/ downloads, and so begins a chain of changing the download urls because something fails in all of them :evil:

My 'donor' doesn't have average temp in the json file - is that an addition ?

But to the pudding :) beteljuice brew

Get the Code

Edit: buffaloseven example appears to show one month of data - which is nice and clear, However 'mine' shows a longer period (two months) and is starting to get busy.
Is there a user option for the time span of dailytemp.json ?

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 12:35 am
by HansR
buffaloseven wrote: Thu 13 May 2021 8:06 pm It's up on my website: https://www.aweathermoment.com/pws/glenwood/
Thanks, Interesting website!

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 12:45 am
by HansR
beteljuice wrote: Fri 14 May 2021 12:11 am To do the columns you need highcharts-more.js, but that is not compatible with all the other HS /8.2/ downloads, and so begins a chain of changing the download urls because something fails in all of them :evil:
I made a remarks elsewhere about the cdn, that avoids this problem i think.
beteljuice wrote: Fri 14 May 2021 12:11 am My 'donor' doesn't have average temp in the json file - is that an addition ?
You are behind versions i guess or you should talk to your donor: both the daily as the all json have the average (but apparently you found your way elsewhere)

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 7:18 am
by HansR
HansR wrote: Fri 14 May 2021 12:45 am You are behind versions i guess or you should talk to your donor: both the daily as the all json have the average (but apparently you found your way elsewhere)
Sorry, for good understanding one needs to know that the average, min and max is contained on both datafiles (dailytemp.json and alldailytemp.json) but the variable names are slightly different: mintemp versus minTemp. Maybe that confused you?

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 10:29 am
by beteljuice
@Hans ...

My donors dailytemp.json does NOT contain any avgtemp definitions. You may have noted that because of the amount of test stuff that the donor does, the bigger json files are only updated sporadically.

The last upload was 20th April ! - so I am assuming that avgtemp was a later addition. My new_cumuluscharts.js is looking for it, and I am confident all will work correctly.

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 10:58 am
by mcrossley
Average temp (like all the data series) is now user selectable as to whether it is included in the JSON or not.

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 12:47 pm
by HansR
mcrossley wrote: Fri 14 May 2021 10:58 am Average temp (like all the data series) is now user selectable as to whether it is included in the JSON or not.
Seriously? I just checked and I can't find this.
I can select the file level, but not the variable level.
On the file level I can select to generate (or not) and to FTP (or not) but I really would not know where to select the individual variables.

Really sorry but can you show me?


Ahhh.... :bash: Yes, the Data Series Visibility in the Station Settings
Apparently - I don't change that daily - it settled in my mind as being party of the FTP Settings=>Graph File Settings.
Don't change it again, I can get used to it :groan: :?

Re: Suggestion for Changes to Daily Temperature Charts

Posted: Fri 14 May 2021 10:30 pm
by beteljuice
A few minor tweaks and tidying up under the bonnet later ...

dailytemp modification a'la beteljuice

Now available for a discerning clientele ...

Edit: Now correctly handles 'missing' avgtemp.

Part of readme.txt

Code: Select all

## beteljuice tweaked trends graph

daily temps graph now has 'range' columns added

basic stuff - beteljuice May 2021
	
	zip file contents:-
		new_cumuluscharts.js
		this README.txt

		
Upload new_cumuluscharts.js to your website. (only dailytemp has been modified)

Edit the bottom of trends.htm to look like this:-


Edit: Changes to readme files list in accord with build 3131

dailytemp_mod.zip