diff options
| author | Marin Ivanov <[email protected]> | 2025-09-04 10:23:46 +0300 |
|---|---|---|
| committer | Marin Ivanov <[email protected]> | 2025-09-04 12:00:31 +0300 |
| commit | b551c87b9671d3dc2c5a4b807f9b252cc7fc38b0 (patch) | |
| tree | 1c4d9f3712321be9bd2506aa012e1303924ae62a /config.json.example | |
| parent | 9897dc711a8e3e1be51a72d5f68f50692b289eeb (diff) | |
Device metrics command and telemetry fix
* feat: execute command to retrieve device metrics
* bugfix: add requestid to (telemetry) reply data
Diffstat (limited to 'config.json.example')
| -rw-r--r-- | config.json.example | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/config.json.example b/config.json.example index 14ab023..ce7d209 100644 --- a/config.json.example +++ b/config.json.example @@ -13,8 +13,14 @@ "altitude": 2.0 }, "deviceMetrics": { - "broadcastInterval": 300, - "upsAddress": "upsname@localhost" + "broadcastInterval": 0, + "command": "jq", + "commandArgs": [ + "-n", + "--arg", "battery_level", "100", + "--arg", "voltage", "13.37", + ".battery_level=($battery_level|tonumber) | .voltage=($voltage|tonumber)" + ] }, "channels": [ { |
