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 acecf97582 [heatpump] add argument to filter by variable type , (debug) only send analog variables to servers преди 4 години
config [system] ajout rules udev (closes #26) преди 4 години
db [db] remove non-working trigger to manage it into python code преди 4 години
docs [doc] /config/{last_update,mac_address} преди 4 години
pyheatpump [heatpump] add argument to filter by variable type , (debug) only send analog variables to servers преди 4 години
staging/dev INSTALL -> INSTALL.md преди 4 години
tests closes #21 - error in the select fields преди 4 години
.gitignore added db file to gitignore преди 4 години
LICENSE Initial commit преди 4 години
MANIFEST.in [deps] package with setuptools преди 4 години
Pipfile Added pipfile for pipenv usage преди 4 години
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.