News:

LATEST RELEASE:  FPP 7.4 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/7.4

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16351
Latest: jonathanpat
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 131334
Total Topics: 16265
Most Online Today: 132
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 3
Guests: 57
Total: 60

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

New Pixel Installation - Problems by clampman
Today at 08:15:52 AM

New Pi HAT board and software by JonB256
Today at 07:45:02 AM

error message in 7.4 on video upload by SCUBA
Today at 07:10:40 AM

Baffling RGB Flood issue by dreiman
Today at 06:50:28 AM

Video Issues on FPP Virtual Matrix by JonD
Today at 06:21:40 AM

FPPD stopped by JonD
Today at 06:08:07 AM

uploading xlights fseq to FPP by dkulp
Today at 04:06:21 AM

Turn on all GPIOs by tbone321
Today at 01:39:09 AM

Can you have 2 FPP players on the same network by cscool36
Today at 12:12:41 AM

Intermittent fpp hangs (7.2.x, 7.3.5) by jtrpop
December 10, 2023, 11:18:12 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod