Docker container for pyHPSU with MQTT daemon, available on Docker Hub at https://hub.docker.com/r/nerdix/pyhpsu_mqtt
$ sudo docker volume create pyHPSU
$ docker run \
--name pyHPSU \
-v pyHPSU/:/etc/pyHPSU \
-d \
-it \
--network host \
--restart=on-failure:5 \
nerdix/pyhpsu_mqtt:arm64v8
#OR nerdix/pyhpsu_mqtt:arm32v7
#OR nerdix/pyhpsu_mqtt:amd64
Working adapter: https://www.waveshare.com/rs485-can-hat.htm
adjust /boot/config.txt:
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
# Might not be needed any longer
# dtoverlay=spi-bcm2835-overlay