sporadically (like now) I have an issue with CU Home not displaying the chart in the Report window, but requiring a manual chart selection. Usually the issue disappears by itself, but I could not track down the rootcause.
- I learned that issues with the Home button can be seen in the F12 chrome browser console, and there I find jqueury error messages
- I tested all my charts from CutilsCharts.def and exactly two (2) of them are not loading: RecentPwsFWI and RecentVapourPressure (although these charts have beeen working before and will be in the future when issue disappears)
- these charts have the Psat2008 equation in common
- I suspect that the issue is related to my data, but I could not see errors in the logfiles (neither in MXdiags nor in utilslog), and tempdata.json looks fine (I was assuming both charts in question are using these json data as input)
Code: Select all
When starting webiste or selecting Home:
Succes in Ajax Graphconfig
jquery.min.js:2 jQuery.Deferred exception: Cannot read properties of undefined (reading '1') TypeError: Cannot read properties of undefined (reading '1')
at Array.<anonymous> (<anonymous>:1:14008)
at e (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30038)
at t (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30340) undefined
S.Deferred.exceptionHook @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
l @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
load (async)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
WindBarbsAjax @ VM129:1
InitCumulusCharts @ VM129:1
(anonymous) @ cumulusutils.js:1
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
l @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
load (async)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
LoadUtilsReport @ cumulusutils.js:1
onclick @ Wetterstation.Suttenbrunn.CumulusMX/:1
jquery.min.js:2 jQuery.Deferred exception: Cannot read properties of undefined (reading '1') TypeError: Cannot read properties of undefined (reading '1')
at Array.<anonymous> (<anonymous>:1:14008)
at e (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30038)
at t (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30340) undefined
S.Deferred.exceptionHook @ jquery.min.js:2
t @ jquery.min.js:2
setTimeout (async)
(anonymous) @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
fire @ jquery.min.js:2
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
s.<computed> @ jquery.min.js:2
Promise.then (async)
I @ jquery.min.js:2
when @ jquery.min.js:2
InitCumulusCharts @ VM129:1
(anonymous) @ cumulusutils.js:1
c @ jquery.min.js:2
fireWith @ jquery.min.js:2
l @ jquery.min.js:2
(anonymous) @ jquery.min.js:2
load (async)
send @ jquery.min.js:2
ajax @ jquery.min.js:2
LoadUtilsReport @ cumulusutils.js:1
onclick @ Wetterstation.Suttenbrunn.CumulusMX/:1
jquery.min.js:2 jQuery.Deferred exception: Cannot read properties of undefined (reading '1') TypeError: Cannot read properties of undefined (reading '1')
at Array.<anonymous> (<anonymous>:1:14008)
at e (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30038)
at t (https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js:2:30340) undefined
When selecting RecentPwsFWI:
Creating chart: Actual PWS Fire Weather Index
VM129:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '1')
at RecentPwsFWIAddSeries (<anonymous>:1:21497)
at <anonymous>:1:47150
RecentPwsFWIAddSeries @ VM129:1
(anonymous) @ VM129:1
Promise.then (async)
doRecentPwsFWI @ VM129:1
handleChange0 @ VM129:1
(anonymous) @ VM129:1
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
handleMouseUp_ @ unknown
when selecting RecentVaporPressure:
Creating chart: Actual Vapour Pressure August-Roche-Magnus Eqn 1980/2008/SubZero (Dampfdruck)
VM129:1 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '1')
at RecentVapourPressureAddSeries (<anonymous>:1:23073)
at <anonymous>:1:49137
Code: Select all
Equations
; Water Vapour Saturation Pressure according to the August-Roche-Magnus equation for the 1980 version, the 2008 version and the sub-zero version
Psat2008 EVAL [ 6.112 * EXP(17.62*Temperature/(243.12+Temperature)) ]
Psat2008ALL EVAL [ 6.112 * EXP(17.62*AverageTemp/(243.12+AverageTemp)) ]
Psat1980 EVAL [ 6.1094 * EXP(17.625*Temperature/(243.04+Temperature)) ]
PsatSub0 EVAL [ 6.112 * EXP(22.46*Temperature/(272.62+Temperature)) ]
; Actual Vapour Pressure
Avp Eval [ Humidity / 100 * Psat2008 ]
Chart RecentPwsFWI Title Actual PWS Fire Weather Index
Plot RECENT pwsFWI Eval [ Psat2008 * (1 - Humidity/100)*WindSpeed ] As spline Axis Free Colour Orange
EndChart
Chart RecentVapourPressure Title Actual Vapour Pressure August-Roche-Magnus Eqn 1980/2008/SubZero (Dampfdruck)
Plot Temperature
Plot Psat2008 Eval [ Psat2008 ] Axis Free
Plot Psat1980 Eval [ Psat1980 ] Axis Free
Plot PsatSub0 Eval [ PsatSub0 ] Axis Free
Plot Avp Eval [ Avp ] Axis Free
EndChart
Code: Select all
2024-03-24 01:00:10.895 utils/CutilsCharts.def exists and its content is valid so: Generating User Defined cumuluscharts.txt
2024-03-24 01:00:10.906 Compiler - CodeGen: cumuluscharts.txt
Code: Select all
2024-03-24 00:15:03.082 PHP[Int]: Upload to tempdata.json: Response code = 200: OK
2024-03-24 00:15:03.082 PHP[Int]: Upload to tempdata.json: Response text follows:
Unzipping data
Opening text file tempdata.json for appending
Appending text file tempdata.json
Writing text file tempdata.json
Write complete