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
kayonebee  
#1 Posted : Thursday, December 11, 2014 12:00:42 AM(UTC)
kayonebee

Rank: Newbie

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 6
Location: UK

Thanks: 2 times
I searched the forums, knowledge base, guides and Google, but unfortunately had no luck in finding an answer.

We are using vMix for sports stadium perimeter advertising and have been asked to implement a mm:ss countdown to mirror the match timing system, but I can't get the SetCountdown function to set the time via HTTP API to 40 minutes.The method is to grab start/stop/reset events generated by an official's key press on a proprietary system - another project - and use these to trigger a countdown timer appropriately.

e.g. http://127.0.0.1:8088/API/?Function=SetCountdown&Value=40:00&Input=-1 - sound about right? No luck.

It struck me that I couldn't get it working from the shortcuts panel either. Does this make it a bug or am I formatting the request incorrectly?

Version 14.0.0.102

Any help here would be very much appreciated.
kayonebee  
#2 Posted : Thursday, December 18, 2014 11:27:03 AM(UTC)
kayonebee

Rank: Newbie

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 6
Location: UK

Thanks: 2 times
Bumping this. Does anyone use this function, know if the formatting is correct, or having trouble with it?

I cannot get it working and think it may be broken.

Many thanks
richardgatarski  
#3 Posted : Thursday, December 18, 2014 11:38:22 AM(UTC)
richardgatarski

Rank: Advanced Member

Groups: Registered
Joined: 2/18/2014(UTC)
Posts: 1,240
Location: Stockholm

Thanks: 103 times
Was thanked: 189 time(s) in 157 post(s)
My best guess (have not looked into your particular API details) is that your call is not fully URL encoded. Most likely the colon in "40:00" that messes things up. It should be "40%3A00"

For URL encoded strings, see
http://www.w3schools.com/tags/ref_urlencode.asp

Good luck!
thanks 1 user thanked richardgatarski for this useful post.
kayonebee on 12/23/2014(UTC)
kayonebee  
#4 Posted : Tuesday, December 23, 2014 12:11:16 PM(UTC)
kayonebee

Rank: Newbie

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 6
Location: UK

Thanks: 2 times
Thanks richardgatarski for coming back to me, I see where you're coming from but unfortunately it did not work.

Tested on several other vMix installations to no avail. Still working on it, if anyone has any ideas?
tubbis_2  
#5 Posted : Wednesday, December 24, 2014 2:24:16 PM(UTC)
tubbis_2

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2013(UTC)
Posts: 32
Location: Stockholm

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
Could it be that you have to set the full time, days hours minutes seconds ie 00:00:40:00 to make it work?
thanks 1 user thanked tubbis_2 for this useful post.
kayonebee on 12/24/2014(UTC)
kayonebee  
#6 Posted : Wednesday, December 24, 2014 3:02:18 PM(UTC)
kayonebee

Rank: Newbie

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 6
Location: UK

Thanks: 2 times
I just tried on your suggestion tubbis_2 but also no luck. "Function completed successfully" as with other string formats, but nothing actually happened. Tried the various combinations of days/hours/mins/secs. Thinking more now that this is a bug considering it will not work as a shortcut key or through the shortcuts panel either.

Can support come back on this to confirm it is bugged and if so will be fixed in the next version?
tubbis_2  
#7 Posted : Saturday, January 3, 2015 7:47:46 PM(UTC)
tubbis_2

Rank: Advanced Member

Groups: Registered
Joined: 11/21/2013(UTC)
Posts: 32
Location: Stockholm

Thanks: 2 times
Was thanked: 5 time(s) in 5 post(s)
Have you added a input with a timer?
The last bit of the API request is saying it should affect an input named "-1". Think this means the "Active" input and that's not a good idea för a timer.
Add for example the TimerClock.xaml as an input.
Then the api request for setting the time would be something like this:
http://127.0.0.1:8088/API/?Function=SetCountdown&Input=TimerClock.xaml&SelectedName=txtClock&Value=00:40:00
Starting the clock
http://127.0.0.1:8088/API/?Function=StartCountdown&Input=TimerClock.xaml&SelectedName=txtClock
Pausing the clock
http://127.0.0.1:8088/API/?Function=PauseCountdown&Input=TimerClock.xaml&SelectedName=txtClock
Stopping the clock
http://127.0.0.1:8088/API/?Function=StopCountdown&Input=TimerClock.xaml&SelectedName=txtClock
Hope this helps you...
aircooled76@gmail.com  
#8 Posted : Thursday, May 17, 2018 4:10:33 AM(UTC)
aircooled76@gmail.com

