Initial implementation: MQTT-based energy meter subscriber

Subscribes to Eastron SDM630 power meter data via MQTT broker,
decodes Modbus RTU frames, and writes readings to InfluxDB.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-10 08:01:17 +02:00
commit 066fa5ca51
10 changed files with 742 additions and 0 deletions

12
Makefile Normal file
View File

@@ -0,0 +1,12 @@
BIN := bin/energy-mqtt-sub
.PHONY: build run clean
build:
go build -o $(BIN) .
run: build
./$(BIN) -c ./config/config.json
clean:
rm -f $(BIN)