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: 15299
Latest: Psonic
New This Month: 2
New This Week: 1
New Today: 1
Stats
Total Posts: 125120
Total Topics: 15245
Most Online Today: 78
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 5
Guests: 46
Total: 51

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

F16V4 port 5 Lights flicker by Martin Lamers
Today at 10:59:19 AM

Advatek Vortex 48 channel DC controller by CeP
Today at 05:34:34 AM

Upgraded to FPP V6.1.1 - Network Settings do not have "Interface Routing" option by Poporacer
October 01, 2022, 10:24:15 PM

FS Kulp K-8B Controller, Complete by poolprousa
October 01, 2022, 08:31:43 PM

60+ Ray Wu Cables, Pigtails, misc by jnealand
October 01, 2022, 08:57:49 AM

Sequence issues from Rasberry pi by Poporacer
October 01, 2022, 07:49:10 AM

New K4-PB wifi problems by fauxton
September 30, 2022, 07:19:15 PM

Projector video for just one video source by XmasInGalt
September 30, 2022, 03:54:30 PM

Smart receiver 2.01 on F16v3 not sending data by JonD
September 30, 2022, 12:51:45 PM

Micro-SD by JonD
September 30, 2022, 08:58:19 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod