News:

Server migration complete, Welcome to version 2.1.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16349
Latest: bweber
New This Month: 0
New This Week: 6
New Today: 0
Stats
Total Posts: 131005
Total Topics: 16215
Most Online Today: 74
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 5
Guests: 47
Total: 52

FPP Ignore GPIO triggers outside show hours

Started by robbiet, September 27, 2023, 09:29:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

robbiet

Hi. Does anyone know how to disable GPIO triggers outside of scheduled show hours?  My Pi stays on 24/7, so need a way to disable triggers during the day. These are motion sensors so I've thought about putting them on a relay to power off during the day. Is there a way to just configure in FPP?


Sent from my iPhone using Tapatalk

JonD

#1
In the past I have used two GPIO triggers.  A primary trigger that is turned on/off during show hours and a secondary trigger for the play button.  When the primary trigger is enabled the secondary trigger works.  Out of schedule the primary trigger is disabled which prevents the secondary trigger from working.  I have seen someone ask this question before and it seems like someone had a better response, but not finding it now.  If someone else doesn't answer you might search for it in the archives.

JonD

#2
I found the topic I mentioned above
https://falconchristmas.com/forum/index.php?topic=16036.15

Quote from: CaptainMurdoch on January 03, 2023, 01:47:05 PMIf you are still wanting to enable/disable the gpio input via the scheduler, you can try running a script that calls the 'fpp' command to switch the gpio pin from input to output.  If it is set to output, then any button presses should be ignored until you run the fpp helper again to set it back to an input.
/opt/fpp/src/fpp -G GPIO_NUMBER Output
/opt/fpp/src/fpp -G GPIO_NUMBER Input
/opt/fpp/src/fpp -G 17 Output
/opt/fpp/src/fpp -G 17 Input

The case is sensitive on the Input/Output keywords.  The GPIO_NUMBER is the number on the FPP GPIO Input config page.

robbiet

Great. I will give this a try. Thanks for digging!


Sent from my iPhone using Tapatalk

Support FPP

+- Recent Topics

Strange problem with model testing in fpp by mlevings
Today at 09:12:24 AM

Proper config in Xlights for FPP with eth and wifi by JonD
Today at 09:02:23 AM

FPP Freeze Monitor by robbiet
Today at 08:53:11 AM

F16v3 not in sync with 2 Kulp K8s by marci
Today at 07:15:00 AM

Visualizer issues by Poporacer
Today at 06:10:41 AM

Anyone else having Remote Falcon Issues? by JonD
December 01, 2023, 07:08:36 PM

FPP 7.3.5 Master and Remote Video Issue by TBrugger
December 01, 2023, 05:58:27 PM

Stable version of FPP by JonD
December 01, 2023, 05:39:43 PM

v1.03 Smart Receiver parts by tbone321
November 30, 2023, 01:58:02 PM

AC lights on arches not working by jonmtme
November 30, 2023, 01:34:45 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod