Results 1 to 9 of 9

Thread: Sequence freezes after running from script

  1. #1
    Join Date
    Dec 2015
    Location
    Canada
    Posts
    96
    Post Thanks / Like

    Default Sequence freezes after running from script

    Okay I have the HC-SR501 PIR Sensor and am trying to connect it to my pi and have it trigger an event. Have Vcc to pin 2, Gnd to pin 6 and the output to BCM 17. I walk in front of the motion sensor and it triggers the script which plays the sequence. I noticed that after the sequence finishes playing, counts down to 00:00, Player Status still says Playing ** sequence name. Should this not be at Idle? After it counts down to 0 then I can not restart the sequence by motion, no matter the time I wait. I think it is cause it thinks it is still playing. If I hit the Stop Now button then motion starts the sequence again. If I play the sequence manually, I play it from the status page, the sequence plays fine and goes back to Idle status after Remaining is at 00:00 so it works like it should.

    40677383_10160781738925542_1695306222607007744_o.jpg

    Here are my config settings.

    GPIO Input Triggers
    40209955_10160757725785542_6254499240936996864_n.jpg

    Events
    40192090_10160757726805542_4619096078258536448_o.jpg

    Script
    40247051_10160757727330542_4427584835149627392_o.jpg

    Playlist
    40322964_10160757728210542_4677981836528320512_o.jpg
    Last edited by Trioxide; 09-10-2018 at 11:04 PM.

  2. #2
    Join Date
    Nov 2011
    Location
    Chicago - Southwest Suburbs
    Posts
    7,467
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    I know very little about how FPP handles GPIO events. However some thoughts come to mind from using GPIO and PIR and other sensors in other projects.

    Iíd suspect that subsequent triggers while the event is still in progress are whatís causing the issue.

    What prevents the PIR from retriggering while the action is executing? How does the FPP handle subsequent rising edges while the event is still executing?
    Does your PIR return to low state immediately after itís triggered or is there some delay? Is the delay adjustable so you can make it coincide with the duration of the event. Or slightly longer.


    Sent from my iPhone using Tapatalk

  3. #3
    Join Date
    Dec 2015
    Location
    Canada
    Posts
    96
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    I have played with the settings on the PIR to no avail. I have made sure the PIR only triggered FPP 1 time and the same results. Therefore I do not think that is the problem. I do know other people have done this so I know it can be done. Something with my script not closing after the sequence is done or something. I have not done this before so just learning.

  4. #4
    Join Date
    Aug 2008
    Location
    Fairfield, Ca
    Posts
    204
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    I would try running 1.x of FPP, there is a note on the 2.0 release notes about plugins and callbacks, it may be your issue:

    "NOTE: Plugin callbacks are not fully working in the new playlist code at release time although fixing this is on the short term ToDo list. If you need plugins w/ callbacks, you will need to stick with v1.x for now."


  5. #5
    Join Date
    Dec 2015
    Location
    Canada
    Posts
    96
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    I am not using a plugin though and I don't know what a callback it.

  6. #6
    Join Date
    Aug 2008
    Location
    Fairfield, Ca
    Posts
    204
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    It's still possible that there is a problem with the code somewhere. Personally, I would test it to rule it out.

  7. #7
    Join Date
    Dec 2017
    Posts
    2
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    Trioxide, any luck getting this to work. I'm considering doing something similar with that exact same PIR, but for a Halloween display next year.

  8. #8
    Join Date
    Dec 2015
    Location
    Canada
    Posts
    96
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    No I haven't looked at it since the discussion above. Been working on getting everything ready for Halloween so haven't had time to work on it.

  9. #9
    Join Date
    Dec 2017
    Posts
    2
    Post Thanks / Like

    Default Re: Sequence freezes after running from script

    I came across a set of instructions wherein the presenter provided a script to capture the existing playlist and playlist item running, stop the running playlist, play a new playlist such as a scare, then play the previous playlist and list item. It works great until I turn on the scheduler to auto start the playlist. It seems the starting logic of the scheduler and the script conflict with each other and that locks up the playlist, preventing anything else from running until I click to stop the playlist immediately. Not sure if this is the same issue you're running into, but I thought I'd share my experience last night.

    https://www.instructables.com/id/Int...ic-Jack-OLant/
    Last edited by CScott; 10-31-2018 at 11:12 PM. Reason: fixed a typo

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •