library for making modbus connections to NRG Systems devices.
Project description
'''nrgmodbus''' is a Python package for making modbus connections to NRG devices.
Installation:
# from the directory containing this README file:
pip install nrgmodbus
Examples:
Single polling:
In [1]: import nrgmodbus
In [2]: poller = nrgmodbus.ipackaccess(ip='192.168.178.168')
In [3]: poller.connect()
Connecting to 192.168.178.168... [OK]
In [4]: poller.return_diag_readings()
In [5]: poller.hr.diag['12v_bat']['value']
Out[5]: 14.09000015258789
In [6]: poller.hr.diag['temp']['value']
Out[6]: 22.739999771118164
In [7]: poller.return_channel_data(1)
In [8]: poller.hr.data_ch[1]
Out[8]: {'avg': {'reg': [2506, 2], 'value': 6.4},
'sd': {'reg': [2508, 2], 'value': 2.1},
'max': {'reg': [2510, 2], 'value': 9.1},
'min': {'reg': [2512, 2], 'value': 4.6},
'gust': {'reg': [2514, 2], 'value': 9.0},
'samp': {'reg': [1506, 2], 'value': 6.2}}
spidar
'note': as of 2020-02-07, the spidar package was added to nrgmodbus. however, functionality is not yet proven. check back for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for nrgmodbus-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51082b15e8a8bff0d106f9ca5d0233632a7ee44551cdbf48e718d860a671b67e |
|
MD5 | 9ed0b30e2c9ddfe602dd1fb6dbd75f53 |
|
BLAKE2b-256 | 952c795127c4c0eb767a1f0e953d5b31ae9d9bd1aabe0d9262d768906581742b |