chart no longer works after update

Begonnen von malc_b, 24 Februar 2017, 11:01:44

Vorheriges Thema - Nächstes Thema

malc_b

Sorry this is in english

Tablet ui chart no longer displays any plots.  This happened after the last (or last few) updates to fhem and tablet ui.  Before that chart was working ok.  The legend, cursor and blank grid still appear it is just the plotted lines that are no longer there.  I'm trying to work through the js and I don't think the points array has any data (although I maybe looking at then when it is expected to be blank).

In console there are no errors but I do get warnings of long running if these are relevant.  I think I saw long running warnings before when it was working ok.


DevTools failed to parse SourceMap: http://192.168.0.60:8083/fhem/tablet/lib/maps/swiper.jquery.min.js.map
fhem-tablet-ui.js:1216 [Violation] Handler took 2998407ms of runtime (150ms allowed)
[Violation] Long running JavaScript task took 2998455ms
jquery.min.js:formatted:4142Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
send @ jquery.min.js:formatted:4142
ajax @ jquery.min.js:formatted:3944
refresh @ widget_chart.js:1619
(anonymous) @ widget_chart.js:3343
setTimeout (async)
waitForInitialization @ widget_chart.js:3333
(anonymous) @ widget_chart.js:3361
each @ jquery.min.js:formatted:166
each @ jquery.min.js:formatted:47
update @ widget_chart.js:3350
(anonymous) @ fhem-tablet-ui.js:1183
j @ jquery.min.js:formatted:1340
fireWith @ jquery.min.js:formatted:1397
e.(anonymous function) @ jquery.min.js:formatted:1450
script.onload @ fhem-tablet-ui.js:1218
widget_chart.js:3333[Violation] Handler took 171ms of runtime (50ms allowed)
widget_chart.js:3333[Violation] Handler took 180ms of runtime (50ms allowed)
fhem-tablet-ui.js:1216 [Violation] Handler took 28582ms of runtime (150ms allowed)
[Violation] Long running JavaScript task took 28721ms
widget_chart.js:3333 [Violation] Handler took 1548ms of runtime (50ms allowed)
[Violation] Long running JavaScript task took 1548ms
widget_chart.js:3333 [Violation] Handler took 1535ms of runtime (50ms allowed)
[Violation] Long running JavaScript task took 1535ms

setstate

Until Chart Widget hasn't been adopted to FHEM 5.8, you have to switch off csrfToken attribute of FHEM WEB device.

attr WEB csrfToken none

Save + shutdown restart.

malc_b

I was going to post that I knew this and had already set csrfToken to 0 as other parts of tablet ui were broken before I did that.  I'm sure I read that it could be set to 0 or none and 0 seemed to fix the first csrfToken issues.

BUT...I've just tried setting none and that has fixed the chart issues and the rest is still working too.  Hence csrfToken has to be set to none if you want everything to work.  Setting csrfToken to 0 means only somethings work.