ich habe folgendes Problem: Von meinem Stromzähler-Lesegerät bekomme ich Daten im JSON- Format
Code: Alles auswählen
{"Anzeige" : 16611347.40, "T1" : 16611347.40, "T2" : 0.00, "Pall" : 539.00, "PL1" : 140.00, "PL2" : 57.00, "PL3" : 341.00, "Luftdruck" : 988.84}
Code: Alles auswählen
Thing http:url:StromZaehler "Stromzaehler" [
baseURL="http://10.10.18.2/werte.json",
refresh=15] {
Channels:
Type number : Stromzaehler_Anzeige "ZaehlerAnzeige" [transformationPattern="JSONPATH:$.Anzeige"]
Type number : Stromzaehler_T1 "Zaehler_T1" [transformationPattern="JSONPATH:$.T1"]
Type number : Stromzaehler_T2 "Zaehler_T2" [transformationPattern="JSONPATH:$.T2"]
Type number : Stromzaehler_Pall "Zaehler_Power" [transformationPattern="JSONPATH:$.Pall"]
Type number : Stromzaehler_PL1 "Zaehler_L1" [transformationPattern="JSONPATH:$.PL1"]
Type number : Stromzaehler_PL2 "Zaehler_L2" [transformationPattern="JSONPATH:$.PL2"]
Type number : Stromzaehler_PL3 "Zaehler_L3" [transformationPattern="JSONPATH:$.PL3"]
}
Code: Alles auswählen
Number text1 {channel="http:url:StromZaehler:Stromzaehler_T1"}