Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldnt get API to work #1

Open
felipehowit opened this issue Oct 20, 2018 · 8 comments
Open

Couldnt get API to work #1

felipehowit opened this issue Oct 20, 2018 · 8 comments

Comments

@felipehowit
Copy link

Hello Roy,

Firstly thank you for developing this API, this is specifically what i`ve been looking for, however I couldnt get it to work, other than the index.html, which reads atem commands normally.

image

by running http://localhost:52094/api/api/?Function=fade&Duration=2&Input=6 I get the following error:
image

running with just one /api gets me a 404 error.

I also tried looking around the code, but couldnt find anything useful.

Am I missing something?

Thanks in advance.

@roygdavis
Copy link
Owner

Apologies @felipehowit I changed the API url's but haven't updated the readme.

The api/api is now just the one. There are some other changes too:

api/atem/mixeffects
This will return all the M/E banks you have. The index number returned will be useful in the following calls (although, just use zero if you only have the 1 ME)

api/atem/mixeffects/{me_id}/pgm_id
Returns the current pgm_id (actually returns the entire state for the specified me_id)

api/atem/mixeffects/{meId}/pgm/{pgm_id}
Change the PGM output for the {me_id) to the input number specified by pgm_id. me_id is usually zero, unless you have a 2M/E ATEM and want to change the PGM output of the 2nd one, in which case it'll be a one (obvs)

api/atem/mixeffects/{me_id}/pvw
Returns the pvw_id (and entire state of the specified me_id)

api/atem/mixeffects/{me_id}/pvw/{pvw_id}
Change the PVW output for the {me_id) to the input number specified by pvw_id. me_id is usually zero, unless you have a 2M/E ATEM and want to change the PVW output of the 2nd one, in which case it'll be a one (obvs)

Hope that helps!

A have a commit I haven't made which adds a few more API calls. I'll get around to that on Monday :-)

@roygdavis
Copy link
Owner

FYI: The event messages are only valid for PGM input changes - I'll add more functionality to this later in the week.

@felipehowit
Copy link
Author

felipehowit commented Oct 20, 2018 via email

@felipehowit
Copy link
Author

update: it worked, thanks for opening the code, its very useful!

I also saw that the code has been updated, any new implementations I can test?

Finally, do you know if the Television Studio models are compatible, at least for simple pgm cuts?

thanks

@chrisgh1
Copy link

@felipehowit
Did you ever find out if this works with the ATEM Television Studio models? I'm trying to get it to work with an ATEM Television Studio HD. However I'm having a hard time getting it to build. But if it doesn't work with the model Television Studio models I may give up on it.

@felipehowit
Copy link
Author

felipehowit commented May 23, 2020 via email

@chrisgh1
Copy link

@felipehowit Thanks for the tip, roygdavis said in another post that he would be able to re-target it for version 4.8. Just curious if you ever tried it with the Television Studio models?

@felipehowit
Copy link
Author

felipehowit commented May 25, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants