GithubHelp home page GithubHelp logo

stefanroeck / sungrow-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nitrotools/sungrow-go

1.0 0.0 0.0 29 KB

Publish data from Sungrow inverters with WiNet-S dongle to a MQTT broker.

License: MIT License

Go 96.04% Dockerfile 3.96%
mqtt sungrow-inverter

sungrow-go's Introduction

stefanroeck/sungrow

Tiny application to access real-time data from Sungrow inverters with WiNet-S dongle over WebSocket and publish data to a mqtt server.

Written in GoLang, based on https://github.com/nItroTools/sungrow-go.

Usage

Docker

docker-compose.yml:

version: "3.9"
services:
  sungrow-go:
    image: stefanroeck/sungrow
    restart: unless-stopped
    environment:
      - SUNGROW_HOST=${SUNGROW_HOST}
      - MQTT_URL=${MQTT_URL}
      - MQTT_USER=${MQTT_USER}
      - MQTT_PASSWORD=${MQTT_PASSWORD}
      - SLEEP=30

Install & Build locally

  • Checkout Repo
$ go install .
$ go build ./bin

Build for Rasperry PI

env GOOS=linux GOARCH=arm GOARM=7 go build -o ./bin/sungrow-go-raspi

Build for Docker

env CGO_ENABLED=0 GOOS=linux go build -o ./bin/sungrow-go-docker

Run locally

List available and required parameters

$ sungrow-go -help

Basic usage with ip address of your inverter (e.g. 192.168.2.100)

$ sungrow-go -host 192.168.2.100 -mqtt.server mqtt://test.mosquitto.org:1883 -mqtt.topic honk/demo

MQTT

Sample Message:

{
  "activePower": 0.99,
  "arrayInsulationResistance": 3000,
  "busVoltage": 693.6,
  "currentPhaseA": 1.5,
  "currentPhaseB": 1.4,
  "currentPhaseC": 1.4,
  "gridFrequency": 49.97,
  "inverterTemp": 34.7,
  "status": "running",
  "sunPower": 0.99,
  "todayEnergy": 2.2,
  "totalEnergy": 6584.9,
  "totalRunningTime": 1948,
  "voltagePhaseA": 232,
  "voltagePhaseB": 235.2,
  "voltagePhaseC": 236
}

Supported inverters

Tested Sungrow inverters with WiNet-S dongle:

sungrow-go's People

Contributors

stefanroeck avatar nitrotools avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.