News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 15733
Latest: aquila2heman
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 129006
Total Topics: 15889
Most Online Today: 125
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 116
Total: 117

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

Raspberry PI 4 b fan by JonB256
June 07, 2023, 09:30:09 AM

Advatek Vortex 48 channel DC controller by k6ccc
June 06, 2023, 09:31:41 AM

RS485 CAN HAT for DMX by MikeKrebs
June 05, 2023, 09:18:04 PM

colorlight 5a-75b not working with raspberry pi4B fpp by Kensington Graves
June 05, 2023, 10:09:36 AM

Multi Channel Audio by dkulp
June 05, 2023, 09:30:24 AM

Wifi help by dkulp
June 04, 2023, 12:24:56 PM

MMAL error 2 "ENOSPC" by MikeKrebs
June 03, 2023, 09:34:36 PM

Dmx by MikeKrebs
June 03, 2023, 08:53:35 PM

F48V4-NS at 40 fps using all 48 pixel output ports? by MikeKrebs
June 02, 2023, 09:36:11 PM

EEEPROM Files by shanebou24
June 01, 2023, 01:27:06 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod