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: 15699
Latest: Nicole4Z
New This Month: 17
New This Week: 1
New Today: 1
Stats
Total Posts: 128634
Total Topics: 15830
Most Online Today: 44
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 0
Guests: 31
Total: 31

FPP 2.0 outputs file format

Started by jchuchla, November 05, 2018, 01:22:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jchuchla

I'm starting to work on the Vixen to FPP output config changes to support the 2.0 outputs file format.  I know someone (Dan?) recently posted a sample snippet of the contents of this file.  I can't seem to find what thread that was on.  Can someone repost that sample.  I'm most interested in the output types that we have a direct analog for in Vixen.  Off the top of my head, that is sACN, Renard, DMX Open, DMX Pro. 

I know the new format is JSON based.  Does the FPP code actually use a JSON deserializer to parse the JSON, or is it manually read/written.  Does it expect the data in a particular order, or just properly formatted JSON in any order?


jchuchla

Thanks.  How about the second part of the question.  Do we have to conform to a specific order in the format?

dkulp

Quote from: jchuchla on November 05, 2018, 01:58:08 PM
Thanks.  How about the second part of the question.  Do we have to conform to a specific order in the format?


No.  However, we generally have different JSON files for different outputs.  The output universe stuff for e1.31 would ideally be in the co-universes.json file.   It doesn't really matter what order the universes are in, but that would reflect on how they are displayed on the Output universes page.


The others would likely be in the co-other.json file.   For exammple:


{
"channelOutputs": [
{
"enabled": 1,
"type": "SPI-nRF24L01",
"startChannel": 37,
"channelCount": 303,
"speed": 0,
"channel": 120
},
{
"enabled": 1,
"type": "DMX-Pro",
"startChannel": 1,
"channelCount": 512,
"device": "ttyS0"
},
{
"enabled": 1,
"type": "Renard",
"startChannel": 1,
"channelCount": 286,
"device": "ttyS0",
"renardspeed": 57600,
"renardparm": "8N1"
}
]
}

Order doesn't really matter, but again it would affect the order displayed on the "Other" page.
Daniel Kulp - https://kulplights.com

jchuchla

Thanks Dan. I'm glad you mentioned the multiple files. I thought I remembered someone saying that they were all being condensed to one file but that appears to not be the case. That makes things a bit more complex to write out, but still doable.
When I was asking about order, it was more about the order of the attributes in each object. Not so much the order of the objects.


Sent from my iPhone using Tapatalk

dkulp

Quote from: jchuchla on November 05, 2018, 02:59:43 PM
When I was asking about order, it was more about the order of the attributes in each object. Not so much the order of the objects.


That shouldn't matter at all.
Daniel Kulp - https://kulplights.com

jchuchla

Thanks


Sent from my iPhone using Tapatalk

Support FPP

+- Recent Topics

Problem with one of my Remotes - syslog always starts with "soliciting.." by Jayl
March 28, 2023, 11:03:41 PM

F48v4-NS unable to connect to WiFi Hotspot by joeyblasko
March 28, 2023, 03:18:46 PM

F/S Arduino UNO R3 with extras by StickyWicket
March 28, 2023, 09:28:23 AM

DMX to pneumatic solenoid by deanathpc
March 27, 2023, 07:54:22 AM

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

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod