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

Uploaded Python 3

File details

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

File metadata

  • Download URL: modbus_solar-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 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.2.tar.gz
Algorithm Hash digest
SHA256 e74db4ffecd229df74274527f9366c8dc9104ba6f844a8714d12701d2a14b36b
MD5 3c84c44385866e91c62d963becc30de5
BLAKE2b-256 c75d857375b7933853546e14ebf8c30faaf876d7f0df480ba411dba8feb220b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: modbus_solar-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec040fc1d5d7fc7cc823ff4844ded62895234dee3d3f966f94569c890407fdf3
MD5 0ac775d7c1165383339b184cac4da8ec
BLAKE2b-256 2eb54ed842b541c09303ce949c2d8a1f48f9f818f94c3b10778b28ab10f6671d

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