Skip to main content

Driver for Eastron DCM230 DC energy Meters using Modbus RTU

Project description

OpenSSF Scorecard

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


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

If you're not sure about the file name format, learn more about wheel file names.

python_dcm230-0.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for python_dcm230-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2692377783e3263982ec94cb97851792ba2bb294ed8d141091a5644776ff71
MD5 cbc66f9f0089ad7d86a3a6e1d66879f6
BLAKE2b-256 061673d4192d2301ebbf90f4bf2b8fd87fab4c02801dc2f54cb48840e2b3fcdd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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