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
    

Releases

My aim is to keep to semver versioning

The pipeline will push to PyPi so this should be the main way of getting the recent packages. But the pipeline will also create releases in Gitlab for versions that are tagged

Development

My development has taken place using NixOS, I've included the shell.nix for anyone that requires it.

However the build pipeline is performed using the basic python:3.11 image from Gitlab.

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.1.tar.gz (3.2 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.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: modbus_solar-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 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.1.tar.gz
Algorithm Hash digest
SHA256 b8a30b87ef25f35c9e44ddb9e44ba0d6950516551b13a52731c5d8fbdc1d0f5c
MD5 fbe6d0a01bea1da5499b97f5a473b010
BLAKE2b-256 5d4eee67e1919f5a647456bf100f0a4d1c9b3fea77d07de29ab254d96bd6a364

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modbus_solar-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9c00a3ee639fad89ef6c321c985896cc1cdb3aa2979f0518e41d425cf4c5660
MD5 e86cf22141ec437a2ba50524299798c0
BLAKE2b-256 e7e73ef8fdba62ee348c026e43c15c6e409a96691d4d077fbcc4e526c06236e6

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