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 4019) - 03 April 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

Feels Like.....

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
jon_iz
Posts: 86
Joined: Sat 02 Jan 2016 10:10 pm
Weather Station: Davis VP2+, WLL & Airlink
Operating System: Win 10 64bit / RPi Buster
Location: Nantwich, UK
Contact:

Feels Like.....

Post by jon_iz »

I've read a few posts about adding "Feels Like" temp to gauges and note that this probably isn't implemented at the moment.

However, i note from the local pages on the CMX local host, looking at the charts, "Feels Like" temp is plotted:
localhost.PNG
but on what appears on the highchart trends from what is send up to my webhost, the data is not plotted.
Weboutput.PNG
Is it available in an .ini file somewhere and I've missed a setting to enable it?
You do not have the required permissions to view the files attached to this post.
sfws
Posts: 1183
Joined: Fri 27 Jul 2012 11:29 am
Weather Station: Chas O, Maplin N96FY, N25FR
Operating System: rPi 3B+ with Buster (full)

Re: Feels Like.....

Post by sfws »

I was hoping somebody else who actually uses the standard web pages would reply to you, but as a couple of days have passed without anyone else being helpful, and there was another release yesterday, that I have just updated to, I took a look at the relevant files in new release, and do my best to give you an answer below.


Compare CumulusMX/interface/js/charts.js which feeds admin interface charts page

Code: Select all

 series: [{
                name: 'Temperature',
                zIndex: 99
            }, {
                name: 'Dew Point'
            }, {
                name: 'Apparent'
            }, {
                name: 'Feels'
            }, {
                name: 'Wind Chill'
            }, {
                name: 'Heat Index'
            }, {
                name: 'Inside',
                visible: false
            }],
and (yesterday's build 3086 version of) CumulusMX/webfiles/js/cumuluscharts.js

Code: Select all

series: [{
            name: 'Temperature',
            zIndex: 99
        }, {
            name: 'Dew Point'
        }, {
            name: 'Apparent'
        }, {
            name: 'Wind Chill'
        }, {
            name: 'Heat Index'
        }, {
            name: 'Inside',
            visible: false
        }],
The feels like highcharts code is missing from latter, in terms of series names.
I have not tried it, but you might be able to replace the latter by the former, as the json that uploads to the web site does contain the feels like data pairs ready for plotting,
of course you also need to change the code that reads the json file:

Code: Select all

 $.ajax({
        url: 'tempdata.json',
        cache: false,
        dataType: 'json',
        success: function (resp) {
            chart.hideLoading();
            chart.series[0].setData(resp.temp);
            chart.series[1].setData(resp.dew);
            chart.series[2].setData(resp.apptemp);
            chart.series[3].setData(resp.wchill);
            chart.series[4].setData(resp.heatindex);
            chart.series[5].setData(resp.intemp);
        }
by adding

Code: Select all

chart.series[6].setData(resp.feelslike);
I stress I only think this should work, as I have not tried it, and don't have time to try it at present, but I am trying to be helpful, as nobody else will.
User avatar
mcrossley
Posts: 12763
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.....

Post by mcrossley »

That sounds reasonable - I did add the feels like data to temperature graph JSON file, so all that needs to be done is the add it into the cumuluscharts.js JavaScript file almost as you have it above.

The thing to note is that order must be the same in both the series declaration, and the data loading. So to append Feels Like at the end (easy option)....

Code: Select all

        series: [{
            name: 'Temperature',
            zIndex: 99
        }, {
            name: 'Dew Point'
        }, {
            name: 'Apparent'
        }, {
            name: 'Wind Chill'
        }, {
            name: 'Heat Index'
        }, {
            name: 'Inside',
            visible: false
        }, {
             name: 'Feels Like',
       }],
and as you had...

Code: Select all

        success: function (resp) {
            chart.hideLoading();
            chart.series[0].setData(resp.temp);
            chart.series[1].setData(resp.dew);
            chart.series[2].setData(resp.apptemp);
            chart.series[3].setData(resp.wchill);
            chart.series[4].setData(resp.heatindex);
            chart.series[5].setData(resp.intemp);
            chart.series[6].setData(resp.feelslike);
Post Reply