HOW TO MAKE AUTOMATION BASE ON TIME

1 year 10 months ago #3456 by Nanang85
Hi Friend,
Please advice to make an automation base on time ( clock ). I use raspberry pi 2 as server & arduino + esp12f as client. I want to turn on / off the relay base on time, such as @ 8.30 relay off & @ 17:30 relay on every day. Can i use cron?
I follow the tutorial scene control to turn off all relay. But i cannt use it or i dont know its work. Here is my code :

turn off
cron name : 30 8 * * *

code [ Click to expand ]
Attachments:

Please Log in or Create an account to join the conversation.

1 year 10 months ago #3457 by EasyIoT

Nanang85 wrote: Hi Friend,
Please advice to make an automation base on time ( clock ). I use raspberry pi 2 as server & arduino + esp12f as client. I want to turn on / off the relay base on time, such as @ 8.30 relay off & @ 17:30 relay on every day. Can i use cron?
I follow the tutorial scene control to turn off all relay. But i cannt use it or i dont know its work. Here is my code :

turn off
cron name : 30 8 * * *

code [ Click to expand ]


Hi, in Ru function use DriverHelper to switch ON and OFF:
iot-playground.com/blog/2-uncategorised/...-automation-part-iii

Setup function is in this case empty.

Please Log in or Create an account to join the conversation.

1 year 10 months ago #3459 by Nanang85

EasyIoT wrote: Hi, in Ru function use DriverHelper to switch ON and OFF:
iot-playground.com/blog/2-uncategorised/...-automation-part-iii

Setup function is in this case empty.

So like this?
cron name : 30 8 * * *
code [ Click to expand ]


So everyday at 8.30, N0S1 will "ON"?

Please Log in or Create an account to join the conversation.

Time to create page: 0.190 seconds