Author Topic: FPP 2.0 outputs file format  (Read 245 times)

Offline jchuchla

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location:
  • Posts: 309
  • Kudos: 0
FPP 2.0 outputs file format
« on: November 05, 2018, 01:22:24 PM »
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?

Online dkulp

  • Developer
  • ******
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 1,235
  • Kudos: 68
Dan Kulp

Offline jchuchla

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location:
  • Posts: 309
  • Kudos: 0
Re: FPP 2.0 outputs file format
« Reply #2 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?

Online dkulp

  • Developer
  • ******
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 1,235
  • Kudos: 68
Re: FPP 2.0 outputs file format
« Reply #3 on: November 05, 2018, 02:21:57 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:
Code: [Select]

{
"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.

Offline jchuchla

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location:
  • Posts: 309
  • Kudos: 0
Re: FPP 2.0 outputs file format
« Reply #4 on: November 05, 2018, 02:59:43 PM »
Thanks Dan. Im 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

Online dkulp

  • Developer
  • ******
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 1,235
  • Kudos: 68
Re: FPP 2.0 outputs file format
« Reply #5 on: November 05, 2018, 04:32:16 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.

Offline jchuchla

  • Sr. Member
  • ****
  • Join Date: Jul 2014
  • Location:
  • Posts: 309
  • Kudos: 0
Re: FPP 2.0 outputs file format
« Reply #6 on: November 05, 2018, 05:10:36 PM »
Thanks


Sent from my iPhone using Tapatalk

 

Back to top