Results 1 to 6 of 6

Thread: FPP Player Playlist Triggering from Another Computer on the same Subnet

  1. #1
    Join Date
    Oct 2013
    Posts
    10
    Post Thanks / Like

    Default FPP Player Playlist Triggering from Another Computer on the same Subnet

    For the past year I have been using xscheduler on a daily basis to control my Landscape Lights. I trigger an xschedule playlist remotely from my Homeseer Automation System computer.

    I found the "xschedule api" was very helpful which allowed for the Homeseer Event to send:

    Execute the command: &hs.GetURL("http://192.168.3.20","/xScheduleCommand?Command=Play specified step in specified playlist looped&Parameters=Landscape Playlists,Nightime",TRUE,80)
    or
    Execute the command: &hs.GetURL("http://192.168.3.20","/xScheduleCommand?Command=Play specified playlist&Parameters=Show 1",TRUE,80)

    But, the constant Windows 10 and Norton 360 Updates have finally pushed me away from xschedule on a Windows Computer due to reliability issues.

    I would like to control my FPP Raspberry Pi 4 Player in a similar manner as I did with xschedule. I have used GPI triggering in the past, but hope there is a better way to Trigger my daily Playlists to run.

    I scanned the inet and looked in the manual but did not find a way to do it.

    Is this way of Remote Playlist Control of FPP Player Playlists over a subnet even possible?

    Thanks for the help,

    Doug

  2. #2
    Join Date
    Dec 2012
    Location
    Framingham, MA
    Posts
    544
    Post Thanks / Like

    Default Re: FPP Player Playlist Triggering from Another Computer on the same Subnet

    FPP has a massive REST and MQTT API that can be used. If you got to http://fpp.ip.address../apihelp.php you can get a list.
    Dan Kulp

  3. #3
    Join Date
    Oct 2013
    Posts
    10
    Post Thanks / Like

    Default Re: FPP Player Playlist Triggering from Another Computer on the same Subnet

    Thanks Dan.

    I have spent some time over the last couple of days reviewing and testing.

    I take the Json commands (listed in the apihelp.php) and use an on line web site to convert them to a string.

    I then POST (or I think I am Posting) to my FPP URL Address. Nothing seems to work.

    Stop Now:
    https://192.168.3.78/api/"{"command":"Stop Now","args":[]}"


    Start Playlist:
    http://192.168.3.78/api/"{"command":"Start Playlist","args":["10 second test.fseq","false","false"]}"

    Start Playlist at Item - Repeated:
    http://192.168.3.78/api/"{"command":"Start Playlist At Item","args":["Landscape-Nightime.fseq","0","true","false"]}"

    Any and all help would be greatly appreciated!!

    Doug

  4. #4
    Join Date
    Dec 2012
    Location
    Framingham, MA
    Posts
    544
    Post Thanks / Like

    Default Re: FPP Player Playlist Triggering from Another Computer on the same Subnet

    If you are actually POSTing the JSON, then you would need to POST to the URL:

    http://192.168.3.78/api/command

    with the payload being the JSON. (the JSON's look correct).

    The other option is to invoke them via GET, but you will likely need to escape the spaces. All the commands can be invoked via something similar to:

    Code:
    http://192.168.3.78/api/command/Stop%20Now
    
    http://192.168.3.78/api/command/Start%20Playlist/10%20second%20test.fseq/false/false
    
    http://192.168.3.78/api/command/Start%20Playlist%20At%20Item/Landscape-Nightime.fseq/0/true/false
    Last edited by dkulp; 06-22-2021 at 01:56 PM.
    Dan Kulp

  5. #5
    Join Date
    Oct 2013
    Posts
    10
    Post Thanks / Like

    Default Re: FPP Player Playlist Triggering from Another Computer on the same Subnet

    Thank you so very much!

    I am up and running and triggering Playlists from my Homeseer HS4 Automation System.


    Is it possible to play (and loop) an fseq file without creating a Playlist first?

    Or.. do I need to Create a Playlist (Landscape Playlists) with Multiple Items (i.e. Landscape Day, Landscape Night, Christmas Day ect.) and use "Start Playlist At Item" to trigger and loop the 4th item?

    If so, is it:

    http://192.168.3.78/api/command/Star...s/4/true/false

    ...for the 4th item in the Playlist?

    All the best,

    Doug Hurrell

  6. #6
    Join Date
    Oct 2013
    Posts
    10
    Post Thanks / Like

    Default Re: FPP Player Playlist Triggering from Another Computer on the same Subnet-RESOLVED

    RESOLVED - Thank You Dan!

    Here is a Summary of Commands to Use with the FPP Show Controller (I am using FPP V5.0-alpha1-Pi)

    Run a Playlist ONCE
    http://192.168.3.90/api/command/Start%20Playlist/Show 1/false/false

    Run a Playlist REPEATED
    http://192.168.3.90/api/command/Star...list/Halloween Show/true/false

    Run fseq ONCE
    http://192.168.3.90/api/command/Star...eq/false/false
    &hs.URLAction("http://192.168.3.90/api/command/Start%20Playlist/Landscape-Dark.fseq/false/false", "GET", "", "")

    Run fseq REPEATED
    http://192.168.3.90/api/command/Star...q/0/true/false

    Show Controller STOP
    http://192.168.3.90/api/command/Stop%20Now

    Show Controller ALL LIGHTS OFF
    http://192.168.3.90/api/command/All%20Lights%20Off


    Homeseer Automation:

    If you are Remotely Controlling your FPP from a Homeseer HS4 Automation System.

    1. Create a New Event Homeseer Event

    2. Use Action "Run a Script or Script Command"

    3.Check the "Immediate Command" Checkbox

    4. Under the COMMAND section use the following format:

    &hs.URLAction("http://192.168.3.90/api/command/Start%20Playlist/Show 1/false/false", "GET", "", "")


    Hope this saves someone a lot of time!

    All the best,

    Doug

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
  •