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: 15473
Latest: vb
New This Month: 95
New This Week: 10
New Today: 9
Stats
Total Posts: 126841
Total Topics: 15549
Most Online Today: 67
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 4
Guests: 53
Total: 57

Plugin and FPP Developers - What are your development setup recommendations?

Started by epal, April 09, 2021, 02:27:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

epal

Hey, I'd like to start creating a plugin.  For you developers out there, are you developing locally or directly on a running FPP?  I'd like to be able to do it locally, but I'm guessing that makes it much harder to test out.  I've pulled down some plugin code and I realize it can be reliant on the fpp directory structure.  I saw a few things about plugin templates on the wiki, but they looked like they may be out of date.  I'd be happy to update them once I get up and running.  Any suggestions on the best way you've found to develop plugins or on fpp in general?  Thanks in advance!

dkulp

Depends on what kind of plugin you are working on.    In many cases, developing within a docker container works well enough.   I do much of my work in a docker container on my Mac.   There is a buildDocker.sh script in the root of the fpp checkout that can show how.   For more advanced stuff (UI level things), there is a docker/docker-compose.yml that can be used to get FPP up in running in docker along with the Node stuff needed for the UI.    

If the plugin will interact directly with hardware (like sensors or GPIO pins or similar), then you may need to develop directly on the Pi or BBB.
Daniel Kulp - https://kulplights.com

epal

Super helpful, I didn't know about the docker script before but that makes perfect sense.  Thanks!

CaptainMurdoch

For the past few years I've run my master FPP instance on an Atom-based NAS appliance with USB sound via the FMT-212R and a USB Gig-E driving the ColorLight.  This year my goal is run the master instance in a docker container on my main server.  I've already moved over to using the container and am just tweaking things as I test, so I agree on docker being the easiest method.

I plan to rename the existing docker-compose.yml file in github to something like docker-compose-dev.yml and commit a new one that is more user-oriented with lots of comments in it showing things like passing through a sound card or a dedicated network interface for E1.31 or ColorLight/Linsn outputs.
-
Chris

ghormann

I'm a little late to reply, but... when you need to do work on "real" hardware, vscode with remote-ssh plugin works very well.  (Better on a PI3/P4 then a BBB because of memory constraints).


EricD

The VSCode setup linked above works great for FPP itself, how would I go from that to say working on a change to https://github.com/FalconChristmas/fpp-HomeAssistant? Would I create a git submodule for the plugin in /opt/fpp/plugins?

dkulp

It's actually not much different.   Instead of loading /opt into vs-code, you load in /home/fpp/media/plugins and all the plugins that are installed would be there.   You cannot build from within vscode I think, but "make" on the command line works.
Daniel Kulp - https://kulplights.com

EricD

Ack, that is what I was doing, just wondering if there was a way to get VSCode setup so that it understands all the imports/symbols/etc. I'm a sucker for IDE help :)

EricD

Circling back here I'm successfully setup by doing:


VSCode is happily resolving all the fppd symbols and it is a quite nice development experience.

Support FPP

+- Recent Topics

Unable to get DHCP after FPP install by Jlwright325
November 27, 2022, 11:31:30 PM

What is the second best way to get rid of pixel gap errors? by k6ccc
November 27, 2022, 10:32:34 PM

FPP connect by LedMutt
November 27, 2022, 09:29:34 PM

FPP Scheduler duplicate by Aaron Maue
November 27, 2022, 09:24:20 PM

Audio Stalls on 8th music sequence by JonD
November 27, 2022, 08:09:16 PM

F48 with Daisy Chained Smart Receivers by JonD
November 27, 2022, 07:55:30 PM

Kulp 32A-B setup by tgeorges
November 27, 2022, 05:54:31 PM

MultiSync copying of Show Files not working in FPP 6.1.1 by jnealand
November 27, 2022, 05:27:32 PM

Pixel strands change color halfway through the string by jnealand
November 27, 2022, 05:18:57 PM

show locks me out of falcon player by torn8o
November 27, 2022, 05:09:31 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod