Page 1 of 3
Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 12:25 pm
by water01
I am getting this error on the temperature chart in the Historic Temperatures. All other graphs work OK.
Code: Select all
highstock.src.js:17054 Uncaught TypeError: Cannot read property 'getExtremes' of undefined
at m.setTickInterval (highstock.src.js:17054)
at m.setScale (highstock.src.js:17539)
at highstock.src.js:24596
at Array.forEach (<anonymous>)
at f.Chart.redraw (highstock.src.js:24594)
at Object.success (chartshistoric.js:195)
at c (jquery-latest.min.js:3)
at Object.fireWith [as resolveWith] (jquery-latest.min.js:3)
at k (jquery-latest.min.js:5)
at XMLHttpRequest.r (jquery-latest.min.js:5)
As seen in the Edge Developers Console.
And I accidently kept the Development Console running when switching back to the Dashboard and this came up as a warning.
Code: Select all
dashboard.js:534 [Deprecation] The Notification API may no longer be used from insecure origins. You should consider switching your application to a secure origin, such as HTTPS. See https://go.microsoft.com/fwlink/?linkid=2047885 for more details.
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 12:38 pm
by mcrossley
Can you post the JSON file that it is attempting to load please, it looks like a data error.
Yes, it looks like notifications are being killed just after they implemented

Re: Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 12:47 pm
by water01
Can you post the JSON file that it is attempting to load please, it looks like a data error.
Ok Mark bear with the thicko but how do I do that?

Re: Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 2:32 pm
by water01
OK figured it out tempdata.json attached. had to zip it as forum doesn't allow .json files to be uploaded.
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 4:12 pm
by mcrossley
Thanks, got the issue - humidex!
Try changing chartshistoric.js at line 185 to this...
Code: Select all
if (config.temp.units == 'F') {
chart.yAxis[1].options.title.text = null;
chart.yAxis[1].options.linkedTo = null;
chart.series[cnt].yAxis = chart.yAxis[1];
}
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Thu 14 Jan 2021 10:58 pm
by water01
That worked Mark, Historic Temperature now maps correctly.
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Fri 15 Jan 2021 1:34 pm
by mcrossley
I updated the master download zip last night, so this should just affect early adopters - you brave souls!
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sat 16 Jan 2021 3:56 pm
by galfert
I was not an early adopter. I just late last night downloaded build 3100 (many hours after the previous post) and my historic charts temperature is not displaying. Same thing on two separate locations that upgraded from build 3098.
historic temperature 3100.jpg
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sat 16 Jan 2021 6:42 pm
by jlmr731
galfert wrote: ↑Sat 16 Jan 2021 3:56 pm
I was not an early adopter. I just late last night downloaded build 3100 (many hours after the previous post) and my historic charts temperature is not displaying. Same thing on two separate locations that upgraded from build 3098.
Yes I can say I have the same problem and charthistoric.js looks to be updated to your suggestion a few posts back. This is on the CumulusMX interface haven't implemented it to web site so not sure about that.
Is there any error logging for the MX interface?
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sat 16 Jan 2021 7:05 pm
by jlmr731
Added my tempdata.json for you if it will help
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sat 16 Jan 2021 8:03 pm
by galfert
jlmr731 wrote: ↑Sat 16 Jan 2021 6:42 pm
galfert wrote: ↑Sat 16 Jan 2021 3:56 pm
I was not an early adopter. I just late last night downloaded build 3100 (many hours after the previous post) and my historic charts temperature is not displaying. Same thing on two separate locations that upgraded from build 3098.
Yes I can say I have the same problem and charthistoric.js looks to be updated to your suggestion a few posts back. This is on the CumulusMX interface haven't implemented it to web site so not sure about that.
Is there any error logging for the MX interface?
I agree, my charthistoric.js also looks like the previous post and there is no historic temp chart:
viewtopic.php?p=149767#p149767
I don't see any errors in the logs....but I wouldn't say for sure that there is no error as my cursory look at the logs didn't catch any errors.
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sun 17 Jan 2021 3:07 am
by radilly
mcrossley wrote: ↑Thu 14 Jan 2021 4:12 pm
Thanks, got the issue - humidex!
Try changing chartshistoric.js at line 185 to this...
I'm seeing the issue as well. I put the code snippit in a file and diffed side-by-side. What I already had was identical
2021-01-16_21-47-17.jpg
The version I have is dated as follows...
Code: Select all
$ find . -name "chartshistoric.js" -ls
4981171 28 -rw-r--r-- 1 pi pi 25707 Jan 14 16:10 ./interface/js/chartshistoric.js
NOTE: Would a copy be expected in directory webfiles? Oddly its working on my web host as
https://dilly.family/wx/historic.htm while locally it's chartshistoric.html
Is that the point of...
jlmr731 wrote: ↑Sat 16 Jan 2021 6:42 pm
Yes I can say I have the same problem and charthistoric.js looks to be updated to your suggestion a few posts back. This is on the CumulusMX interface haven't implemented it to web site so not sure about that.
Is there any error logging for the MX interface?
I also have no errors showing in MXdiags. Is additional logging helpful?
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sun 17 Jan 2021 4:31 am
by griffo42
Historic Temperature Graph OK here.
Keith
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sun 17 Jan 2021 10:53 am
by malkie
Just updated to build 3100, historic charts working fine on my Pi 4.
The chartshistoric.js file I have is time stamped 14/01/2021 16:04.
Re: Historic Temperature 3.9.5 (build 3100)
Posted: Sun 17 Jan 2021 11:48 am
by galfert
I suspect it is a Fahrenheit only problem.