Skip to main content

library for making modbus connections to NRG Systems devices.

Project description

NRGPy nrgmodbus

nrgmodbus is a Python package for making modbus connections to NRG devices.



  • Logger FW version 3.2.3 / iPackACCESS FW version 2.2.0 (or higher)


pip install nrgmodbus



In [1]: from nrgmodbus.ipackaccess import ipackaccess

In [2]: poller = ipackaccess(ip='')

In [3]: poller.connect()
Connecting to                [OK]

In [4]: poller.return_diag_readings()

In [5]:['12v_bat']['value']
Out[5]: 14.09000015258789

In [6]:['temp']['value']
Out[6]: 22.739999771118164

In [7]: poller.return_channel_data(1)

In [8]:[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}}


In [1]: from nrgmodbus.spidar import spidar_v1

In [2]: poller = spidar_v1(ip="", connect=True)
Connecting to                [OK]

In [3]: poller.return_rt_data_readings()

In [4]:
Out[4]: ...

In [5]:
Out[5]: ...

Project details

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

nrgmodbus-0.3.1-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page