Hi all,
I have one raspberry pi running with node-red installed on - everthing is fine.
In parallel there is a mosquitto mqtt broker running - minor issues, but basically fine
Next I would like to automatically run a Python Script that reads data from Powermeter via serial bus, converting the data into MQTT packages, forwarding them to NodeRed.
Whenever I start the script manually, it works fine
When I start the script as a service - following this how-to,
Now that we have our service we need to activate it:
sudo chmod 644 /lib/systemd/system/hello.service
chmod +x /home/pi/hello_world.py
sudo systemctl daemon-reload
sudo systemctl enable hello.service
sudo systemctl start hello.service
it does not start and a status query gives the following error message
If I manually start the service with
sudo systemctl start stromzaehler.service
it again works fine.
Does it make sense to wait for a certain time after a raspi restart to run this script ?
Or is there another error ?