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: Member

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 10
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: Member

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 10
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,837
Location: Stockholm

Thanks: 144 times
Was thanked: 297 time(s) in 250 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: Member

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 10
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: Member

Groups: Registered
Joined: 12/10/2014(UTC)
Posts: 10
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: Advanced Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 97
Man
Australia
Location: Could be Australia could be Europe/UK!

Thanks: 1 times
Was thanked: 7 time(s) in 7 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: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 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: Advanced Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 97
Man
Australia
Location: Could be Australia could be Europe/UK!

Thanks: 1 times
Was thanked: 7 time(s) in 7 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: 2,721
Man
France
Location: Bordeaux, France

Thanks: 243 times
Was thanked: 794 time(s) in 589 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: 493
Man
Denmark
Location: Copenhagen, Denmark

Thanks: 389 times
Was thanked: 100 time(s) in 79 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: 324
Man
Canada
Location: Cornwall, Ontario, Canada

Thanks: 18 times
Was thanked: 80 time(s) in 60 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: Advanced Member

Groups: Registered
Joined: 8/15/2013(UTC)
Posts: 97
Man
Australia
Location: Could be Australia could be Europe/UK!

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


Works... thanks
mjc  
#15 Posted : Thursday, April 29, 2021 8:10:18 AM(UTC)
mjc

Rank: Newbie

Groups: Registered
Joined: 3/18/2021(UTC)
Posts: 3
United States
Location: Boston

Function=SetCountdown&Value=00:05:00&Input=135

This worked for me but it did not show the new value until after I started the countdown.
doggy  
#16 Posted : Thursday, April 29, 2021 8:20:35 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: mjc Go to Quoted Post
Function=SetCountdown&Value=00:05:00&Input=135

This worked for me but it did not show the new value until after I started the countdown.


About every 3 years this post gets some attention ;-)
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.