Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.53 KB

http-en.md

File metadata and controls

50 lines (33 loc) · 1.53 KB

Deutsch • English

HTTP Api

The api keys can be read and written via the HTTP Api.

For that the HTTP API (v2) has to be enabled from the app:

Getting all values in one request

hihger system load, lots of traffic, shouldn't be used for productive setups

http://192.168.0.75/api/status

Getting selective values

To reduce the system load the status request can be filtered so that only certain api keys are part of it.

Since firmware 051.4:

http://192.168.0.75/api/status?filter=rfb,alw,acu,adi,amp

Until firmware 051.3 (legacy): Attention, there were memory insufficiencies while json parsing the filter, which resulted in a typical maximum of 10 entries

http://192.168.0.75/api/status?filter=["rfb","alw","acu","adi","amp"]

Setting values

Each value has to be set using an url query parameter (GET parameter). The value has be encoded as json. For example strings must start and end with quotation marks.

http://192.168.0.75/api/set?fna="my charger"
http://192.168.0.75/api/set?amp=16
http://192.168.0.75/api/set?dwo=null
http://192.168.0.75/api/set?dwo=3.14
http://192.168.0.75/api/set?bac=false&sdp=true

The HTTP response should contain a value for each api key in the json object, true for success, or a string error message.

{
  "bac": true,
  "sdp": true
}