Skip to main content

Configuration of the Emulated Legacy Electricity Meter API

meters_legacy_api/state

The state of the emulated legacy electricity meter API

Example
# $HOST e.g. warp-AbCd

Read

curl http://$HOST/meters_legacy_api/state
{"writable":false}
NameDescription
writable
bool

Indicates whether the legacy electricity meter API can be written to. This is only the case if the meter entered under meters_legacy_api/config as linked_meter_slot is a meter configured as an API meter in its meters/X/config.




meters_legacy_api/config

The configuration of the emulated legacy electricity meter API

Example
# $HOST e.g. warp-AbCd

Read

curl http://$HOST/meters_legacy_api/config
{"linked_meter_slot":0}

Write

curl http://$HOST/meters_legacy_api/config -d '{"linked_meter_slot":0}'

or abbreviated:

curl http://$HOST/meters_legacy_api/config -d '0'
NameDescription
linked_meter_slot
int

Meter to which the emulated legacy electricity meter API should be mapped