Smart Home 2.0 - Separate Leistungsmessung über JSON
Verfasst: Do Mai 27, 2021 8:46 am
Hallo,
Software
Kernel: Linux 5.4.83-v7+ GNU/Linux
openWB Version: 1.9.235
Hardware
Board: Raspberry Pi 3 Model B Plus Rev 1.3
Wie kan ich den Separate Leistungsmessung JSON Zugriff für Smarthome 2.0 benutzen mit JQery? Ich brauche nur die Zahl: "Data"
Antwort vom URL:
{
"ActTime" : 1622104900,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "22:23",
"CivTwilightStart" : "04:55",
"DayLength" : "16:02",
"NautTwilightEnd" : "23:24",
"NautTwilightStart" : "03:54",
"ServerTime" : "2021-05-27 10:41:40",
"SunAtSouth" : "13:39",
"Sunrise" : "05:38",
"Sunset" : "21:40",
"app_version" : "2021.1 (build 13277)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "0 Watt",
"Description" : "",
"Favorite" : 1,
"HardwareDisabled" : false,
"HardwareID" : 2,
"HardwareName" : "Controller",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveTimeout" : false,
"ID" : "0000304",
"LastUpdate" : "2021-05-27 10:17:15",
"Name" : "Power Water",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Electric",
"Timers" : "false",
"Type" : "Usage",
"TypeImg" : "current",
"Unit" : 2,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "14"
}
],
"status" : "OK",
"title" : "Devices"
}
Vielen Dank für die Hilfe!
MfG
Bart
Software
Kernel: Linux 5.4.83-v7+ GNU/Linux
openWB Version: 1.9.235
Hardware
Board: Raspberry Pi 3 Model B Plus Rev 1.3
Wie kan ich den Separate Leistungsmessung JSON Zugriff für Smarthome 2.0 benutzen mit JQery? Ich brauche nur die Zahl: "Data"
Antwort vom URL:
{
"ActTime" : 1622104900,
"AstrTwilightEnd" : "00:00",
"AstrTwilightStart" : "00:00",
"CivTwilightEnd" : "22:23",
"CivTwilightStart" : "04:55",
"DayLength" : "16:02",
"NautTwilightEnd" : "23:24",
"NautTwilightStart" : "03:54",
"ServerTime" : "2021-05-27 10:41:40",
"SunAtSouth" : "13:39",
"Sunrise" : "05:38",
"Sunset" : "21:40",
"app_version" : "2021.1 (build 13277)",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 0,
"Data" : "0 Watt",
"Description" : "",
"Favorite" : 1,
"HardwareDisabled" : false,
"HardwareID" : 2,
"HardwareName" : "Controller",
"HardwareType" : "OpenZWave USB",
"HardwareTypeVal" : 21,
"HaveTimeout" : false,
"ID" : "0000304",
"LastUpdate" : "2021-05-27 10:17:15",
"Name" : "Power Water",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Electric",
"Timers" : "false",
"Type" : "Usage",
"TypeImg" : "current",
"Unit" : 2,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "14"
}
],
"status" : "OK",
"title" : "Devices"
}
Vielen Dank für die Hilfe!
MfG
Bart