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

Problem with dashboard graphs

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

freddie
Posts: 2475
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:

Problem with dashboard graphs

Post by freddie »

Running 3.6.11 since this time yesterday. I'm seeing the following JSON response when viewing certain data types in the Interface charts:

Code: Select all

{"Title":"Unexpected Error","ErrorCode":"NullReferenceException","Description":"Object reference not set to an instance of an object"}
Daily rain and daily temperature are okay. The rest give this response.

Nothing being logged in MXDiags, and nothing in the terminal window.

It was working okay an hour or so ago.

Restarting MX has fixed it.
Freddie
Image
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: Problem with dashboard graphs

Post by sfws »

I'm not seeing daily temperature charts in admin interface. Instead, I get an error message:

Code: Select all

Highcharts error #15: www.highcharts.com/errors/15/

All the other charts are okay for me in 3.6.11 admin interface.
User avatar
rogerthn
Posts: 518
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: Problem with dashboard graphs

Post by rogerthn »

Do you mean like below?
Annotation 2020-07-09 131939.png
You do not have the required permissions to view the files attached to this post.
Image
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: Problem with dashboard graphs

Post by mcrossley »

freddie wrote: Thu 09 Jul 2020 9:46 am Running 3.6.11 since this time yesterday. I'm seeing the following JSON response when viewing certain data types in the Interface charts:

Code: Select all

{"Title":"Unexpected Error","ErrorCode":"NullReferenceException","Description":"Object reference not set to an instance of an object"}
Daily rain and daily temperature are okay. The rest give this response.

Nothing being logged in MXDiags, and nothing in the terminal window.

It was working okay an hour or so ago.

Restarting MX has fixed it.
At the moment I'm struggling to see how that could happen. The GraphData list has no concept of null entries, and the list is just iterated from start to end, I'll do some more staring and see if I can figure out how a null entry gets generated...
sfws wrote: Thu 09 Jul 2020 11:09 am I'm not seeing daily temperature charts in admin interface. Instead, I get an error message:

Code: Select all

Highcharts error #15: www.highcharts.com/errors/15/

All the other charts are okay for me in 3.6.11 admin interface.
Highcharts error 15 appears to be that the data is not sorted in date order. Again hard to see how this has happened as new data is always append to the end of the list and old data popped off the start.

The code the add/remove entries from the list hasn't changed, the only difference from previous builds is that I use a StringBuilder to create the output JSON text rather than concatenating strings.

Of course I am seeing neither issue on my live or dev instances of MX :(

I take another look this evening and see if inspiration strikes!
User avatar
HansR
Posts: 5964
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Problem with dashboard graphs

Post by HansR »

I'd guess it has to do with the cache.
When changed, empty the cache and refresh (try again) often helps with these graphs (same as with my own playground)
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
freddie
Posts: 2475
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: Problem with dashboard graphs

Post by freddie »

HansR wrote: Thu 09 Jul 2020 1:35 pm I'd guess it has to do with the cache.
I had ruled out the cache, as I was getting the same response when using wget (and cURL).
Freddie
Image
User avatar
PaulMy
Posts: 3849
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: Problem with dashboard graphs

Post by PaulMy »

I am not seeing the issue and all charts looks good here in dashboard, and also www.komokaweather.com/cumulusmx/index.php

Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
Image
Mapantz
Posts: 1817
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Problem with dashboard graphs

Post by Mapantz »

Image
User avatar
LAdrain
Posts: 23
Joined: Tue 03 Jul 2012 5:22 pm
Weather Station: davis vantage vue
Operating System: Windows 10
Location: Shropshire
Contact:

Re: Problem with dashboard graphs

Post by LAdrain »

I am not sure if I am seeing a similar error?? It looks like when i run the exe it is not picking up any history.
2020-07-09_18h57_38.jpg
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: Problem with dashboard graphs

Post by mcrossley »

That looks like it isn't even trying to get the history data. Do you have the logger enabled?
User avatar
LAdrain
Posts: 23
Joined: Tue 03 Jul 2012 5:22 pm
Weather Station: davis vantage vue
Operating System: Windows 10
Location: Shropshire
Contact:

Re: Problem with dashboard graphs

Post by LAdrain »

logging is on. It just runs straight through, before it showed a percentage.
Last edited by LAdrain on Fri 10 Jul 2020 2:19 pm, edited 1 time in total.
water01
Posts: 3253
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Problem with dashboard graphs

Post by water01 »

Well I don't know what I did right but mine is working perfectly since I installed the release just after Mark put it up.
David
Image
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: Problem with dashboard graphs

Post by sfws »

I did not look at web graphs yesterday, but the daily temperature is not plotting there.
Further investigation this morning has revealed that my problem is incorrect generation of json, both api, and web versions of "dailytemp.json" are being generated with just a single time, instead of 30 days worth of time, value pairs.

Code: Select all

{"mintemp":[[1594166400000,15.2]],"maxtemp":[[1594166400000,18.7]],"avgtemp":[[1594166400000,16.0]]}
I have tried changing between 31 and 30 days in the graph section of station settings, and it makes no difference.
I have tried stopping MX, and restarting MX, it makes no difference. I even tried leaving MX off last night, but it made no difference.

Excerpt from MXDiags after restarting this morning:
2020-07-10 08:22:44.513 Loaded 581 entries to graph data list

That seemed encouraging as yesterday it was loading half that number, but as seen above, still only one time, value pair and no graph for daily temperature.
water01 wrote: Thu 09 Jul 2020 7:48 pm Well I don't know what I did right but mine is working perfectly since I installed the release just after Mark put it up.
David 1) uses a Fine Offset 2) he uses Windows 10 and 3) is plotting a month like I want to at http://www.dmjsystems.co.uk/weatherbos/trends.php, so if he is having no problems as per immediate preceding post, then we can rule those 3 factors out and I can't think what could be different between his install of MX and mine. Not what did he do right, but what did I do wrong? Of course I was busy during most of day and did not stop to install new MX until tea-time Wednesday. I installed every file in the release, I did not look at which files had changed and only install those.
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: Problem with dashboard graphs

Post by mcrossley »

LAdrain wrote: Thu 09 Jul 2020 7:10 pm 2020-07-09_20h09_25.jpglogging is on. It just runs straight through, before it showed a percentage.
Start a new thread please as this is unrelated. I will need to see a log with MX started using the -debug parameter, thanks.
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: Problem with dashboard graphs

Post by mcrossley »

@freddie - I have found that the graph data is not created/accessed in a thread safe manner, this could possibly cause issues, I don't know if it caused your problem but it needs fixing anyway.

@sfws - The above may also have affected you for the Highcharts error 15. The only explanation I have come up with is a system clock adjustment of greater than 1 minute backwards at some point (unlikely I think).

Your daily temps is a puzzle as well. That data is for the 8th July, iirc you use a 9am rollover, so its just the last entry.
Your log should have an entry "Loaded nnn entries to daily data list" at start-up?
Post Reply