ACB, local http requests, AutoRemote, Tasker and AutoXBMC

Development related questions, API questions and documentation, questions about integration, API/custom behaviour suggestions, how-to documents and all the nitty gritty.

AuthorPost

ACB, local http requests, AutoRemote, Tasker and AutoXBMC

mlava
 
Posts: 14
Joined: Fri Feb 13, 2015 9:44 pm

Post Posted » Sun Mar 01, 2015 5:09 pm

Hi all
I have a working model running whereby I can control my home theatre setup via Ubi voice commands.
Will try to post a video if people are interested.
The fundamentals:
Tasker, AutoRemote and AutoXBMC plugins installed on Ubi.
Eventghost and AutoRemote plugin running on HTPC.
Turn on AutoRemote Wifi service on Ubi.
Setup ACB to recognise regex voice commands.
Send local http request to Eventghost AutoRemote service running on HTPC - this allows IR signals to be sent via blaster to turn on amp, tv, xbox one, etc.
Send specially formatted local request to AutoRemote on Ubi, using regex'd content from voice command to Ubi.
Use tasker to respond - in this case, to use the AutoXBMC plugin to query the XBMC database for the right movie or tv show episode, then send the signal to play that show.
Enjoy!
:D

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

saxnixUser avatar
 
Posts: 186
Joined: Tue May 06, 2014 9:20 pm
Location: Brisbane, Australia

Post Posted » Sun Mar 01, 2015 5:29 pm

That sounds really cool. Would love to see a video of it in action if you have the time to do it.
I want the lifestyle The Jetson's and Back to the Future II promised me...

Currently have;
Ubi, LIFX bulbs, Doorbot
Waiting for;
LIFX (GU10 downlights), WigWag, SmartPlug, Neurio, Plugaway, Lockitron, Filterwatch

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

mlava
 
Posts: 14
Joined: Fri Feb 13, 2015 9:44 pm

Post Posted » Sun Mar 01, 2015 5:35 pm

I'll try to get some natural light to get a video... tried last night using my phone with internal lights and everything looks pink :lol:

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

Kenneth
 
Posts: 12
Joined: Sat Nov 22, 2014 9:05 am

Post Posted » Mon Mar 02, 2015 4:43 am

Sounds really cool!!!

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

LeorUser avatar
Admin/Team Ubi
 
Posts: 452
Joined: Sun Jun 22, 2014 7:18 pm
Location: Toronto, Ontario

Post Posted » Mon Mar 02, 2015 11:27 pm

Very curious to see this!

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

mlava
 
Posts: 14
Joined: Fri Feb 13, 2015 9:44 pm

Post Posted » Tue Mar 03, 2015 5:22 am

Watch on youtube.com


sorry for the poor quality :oops:

you will have to take my word for it that the right movies are showing, but I suspect most people will recognise the big bang theory opening shot
I just didn't want to let the movies run a few minutes to prove they are correct, or otherwise this video would have gone forever!

I will try to get a better lit video and will move the mouse so XBMC shows the posters next time, just to prove it works! :mrgreen:

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

DominiqueUser avatar
 
Posts: 129
Joined: Fri May 02, 2014 10:19 pm
Location: San Antonio, TX

Post Posted » Tue Mar 03, 2015 10:30 am

I am a heavy Tasker user and I have never heard of AutoXBMC. Gonna have to try this. I said in another forum thread that I had Tasker on my Ubi last year but it bricked one of my Ubi's so I was reluctant to use VNC Viewer again in fear that I may brick another.

You and this video are certainly testing my resolve. Now considering it so I can replicate what you did here.
"A man has a property in his opinions and the free communication of them." -James Madison

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

DominiqueUser avatar
 
Posts: 129
Joined: Fri May 02, 2014 10:19 pm
Location: San Antonio, TX

Post Posted » Tue Mar 03, 2015 1:48 pm

Can you show us your Tasker profiles? I tried looking for AutoXBMC but it isnt available for the public. The creator said it was in Alpha testing. Also, in the video is XBMC on your computer or your phone? How did you get it to cast like that?
"A man has a property in his opinions and the free communication of them." -James Madison

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

