You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Universal Go binary that turns any machine (laptop, Raspberry Pi, industrial server, Zap, Blaxt) into a Sourceful energy gateway. One binary, zero dependencies.
Core loop: Load Lua drivers → Poll energy devices → Publish telemetry via NATS → Handle grid control commands locally with watchdog failsafe.
Running
make build # Build for current platform → bin/edge-node
make build-all # Cross-compile (Linux amd64/arm64, macOS arm64, Windows amd64)
make test# Run tests# Standalone (embedded NATS)
./bin/edge-node
# Connect to Sourceful testnet
./bin/edge-node --nats-url wss://novacore-testnet.sourceful.dev:4443
# With drivers and device config
./bin/edge-node --drivers ./device-support/drivers/ --devices ~/.sourceful/devices.json
Battery soc: 0.0 to 1.0 (fraction, NOT percentage)
Meter w: positive = importing, negative = exporting
Energy counters (wh): always positive, monotonically increasing
Relationship to Other Repos
sourceful-hugin — AI driver development tool. Can probe this edge-node remotely via NATS for device scanning, register reading, and driver testing.
device-support (srcful/srcful-device-support) — Git submodule with Lua drivers and YAML manifests. Auto-detected at device-support/drivers/ or {data-dir}/drivers/.
Blaxt — Production gateway firmware. Edge-node shares the same Lua VM, Modbus library, and driver contract.