Chart, kein Poll bei DBLog als logdevice

Begonnen von Waldmensch, 29 März 2016, 07:15:33

Vorheriges Thema - Nächstes Thema

Waldmensch

Wie der Betreff schon sagt, wenn man im chart Widget als logdevice nur logDB Quellen angibt, aktualisiert sich das Widget nur bei F5. Ich vermute, es gibt da einfach keine Events. Beim SimpleChart funktioniert es. Könnte das vielleicht umschifft werden, indem man ein Parameter "data-eventdevice " zufügt von dem dann der Status überwacht wird? Speziell versuche ich das SHM Modul abzubilden, was alle 2 Minuten seine Werte in die DB schreibt. Die Readings werden dabei aktualisiert, allerdings gibt es kein FileLog. Ersetze ich einen der beiden devices in logdevices durch "MySHM" wird zwar kein Graph gemalt, aber der Chart wird updated. Das heißt für mich, das es grundsätzlich geht, nur eben dblog das Chart nicht "kitzelt"

Das Bild ist nur im Beitrag, weil Tapatalk mich kein Thema erstellen lässt, was keinen Anhang hat - Fehlermeldung :(

(http://uploads.tapatalk-cdn.com/20160329/7b854663e97d126514fcd316cfbfcfbf.jpg)


Gesendet von iPhone mit Tapatalk

eki

Das ist ein Punkt wo das ftui "Framework" und widget_chart zusammen spielen müssen. Es gibt 2 Möglichkeiten warum das mit logdb nicht funktioniert: 1. das Framwork ruft die update Funktion schon gar nicht auf, 2. im chart widget wird eine Filterung durchgeführt um das Neuzeichnen nicht unnötig aufzurufen und das geht schief.
Um klarer zu sehen wäre es gut, wenn Du mal den Debug Modus aktivieren und dann mal hier das Ergebnis aus der Browser Konsole hier posten würdest (natürlich möglichst so lange warten, bis ein update erfolt sein sollte).

Waldmensch

Also oben bei den META debug=1 und dann die F12 Konsole. Geht klar, bekommst Du heute Abend.

Ich habe noch 2 Labels, die 2 Readings aus dem MYSHM Device anzeigen - die funktionieren problemlos. Damit hätte ich dann einen Zyklus für das Log, denn im gleichen Moment sollten ja 2 Punkte im Chart gezeichnet, bzw das Chart neugezeichnet werden.

Waldmensch

#3
Sodele, debug = 1, Konsole auf, F5 (Browser FF). Du siehst mehrere Einträge MySHM, das ist das SHM Modul. Wenn diese Einträge im Log erscheinen, aktualisieren sich die beiden Label. Das Problem ist, wie ich vermute, das das Chart gar nichts von MySHM weiß, entsprechend auch nicht, wenn dort was passiert. dblog generiert ja keine Events. Deswegen war meine Idee, ein zusätzliches Device anzugeben (MySHM), was das Chart "kitzelt" und das Chart holt sich frische Daten aus dblog. Alternativ, keine Ahnung ob technisch möglich, ein "data-force-update-interval = '180'" was das chart nach 180 Sekunden veranlasst frische Daten zu holen und neu zu zeichnen. Halt eine Gewaltmethode für Daten die keine Events liefern. Das wird ja bei Verwendung von nur LogDB innerhalb eines Chart immer so sein.

config:
<div data-type="chart"
                  data-logdevice='["logdb","logdb"]'
                  data-columnspec='["MySHM:PV:::","MySHM:TotalConsumption:::"]'
  data-style='["ftui l0","ftui l2fill"]'
                  data-minvalue="auto"
                  data-maxvalue="auto"
                  data-height="125"
                  data-width="450"
                  class="nobuttons">
                </div>



Debug Log:
Plugin dir: /fhem/tablet/js fhem-tablet-ui.min.js:1:4223
Filename: ftui fhem-tablet-ui.min.js:1:4336
FHEM dir: /fhem/ fhem-tablet-ui.min.js:1:4443
Collecting required readings fhem-tablet-ui.min.js:1:6083
Longpoll started fhem-tablet-ui.min.js:1:3059
Synchrone XMLHttpRequests am Haupt-Thread sollte nicht mehr verwendet werden, weil es nachteilige Effekte für das Erlebnis der Endbenutzer hat. Für weitere Hilfe siehe http://xhr.spec.whatwg.org/ jquery.min.js:4:25327
Loaded plugin: widget_pagebutton fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_switch fhem-tablet-ui.min.js:1:820
0 function widget_chart.init_attr() Attributes initialized with 0-1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.init/<() Module initialized with width: 450 height: 125 jquery.min.js line 2 > eval:10:23
Loaded plugin: widget_chart fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_symbol fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_popup fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_homestatus fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_thermostat fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_weather fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_simplechart fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_label fhem-tablet-ui.min.js:1:820
Request readings from FHEM fhem-tablet-ui.min.js:1:6323
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.te.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.TK.Kinderzimmertuer parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Terassentuer parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Eingangstuer parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
1 function widget_chart.refresh() Got 371 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 599 points for Graph 2 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": false,
  "DDD": {
    "has3D": true,
    "prefix": "-moz-",
    [...] jquery.min.js line 2 > eval:10:23
update done for device:OG.sz.TK.Schlafzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.TK.Wohnzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:measured-temp fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
2016-03-29 19:26:48 / OG.ku.TK.Eingangstuer / Window / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
2016-03-29 19:26:48 / OG.ku.TK.Eingangstuer / STATE / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Eingangstuer parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:27:46 / OG.fl.WE.Temperatur / STATE / T: 22.6  H: 30.1  P: 999 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:27:46 / OG.fl.WE.Temperatur / temperature / 22.6 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
2016-03-29 19:27:51 / MySHM / TotalConsumption / 559 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
2016-03-29 19:27:51 / MySHM / PV / 42 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
2016-03-29 19:27:51 / MySHM / STATE / -517 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:28:05 / OG.fl.HZ.Thermostat / actuator_ / 23 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
2016-03-29 19:29:37 / OG.kz.TK.Kinderzimmertuer / Window / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.kz.TK.Kinderzimmertuer parameter:Window fhem-tablet-ui.min.js:1:947
2016-03-29 19:29:37 / OG.kz.TK.Kinderzimmertuer / STATE / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.kz.TK.Kinderzimmertuer parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:29:49 / MySHM / TotalConsumption / 559 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
2016-03-29 19:29:49 / MySHM / PV / 42 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
2016-03-29 19:29:49 / MySHM / STATE / -517 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:03 / OG.fl.HZ.Thermostat / actuator_ / 23 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:11 / OG.ku.TK.Terassentuer / Window / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Terassentuer parameter:Window fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:11 / OG.ku.TK.Terassentuer / STATE / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Terassentuer parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:27 / OG.fl.WE.Temperatur / STATE / T: 22.6  H: 30.1  P: 999 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:27 / OG.fl.WE.Temperatur / temperature / 22.6 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:54 / OG.ku.TK.Eingangstuer / Window / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
2016-03-29 19:30:54 / OG.ku.TK.Eingangstuer / STATE / Closed fhem-tablet-ui.min.js:1:8571
update done for device:OG.ku.TK.Eingangstuer parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:31:48 / MySHM / TotalConsumption / 571 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
2016-03-29 19:31:48 / MySHM / PV / 21 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
2016-03-29 19:31:48 / MySHM / STATE / -550 fhem-tablet-ui.min.js:1:8571
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
2016-03-29 19:32:01 / OG.fl.HZ.Thermostat / actuator_ / 23 fhem-tablet-ui.min.js:1:8571
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947

Waldmensch

Wenn ich etwas total "dummes" mache, nämlich einfach einen 3. Graphen hinzufüge, der auf MySHM verweist, dann gibt es zwar eine Fehlermeldung im Log (columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1), aber das Chart aktualisiert einwandfrei, weil das update durchgeführt wird. Also wäre ein "data-force_update_on = 'MySHM'" vielleicht die beste Idee.

Config mit 3. nutzlosen logdevice
<li data-row="5" data-col="4" data-sizex="4" data-sizey="1">
<div
data-type="chart"
data-logdevice='["logdb","logdb","MySHM"]'
data-columnspec='["MySHM:PV:::","MySHM:TotalConsumption:::","TotalConsumption"]'
data-style='["ftui l0","ftui l2fill", "ftui l0"]'
data-minvalue="auto"
data-maxvalue="auto"
data-height="125"
data-width="450"
class="nobuttons">
</div>
</li>



Debuglog:
Plugin dir: /fhem/tablet/js fhem-tablet-ui.min.js:1:4223
Filename: ftui fhem-tablet-ui.min.js:1:4336
FHEM dir: /fhem/ fhem-tablet-ui.min.js:1:4443
Collecting required readings fhem-tablet-ui.min.js:1:6083
Synchrone XMLHttpRequests am Haupt-Thread sollte nicht mehr verwendet werden, weil es nachteilige Effekte für das Erlebnis der Endbenutzer hat. Für weitere Hilfe siehe http://xhr.spec.whatwg.org/ jquery.min.js:4:25327
Loaded plugin: widget_pagebutton fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_switch fhem-tablet-ui.min.js:1:820
0 function widget_chart.init_attr() Attributes initialized with 0-1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.init/<() Module initialized with width: 450 height: 125 jquery.min.js line 2 > eval:10:23
Loaded plugin: widget_chart fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_symbol fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_popup fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_homestatus fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_thermostat fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_weather fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_label fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_simplechart fhem-tablet-ui.min.js:1:820
Request readings from FHEM fhem-tablet-ui.min.js:1:6323
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
1 function widget_chart.refresh() Got 71 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 308 points for Graph 2 jquery.min.js line 2 > eval:10:23
columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1
1 function widget_chart.refresh() Got 0 points for Graph 3 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb",
    "MySHM"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::",
    "TotalConsumption"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill",
    "ftui l0"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": fa[...] jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 71 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 308 points for Graph 2 jquery.min.js line 2 > eval:10:23
columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1
1 function widget_chart.refresh() Got 0 points for Graph 3 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb",
    "MySHM"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::",
    "TotalConsumption"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill",
    "ftui l0"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": fa[...] jquery.min.js line 2 > eval:10:23
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.fl.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Terassentuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
1 function widget_chart.refresh() Got 72 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 309 points for Graph 2 jquery.min.js line 2 > eval:10:23
columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1
1 function widget_chart.refresh() Got 0 points for Graph 3 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb",
    "MySHM"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::",
    "TotalConsumption"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill",
    "ftui l0"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": fa[...] jquery.min.js line 2 > eval:10:23
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.TK.Schlafzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.wz.TK.Wohnzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
1 function widget_chart.refresh() Got 73 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 310 points for Graph 2 jquery.min.js line 2 > eval:10:23
columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1
1 function widget_chart.refresh() Got 0 points for Graph 3 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb",
    "MySHM"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::",
    "TotalConsumption"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill",
    "ftui l0"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": fa[...] jquery.min.js line 2 > eval:10:23
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.ku.TK.Terassentuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.TK.Schlafzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.wz.TK.Wohnzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.fl.WE.Temperatur parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
1 function widget_chart.refresh() Got 75 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 312 points for Graph 2 jquery.min.js line 2 > eval:10:23
columnspec TotalConsumption is not ok in chart jquery.min.js line 2 > eval:1462:1
1 function widget_chart.refresh() Got 0 points for Graph 3 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "logdevice": [
    "logdb",
    "logdb",
    "MySHM"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::",
    "TotalConsumption"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill",
    "ftui l0"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": fa[...] jquery.min.js line 2 > eval:10:23
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947

eki

Kannst Du mal probieren einfach ein data-device="MySHM" in das "gewollte" chart einzufügen, das könnte helfen.

Waldmensch

Leider zeigt das keine Wirkung. Der parameter data-device wird nach F5 beim init aufgeführt (s. erstes Log). Später beim Poll kommt aber keine Meldung mehr vom Chart (s. zweites Log)

Config:
<div
data-type="chart"
data-device ="MySHM"
data-logdevice='["logdb","logdb"]'
data-columnspec='["MySHM:PV:::","MySHM:TotalConsumption:::"]'
data-style='["ftui l0","ftui l2fill"]'
data-minvalue="auto"
data-maxvalue="auto"
data-height="125"
data-width="450"
class="nobuttons">
</div>


Log nach F5 - data-device kommt im Widget an:
Plugin dir: /fhem/tablet/js fhem-tablet-ui.min.js:1:4223
Filename: ftui fhem-tablet-ui.min.js:1:4336
FHEM dir: /fhem/ fhem-tablet-ui.min.js:1:4443
Collecting required readings fhem-tablet-ui.min.js:1:6083
Synchrone XMLHttpRequests am Haupt-Thread sollte nicht mehr verwendet werden, weil es nachteilige Effekte für das Erlebnis der Endbenutzer hat. Für weitere Hilfe siehe http://xhr.spec.whatwg.org/ jquery.min.js:4:25327
Loaded plugin: widget_pagebutton fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_switch fhem-tablet-ui.min.js:1:820
0 function widget_chart.init_attr() Attributes initialized with 0-1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.init/<() Module initialized with width: 450 height: 125 jquery.min.js line 2 > eval:10:23
Loaded plugin: widget_chart fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_symbol fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_popup fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_homestatus fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_thermostat fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_weather fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_simplechart fhem-tablet-ui.min.js:1:820
Loaded plugin: widget_label fhem-tablet-ui.min.js:1:820
Request readings from FHEM fhem-tablet-ui.min.js:1:6323
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
1 function widget_chart.refresh() Got 119 points for Graph 1 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Got 356 points for Graph 2 jquery.min.js line 2 > eval:10:23
1 function widget_chart.refresh() Chart finished, Parameters: {
  "type": "chart",
  "device": "MySHM",
  "logdevice": [
    "logdb",
    "logdb"
  ],
  "columnspec": [
    "MySHM:PV:::",
    "MySHM:TotalConsumption:::"
  ],
  "style": [
    "ftui l0",
    "ftui l2fill"
  ],
  "minvalue": "auto",
  "maxvalue": "auto",
  "height": 125,
  "width": 450,
  "minvalue_sec": 10,
  "maxvalue_sec": 30,
  "daysago_start": "0",
  "daysago_end": "-1",
  "timeformat": "",
  "xticks": "auto",
  "yticks": "auto",
  "yunit": "",
  "yunit_sec": "",
  "ytext": "",
  "ytext_sec": "",
  "ptype": "lines",
  "uaxis": "primary",
  "get": "STATE",
  "graphWidth": 91.77777777777779,
  "graphHeight": 98.4,
  "textWidth": 30,
  "textHeight": 0,
  "bottomOffset": 0,
  "topOffset": 2,
  "crosshair": false,
  "crs_inactive": false,
  "showlegend": false,
  "nofulldays": false,
  "graphsshown": [
    true,
    true
  ],
  "xclassifier": "",
  "days_start": 0,
  "days_end": -1,
  "instance": 1,
  "noticks": false,
  "DDD": {
    "has3D": true,
    "p[...] jquery.min.js line 2 > eval:10:23
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059


Späteres Log - Labels werden aktualisiert aber Chart nicht:
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.te.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.ku.TK.Eingangstuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.WE.Temperatur parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.sz.TK.Schlafzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.TK.Kinderzimmertuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:temperature fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:measured-temp fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.wz.TK.Wohnzimmerfenster parameter:Window fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:MySHM parameter:STATE fhem-tablet-ui.min.js:1:947
update done for device:OG.ku.TK.Terassentuer parameter:Window fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:PV fhem-tablet-ui.min.js:1:947
update done for device:MySHM parameter:TotalConsumption fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.bz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.sz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.kz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
start shortpoll fhem-tablet-ui.min.js:1:3059
shortPoll - waiting requests:14 fhem-tablet-ui.min.js:1:3059
update done for device:OG.ku.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.wz.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947
update done for device:OG.fl.HZ.Thermostat parameter:actuator_ fhem-tablet-ui.min.js:1:947

torte

Hallo,

bei mir ist es das gleiche Problem.
bei SimpleChart mit logdb wird aber auch nichts aktualisiert bei mir.

longpoll steht auf 1  8)

Grüße
Torte

Waldmensch

Als Workaround kannst Du es so machen wie in #4, das läuft problemlos, außer das es eine Fehlermeldung im Log betreff des 3. Graphen gibt.

Ich denke mal "data-device" wäre der richtige Ansatz, wie @eki schon sagte. Allerdings wird das glaube ich von "oben" an das widget durchgereicht, was bei einem Event dann im widget ein update() auslösen sollte.

eki

#9
Ich habe mal ein bisschen rumprobiert. Was auf jeden Fall geht, ist wenn als data-device das Device angegeben wird, welches die Eingräge in's Logfile verursacht, zusätzlich muss man mit data-get auch das entsprechende reading setzen (falls nicht STATE als default verwendet wird).l
Ich denke, ich kann da was machen, dass das auch automatisch geht (indem einfach die Infos aus den logdevice Einträgen entsprechend zu device und reading Einträgen gemacht werden).

Waldmensch

hört sich super an! Wenn ich in data-device mein mySHM angegeben habe, ist allerdings das chart leergeblieben. Ich habe das data-get nicht gesetzt gehabt. mySHM liefert einen STATE, was data-get per default nutzen würde. mySHM hat allerdings keinerlei Logfile, da es nur in DBLog schreibt.

torte

Bei mir blieb das Chart auch leer, wenn ich data-device und data-get gesetzt hatte.

Habe testweise einfach mal ein Device genommen was ein Logfile schreibt und das unter data-device und data-get eingetragen
aber trotzdem aktualisiert sich das reine "DBLOG" Chart dann nicht selbsttätig.