logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
znarkus  
#1 Posted : Sunday, April 26, 2020 4:20:11 AM(UTC)
znarkus

Rank: Newbie

Groups: Registered
Joined: 10/2/2019(UTC)
Posts: 7
Sweden

Thanks: 1 times
Hi!

I'm trying to create a ticker that reads from an JSON api endpoint, that looks somethings like this:

Text 1 • Text 2 • Text 2 is very loooooooooong • Etc ..

This is read from an api that looks similar to this:

[
{ "body": "Text 1" },
{ "body": "Text 2" },
{ "body": "Text 2 is very loooooooooong" },
{ "body": "Etc .." }
]

I almost created it with the GT editor, with "Add" ticker instead of "Replace".
But is there a way to add a separator between the items?
doggy  
#2 Posted : Sunday, April 26, 2020 4:48:36 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
just add a seperator character to your format setting of the datasource in your title(ticker)
znarkus  
#3 Posted : Sunday, April 26, 2020 4:50:36 AM(UTC)
znarkus

Rank: Newbie

Groups: Registered
Joined: 10/2/2019(UTC)
Posts: 7
Sweden

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
just add a seperator character to your format setting of the datasource in your title(ticker)


That would add it to the last item as well, right? Like this
Text 1 • Text 2 •
doggy  
#4 Posted : Sunday, April 26, 2020 4:53:32 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
yes as in how would it know its the last one anyway unless you drive the data with and external app or a script
znarkus  
#5 Posted : Sunday, April 26, 2020 5:11:04 AM(UTC)
znarkus

Rank: Newbie

Groups: Registered
Joined: 10/2/2019(UTC)
Posts: 7
Sweden

Thanks: 1 times
Originally Posted by: doggy Go to Quoted Post
yes as in how would it know its the last one anyway unless you drive the data with and external app or a script


I'm not entirely sure what you mean. The list definitely is finite.
doggy  
#6 Posted : Sunday, April 26, 2020 5:27:04 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,243
Belgium
Location: Belgium

Thanks: 294 times
Was thanked: 960 time(s) in 794 post(s)
What i say is , unless you manipulate your data sending differently to the title ( external app or script) you have basically an infinite list (no indication of end of list to make a decision) and are stuck to the basic addition of a separator or other text before/after each item
with scripts or apps your data manipulation before displaying is infinite :-)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.