Projet de remplacement du "RPiPasserelle" d'Otec.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Maxime Alves LIRMM@home d2c1e5aeda [config] suppression du runtime directory, utilisation de /var/lib/pyheatpump il y a 3 ans
config [config] suppression du runtime directory, utilisation de /var/lib/pyheatpump il y a 3 ans
db [db] update des valeurs limites des variables comme sur l'image + renommage du script pre-exec il y a 3 ans
docs [doc] /config/{last_update,mac_address} il y a 4 ans
logs/bug/30 logs for issue #30 il y a 4 ans
pyheatpump [isssue #25] add except for socket.gaierror il y a 3 ans
staging/dev Merge branch 'master' of https://git.yannweb.net/cli/pyHeatpump il y a 4 ans
tests [variable_type] update complement function to a simpler version + tests il y a 3 ans
.gitignore [gitignore] .swp .swo il y a 4 ans
LICENSE Initial commit il y a 4 ans
MANIFEST.in [deps] package with setuptools il y a 4 ans
Pipfile [deps] added pylint il y a 3 ans
Pipfile.lock Added pipfile for pipenv usage il y a 4 ans
README.md add readme staging directories (dev) il y a 4 ans
poetry.lock [deps] added netifaces module il y a 4 ans
pyproject.toml [deps] package with setuptools il y a 4 ans
pytest.ini pytest.ini - less verbose il y a 4 ans
setup.cfg [deps] package with setuptools il y a 4 ans
setup.py [deps] added HTML template to dependencies il y a 4 ans
tox.ini [deps] package with setuptools il y a 4 ans

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
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

[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

Environment

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.