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
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
Wind speed graph showing negative speeds
Moderator: mcrossley
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Wind speed graph showing negative speeds
http://www.hosiene.co.uk/weather-test/trends.htm
MX hasn't _recorded_ a negative speed - they just are presented as the lowest value on the graph, which looks a bit odd because it will never happen.
MX hasn't _recorded_ a negative speed - they just are presented as the lowest value on the graph, which looks a bit odd because it will never happen.
- mcrossley
- Posts: 12697
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
It seems it is just the scale that is going negative, the values only go down to zero?
A quick fix is to edit cumuluscharts.js, at line 424 add the line "min: 0," like this...
A quick fix is to edit cumuluscharts.js, at line 424 add the line "min: 0," like this...
Code: Select all
yAxis: [{
// left
min: 0,
title: {text: 'Wind Speed ('+config.wind.units+')'},
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
Yes, that's what I meant. Negative values in this context will not happen, though, so shouldn't appear.mcrossley wrote:It seems it is just the scale that is going negative, the values only go down to zero?
Thanks - I will try that now.mcrossley wrote:A quick fix is to edit cumuluscharts.js
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Wind speed graph showing negative speeds
Wind direction and rainfall already have min:0, perhaps I should also do that for some of the others? I don't know if there's any way to specify that the scale should never be negative without fixing the origin at zero. Do people generally prefer graphs which always start at zero, or just show the relevant part? I think pressure has to be the latter, but what about the others?
Steve
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
I vote for showing the origin with wind speed. When you have high speeds you can then see them relative to the origin, and can directly compare to lower speeds. Or, alternatively, vary the origin but have a minimum of zero. Is this possible?steve wrote:what about the others?
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Wind speed graph showing negative speeds
I don't know, that's what I was asking. I'll have a look at the docs tomorrow. But I think I agree that wind speed at least should always start at zero. Even if that means I'll often have a lot of white space on my graph But anyone who wants it otherwise can always modify it themselves; it's just a case of having sensible defaults.freddie wrote:Or, alternatively, vary the origin but have a minimum of zero. Is this possible?
Steve
- mcrossley
- Posts: 12697
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
You need a log scale Steve!steve wrote:[Even if that means I'll often have a lot of white space on my graph
- mcrossley
- Posts: 12697
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
You can use 'floor:0' for that.steve wrote:I don't know if there's any way to specify that the scale should never be negative without fixing the origin at zero.
- steve
- Cumulus Author
- Posts: 26701
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Wind speed graph showing negative speeds
Thanks. But I'm thinking that perhaps fixing the wind speed scale at zero is the way to go, and leave all the others as they are (rain and solar are already min:0). Or perhaps also set the humidity graph scale to have min:0? And perhaps also max:100?
Steve
-
- Posts: 2435
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
I like that - you get consistency of appearance, regardless of range of data in the chart. Each to his own, I guess, but that's the beauty of web-based applications like MX - users can change the appearance to their hearts content (as long as they know how)steve wrote:Thanks. But I'm thinking that perhaps fixing the wind speed scale at zero is the way to go, and leave all the others as they are (rain and solar are already min:0). Or perhaps also set the humidity graph scale to have min:0? And perhaps also max:100?
- mcrossley
- Posts: 12697
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Wind speed graph showing negative speeds
The way I have done it on my charts is...
Wind, Solar, Rain: all have min:0 and auto max.
Humidity: min:0 max:100
Temperatures, pressure: fully auto, with zero line for temps.
You may also want to think about setting a minRange value to each data type so you avoid charts going from e.g. 0 to 0.1 when there has been no rain etc.
Wind, Solar, Rain: all have min:0 and auto max.
Humidity: min:0 max:100
Temperatures, pressure: fully auto, with zero line for temps.
You may also want to think about setting a minRange value to each data type so you avoid charts going from e.g. 0 to 0.1 when there has been no rain etc.