Is there a way to trigger GPIO event based on time of day or possibly every few days?

31 views
Skip to first unread message

Brian Acken

unread,
Feb 28, 2017, 12:15:09 PM2/28/17
to Pi4J
I am attempting to use Pi4J rather than Python for my project in which I must trigger several GPIO pins at different times over the course of several days.  Is this possible?

Robert Savage

unread,
Feb 28, 2017, 12:22:28 PM2/28/17
to Pi4J
Sure.

Here is an example project where I used a sunrise/sunset schedule to turn on and off a GPIO pin. 


You would need to include a scheduler library (like Quartz) or write your own code to manage the schedule.  

Thanks, Robert

Brian Acken

unread,
Feb 28, 2017, 12:25:32 PM2/28/17
to Pi4J
Thank you! I'll take a look at this
Reply all
Reply to author
Forward
0 new messages