Driver for Eastron DCM230 DC energy Meters using Modbus RTU
Project description
python-dcm230
python-dcm230 provides a simple, Pythonic interface for reading and writing data from Eastron DCM230 DC meters over Modbus RTU. It builds on top of pymodbus.
Example usage:
from dcm230 import Dcm230
from pymodbus.client import ModbusSerialClient
# Configure the Modbus client
client = ModbusSerialClient(
port="COM3", # or "/dev/ttyUSB0" on Linux
baudrate=9600,
parity="E",
stopbits=1,
bytesize=8,
timeout=1,
)
# Device Modbus address
device_address = 1
# Initialize the Dcm230 driver
meter = Dcm230(device_address=device_address, client=client)
# Read voltage
voltage = meter.V
print(f"Voltage: {voltage} V")
Report issues
If you run into problems, you can ask for help in our issue tracker on GitHub.
Contributing
See CONTRIBUTING.MD and DEVELOPMENT.MD.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_dcm230-0.0.1-py3-none-any.whl.
File metadata
- Download URL: python_dcm230-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2692377783e3263982ec94cb97851792ba2bb294ed8d141091a5644776ff71
|
|
| MD5 |
cbc66f9f0089ad7d86a3a6e1d66879f6
|
|
| BLAKE2b-256 |
061673d4192d2301ebbf90f4bf2b8fd87fab4c02801dc2f54cb48840e2b3fcdd
|
Provenance
The following attestation bundles were made for python_dcm230-0.0.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on id8-engineering/python-dcm230
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_dcm230-0.0.1-py3-none-any.whl -
Subject digest:
bd2692377783e3263982ec94cb97851792ba2bb294ed8d141091a5644776ff71 - Sigstore transparency entry: 730989015
- Sigstore integration time:
-
Permalink:
id8-engineering/python-dcm230@adb0aa8eab29c7b98dd6119d10d46f4afbfee7b2 -
Branch / Tag:
refs/tags/0.0.1 - Owner: https://github.com/id8-engineering
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@adb0aa8eab29c7b98dd6119d10d46f4afbfee7b2 -
Trigger Event:
push
-
Statement type: