简体   繁体   中英

How can I make a cron job that would only execute if my gpio pin is HIGH?

I'm currently working on SiriProxy with my raspberry Pi, and I'm making a scheduled lighting system to siri so that I can give a command like this "Siri turn on my Bedroom light at 6pm". I dont know how to use cronjob as my scheduler.

If it's a one time job, you need at instead of cron . See linux at man page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM