Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A python script that fetches PV statistics from the Ginlong Solis Cloud API and outputs it to influxdb, pvoutput or mqtt

License

NotificationsYou must be signed in to change notification settings

Gentleman1983/ginlong_solis_api_connector

 
 

Repository files navigation

GitHub release (latest SemVer)GitHub workflow (pylint)GitHub licenseAll ContributorsGitHub stars

ginlong-solis-api-connector

Fetches API data from Solis Cloud API and outputs it to influxdb, pvoutput or mqtt. Based onginlong-scraper by dkruyt.

https://hub.docker.com/repository/docker/gentleman1983/ginlong-solis-api-connector

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 wheninvoking the docker image.

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

Requirements

  • You have to order the Solis Cloud API access like describedhere.
  • You have to know the Solis Cloud APIKeyID andKeySecret.

Configuration

Environment variables

Environment variableRequiredDescriptionDefault value
LOG_LEVELNoLogging level (ERROR, INFO, DEBUG)INFO
SOLIS_CLOUD_API_KEY_IDYesAPI Key IDempty
SOLIS_CLOUD_API_KEY_SECRETYesAPI Key Secretempty
SOLIS_CLOUD_API_URLNoAPI URLhttps://www.soliscloud.com
SOLIS_CLOUD_API_PORTNoAPI Port13333
SOLIS_CLOUD_API_INVERTER_IDNoGinlong Solis device ID
(only required if auto-detect fails or if you have more than one device)
0 orempty
SOLIS_CLOUD_API_OVERRIDE_SINGLE_PHASE_INVERTERNoOverride to provide correct calculations for single phase inverters if Solis Cloud API provides wrong data. Simply switch totrueempty
SOLIS_CLOUD_API_NUMBER_RETRIESNoNumber of retries to fetch an API endpoint3
SOLIS_CLOUD_API_RETRIES_WAIT_SNoTimeout between retries1
USE_INFLUXNoSet to true if you want to use InfluxDB as outputfalse
INFLUX_DATABASENoInfluxDB DB nameinfluxdb
INFLUX_SERVERNoInfluxDB serverlocalhost
INFLUX_PORTNoInfluxDB server port8086
INFLUX_USERNoInfluxDB Userempty
INFLUX_PASSWORDNoInfluxDB Passwordempty
INFLUX_MEASUREMENTNoInfluxDB measurement typePV
USE_PVOUTPUTNoSet to true if you want to use PvOutput as outputfalse
PVOUTPUT_API_KEYNoPvOutput API keyempty
PVOUTPUT_SYSTEM_IDNoPvOutput system IDempty
PVOUTPUT_EXTENDED_V7NoSet Extendet Output v7 to this API Key from inverterDetail (leave blank if not donated)empty
PVOUTPUT_EXTENDED_V8NoSet Extendet Output v8 to this API Key from inverterDetail (leave blank if not donated)empty
PVOUTPUT_EXTENDED_V9NoSet Extendet Output v9 to this API Key from inverterDetail (leave blank if not donated)empty
PVOUTPUT_EXTENDED_V10NoSet Extendet Output v10 to this API Key from inverterDetail (leave blank if not donated)empty
PVOUTPUT_EXTENDED_V11NoSet Extendet Output v11 to this API Key from inverterDetail (leave blank if not donated)empty
PVOUTPUT_EXTENDED_V12NoSet Extendet Output v12 to this API Key from inverterDetail (leave blank if not donated)empty
USE_MQTTNoSet to true if you want to use MQTT as outputfalse
MQTT_CLIENT_IDNoMQTT client IDpv
MQTT_SERVERNoMQTT serverlocalhost
MQTT_USERNAMENoMQTT usernameempty
MQTT_PASSWORDNoMQTT passwordempty
MQTT_PORTNoMQTT port default 18831883
MQTT_TOPICNoMQTT topic root, fulltopic will by MQTT_Topic / MQTT_Client_IDtopic
TZNoTimeZone e.g Australia/Sydneyempty

Note that if you have more than 1 device - then it is not readily apparent where to get the Device IDIn that case - setup the script, and setLOG_LEVEL toDEBUG, 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

Contributors

Tobias Otto
Tobias Otto

⚠️💻🚧👀
Christian Otto
Christian Otto

⚠️💻🚧👀
Peter de Vries
Peter de Vries

🐛
Pedro
Pedro

🐛
philicibine
philicibine

🐛
Mark
Mark

🐛
Stephen2615
Stephen2615

🐛
Izak Hearn
Izak Hearn

🐛
Add your contributions

About

A python script that fetches PV statistics from the Ginlong Solis Cloud API and outputs it to influxdb, pvoutput or mqtt

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python93.0%
  • Dockerfile7.0%

[8]ページ先頭

©2009-2025 Movatter.jp