Python script to connect to CUNX and send data to wmbusmeters
| ref | ||
| cunx2wmbus.py | ||
| Dockerfile | ||
| Makefile | ||
| README.md | ||
About
Little python script / container to connect to a busware CUNX and send the received packets to wmbusmeters.
Entry in wmbusmeters.conf to receive the packets:
device=cul:CMD(nc -l -k -u 7001)
Container
The following variables are recognized:
| Variable | Default |
|---|---|
| CUNX_HOST | cunx.home.internal |
| CUNX_PORT | 2323 |
| WMBUS_HOST | 127.0.0.1 |
| WMBUS_PORT | 7001 |
TODO
At the moment, you need to set the CUNX to receive wmbus telgrams manually:
brs
X21
See also command reference of culfw
CUNX firmware
Firmware for the cunx can be found at https://github.com/tostmann/culfw. You need to use the culfw-v2.x branch, and probably raise the TTY_BUFSIZE in board.h to 384 to be able to receive long telegrams.
My patches are available at https://git.sig11.de/elratt0r/culfw.