Projet de remplacement du "RPiPasserelle" d'Otec.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Maxime Alves LIRMM@home b61667080d [read-only][issue #25] supression du changement de /boot en ro (pas besoin) 3 months ago
config [read-only][issue #25] supression du changement de /boot en ro (pas besoin) 3 months ago
db [db] update des valeurs limites des variables comme sur l'image + renommage du script pre-exec 3 months ago
docs [doc] /config/{last_update,mac_address} 7 months ago
logs/bug/30 logs for issue #30 5 months ago
pyheatpump [supervise] supression du except socket.gaierror 3 months ago
staging/dev Merge branch 'master' of 5 months ago
tests [variable_type] update complement function to a simpler version + tests 4 months ago
.gitignore [gitignore] .swp .swo 5 months ago
LICENSE Initial commit 10 months ago [deps] package with setuptools 9 months ago
Pipfile [deps] added pylint 4 months ago
Pipfile.lock Added pipfile for pipenv usage 7 months ago add readme staging directories (dev) 5 months ago
poetry.lock [deps] added netifaces module 9 months ago
pyproject.toml [deps] package with setuptools 9 months ago
pytest.ini pytest.ini - less verbose 7 months ago
setup.cfg [deps] package with setuptools 9 months ago [deps] added HTML template to dependencies 9 months ago
tox.ini [deps] package with setuptools 9 months ago


Projet de remplacement du “RPiPasserelle” d’Otec.


pysqlite3 umodbus starlette uvicorn pytest requests


Initialize a database in the home directory of your system user.

sqlite3 -init ./db/pyheatpump.sql /var/run/pyheatpump/pyheatpump.sqlite3

Create a configuration file in /etc/pyheatpump.ini .

mac_address = 00:00:00:00:00:00
database = /var/run/pyheatpump/pyheatpump.sqlite3

scheme = https
host =
port = 8081
post_path = /Symfony/web/app_dev.php/boardws/insert
get_path = /Symfony/web/app_dev.php/boardws/orders
interval = 10000
heatpump_id = 42

host =
port = 80

Fetch manually to initialize the data.

pyheatpump fetch

Insert the init files into the right locations.

cp -t /etc/init.d conf/pyheatpump
chmod +x /etc/init.d/pyheatpump
rc-update add default pyheatpump
rc-service pyheatpump start
cp ./conf/pyheatpump.systemd.socket /etc/systemd/system/pyheatpump.socket
cp ./conf/pyheatpump.systemd.service /etc/systemd/system/pyheatpump.service
systemctl daemon-reload
systemctl enable pyheatpump
systemctl start pyheatpump

Enable the cron task / systemd timer for the automatic fetch and supervise tasks.

cat conf/pyheatpump.cron >> /etc/crontab
cp ./conf/pyheatpump.systemd.timer /etc/systemd/system/pyheatpump.timer


Depending of which staging environment you attended to use, please check the dedicated directory in staging. You’ll find their a README and an install file that will help you further.