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 4017) - 17 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

Feels Like Gauges

Discussion of Mark Crossley's HTML5/Javascript gauges

Moderator: mcrossley

Post Reply
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Feels Like Gauges

Post by richard_newberry »

Any idea when the Feels Like gauge going to work please?

Thanks
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
mcrossley
Posts: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Feels Like Gauges

Post by mcrossley »

I have no plans to add it at the moment. There are things to fix in Cumulus first.
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: Feels Like Gauges

Post by nossis »

Funny that this post cropped up, chanced across this post.
As it happens, I have just implemented "Feels Like" gauge on the steel series gauges as a radio button option on the Dew Gauge, and chanced across this post.
Have it running here http://members.iinet.net.au/~nossis/wea ... ges-ss.htm
The changes are all applied manually to the files and one must be running Cumulus MX (AFAIK) for feelslike webtag to work
Mod zip file attached that contains instructions "Modifications Guide.txt" and the modified files with the changes embedded, "gauges.js", "gaugesT.htm", "language.min.js", "realtimegaugesT.txt". These modified files are the standard files with only the "feels like" changes added in, from the latest Cumulus MX release version build 3100.
I had tested it but there is always the possibility there is some tiny thing that I may have missed. Secondly I am not by an means a programmer and I am sure that there is a better way of doing this. But I had a go and got it to work, so I learnt things :)
And there is the usual caveats that this is provided as is.
contents of the Modifications Guide.txt below

Adding "Feels Like" Gauge for Steel Series gauges, as an extra radio button setting for the Dew Gauge

File "realtimegaugesT.txt"
Insert extra lines 17

Code: Select all

"feelslike":"<#feelslike>",
"feelslikeTL":"<#feelslikeTL>",
"feelslikeTH":"<#feelslikeTH>",
Insert extra lines 50

Code: Select all

"TfeelslikeTH":"<#TfeelslikeTH>",
"TfeelslikeTL":"<#TfeelslikeTL>",
File gaugesT.htm
Insert extra lin 44

Code: Select all

<input id="rad_dew6" type="radio" name="rad_dew" value="fee" onclick="gauges.doDew(this);"><label id="lab_dew6" for="rad_dew6">Feels Like</label>

File language.min.js
(have only inserted the english Translation)
Look for

Code: Select all

humdx_title:"Humidex",humdx_info:"Humidex",humdx_web:"Humidex",rain_title:"Rainfall",rrate_title:"Rain Rate",
Insert in between "Humidex",<insert_herer>rain_title:

Code: Select all

feel_title:"Feels Like",feel_info:"Feels Like",feel_web:"Feels Like",
Final result as below

Code: Select all

humdx_title:"Humidex",humdx_info:"Humidex",humdx_web:"Humidex",feel_title:"Feels Like",feel_info:"Feels Like",feel_web:"Feels Like",rain_title:"Rainfall",rrate_title:"Rain Rate",

File gauges.js
Line 976 Insert extra lines

Code: Select all

                case 'fee':
                    cache.title = strings.feel_title;
                    cache.popupImg = 5;
                    break;

Line 1102 Insert Extra Lines

Code: Select all

                    case 'fee': // feels like temperature
                        cache.low = extractDecimal(data.feelslikeTL);
                        cache.high = extractDecimal(data.feelslikeTH);
                        cache.value = extractDecimal(data.feelslike);
                        cache.areas = [steelseries.Section(+cache.low, +cache.high, gaugeGlobals.minMaxArea)];
                        cache.title = strings.feel_title;
                        cache.minMeasuredVisible = false;
                        cache.maxMeasuredVisible = false;
                        cache.popupImg = 5;
                        tip = tip = strings.feel_info + ':' +
                             '<br>' +
                             '- ' + strings.lowestF_info + ': ' + cache.low + data.tempunit + ' ' + strings.at + ' ' + data.TfeelslikeTL +
                             ' | ' + strings.highestF_info + ': ' + cache.high + data.tempunit + ' ' + strings.at + ' ' + data.TfeelslikeTH;
                        break;
Line 3439 Remove the ); at the end, and reaplce with a ,
Then on line 3440 insert the extra line. Both modifed and inserted lines shown below

Code: Select all

                extractDecimal(data.wchillTL, deflt),
                extractDecimal(data.feelslikeTL, deflt));
Line 3451 Remove the ); at the end, and reaplce with a ,
Then on line 3452 insert the extra line. Both modifed and inserted lines shown below

Code: Select all

                extractDecimal(data.humidex, deflt),
                extractDecimal(data.feelslikeTH, deflt));
Line 3601 Insert

Code: Select all

            data.feelslike = convFunc(data.feelslike);
            data.feelslikeTH = convFunc(data.feelslikeTH);
            data.feelslikeTL = convFunc(data.feelslikeTL);
Hope this is useful
Barry
You do not have the required permissions to view the files attached to this post.
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Feels Like Gauges

Post by BCJKiwi »

Note:-
MXUIwebsite includes feelslike gauge.
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Feels Like Gauges

Post by richard_newberry »

Thank you Barry, i will try it.

Thanks
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 481
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Feels Like Gauges

Post by richard_newberry »

Mine works in Google Chrome, not in Microsoft Edge.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
nossis
Posts: 89
Joined: Wed 28 Nov 2012 6:12 am
Weather Station: Davis Vantage Pro 2
Operating System: Win 10
Location: Perth AU
Contact:

Re: Feels Like Gauges

Post by nossis »

richard_newberry wrote: Tue 19 Jan 2021 12:18 am Mine works in Google Chrome, not in Microsoft Edge.
Try using Edge in incognito mode. If that works then clear Edge cache and that should sort it.
Big Daddy
Posts: 265
Joined: Tue 10 Sep 2013 8:40 pm
Weather Station: Ecowitt GW1003 (GW1000)
Operating System: Raspbian 10 (Buster) / Mono 6.12
Location: Freiston, Lincolnshire, UK
Contact:

Re: Feels Like Gauges

Post by Big Daddy »

I managed to add one of my extra temperature / humidity sesnsors which is in my BBQ Hut to the main temperature gauge and humidty gauge and also "swapped" apparent temperature for Feels like temperature on the Dew gauge. I am no way a coding expert and have only a very very basic knowledge. It took me a while to work backwards to find out what needed changing with a lot of errors on the way. All good fun. Wish I had found this article earlier. would have pointed me in the right direction.

You can see them here.

http://midlifedad.me.uk/weather/gauges.php

Andy
Post Reply