Lesebefehle
Der Systemstatus kann mit dem HTTP GET-INPUT Befehl ausgelesen werden.
Die Antwort des Requests ist im JSON-Format.
Name | Beschreibung |
---|---|
Consumption_W | Hausverbrauch in Watt |
Production_W | PV Produktion in Watt |
Pac_total_W | Aktuelle Lade- / Entladeleistung |
RSOC | Relativer Ladezustand |
USOC | Nutzer Ladezustand |
Fac | Netzfrequenz in Hz |
Uac | Netzspannung in V |
Ubat | Batteriespannung in V |
Timestamp | Systemzeit |
IsSystemInstalled | System ist installiert oder nicht |
Beispiel
HTTP Typ GET-INPUT
Request On: http://192.168.2.50:8080/api/v1/status
Antwort:
Die erfolgreiche Antwort wird mit dem Status code 200 im Diagnosefenster bestätigt.
{ | |
„Consumption_W“: 0, | |
„Fac“: 0, | |
„IsSystemInstalled“: 1, | |
„Pac_total_W“: 0, | |
„Production_W“: 0, | |
„RSOC“: 0, | |
„Timestamp“: „2016-06-13 11:52:20“, | |
„USOC“: 0, | |
„Uac“: 0, | |
„Ubat“: 0 | |
} |
Request Off/Parameter: JSON@Consumption_W
Dadurch wird in der Antwort nach dem Parameter Consumption_W gesucht und die Zahl umgewandelt damit dieser in einem AI verwendet werden kann.