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
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
Cloud Base Gauges no reaction
Moderator: mcrossley
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Cloud Base Gauges no reaction
Hello Steve,
at first excuse my bad english.
I'm using CMX on a Raspberry Pi (Old) with a WH3080 (with solar and uv) and it works very fine. I'm calling via win10 (edge and firefox) the 192.168.X.X:8998 and there are no problems without the Cloud Base Gauges. Do I have to change something in the Cumulus.ini?
Best Regards
Henry
at first excuse my bad english.
I'm using CMX on a Raspberry Pi (Old) with a WH3080 (with solar and uv) and it works very fine. I'm calling via win10 (edge and firefox) the 192.168.X.X:8998 and there are no problems without the Cloud Base Gauges. Do I have to change something in the Cumulus.ini?
Best Regards
Henry
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
What are your current temperature, humidity, and dew point readings?
Steve
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Re: Cloud Base Gauges no reaction
Hi Steve,
thanks for the fast answer.
Here my actual screenshots from the gauges.
Henry
thanks for the fast answer.
Here my actual screenshots from the gauges.
Henry
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
MX doesn't supply a cloud base value to the user interface gauges, so the script calculates it using your temperature and dew point. It's the standard script which comes with the gauges. I don't know why yours doesn't update, it should be showing a figure of about 1400m with your readings. I've tried feeding in your figures as a test, and it works fine for me. Have you tried with a different browser (although Edge shows the gauges fine for me)? Are there any javascript errors in the browser F12 console?
Steve
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Re: Cloud Base Gauges no reaction
I can't find any errors in firefox and in edge.
All the gauges in all sites working perfect without Cloud Base.
All the gauges in all sites working perfect without Cloud Base.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
Sorry, the only thing I can suggest is that you use the javascript debugger in your browser to step through the code which calculates the value and updates the gauge, to see what it's doing. The code which sets the value is in lib/steelseries/gauges.js, at line 2793:
if (config.showCloudGauge && (
(config.weatherProgram === 4 || config.weatherProgram === 5) ||
data.cloudbasevalue === "")) {
// WeatherCat and VWS (and WView?) do not provide a cloud base value, so we have to calculate it...
// assume if the station uses an imperial wind speed they want cloud base in feet, otherwise metres
data.cloudbaseunit = (data.windunit === 'mph' || data.windunit === 'kts') ? 'ft' : 'm';
data.cloudbasevalue = calcCloudbase(data.temp, data.tempunit, data.dew, data.cloudbaseunit);
}
and the gauge gets updated in function update() starting at line 2546.
Unless Mark or anyone else has any suggestions...
if (config.showCloudGauge && (
(config.weatherProgram === 4 || config.weatherProgram === 5) ||
data.cloudbasevalue === "")) {
// WeatherCat and VWS (and WView?) do not provide a cloud base value, so we have to calculate it...
// assume if the station uses an imperial wind speed they want cloud base in feet, otherwise metres
data.cloudbaseunit = (data.windunit === 'mph' || data.windunit === 'kts') ? 'ft' : 'm';
data.cloudbasevalue = calcCloudbase(data.temp, data.tempunit, data.dew, data.cloudbaseunit);
}
and the gauge gets updated in function update() starting at line 2546.
Unless Mark or anyone else has any suggestions...
Steve
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Cloud Base Gauges no reaction
Nope, hard to suggest what it could be without access to the failing page.
I'd put a breakpoint on line 2793 and see what happens, but I know some people wouldn't know where start doing that, and providing written instructions is v. difficult.
I'd put a breakpoint on line 2793 and see what happens, but I know some people wouldn't know where start doing that, and providing written instructions is v. difficult.
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Re: Cloud Base Gauges no reaction
Hmm, maybe i found the reason but i can't solve this.
In the realtime.txt (/home/pi/CumulusMX) I found a entry with "ft".
And in realtimegaugesT.txttmp (/home/pi/CumulusMX/web) is written :
..."cloudbasevalue":"320",
"cloudbaseunit":"ft"....
So where it comes from and should it be "m" for the "cloudbaseunit" ?
attachment realtimegaugesT.txt is in original the ...txttmp-file
In the realtime.txt (/home/pi/CumulusMX) I found a entry with "ft".
And in realtimegaugesT.txttmp (/home/pi/CumulusMX/web) is written :
..."cloudbasevalue":"320",
"cloudbaseunit":"ft"....
So where it comes from and should it be "m" for the "cloudbaseunit" ?
attachment realtimegaugesT.txt is in original the ...txttmp-file
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
Those files aren't used by the gauges in the user interface, the data gets 'pushed' from MX using web sockets, then the gaugefeed.js file converts the JSON into the format expected by the gauges code. No cloud base data is sent, so the gaugefeed.js file just puts "" for the value and the unit. The gauges.js code detects this and knows it has to calculate the cloud base itself. It infers the unit to use based on the unit you are using for wind speed (mph and kts -> ft, km/h and m/s -> m).
Steve
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Re: Cloud Base Gauges no reaction
Something wrong with cloudbasevalue.
You do not have the required permissions to view the files attached to this post.
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
Looks like another 'decimal comma' issue. The gauges.js code is trying to do arithmetic on items which have commas in them, and javascript doesn't recognise those as numbers. I think the gauges.js code needs to convert them before using them in the calculation.
Steve
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Cloud Base Gauges no reaction
Yep, calcCloudbase() is using the raw values, it should be running them through extractDecimal first. I'll get a fix...
- mcrossley
- Posts: 14388
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Cloud Base Gauges no reaction
Replace with... (around line 3982)
And it should work a bit better.
Code: Select all
calcCloudbase = function (temp, tempunit, dew, cloudbaseunit) {
var sprd = extractDecimal(temp) - extractDecimal(dew);
var cb = sprd * (tempunit[1] === 'C' ? 400 : 227.3); // cloud base in feet
if (cloudbaseunit === 'm') {
cb = ft2m(cb);
}
return cb;
},
-
HenryFFO
- Posts: 6
- Joined: Wed 19 Aug 2015 1:08 pm
- Weather Station: WH3080
- Operating System: Win 7 home premium
- Location: Frankfurt (Oder)
Re: Cloud Base Gauges no reaction
Hi Mark,
with the correction of gauges.js al works very fine.
Thanks for your help. Good job.
By the way, is it possible to set the value for graph-hours more than 24 (perhaps 48 or 72) to show more days in the charts?
Best Regards
Henry
with the correction of gauges.js al works very fine.
Thanks for your help. Good job.
By the way, is it possible to set the value for graph-hours more than 24 (perhaps 48 or 72) to show more days in the charts?
Best Regards
Henry
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cloud Base Gauges no reaction
Yes, it's in the 'Graphs' section in the Station settings.HenryFFO wrote:By the way, is it possible to set the value for graph-hours more than 24 (perhaps 48 or 72) to show more days in the charts?
Steve