Projet de remplacement du "RPiPasserelle" d'Otec.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Maxime Alves LIRMM@home e41361bbf3 [deps] added HTML template to dependencies vor 3 Jahren
db [db] remove non-working trigger to manage it into python code vor 3 Jahren
docs route openapi specs vor 3 Jahren
pyheatpump [cli] remove reload keyword from uvicorn vor 3 Jahren
tests [conf][tests] added mac_address retrieval vor 3 Jahren
.gitignore added db file to gitignore vor 3 Jahren
LICENSE Initial commit vor 3 Jahren
MANIFEST.in [deps] package with setuptools vor 3 Jahren
README.md [doc][typo] post/get paths vor 3 Jahren
poetry.lock [deps] added netifaces module vor 3 Jahren
pyproject.toml [deps] package with setuptools vor 3 Jahren
pytest.ini [tests] logging tests to pytest.log vor 3 Jahren
setup.cfg [deps] package with setuptools vor 3 Jahren
setup.py [deps] added HTML template to dependencies vor 3 Jahren
tox.ini [deps] package with setuptools vor 3 Jahren

README.md

pyHeatpump

Projet de remplacement du “RPiPasserelle” d’Otec.

Dependencies

pysqlite3 umodbus starlette uvicorn pytest requests

Install

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 .

[heatpump]
mac_address = 00:00:00:00:00:00
database = /var/run/pyheatpump/pyheatpump.sqlite3

[supervisor]
scheme = https
host = supervision-test.gteo.fr:8081
post_path = /Symfony/web/app_dev.php/boardws/insert
get_path = /Symfony/web/app_dev.php/boardws/orders
interval = 10000
heatpump_id = 42

[api]
host = 0.0.0.0
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