Add wheel dependency, fixed paho-mqtt name, add supervisor example

This commit is contained in:
Gerrit Beine 2020-12-20 12:32:41 +01:00
parent ad7d112677
commit f486503b1e
3 changed files with 21 additions and 1 deletions

13
fronius2mqtt.conf.example Normal file
View file

@ -0,0 +1,13 @@
[program:fronius2mqtt]
command=/opt/service/fronius2mqtt/run
process_name=%(program_name)s
directory=/opt/service/fronius2mqtt
umask=022
autostart=true
redirect_stderr=true
stdout_logfile=/var/log/fronius2mqtt/main.log
stdout_logfile_maxbytes=2MB
stdout_logfile_backups=1
stdout_capture_maxbytes=0
stdout_events_enabled=false
environment=LOGDIR=/var/log/fronius2mqtt

View file

@ -5,6 +5,6 @@ python3 -m venv .
git clone https://github.com/gbeine/pyfronius.git
. bin/activate
pip install paho.mqtt pyyaml
pip install wheel paho-mqtt pyyaml
pip install -e pyfronius
pip install -e fronius2mqtt

7
run Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
touch ${LOGDIR}/.tmpfs
. bin/activate
exec bin/fronius2mqtt