Projet de remplacement du "RPiPasserelle" d'Otec.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Maxime Alves LIRMM@home 407d8b4351 [models] cast is a method again + fix bugs 3 年前
config [config] ttyUSB0 -> rs485 4 年前
db [db] start_address/end_address comme en prod 4 年前
docs [doc] /config/{last_update,mac_address} 4 年前
logs/bug/30 logs for issue #30 4 年前
pyheatpump [models] cast is a method again + fix bugs 3 年前
staging/dev Merge branch 'master' of https://git.yannweb.net/cli/pyHeatpump 4 年前
tests [tests] fix tests for last commit 3 年前
.gitignore [gitignore] .swp .swo 4 年前
LICENSE Initial commit 4 年前
MANIFEST.in [deps] package with setuptools 4 年前
Pipfile [deps] added pylint 3 年前
Pipfile.lock Added pipfile for pipenv usage 4 年前
README.md add readme staging directories (dev) 4 年前
poetry.lock [deps] added netifaces module 4 年前
pyproject.toml [deps] package with setuptools 4 年前
pytest.ini pytest.ini - less verbose 4 年前
setup.cfg [deps] package with setuptools 4 年前
setup.py [deps] added HTML template to dependencies 4 年前
tox.ini [deps] package with setuptools 4 年前

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.