I want to run a python scrip automatic every 10 minutes. the script is updating a virtual sensor.
When i run the script everything is working fine.
I want to put it in a cron job, and dit the following.
Make the script executable
sudo contab -e
add a line
*/5 * * * * /home/pi/domoticz/scripts/trannergy.py
The job is executed, but it won't update the virtual sensor.
Is there an other way to make this work? without using a cron job?
running python script automaticaly and update virtual sensor
Moderators: leecollings, remb0
-
dutchronnie
- Posts: 46
- Joined: Thursday 15 August 2013 22:01
- Target OS: -
- Domoticz version:
- Contact:
-
dutchronnie
- Posts: 46
- Joined: Thursday 15 August 2013 22:01
- Target OS: -
- Domoticz version:
- Contact:
Re: running python script automaticaly and update virtual sensor
after hours of trial and error, the cron job is working now.
*/5 * * * * python /home/pi/domoticz/scripts/trannergy.py
*/5 * * * * python /home/pi/domoticz/scripts/trannergy.py
Who is online
Users browsing this forum: No registered users and 1 guest