diff --git a/comms/Makefile b/comms/Makefile --- a/comms/Makefile +++ b/comms/Makefile @@ -148,6 +148,7 @@ SUBDIR += py-pyocd-pemicro SUBDIR += py-pyserial SUBDIR += py-pyserial-asyncio + SUBDIR += py-sdm_modbus SUBDIR += py-spsdk SUBDIR += py-streamdeck SUBDIR += py-xmodem diff --git a/comms/py-sdm_modbus/Makefile b/comms/py-sdm_modbus/Makefile new file mode 100644 --- /dev/null +++ b/comms/py-sdm_modbus/Makefile @@ -0,0 +1,24 @@ +PORTNAME= sdm_modbus +DISTVERSION= 0.6.1 +CATEGORIES= comms python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kiwi@FreeBSD.org +COMMENT= Library for Eastron SDM single or three phase kWh meters +WWW= https://github.com/nmakel/sdm_modbus + +LICENSE= MIT + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pymodbus>=2.0:comms/py-pymodbus@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist + +DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} + +NO_ARCH= yes + +PORTDOCS= * + +.include diff --git a/comms/py-sdm_modbus/distinfo b/comms/py-sdm_modbus/distinfo new file mode 100644 --- /dev/null +++ b/comms/py-sdm_modbus/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1666525980 +SHA256 (sdm_modbus-0.6.1.tar.gz) = 3c3a36100ab54df8998ec788cc69904914137ba443094e827b219ba7ab0ea4dd +SIZE (sdm_modbus-0.6.1.tar.gz) = 13928 diff --git a/comms/py-sdm_modbus/pkg-descr b/comms/py-sdm_modbus/pkg-descr new file mode 100644 --- /dev/null +++ b/comms/py-sdm_modbus/pkg-descr @@ -0,0 +1,2 @@ +Library that collects data from Eastron SDM single and three phase kWh +meters over Modbus RTU or Modbus TCP.