Page 1 of 1

Raspberry pi 2 tellstick scheduling in crontab

Posted: Fri Mar 17, 2023 9:45 am
by madman100
Hi All,

Has any one manage to schedule tellstick in crontab this is my command
this one did not start or stop
crontab -e

16 0 * * * tdtool -n 1
18 0 * * * tdtool -f 1

this one did not work

20 0 * * * tdtool --on 1
25 0 * * * tdtool --off 1

Please can some one tell me where an I going wrong

Best Regards
Madman100 :banghead:

Re: Raspberry pi 2 tellstick scheduling in crontab

Posted: Fri Mar 17, 2023 9:45 am
by madman100
Hi Guys

It now working from crontab but is a hour out for some reason I have schedule it for 20:00pm but it turns the light on at 21:00pm.

command

## Köket
# Power on 20:20
20 20 * * * /usr/local/bin/tdtool --on 1 > /dev/null>&1
# Power off 20:00
00 20 * * * /usr/local/bin/tdtool --off 1 > /dev/null>&1

Regards
madman100 :clap:

Re: Raspberry pi 2 tellstick scheduling in crontab

Posted: Fri Mar 17, 2023 9:45 am
by patrikg
Have you tried to set the correct timezone ??

Maybe you : sudo raspi-config

Or:

sudo dpkg-reconfigure tzdata

Re: Raspberry pi 2 tellstick scheduling in crontab

Posted: Fri Mar 17, 2023 9:45 am
by madman100
Hi patrikg,

Thanks for replying the problem is sorted once I did raspi-config and went in to the time zone I notice that I was running on the wrong time zone.

Thanks
Madman100
:wave: