News:

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

+-+-

+-User

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

+-Site Stats

Members
Total Members: 16895
Latest: Chriotjuh
New This Month: 11
New This Week: 5
New Today: 1
Stats
Total Posts: 135478
Total Topics: 16986
Most Online Today: 103
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 1
Guests: 91
Total: 92

Overlay Matrix: write more than one pixel at a time ?

Started by zaicik, August 06, 2024, 12:44:57 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

zaicik

Looking to make "generative" scripts, I want to feed "live" data to FPP (e.g. sensor-based)

While the API will gladly give an overlay model's full contents (e.g. /api/overlays/model/:ModelName/data)  I haven't found how to feed it data other than one pixel at a time (/api/overlays/model/:ModelName/data)

While this API is practical to draw one pixel at a time from the matrix tool menu, I'm guessing there might be a more efficient route if I want to take more control... 

Any tips / suggestions ? 🙏

darylc

There is no API command to achieve that today.  We would welcome a pull request for an implementation of one.

You could draw inspiration from the CopyFileToMappedBlock function in https://github.com/FalconChristmas/fpp/blob/master/src/fppmm.cpp

dkulp

If the scripts are running on the same FPP instance as the models, the best bet is to mmap the data blocks from /dev/shm .   Each of the models gets a file in there of the data and you should be able to write into it directly.  
Daniel Kulp - https://kulplights.com

zaicik

Thanks for the pointers.
I'm gonna start by fiddling with /dev/shm as per @dkulp 's recommendation, and see where it takes me.

The data blocks being accessible this way looks like an amazing opportunity by the way: on a powerful enough Pi or BB, one could probably run Processing scripts and output each frame to a matrix. The syntax is extremely simple and could be a huge level up with minimal coding abilities.

Regarding:
Quote from: darylc on August 07, 2024, 06:02:53 AMThere is no API command to achieve that today.  We would welcome a pull request for an implementation of one.

You could draw inspiration from the CopyFileToMappedBlock function in https://github.com/FalconChristmas/fpp/blob/master/src/fppmm.cpp

Contributing to the API is likely above my current coding abilities but let's see how much I learn along the way and I'll try my best.


niemy

Hello
@zaicik did you manage with sending data ? I try also send let say native data to the falcon and I don't know how to start ?
Generally I need send a data for scoreboard but from time to tim I would like display some GIF etc.
Also I thought about DDP protocol but I don't know if it's efficient enought.

Support FPP

+- Recent Topics

WS2811, Raspberry Pi 5, GPIO, could not initialize. by Poporacer
March 14, 2025, 03:56:27 PM

F16V5 and SRx1 v5 by hakko808
March 14, 2025, 09:18:27 AM

Differential Board: PSU & Enclosure by hakko808
March 14, 2025, 09:17:01 AM

Backup Feature not functional by Jradical
March 13, 2025, 05:59:28 AM

FPP 8.4 Back up by Jradical
March 13, 2025, 05:38:18 AM

FPP on Pi5 won't start with "FPPD boot delay" set to 2 min or higher by dnapier65
March 12, 2025, 05:39:00 PM

OBJ File in Sketchup by dspenman
March 11, 2025, 09:19:08 AM

K2-Pi-Servo - xLights Visulizer by dkulp
March 06, 2025, 09:20:30 AM

DIYLIGHTANIMATION shutting down Feb 28, 2023 by jnealand
March 02, 2025, 10:58:12 AM

configure FPP with RS485 to drive pixels? by dkulp
March 02, 2025, 08:13:06 AM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod