Jump to content


Users and Chromecast

chromecast api users

  • Please log in to reply
2 replies to this topic

#1 itkserver OFFLINE  



  • Members
  • 21 posts

Posted 01 February 2020 - 11:12 PM



I am fiddling about with some voice commands using Tasker and its menagerie of plugins on top of swagger and some python code, attempting to tell my various tvs to play the next episode of or shuffle 'x' series or 'y' movie. 
I have the core code and actions set. (it works near perfectly on my Roku with some outliers due to naming collisions). What I am struggling with is 2 things, my Chromecast and user authentication.

I have tried both user auth methods listed in UserService, I get the 204 response, but no change appears to take place on any of my devices. My goal here, is to say "Play Paw Patrol as <My Daughter's Name> in living room" or "Play Iron Man as <My Name> in Basement"


The other issue is trying to get Emby on my Chromecasts. I can obviously do it with a physical button press no issues, but I cannot find a way to do it programmatically nor with Tasker. AutoInput seems to have an issue with the Emby Android app, non of the Elements are clickable by that plugin.


Has anyone found any solutions to one or both (crosses fingers) of these, no matter how hacky (you should see my python library, I don't think I have written anything that is not hacky)


Thanks in advance.

#2 chef OFFLINE  


    Advanced Member

  • Developers
  • 4547 posts
  • Local time: 02:59 AM
  • LocationPeterborough, Canada

Posted 01 February 2020 - 11:16 PM

Hi please watch this video. It will show you how to cast to device with Tasker.

And here is ME using the same this with emby! :)

#3 itkserver OFFLINE  



  • Members
  • 21 posts

Posted 01 February 2020 - 11:19 PM

I actually saw those, but for whatever reason Auto input doesn't want to work with emby on my device. I get "element is not clickable" or something like that when I try. I even tried "borrowing" the cast button from youtube lol



Edit: I got it... by guessing x,y coords and forcing portrait mode. lol

Edited by itkserver, 02 February 2020 - 12:07 PM.

Also tagged with one or more of these keywords: chromecast, api, users

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users