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: 15698
Latest: kronescharles
New This Month: 16
New This Week: 2
New Today: 0
Stats
Total Posts: 128629
Total Topics: 15828
Most Online Today: 48
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 16
Total: 18

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

Libre SBC with oled by mel4853
March 24, 2023, 04:04:06 PM

K8-Pi - Random Pixels on by cybercop23
March 24, 2023, 10:44:49 AM

Limitations on Video file size? by Jayl
March 23, 2023, 11:06:14 AM

FPP 7 Kubernetes Error by Jlwright325
March 22, 2023, 11:11:59 AM

FPP Install on Raspberry Pi Zero W by k6ccc
March 21, 2023, 05:53:50 PM

FPP install script on Ubuntu, no video by AlexanderMedia
March 21, 2023, 09:37:23 AM

DMX to pneumatic solenoid by JerryPlak
March 20, 2023, 01:03:53 PM

F16v3 External Power Connector by darylc
March 16, 2023, 05:25:46 PM

FPP on PC HDMI Output by AlexanderMedia
March 15, 2023, 01:17:55 PM

Orange Pi One and external DS3231 RTC on rtc1 by Arti G
March 13, 2023, 09:29:28 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod