Commit Graph

4 Commits

Author SHA1 Message Date
d82945098b Fix IPv6 zone ID encoding in broker URL
The zone identifier in fe80::%eth0 must be percent-encoded as %25
in a URL so Go's url.Parse accepts it. Without this, paho.mqtt.golang
silently drops the broker and reports "no servers defined to connect to".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 07:43:45 +02:00
2dcfaeacb7 Fix broker connectivity: support scoped IPv6 link-local addresses
Add optional broker_ip and broker_tls_name config fields so the TCP
dial target can be a scoped IPv6 address (fe80::...%eth0) while TLS
certificate verification still uses the broker hostname.

Also revert to alpine/static build; CGO was not needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:17:30 +02:00
d59b3fd0cd Add .gitignore, remove compiled binary from tracking
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 08:01:32 +02:00
066fa5ca51 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>
2026-04-10 08:01:17 +02:00