cinergia

Library for communication with cinergia electronic loads


License
LGPL-3.0
Install
pip install cinergia==1.0.1

Documentation

Python library for cinergia electronic loads control

This library enables to monitor and control cinergia electronic loads.

The library has been tested with python 2.7, 3.5 and 3.6.

Requirements

You just need to install pymodbus.

Usage

First import the module and declare a client to connect to the load:

import cinergia.client
cinergiaClient = cinergia.client.CinergiaClient('xxx.xxx.xxx.xxx')
cinergiaClient.connect()

Then you can read some registers (you have to know the registers table):

print("Errors:", cinergiaClient.read_uint32(168))
print("Input temperature:",cinergiaClient.read_IQ21(158))

Finally, close the connection:

cinergiaClient.disconnect()

Install

pip install .

Coverage

coverage run setup.py test
coverage report -m

Work in progress

  • Include the modbus tables in the module so that to access registers via keywords