Rank: Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 27
Man
Location: Adelaide, SA

Was thanked: 2 time(s) in 2 post(s)
Hi Guys,

I am not having any luck controlling the countdown clock. tubbis_2's suggestions do not work.

I can update and control the team scores and other fields but the timer controls are broken it seems.

Code:
http://192.168.43.5:8088/API/?Function=StartCountdown&Input=Scoreboard4.xaml&SelectedName=Clock


This is my command entered into Chrome web browser.

This command works and sets the clock text to "00"

Code:
http://192.168.43.5:8088/API/?Function=SetText&Input=Scoreboard4.xaml&SelectedName=Clock&Value=00


Any help appreciated!
DWAM  
#9 Posted : Thursday, May 17, 2018 4:27:34 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 1,915
Man
France
Location: Bordeaux, France

Thanks: 139 times
Was thanked: 512 time(s) in 412 post(s)
Hi

SetText if for setting text values only. It has no effect on timers/countdowns.

Check the documentation in order to learn how to use the SetCountdown, AdjustCountdown commands.
https://www.vmix.com/hel...utFunctionReference.html

Guillaume
aircooled76@gmail.com  
#10 Posted : Thursday, May 17, 2018 5:04:14 AM(UTC)
aircooled76@gmail.com

Rank: Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 27
Man
Location: Adelaide, SA

Was thanked: 2 time(s) in 2 post(s)
So it seems to be intermittent. I have it working with the same command on a built in vMix scoreboard Scoreboard4.xaml.

It seems to me that the command only works on the first field not on any subsequent fields.
DWAM  
#11 Posted : Thursday, May 17, 2018 6:44:45 AM(UTC)
DWAM

Rank: Advanced Member

Groups: Registered
Joined: 3/20/2014(UTC)
Posts: 1,915
Man
France
Location: Bordeaux, France

Thanks: 139 times
Was thanked: 512 time(s) in 412 post(s)
Quote:
It seems to me that the command only works on the first field not on any subsequent fields.

No it works perfectly and reliably when you use the appropriate commands for it
stigaard  
#12 Posted : Thursday, May 17, 2018 7:06:37 AM(UTC)
stigaard

Rank: Advanced Member

Groups: Registered
Joined: 5/20/2015(UTC)
Posts: 307
Man
Location: Copenhagen, Denmark

Thanks: 217 times
Was thanked: 52 time(s) in 42 post(s)
DWAM wrote:
Quote:
It seems to me that the command only works on the first field not on any subsequent fields.

No it works perfectly and reliably when you use the appropriate commands for it


@kayonebee and @aircooled76@gmail.com
As I see, you need to remember the SelectedName parameter in the url. This enables the command to choose exactly which field in the title is instructed to e.g. start, stop, adjust or set the countdown.

Good luck :-)
desmar  
#13 Posted : Thursday, May 17, 2018 10:13:51 AM(UTC)
desmar

Rank: Advanced Member

Groups: Registered
Joined: 8/21/2015(UTC)
Posts: 236
Man
Canada
Location: Ottawa, Ontario, Canada

Thanks: 13 times
Was thanked: 58 time(s) in 42 post(s)
To Set countdown to 40:00 and display 40:00 on title.
The following commands must be sent.

Using title Title2Blue.xaml

Changed the Live Field to a countdown.
(As Live is the 3rd Field Index value is 2)
(Index always starts at 0, 1, 2 etc)

1) Set Countdown Field of Live to a countdown timer to 40:00.
(This will NOT set text to display 40:00 on title)

http://127.0.0.1:8088/API/?Function=SetCountdown&&SelectedIndex=2&Value=40%3A00&Input=1

2) Set text of Live to display same as countdown timer to 40:00.
(This will set text to display 40:00 on title)

http://127.0.0.1:8088/API/?Function=SetText&SelectedIndex=2&Value=40%3A00&Input=1
aircooled76@gmail.com  
#14 Posted : Monday, September 10, 2018 12:42:28 PM(UTC)
aircooled76@gmail.com

Rank: Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 27
Man
Location: Adelaide, SA

Was thanked: 2 time(s) in 2 post(s)
Code:
http://192.168.X.XXX:8088/API/?Function=StartCountdown&SelectedIndex=4&Input=SB


Works... thanks
Users browsing this topic
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.