Skip to main content

A small package to pull stats from a Renogy Solar Charge Controller

Project description

Modbus Solar

pypi python built with nix

Intro

This project is to pull stats out of a Renogy DCC50S solar charge controller.

The connection will be made via Modbus/RS485.

The end state will be to output stats in json format ready to be ingested into something like an InfluxDb instance or to publish to a MQTT Topic.

Pre-Reqs

You require a Modbus/RS485 connector, most probably will be a USB varient. Most applications will be using a small IoT device or Raspberry Pi to serve the USB device and then connect back to a logging system of some sort.

The Modbus parameters are hard coded but variabalised for the device ID and the salve address which could change.

Using

To install

pip install modbus-solar

To Use

  1. Python

    from modbus_solar import get_all
    
    stats = get_all()
    print(stats)
    
  2. bash

    modbus-solar-get-all
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

modbus_solar-1.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

modbus_solar-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file modbus_solar-1.0.0.tar.gz.

File metadata

  • Download URL: modbus_solar-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for modbus_solar-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5224eb2cd74938a145b5a501d7d192d0a1296cb53154995bcd922f10d3cfaeff
MD5 d6dce1ef85df3fd0cf6d47c980b82348
BLAKE2b-256 5bc608d26ea34bb8508f8813cc37a2080c1932871900ac1891c6a7e17c5c1e00

See more details on using hashes here.

File details

Details for the file modbus_solar-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: modbus_solar-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for modbus_solar-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6343fddc46454781ee6f69e2a747ee7803a22ea6716a35e4dc11fc96ff383e19
MD5 2feea7308cf89299b9e7cce8dc651281
BLAKE2b-256 7b1b1740c252d0e5d71f8f42eab0f34ff1966e58f1cbbb9e42f69a1d4dd67923

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page