running python script automaticaly and update virtual sensor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
dutchronnie
Posts: 46
Joined: Thursday 15 August 2013 22:01
Target OS: -
Domoticz version:
Contact:

running python script automaticaly and update virtual sensor

Post by dutchronnie »

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?
dutchronnie
Posts: 46
Joined: Thursday 15 August 2013 22:01
Target OS: -
Domoticz version:
Contact:

Re: running python script automaticaly and update virtual sensor

Post by dutchronnie »

after hours of trial and error, the cron job is working now.

*/5 * * * * python /home/pi/domoticz/scripts/trannergy.py
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest