rafaelwastaken/solis-s2-clickhouse

By rafaelwastaken

Updated almost 2 years ago

A Solis S2-WL-ST exporter for ClickHouse using native Modbus TCP

Image
0

762

rafaelwastaken/solis-s2-clickhouse repository overview

solis-s2-clickhouse

GitHub Workflow Status Docker Image Version (latest by date)

A Solis S2-WL-ST exporter for ClickHouse using native Modbus TCP

Configuration is done via environment variables and targets.json

Compatibility

⚠️ This exporter has only been tested with the following equipment:

Data Logger: Solis 4-pin S2-WL-ST (Ethernet, firmware v1001019)
Inverter: 1-phase, 3-MPPT Solis-1P7.6K-4G-US

It should support up to 3-phase, 4-MPPT inverters as long as they utilize the same register IDs

Environment Variables

NameDescriptionTypeDefaultExample
FETCH_INTERVALDefault Modbus fetch interval in secondsint3030
FETCH_TIMEOUTDefault Modbus fetch timeout in secondsint6060
LOG_LEVELLogging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)strINFOINFO
CLICKHOUSE_URLClickHouse URLstrN/Ahttps://10.0.0.1:8123
CLICKHOUSE_USERNAMEClickHouse login usernamestrN/Aexporter
CLICKHOUSE_PASSWORDClickHouse login passwordstrN/Ahunter2
CLICKHOUSE_DATABASEClickHouse database namestrN/Ametrics
CLICKHOUSE_TABLEClickHouse table namestrsolis_s2solar
CLICKHOUSE_QUEUE_LIMITMax number of data waiting to be inserted to ClickHouse (minimum 25)int100025000

targets.json

Used to configure logging stick targets. Example config in targets.example.json

[
    {
        name: Inverter name (string),
        ip: Logging stick IP (string),
        port: Logging stick Modbus TCP port (int, optional, default: "502"),
        mb_slave_id: Inverter Modbus slave ID (int, optional, default: "1"),
        interval: Modbus fetch interval in seconds (int, optional, default: "30")
        timeout: Modbus timeout duration in seconds (int, optional, default: "60"),
    }
]

Tag summary

Content type

Image

Digest

sha256:492da554e

Size

43.3 MB

Last updated

almost 2 years ago

docker pull rafaelwastaken/solis-s2-clickhouse