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 !).
Installation
To install the library, simply type:
$ pip3 install python-dds238
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
|
| power_factor
| Returns the power factor (0-1 scalar)
|
| reactive_power
| Return the reactive power in VAr
|
| voltage
| Returns the voltage in Volts
|
| ----------------------------------------------------------------------
|
| change_address(self, address: int, baudrate=9600)
| Change the modbus address and the baudrate of the current device. USE AT YOUR OWN RISK !
Metadata
Release files for python-dds238 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-dds238-0.0.5.tar.gz | 2.8 kB | Without provenance | Details for python-dds238-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_dds238-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for python_dds238-0.0.5-py3-none-any.whl |
Total release size: 6.4 kB
Release files / python-dds238-0.0.5.tar.gz
| Download URL | python-dds238-0.0.5.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b082f6efab3e6d1798519cd72d4177b39452527f9e2f7e6f5bc2758695e2f04b
|
|
BLAKE2b-256 checksum How to use checksums |
c1593ca0f75e422623bc614aa15b470b1245fa9b9d40ead5d9be86e3aac163cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Release files / python_dds238-0.0.5-py3-none-any.whl
| Download URL | python_dds238-0.0.5-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18e80ca6d6764f8a19e548974ed29c8f34b0be131fc866d4b78b21f411de63f8
|
|
BLAKE2b-256 checksum How to use checksums |
3d835338a262eb7b5d4e8d0ad19d6aeb8ab516be425c1a7a26152d49d7e43ea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.5
|
Security for python-dds238 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.