Page 1 of 1

Feels Like Gauges

Posted: Mon 30 Nov 2020 5:44 pm
by richard_newberry
Any idea when the Feels Like gauge going to work please?

Thanks

Re: Feels Like Gauges

Posted: Mon 30 Nov 2020 6:19 pm
by mcrossley
I have no plans to add it at the moment. There are things to fix in Cumulus first.

Re: Feels Like Gauges

Posted: Sat 16 Jan 2021 1:38 pm
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

Re: Feels Like Gauges

Posted: Sat 16 Jan 2021 8:06 pm
by BCJKiwi
Note:-
MXUIwebsite includes feelslike gauge.

Re: Feels Like Gauges

Posted: Mon 18 Jan 2021 5:48 pm
by richard_newberry
Thank you Barry, i will try it.

Thanks

Re: Feels Like Gauges

Posted: Tue 19 Jan 2021 12:18 am
by richard_newberry
Mine works in Google Chrome, not in Microsoft Edge.

Re: Feels Like Gauges

Posted: Sat 23 Jan 2021 11:52 pm
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.

Re: Feels Like Gauges

Posted: Thu 22 Apr 2021 5:10 pm
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