after a long time I came back to this (it has been so long because the script just works and did not need any interaction)
I noticed that the script does not have the x permission set, so running the script as described in https://github.com/ThomDietrich/miflora-mqtt-daemon#execution does work (with python3 in front of it) but the daemon has difficulties to start it
-- Unit miflora.service has begun starting up.
Oct 01 02:53:45 raspberrypi systemd[2910]: miflora.service: Failed at step EXEC spawning /opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py: Permission denied
-- Subject: Process /opt/miflora-mqtt-daemon/miflora-mqtt-daemon.py could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
alternatively I can change the documentation and mention that the execute permission should be set
Went with the explicit call via python3 as permissions like to be messed up over the course of working via git and on different systems :) No harm in merging this though. Thanks
after a long time I came back to this (it has been so long because the script just works and did not need any interaction) I noticed that the script does not have the
x
permission set, so running the script as described in https://github.com/ThomDietrich/miflora-mqtt-daemon#execution does work (withpython3
in front of it) but the daemon has difficulties to start italternatively I can change the documentation and mention that the execute permission should be set