mlava
 
Posts: 14
Joined: Fri Feb 13, 2015 9:44 pm

Post Posted » Tue Mar 03, 2015 4:43 pm

I am a heavy Tasker user and I have never heard of AutoXBMC. Gonna have to try this. I said in another forum thread that I had Tasker on my Ubi last year but it bricked one of my Ubi's so I was reluctant to use VNC Viewer again in fear that I may brick another.


Can you show us your Tasker profiles? I tried looking for AutoXBMC but it isnt available for the public. The creator said it was in Alpha testing. Also, in the video is XBMC on your computer or your phone? How did you get it to cast like that?


AutoXBMC is in alpha, but I use it most days and haven't had any problems with it.
You need an Autoapps subscription, which might be discouraging. I personally use almost all of Joao Dias' autoapps, however, so am happy to reward him for his extraordinary development.
To access the alpha, you just need to become a tester which you can do via the google plus community via the autoapps app in play store.
Let me know if you want advice on proceeding with that.

An alternative option would be to use Yatse and send xbmc intents from tasker, but as far as I recall that's a paid subscription feature in Yatse and it also wouldn't allow finding the 'latest' episode for example.

I am using an HTPC with eventghost and xbmc installed there.
I tell AutoXBMC the ip of the HTPC, and then it can query the XBMC over the network. It then sends the command to play the file on the XBMC, so there is no casting involved.

Happy to post the tasker profiles, but I'm at work so won't be until tonight (Australian time), sorry.

Also, in terms of bricking Ubi, all of this could be achieved without tasker on Ubi at all...

Option 1 - Ubi has tasker, autoremote and autoxbmc installed
pros - local, probably faster (not tested), more elegant
cons - might brick Ubi

Option 2 - Ubi sends autoremote message to an alternate android device that does the heavy lifting with tasker, autoremote and autoxbmc.
pros - not brick Ubi
cons
- needs to be always powered on, and always on wifi (use keep wifi app from play store)
- if device inaccessible whole workflow fails
- inelegant (second device adds to risk of failure of workflow)

Ubi can commence either one of those options via ACB from voice command, using the autoremote direct communication http request url. That step requires no additional software installed on Ubi, you just set up in ACB to send an http request using the autoremote format and the ip address of the android device you want to use (http://localhost:1817/?message=your_message_here for Ubi, http://192.168.x.xxx:1817/?message=your_message_here for the alternate device if you go that route).
So it is really up to you whether you'd prefer to risk the Ubi or use an alternate android device that remains on the network at all times.

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

DominiqueUser avatar
 
Posts: 129
Joined: Fri May 02, 2014 10:19 pm
Location: San Antonio, TX

Post Posted » Tue Mar 03, 2015 6:29 pm

VERY interesting. I sent you a PM with my email address. Let's connect!

I have found a command on Android that cast Kodi from your phone. Here is the tutorial...

Watch on youtube.com


Using this method you wouldnt have to use Eventghost at all. You could do everything from your phone.

But then again, we are veering away from Ubi talk.

Hit me up on my email (PMed you email address) and we can discuss a few things. **Thumbs up**
"A man has a property in his opinions and the free communication of them." -James Madison

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

saxnixUser avatar
 
Posts: 186
Joined: Tue May 06, 2014 9:20 pm
Location: Brisbane, Australia

Post Posted » Thu Mar 12, 2015 3:50 pm

Thanks for the video @mlava. It is cool to see what others come up with.
I want the lifestyle The Jetson's and Back to the Future II promised me...

Currently have;
Ubi, LIFX bulbs, Doorbot
Waiting for;
LIFX (GU10 downlights), WigWag, SmartPlug, Neurio, Plugaway, Lockitron, Filterwatch

Re: ACB, local http requests, AutoRemote, Tasker and AutoXBM

LeorUser avatar
Admin/Team Ubi
 
Posts: 452
Joined: Sun Jun 22, 2014 7:18 pm
Location: Toronto, Ontario

Post Posted » Sun Mar 15, 2015 12:21 am

Awesome - will need to check this out...