Code Monkey home page Code Monkey logo

ginlong-scraper's Introduction

ginlong-scraper

Scrapes PV statistics from the Ginlong monitor pages and outputs it to influxdb, pvoutput or mqtt.

https://hub.docker.com/repository/docker/dkruyt/ginlong-scraper

There is a possibility it also works with the following inverters: Omnik Solar, Solarman and Trannergy Inverters

You can also move the environment variables into an ENV file and invoke that on the commandline when invoking the docker image.

In the case of two inverters (see note below) once you have the deviceid you can set up two seperate docker containers and just vary the deviceId in the environment variables.

Configuration

Environment variables

Environment variable Required Description Default value
LOG_LEVEL No Logging level (ERROR, INFO, DEBUG) INFO
GINLONG_USERNAME Yes Ginlong Solis username empty
GINLONG_PASSWORD Yes Ginlong Solis password empty
GINLONG_DOMAIN No Ginlong Solis domain m.ginlong.com
GINLONG_LANG No Ginlong Solis language 2 (English)
GINLONG_DEVICE_ID No Ginlong Solis device ID
(only required if auto-detect fails or if you have more than one device)
empty
USE_INFLUX No Set to true if you want to use InfluxDB as output false
INFLUX_DATABASE No InfluxDB DB name influxdb
INFLUX_SERVER No InfluxDB server localhost
INFLUX_PORT No InfluxDB server port 8086
INFLUX_USER No InfluxDB User empty
INFLUX_PASSWORD No InfluxDB Password empty
INFLUX_MEASUREMENT No InfluxDB measurement type PV
USE_PVOUTPUT No Set to true if you want to use PvOutput as output false
PVOUTPUT_API_KEY No PvOutput API key empty
PVOUTPUT_SYSTEM_ID No PvOutput system ID empty
USE_MQTT No Set to true if you want to use MQTT as output false
MQTT_CLIENT_ID No MQTT client ID pv
MQTT_SERVER No MQTT server localhost
MQTT_USERNAME No MQTT username empty
MQTT_PASSWORD No MQTT password empty
TZ No TimeZone e.g Australia/Sydney empty

Note that if you have more than 1 device - then it is not readily apparent where to get the Device ID In that case - setup the script, and set LOG_LEVEL to DEBUG, then view the logs and search for deviceId - this will list the IDs of each inverter.

Bonus

The grafana-dashboard-example.json file you could import in to Grafana if you use the influx database. Then you can make a dashboard similar to this.

grafana

ginlong-scraper's People

Contributors

dkruyt avatar jturnbull 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.