Page 1 of 1

Voice control Reef Angel Status

Posted: Sat Aug 02, 2014 6:37 pm
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?

Re: Voice control Reef Angel Status

Posted: Sat Aug 02, 2014 6:53 pm
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.

Re: Voice control Reef Angel Status

Posted: Sat Aug 02, 2014 8:01 pm
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.

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 7:27 am
by Rodasphoto
Could you explain how url issue commands? What are the urls needed?

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 7:28 am
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)?

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 7:32 am
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

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 3:29 pm
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?

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 4:24 pm
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

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 6:04 pm
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.

Re: Voice control Reef Angel Status

Posted: Sun Aug 03, 2014 6:16 pm
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. :)

Re: Voice control Reef Angel Status

Posted: Wed Aug 20, 2014 3:50 pm
by Rodasphoto

Re: Voice control Reef Angel Status

Posted: Wed Aug 20, 2014 6:02 pm
by rimai
Super cool!!!

Re: Voice control Reef Angel Status

Posted: Wed Aug 20, 2014 6:18 pm
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.

Re: Voice control Reef Angel Status

Posted: Wed Aug 20, 2014 6:21 pm
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?

Re: Voice control Reef Angel Status

Posted: Thu Aug 21, 2014 3:44 am
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.