Skip to content

cedricboudinet/python-cinergia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages