Reads DDS238 meters via modbus
Project description
python-dds238
This library is very useful when reading the chinese DDS238 (and its variants: DDS238-2, ...) power meter.
This library supposes that you're using an USB-to-RS485 dongle. It doesn't work yet for modbus-over-TCP (though if you want to propose an MR, i'd accept it gladly !).
Usage
I'ts very simple:
>>> from dds238 import DDS238
>>> meter = DDS238(modbus_device='/dev/ttyUSB0', meter_id=20)
>>> meter.voltage
215.4
>>> meter.power
1632
>>> meter.export_energy
1288.2
DOC
| current
| Returns the current in Amperes
|
| export_energy
| Returns the exported energy, in kWh
|
| frequency
| Returns the frequency in Herz
|
| import_energy
| Returns the imported energy, in kWh
|
| power
| Returns the power in Watts. Positive is import. Negative power is exported
|
| voltage
| Returns the voltage in Volts
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
python-dds238-0.0.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for python_dds238-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59e5fb7890eeacbef3f8af1a305e838386fd5407df4bb04502c935ca5ec955fa |
|
MD5 | 10c78e79f62ded40e5b50e425d180b6b |
|
BLAKE2b-256 | ecce2e325a6b9253ab81635894d6acd0bb131b522a57f4e72b5c3e4cf45a0936 |