Voice control Reef Angel Status

Community contributed apps
Post Reply
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Voice control Reef Angel Status

Post by Rodasphoto »

I was wondering if anyone knows if it would be possible to use Autovoice, tasker, and the Moto X always listening to be able to turn on/off relays and possibly get status of the tank?
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Voice control Reef Angel Status

Post by binder »

In order to do it, you would have to have tasker launch a specific command. So you would have to create commands for all the actions you want to perform. When you create the commands, you would have to launch the URL the same way that my app launches it. Then, somehow trigger a voice command to activate or launch the tasker command.
Getting the URL's to issue the commands is easy.
I've not used tasker, so I don't know how hard it would be to setup it running the URL.
I don't know how you could tie the voice command in to launching the tasker command but it sounds like you already know how to do that.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

For the voice command I would use Autovoice and is pretty easy to use. The rest will be hard and will need to do some tinkering to see if I can figure it out. Thanks for the reply.
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

Could you explain how url issue commands? What are the urls needed?
Image
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

Could you explain how url issue commands? What are the urls needed to issue the different commands (i.e. water change, relays on/off)?
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Voice control Reef Angel Status

Post by binder »

Rodasphoto wrote:Could you explain how url issue commands? What are the urls needed to issue the different commands (i.e. water change, relays on/off)?
http://forum.reefangel.com/viewtopic.php?f=7&t=1541

That post should explain everything for you. Then you just need to use the host or ip and port combination for your controller. My test setup is

Code: Select all

http://maxima.curtbinder.info:2000/ 
then I would just put one of those commands on the end and get something like this.

Code: Select all

http://maxima.curtbinder.info:2000/mf
to enter feeding mode
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

Many thanks.
/rxy - override relay where
x=relay
y=0 - mask off
y=1 - mask on
y=2 - auto
/mf - call feeding mode
/mw - call water change mode
/mt - clear ATO timeout flag
/mo - clear Overheat flag
/ml - clear Leak flag
When using the /rxy command, x is the relay (like roberto said).
The values for x can be:
1-8 - main relay
11-18 - expansion relay 1
21-28 - expansion relay 2
31-38 - expansion relay 3
41-48 - expansion relay 4
51-58 - expansion relay 5
61-68 - expansion relay 6
71-78 - expansion relay 7
81-88 - expansion relay 8[
/color]

I was able to use voice commands and tasker to control relays 1-8. But I could not get the relay expansion relays to change.
I tried /r710 and everything from 71 to 78.

Is there something I am doing wrong?
How do you initiate "exit mode"?
How can set a relay back to auto once I am through?
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Voice control Reef Angel Status

Post by binder »

Rodasphoto wrote:Many thanks.
I was able to use voice commands and tasker to control relays 1-8. But I could not get the relay expansion relays to change.
I tried /r710 and everything from 71 to 78.

Is there something I am doing wrong?
How do you initiate "exit mode"?
How can set a relay back to auto once I am through?
That's pretty sweet.
In order to get the relay expansion relays to change, you need to use 11-18. That is for the first expansion.
/r110 - turns box 1 port 1 off
/r111 - turns box 1 port 1 on
/r112 - resets the port back to it's auto status
for the main relay, you would use /r12 to put port 1 back to auto.

if you have 7 expansion boxes, then you would use 71 through 78 to control those ports but i doubt you have 7 expansion relay boxes....but you may and if you do, great for you. :)

"exit mode", is referred to as exiting the feeding and water change mode. the command is simply the button press, so it should just be /bp
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

Binder you rock. Thanks for explaining everything. Once I get everything programmed in Tasker I will post a video showing it in action.
Image
binder
Posts: 2871
Joined: Fri Mar 18, 2011 6:20 pm
Location: Illinois
Contact:

Re: Voice control Reef Angel Status

Post by binder »

Rodasphoto wrote:Binder you rock. Thanks for explaining everything. Once I get everything programmed in Tasker I will post a video showing it in action.
awesome!! can't wait to see it in action. :)
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Voice control Reef Angel Status

Post by rimai »

Super cool!!!
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

rimai wrote:Super cool!!!
Thanks. I did not show feeding mode, all clear, and that I can control each individual relay as it would have been pretty boring to watch. If anyone is interested I can post an xml file or instructions on how to accomplish this.
Image
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Voice control Reef Angel Status

Post by rimai »

That would be cool!!
Can you open a thread in the tutorials and post the video and instructions on how to do it?
Roberto.
User avatar
Rodasphoto
Posts: 187
Joined: Wed Apr 10, 2013 2:48 pm
Location: Athens, Ga
Contact:

Re: Voice control Reef Angel Status

Post by Rodasphoto »

rimai wrote:That would be cool!!
Can you open a thread in the tutorials and post the video and instructions on how to do it?
Would be my pleasure.
Image
Post Reply