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.
|
|
|
|
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
|
|
|
|
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.aspGood luck!
|
1 user thanked richardgatarski for this useful post.
|
|
|
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?
|
|
|
|
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?
|
1 user thanked tubbis_2 for this useful post.
|
|
|
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?
|
|
|
|
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...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/15/2013(UTC) Posts: 97 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!
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 Location: Bordeaux, France Thanks: 243 times Was thanked: 794 time(s) in 589 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/15/2013(UTC) Posts: 97 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 3/20/2014(UTC) Posts: 2,721 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 5/20/2015(UTC) Posts: 493 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 :-)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/21/2015(UTC) Posts: 324 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.xamlChanged 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=12) 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/15/2013(UTC) Posts: 97 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
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/18/2021(UTC) Posts: 3 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,219 Location: Belgium Thanks: 293 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: mjc 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 ;-)
|
|
|
|
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.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close