vMix Forums
»
General
»
General Discussion
»
Counting up Scores using Browser
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Just trying to up a scoreboard by +1 using streamdeck only, without using vmix shortcuts. How would the api function work (or can it not)? I can do it with vmix shortcuts easily enough, but can't seem to get it working in a browser. With the API you only have SetText,Value,Input, but if you want to do it using a url you need "Title Too" like.. localhost:8088/api/?Function=SetText&Input=1&Title=AwayScore&Value=+1 Any ideas how this can be done with a direct Function? +1.png (17kb) downloaded 0 time(s).
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
What is wrong with letting the streamdeck use a vmix shortcut or api call ? How else would a streamdeck be able to do it ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Originally Posted by: doggy What is wrong with letting the streamdeck use a vmix shortcut or api call ? How else would a streamdeck be able to do it ? I am able to do most things without using vmix shortcuts, just directly using a localhost api function. Is it not possible to add or take away 1 to a score through a browser link? If so, what would that link be as you also need to use a "title" to get it to work so it gets to the right place.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
I know how to use the streamdeck and vmix, that is not a problem. I want to know if its possible to use the API to count up a score +1 using localhost function alone. SetText does not seem to have a "title" option, only value,input
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
for title use SelectedIndex or SelectedName depending if you use the index or the name of but +=1 doesnt work for value addition
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
Actually this works
http://localhost:8088/api/?Function=SetText&Input=1&SelectedIndex=1&Value=%2b%3d1
for +=1
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Originally Posted by: doggy Actually this works
http://localhost:8088/api/?Function=SetText&Input=1&SelectedIndex=1&Value=%2b%3d1
for +=1 That works perfectly, many thanks once again. Out of interest how was the %2b%3d1 for (+=1) worked out as I need -=1 too :)
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
|
1 user thanked doggy for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 2/23/2017(UTC) Posts: 189 Thanks: 1 times Was thanked: 52 time(s) in 42 post(s)
|
Originally Posted by: Quinton Originally Posted by: doggy Actually this works
http://localhost:8088/api/?Function=SetText&Input=1&SelectedIndex=1&Value=%2b%3d1
for +=1 That works perfectly, many thanks once again. Out of interest how was the %2b%3d1 for (+=1) worked out as I need -=1 too :) -%3D1
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Thanks..I'm picking this up slowly but surely :) I find it much easier doing it this way, as trying to find the shortcut I just made within vmix can be quite hard I think the way it is.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Sorry for posting this in a couple of places, but I need to try and get this working before tomorrow.. Has the Input format for vmix and companion app changed, since the last time I used it? Trying to set up a goal up/down pause time.set time etc, and seems its now not the same as last time. I just entered "PauseCountdown Input=1" which worked to pause the clock, but now I am trying to add +1 to a particular score, before it would have been like this, but seems that is not working anymore? Anyone Help out why its not working anymore? SetText&Input=1&SelectedIndex=3&Value=%2b%3d1
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/5/2017(UTC) Posts: 570 Location: Manitoba Thanks: 118 times Was thanked: 313 time(s) in 178 post(s)
|
Try using SelectedName instead of SelectedIndex. (Note: If you really want to use SelectedIndex.. remember it starts at 0 ). You might be sending it to the wrong field in your xaml title.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
is there an initial value in the textfield ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Sending to right field, as it works perfectly when entering it in a browser, just doesnt work with companion. There is already a number (score) entered to begin with. Would be grateful if anyone has an answer to this, as I want to use the companion emulator remotely on a phone to change scores, which would be much easier that changing a datasource. Just doesnt seem to want to work, even though it did a few months ago.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Seems like a lot of things arent working in companion now. For example .. http://localhost:8088/api/?Function=ChangeCountdown&Input=1&Value=00:45:00&SelectedIndex=0 This would set the time to 45 mins in a soccer match for the start of half time, no way I can see that works in companion...works fine in a browser.
In companion pause/restart countdown is simply PauseCountdown Input=1 which does work, so I am def connected properly. http://localhost:8088/api/?Function=SetText&Input=1&SelectedIndex=1&Value=%2b%3d1 This should add 1 to the score, again using a browser not a problem but doesnt work anymore in companion.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,290 Location: Belgium Thanks: 296 times Was thanked: 967 time(s) in 801 post(s)
|
Is there a companion group, forum or page as it really looks like a companion problem and not a vMix one ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Originally Posted by: doggy Is there a companion group, forum or page as it really looks like a companion problem and not a vMix one ? There is indeed, I already posted there but no luck. Just posted here to see if I was doing something stupid, that was resolved easily last time, would love just to use a single brwoser page for the shortcuts with the buttons clearly showing. Seems like I will have to try and do it a different way.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 8/20/2014(UTC) Posts: 388
Thanks: 29 times Was thanked: 80 time(s) in 51 post(s)
|
Are you using the general Post Http in companion? If not that is what is needed to make an API call through companion.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 1/13/2018(UTC) Posts: 74
Thanks: 11 times Was thanked: 7 time(s) in 4 post(s)
|
Originally Posted by: kjones9999 Are you using the general Post Http in companion? If not that is what is needed to make an API call through companion. Can you point me in the right direction where the Post HTTP is in companion, I was trying to use the run custom command in the dropdown, I dont see anything anywhere for http?
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
Counting up Scores using Browser
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