Raspberry pi 2 tellstick scheduling in crontab

Moderator: Telldus

Post Reply
madman100
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Raspberry pi 2 tellstick scheduling in crontab

Post 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:
madman100
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Raspberry pi 2 tellstick scheduling in crontab

Post 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:
patrikg
Posts: 122
Joined: Fri Mar 17, 2023 9:45 am
Location: Stockholm/Sweden

Re: Raspberry pi 2 tellstick scheduling in crontab

Post by patrikg »

Have you tried to set the correct timezone ??

Maybe you : sudo raspi-config

Or:

sudo dpkg-reconfigure tzdata
madman100
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Raspberry pi 2 tellstick scheduling in crontab

Post 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:
Post Reply