Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petergrace/sunspec_gateway
emit sunspec data from modbus to MQTT
https://github.com/petergrace/sunspec_gateway
modbus-tcp mqtt sunspec
Last synced: about 6 hours ago
JSON representation
emit sunspec data from modbus to MQTT
- Host: GitHub
- URL: https://github.com/petergrace/sunspec_gateway
- Owner: PeterGrace
- License: mit
- Created: 2023-09-04T15:49:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-06T23:40:35.000Z (6 months ago)
- Last Synced: 2024-05-07T00:32:15.074Z (6 months ago)
- Topics: modbus-tcp, mqtt, sunspec
- Language: Rust
- Homepage:
- Size: 700 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.d/20231003_021547_pete.grace_peter_grace_value_minmax.md
- License: LICENSE
Awesome Lists containing this project
README
# sunspec_gateway
This app will monitor a SunSpec-compliant device and emit metrics from said device to MQTT.
# Usage
This app is built into a docker image which is pushed to the docker hub with both amd64 (normal PC's) and arm64 (raspberry pi 3-onwards).
## Running straight from docker
`docker run -ti -v ./config.yaml:/opt/sunspec_gateway/config.yaml docker.io/petergrace/sunspec-gateway:latest`## using docker-compose
`docker compose up -d` and then `docker-compose logs` to watch logs.## Building it yourself
The tool should build easily with a `cargo build` instantiation. The only gotcha is that I use a sqlite extension for part of the data storage backend and so you will need to manually copy ./tools/stats.so.XXX to ./stats.so for the program to execute. The XXXX depends on your processor architecture (amd64 for normal PC or arm64 for raspberry pis 3 and onwards)