News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16520
Latest: tanyadai
New This Month: 8
New This Week: 8
New Today: 2
Stats
Total Posts: 133087
Total Topics: 16541
Most Online Today: 106
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 49
Total: 50

Controlling FPP via web requests / CURL

Started by Sonny_Jim, May 28, 2019, 05:35:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sonny_Jim

Is there any way I can trigger fpp to start playing a sequence by using (for example) CURL?  I see there is some talk of JSON endpoints but no documentation that I could find.


Thanks

k6ccc

Using LOR (mostly SuperStar) for all sequencing - using FPP only to drive P5 and P10 panels.
My show website:  http://newburghlights.org

Jim

CaptainMurdoch

If you want basic control via CURL, check out the example scripts in the FPP Script Repository under the Content Setup menu section.  There are lots of examples of starting/stopping playlists and effects and triggering events.
-
Chris


CaptainMurdoch

Quote from: Sonny_Jim on May 28, 2019, 06:41:57 PM
I guess you mean here:

https://github.com/FalconChristmas/fpp-scripts/blob/master/RemoteControl/Remote-StartPlaylist.sh

Yes, that's one example.  You can preview all those scripts from the FPP UI in the "Script Repository Browser" page.  If desired, you can then install the scripts and edit them using the FPP File Manager UI.
-
Chris

Sonny_Jim


Quote[size=0px]If desired, you can then install the scripts[/size]
I think you misunderstood my question, I'd like to be able to control playlist start/stop via an 3rd party application (in this case, ifttt.com), rather than using an existing fppd to trigger another one.  So there's no need to install the script, I'm just interested on how the triggering works


In any case, I got it working without having to install the scripts and can use my Google Home to turn my lights on and off.  The web request seems to work without any authentication, which could be a security issue if anyone should decide to expose their fpp to the internet.

dkulp

If using some sort of home automation, you might be better off using the MQTT commands.   


The UI does have a password thing, but I'm pretty sure it's completely broken and a bunch of things will stop working if you try and set one.   I've debated just removing it. 
Daniel Kulp - https://kulplights.com

Sonny_Jim

Quote from: dkulp on May 29, 2019, 05:54:18 AM
The UI does have a password thing, but I'm pretty sure it's completely broken and a bunch of things will stop working if you try and set one.   I've debated just removing it.


Yeah I've just tried it with a UI password set and it correctly asks for authentification before running any of the fppxml.php stuff, which is good.


Quote[size=0px]If using some sort of home automation, you might be better off using the MQTT commands. [/size]
[size=0px]Is there any documentation for that?  Or is a case of just reading the source?[/size]

[size=0px]p.s How come I still need to type in CAPTCHAs each time I post a message?[/size]

dkulp

Quote from: Sonny_Jim on May 29, 2019, 06:54:35 AM
Quote from: dkulp on May 29, 2019, 05:54:18 AM
The UI does have a password thing, but I'm pretty sure it's completely broken and a bunch of things will stop working if you try and set one.   I've debated just removing it.
Yeah I've just tried it with a UI password set and it correctly asks for authentification before running any of the fppxml.php stuff, which is good.

Yea.. but there are bunch of places that need to call it that won't specify the password.   The OLED's won't display correctly, FPP connect won't work, I'm pretty sure it wipes out the settings that allow configuring the large tables (output tables), etc... 

[/size]
Quote
QuoteIf using some sort of home automation, you might be better off using the MQTT commands.
Is there any documentation for that?  Or is a case of just reading the source?
p.s How come I still need to type in CAPTCHAs each time I post a message?
If you to the Settings ->Advanced Settings, it lists the events it responds to.   Not a lot of details, but very basic info.   Source is good, and patches to add even more is even better.  :)
Daniel Kulp - https://kulplights.com

jnealand

capchas go away after the 4th or 5th post.
Jim Nealand
Kennesaw, GA all Falcon controllers, all 12v Master Remote Multisync with Pi and BBB P10 and P5

Support FPP

+- Recent Topics

LED Panel issue after upgrade to v8 by k6ccc
September 06, 2024, 05:54:33 PM

Leave eth0 Gateway blank by colonelcline
September 06, 2024, 09:19:53 AM

FPP After Hours Music Plugin has been updated by ckuhner
September 06, 2024, 07:58:54 AM

HELP - Panels Blown or PocketScroller messed up by DaSarge
September 06, 2024, 07:38:55 AM

PiCap-V2 String port webpage display issue by JonD
September 06, 2024, 06:00:13 AM

Recent update broke ArtNet Advanced Plugin on RasPi only by k6ccc
September 05, 2024, 04:28:51 PM

REST API: Start playlist and set repeat flag to true by Pweazle
September 05, 2024, 02:46:33 AM

Overlaying 2 or 3 videos in falcon player by darylc
September 05, 2024, 01:05:52 AM

Control lights directly from the GPIO of a PI by tbone321
September 04, 2024, 12:40:13 AM

FPP 8.0 Released! by dkulp
September 03, 2024, 07:05:20 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod