NEWS
Scriptfehler bei Json umwandlung
-
das kommt vom System und da klemmst du deine Variable device ran und schiebst es vor den ersten Kommentar.

@tt-tom ah, vor dem ersten Kommentar war der Schlüssel. Da kommt einmal der "Null", und das macht die Fehlermeldung.
javascript.0 2023-05-07 09:18:34.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.000 info script.js.JSON-Objekte.json-Auto-Gtag: null javascript.0 2023-05-07 09:18:33.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.001 info script.js.JSON-Objekte.json-Auto-Gtag: null javascript.0 2023-05-07 09:18:32.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:31.000 info script.js.JSON-Objekte.json-Auto-Gtag: SeatLeon javascript.0 2023-05-07 09:18:30.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:29.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:28.000 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:27.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:26.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:26.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:26.001 info script.js.JSON-Objekte.json-Auto-Gtag: null -
@tt-tom ah, vor dem ersten Kommentar war der Schlüssel. Da kommt einmal der "Null", und das macht die Fehlermeldung.
javascript.0 2023-05-07 09:18:34.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:33.000 info script.js.JSON-Objekte.json-Auto-Gtag: null javascript.0 2023-05-07 09:18:33.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:32.001 info script.js.JSON-Objekte.json-Auto-Gtag: null javascript.0 2023-05-07 09:18:32.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:31.000 info script.js.JSON-Objekte.json-Auto-Gtag: SeatLeon javascript.0 2023-05-07 09:18:30.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:29.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:28.000 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:27.001 info script.js.JSON-Objekte.json-Auto-Gtag: AudiA4 javascript.0 2023-05-07 09:18:26.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:26.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:18:26.001 info script.js.JSON-Objekte.json-Auto-Gtag: null@wuschl sagte in Scriptfehler bei Json umwandlung:
vor dem ersten Kommentar war der Schlüssel. Da kommt einmal der "Null", und das macht die Fehlermeldung.
klar!
und was enthält dann die Variable MQTT? -
@wuschl sagte in Scriptfehler bei Json umwandlung:
vor dem ersten Kommentar war der Schlüssel. Da kommt einmal der "Null", und das macht die Fehlermeldung.
klar!
und was enthält dann die Variable MQTT?@homoran
das ist die Ausgabe vom Devicejavascript.0 2023-05-07 09:39:43.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:43.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:43.001 info script.js.JSON-Objekte.json-Auto-Gtag: undefined javascript.0 2023-05-07 09:39:42.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:42.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:42.000 info script.js.JSON-Objekte.json-Auto-Gtag: undefined javascript.0 2023-05-07 09:39:41.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-97,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:40.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-97,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:39.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C3A094','NAME':'SeatLeon','RSSI':-88,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:38.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C3A094','NAME':'SeatLeon','RSSI':-88,'STATE':'ON','PERSEC':0}und die Ausgabe von MQTT
javascript.0 2023-05-07 09:41:14.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:14.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:13.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:13.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:13.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:12.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:12.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:12.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:11.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:10.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:09.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:08.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:07.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:06.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:05.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:05.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:05.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:00','Switch1':'OFF','ANALOG':{'Temperature1':22.2,'A2':1822},'TempUnit':'C'} -
@homoran
das ist die Ausgabe vom Devicejavascript.0 2023-05-07 09:39:43.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:43.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:43.001 info script.js.JSON-Objekte.json-Auto-Gtag: undefined javascript.0 2023-05-07 09:39:42.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:42.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:39:42.000 info script.js.JSON-Objekte.json-Auto-Gtag: undefined javascript.0 2023-05-07 09:39:41.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-97,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:40.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-97,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:39.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C3A094','NAME':'SeatLeon','RSSI':-88,'STATE':'ON','PERSEC':0} javascript.0 2023-05-07 09:39:38.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'MAC':'7C2F80C3A094','NAME':'SeatLeon','RSSI':-88,'STATE':'ON','PERSEC':0}und die Ausgabe von MQTT
javascript.0 2023-05-07 09:41:14.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:14.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:13.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:13.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:13.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:12.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:12.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:12.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:10','Switch1':'OFF','ANALOG':{'Temperature1':22,'A2':1817},'TempUnit':'C'} javascript.0 2023-05-07 09:41:11.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:10.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:09.000 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:08.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:07.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:06.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:05','IBEACON':{'MAC':'7C2F80C4633E','NAME':'AudiA4','RSSI':-93,'STATE':'ON','PERSEC':0}} javascript.0 2023-05-07 09:41:05.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:05.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:41:05.001 info script.js.JSON-Objekte.json-Auto-Gtag: {'Time':'2023-05-07T08:41:00','Switch1':'OFF','ANALOG':{'Temperature1':22.2,'A2':1822},'TempUnit':'C'}@wuschl sagte in Scriptfehler bei Json umwandlung:
und die Ausgabe von MQTT
das ist kein json.
hast du die Konvertierung immer noch drin? -
@wuschl sagte in Scriptfehler bei Json umwandlung:
und die Ausgabe von MQTT
das ist kein json.
hast du die Konvertierung immer noch drin? -
@wuschl sagte in Scriptfehler bei Json umwandlung:
@homoran hab es ohne probiert, aber kein Unterschied, gleiche Fehlermeldung.
auch gleicher Inhalt der Variable MQTT?
Zeigen, zeigen, zeigen! -
@wuschl sagte in Scriptfehler bei Json umwandlung:
@homoran hab es ohne probiert, aber kein Unterschied, gleiche Fehlermeldung.
auch gleicher Inhalt der Variable MQTT?
Zeigen, zeigen, zeigen!javascript.0 2023-05-07 09:57:55.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:54.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:52.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:51.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:50.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:49.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:48.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} admin.0 2023-05-07 09:57:47.640 info ==> Connected system.user.admin from ::ffff:192.168.178.37 javascript.0 2023-05-07 09:57:47.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:46.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:40","Switch1":"OFF","ANALOG":{"Temperature1":21.8,"A2":1826},"TempUnit":"C"} -
javascript.0 2023-05-07 09:57:55.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:54.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:52.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:51.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:50.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:49.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:48.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} admin.0 2023-05-07 09:57:47.640 info ==> Connected system.user.admin from ::ffff:192.168.178.37 javascript.0 2023-05-07 09:57:47.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:46.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:40","Switch1":"OFF","ANALOG":{"Temperature1":21.8,"A2":1826},"TempUnit":"C"}@wuschl DAS ist ein JSON!
also schon mal einen Fehler über den debug gefunden!dieses Json enthält kein "NAME"
Deine Logik muss solche Pakete ausfiltern, und nur die anderen weiter bearbeiten., wenn es nicht anders geht.
-
javascript.0 2023-05-07 09:57:55.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:54.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:54.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:53.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:52.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:52.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:50","Switch1":"OFF","ANALOG":{"Temperature1":21.7,"A2":1822},"TempUnit":"C"} javascript.0 2023-05-07 09:57:51.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:50.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:49.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:47","IBEACON":{"MAC":"7C2F80C4633E","NAME":"AudiA4","RSSI":0,"STATE":"OFF","PERSEC":0}} javascript.0 2023-05-07 09:57:48.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} admin.0 2023-05-07 09:57:47.640 info ==> Connected system.user.admin from ::ffff:192.168.178.37 javascript.0 2023-05-07 09:57:47.000 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:46.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:44","IBEACON":{"MAC":"7C2F80C3A094","NAME":"SeatLeon","RSSI":-95,"STATE":"ON","PERSEC":0}} javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.002 error script.js.JSON-Objekte.json-Auto-Gtag: Cannot get NAME of undefined javascript.0 2023-05-07 09:57:45.001 info script.js.JSON-Objekte.json-Auto-Gtag: {"Time":"2023-05-07T08:57:40","Switch1":"OFF","ANALOG":{"Temperature1":21.8,"A2":1826},"TempUnit":"C"} -
@wuschl so prinzipiell kommen die Fehler davon dass Du den Wert von dem "anderen" Datenpunkt ja überhaupt nicht abfrägst (in eine Variable setzen). Dort gibts auch diw gewünschten Attribute.
-
@wuschl DAS ist ein JSON!
also schon mal einen Fehler über den debug gefunden!dieses Json enthält kein "NAME"
Deine Logik muss solche Pakete ausfiltern, und nur die anderen weiter bearbeiten., wenn es nicht anders geht.
-
@wuschl sagte in Scriptfehler bei Json umwandlung:
Gibt ja kein "nicht"
doch!

falls nicht Attribut von Name
mache (den Rest)
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden

