[XPosed Module][Dev]Add commands to audiomonitor [CLOSED] - Moto X Themes and Apps

Hi there,
I started a project, to create a xposed module, so we can add differents commands directly into the audio monitor ("OK Google Now").
I decompiled the AudioMonitor.apk, and I needed help to find the methods that recognize the voice, and active the commands (like navigate, call, etc).
If someone can help me, I uploaded in github the decompiled version of the apk.
https://github.com/caioketo/AudioMonitorDec
So if anyone wants to help, I will apreciate it.
And also, I'm creating in github the source of this module, so it stay open source.
So this is it for now.
[EDIT]
So I found this class: GenericRecognizer (https://github.com/caioketo/AudioMo.../motorola/audiomonitor/GenericRecognizer.java)
that have this method "processRecognizedAction", so I think I'll try that out when I got home.
[CLOSED]
Unfortunally, it seems not be possible to get both things working together, "Moto commands" and "autovoice", and for this reason, I'll stop developing this, since losing the moto commands is not an option for me, and autovoice doesnt recognize from a recorded audio, it seems useless putting more effort on this.

Very cool. Thanks for looking into this. Hopefully it turns out well.

great!
This will be great! could potentially add loads of extra value to touchless control. I knew rooting was worth it

If you haven't seen it already, you could try to use the Google Now/Search API: http://forum.xda-developers.com/showthread.php?t=2554173
It's also open source, so you could try to see how it works if you wanted to work on your own module instead of working with the API.
Also, it costs money, but you can use AutoVoice + the Now API + Tasker to do just this.

iSecks said:
If you haven't seen it already, you could try to use the Google Now/Search API: http://forum.xda-developers.com/showthread.php?t=2554173
It's also open source, so you could try to see how it works if you wanted to work on your own module instead of working with the API.
Also, it costs money, but you can use AutoVoice + the Now API + Tasker to do just this.
Click to expand...
Click to collapse
I have AutoVoice + Now API + Tasker already, but the problem is that Now API needs connections, and it takes too long, to touchless control pass the parameter to google now and google now proccess it.
If it is already inside the touchless control, it will reduces the time in like 10s. I thinks it worth the work.

caioketo said:
I have AutoVoice + Now API + Tasker already, but the problem is that Now API needs connections, and it takes too long, to touchless control pass the parameter to google now and google now proccess it.
If it is already inside the touchless control, it will reduces the time in like 10s. I thinks it worth the work.
Click to expand...
Click to collapse
I have the same setup and I agree with you.
Have you made any progress on this si far?

Charlie.igg said:
I have the same setup and I agree with you.
Have you made any progress on this si far?
Click to expand...
Click to collapse
Yeah, i tested it with that method, and every command fires the method, so I'll try to log all paramters to see where is the recognized text,
and try to exit without calling the google now.
If I can get it done, I'll start building something to customize commands, I wanna go with tasker, but I never build any tasker plugin, if someone can help me, it could go faster.

I think that is the wrong method, as all parameters are useless.
I'm trying to find another method to hook up.
The problem is that with a decompiled version it's very hard to find something

Good news everyone I found a class that have a method that is called everytime it recognizes, with the words and commands in JSONObject.
https://github.com/caioketo/AudioMonitorDec/blob/master/src/f/b.java
this is the class, and the JSONObject parameter have the words, and everything else, I will try to study it more, if I confirm that we can work with this method, we will be one step forward.

Not so good news, that class get a JSON for every thing you say IF it is a command, if you say call, it will return correct.
If not a command (google search) it just send "GARBAGE" and ignores it, I found another class that call googlesearch, but it goes on audio.
It dont recgonize what isnt a command, just call:
Code:
uri = Uri.parse((new StringBuilder()).append("content://com.motorola.audiomonitor.raw_audio/command_audio/").append(s1).toString());
intent = new Intent("com.google.android.googlequicksearchbox.VOICE_SEARCH_RECORDED_AUDIO");
intent.setData(uri);
intent.addFlags(0x10000000);
So it pass an audio file to google search proccess, so we will need some audio recognition lib to help us here.

So I got it to hook the correct methods, getting the correct variables, and results, also getting the raw audio file that it sends to google search.
Now I need to process this file, with some recognition lib, since I never worked with it, I don't know where to start.
If someone could help me here it would be a lot easier.

Yes, help this OP out! This could become one of those 'must-have' mods for any Moto X (or Android) user!

I sure wish I knew more about this to help. It looks like they are using Dragon speech reg

I really think the better (and easier) path would be to simply activate the native google now/voice search activity on hotword detection. (As opposed to processing and passing the audio like audio monitor does now)
This way you can take advantage of the now api that others are actively extending. The dragon stuff in audiomon is proprietary and limited to the X8 devices.

deficitism said:
I really think the better (and easier) path would be to simply activate the native google now/voice search activity on hotword detection. (As opposed to processing and passing the audio like audio monitor does now)
This way you can take advantage of the now api that others are actively extending. The dragon stuff in audiomon is proprietary and limited to the X8 devices.
Click to expand...
Click to collapse
The problem is that to launch the google now activity it takes too long.
Im discussing it in the google+ community of autovoice:
https://plus.google.com/104794905921909929735/posts/Gisu3ccFbYy
I think we are finding a solution that would be grab the microphone to autovoice instead of touchless control the moment that you say "OK google now" and then everything will be in tasker

The only possible way right now is grab the mic after the "PING" sound, and send it to autovoice.
But this probably would break motorola commands, or, we will need to find a way around.

What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk

weldawadyathink said:
What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
It's not possible since touchless controll lock the microphone, auto voice would listen nothing.

weldawadyathink said:
What about have autovoice background listening start when touchless control is the foreground app? Then autovoice could intercept commands and kill touchless control when it caught one, but if not, all touchless control commands are still usable
Sent from my XT1060 using Tapatalk
Click to expand...
Click to collapse
If you wanted to go that route, you might as well just use tasker to kill touchless control and launch autovoice when touchless control comes to the foreground

Unfortunally, it seems not be possible to get both things working together, "Moto commands" and "autovoice", and for this reason, I'll stop developing this, since losing the moto commands is not an option for me, and autovoice doesnt recognize from a recorded audio, it seems useless putting more effort on this.

Related

[APP][2.2+] My Car: Start car with voice/Vlingo/Viper/schedule based on temp/location

I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Lots of views... has anyone with a SmartStart system tried it? Any feedback?
Is there anything I could do to make the setup simpler (a video, providing Xampp setup instructions, etc.)?
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
hitchin999 said:
is there a way to integrate it with BB10 Voice Control? :fingers-crossed:
Click to expand...
Click to collapse
Might take a little digging, but we could probably figure out a way to get something working.
It appears that BB10's voice control has an "open" or "launch" command that works for some side-loaded Android apps.
http://forums.crackberry.com/blackberry-10-os-f269/voice-control-commands-772534/
Unfortunately, it doesn't look like "start" is a valid thing to say, so saying "Launch My Car" could work, but not as cool (that's why I was using Vlingo, because its key word to start apps is "start.") Although, since this is very new, maybe "start" is a valid thing to say to start an app.
The user on that post above states that this works for some side-loaded Android apps. We'd need to figure out what the criteria by which an Android app can be launched by BB10 via voice control is.
Would you be able to test it with some random Android app that runs on BB10, preferably one with a space in the name, to see if it works?
So for example, say "launch Angry Birds."
If it can do that, hopefully we can come up with something that will work. The scheduling part might be easier to do some other way (Viper's app has scheduling now, it didn't at the time of the OP).
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
Would you be willing to share those apps? I want to do the same exact thing but am having trouble.
Sent from my XT1056 using Tapatalk
gildan27 said:
I was inspired for this by Fiqett, who created a Siri plugin that communicates with a PHP script that can start his car via his Viper SmartStart system. Much credit to him for the idea and the script.
This does something similar on Android (using Vlingo), along with some extra features (you can schedule the car to start based on the location of your phone and the current temperature).
What does it do?
You can start Vlingo and say “Start my car” and the car will start (you need a phone-capable Viper SmartStart system)
You can just tap the app and the car will start
You can schedule the car to start automatically at a certain time if the phone is at a defined location and if the temperature is below a defined setting
Please read this post completely before downloading. Some setup is required. Do not hesitate to ask if you are having trouble setting it up.
What does this require?
A phone-compatible Viper SmartStart system or module
An Android SmartPhone running Android 2.2 or later. I have tested this on a Galaxy Nexus and a Motorola Droid 1.
Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control)
A web server running PHP to run the control script (something like Xampp will work fine [http://www.apachefriends.org/en/xampp.html]). If there is enough interest in this, I can provide detailed instructions for configuring Xampp, but the configuration is straightforward.
My Android app (My Car, links below)
Vlingo (https://market.android.com/details?id=com.vlingo.client)
AndroidIdeas's TaskBomb (https://market.android.com/details?id=org.androidideas.taskbomb&hl=en) (any scheduler that can launch an activity will work)
How do I set it up?
Download Fiquett's viper_control.php script (https://github.com/fiquett/Viper_SmartStart_Control). Edit lines 9 and 10 to include your Viper username and password. Because the username and password are hardcoded in the script, the credentials are never passed insecurely between the phone and the server. The control script logs into Viper's servers and performs the requested action over HTTPS, so it is secure.
Put viper_control.php on a web server that is running PHP. I have it on a website hosted on GoDaddy.com. It would be more secure to put it on your home network and only access it via WiFi. You could also forward ports on your router so it could be accessible from anywhere. Something like Xampp (http://www.apachefriends.org/en/xampp.html) would probably run the script fine on Windows, Mac OS X, or Linux. Anyone with the knowledge that the script exists can start or unlock the car. Thus, the most secure way is to only access it via WiFi.
Once the script is set up, you should be able to go to your control URL in a browser (followed by ?action=remote) and the car should start (for example, http://192.168.0.100/viper_control.php?action=remote).
Install My Car (link is below).
Start the My Car Configuration app. Enter the URL for your viper_control.php script (do not put ?action=remote on the end). The other settings are optional and are for the Start My Car If app, which will start the car if the car is in the provided city and the temperature is under the provided value. Make sure you click Exit when you are done. Otherwise, Vlingo or TaskBomb might start the configuration instead of the car.
Run the My Car app. The car should start. If you run it again, the car should shut off.
Install Vlingo. I checked the Auto Listen box at the bottom so that it will start listening as soon as I start Vlingo (or you could use a Vlingo widget). You should be able to say “Start my car” to start the car.
Install TaskBomb for scheduling the car to start. Launch it, and go to Tasks. Add a new task, and name it “Start My Car.” Change the Action Type to MAIN. For Activity, select Start My Car If. Leave all other settings as they are. Go to Alarms. Add a new alarm, and select the task you just created. Set the schedule as desired. Mine runs Monday-Friday at 7:20am.
How do I get it?
Download the APK here:
http://www.ascci.net/mycar/MyCar.apk
Note: Google Chrome on ICS appears to rename this to a .zip file. Use a file manager to name it back or use the stock browser.
Plans for future versions:
App icons (I’m not very good at those, but I will take a stab at it if people use the app)
Display something to indicate if the car started or not
A way to start the car and immediately unlock it--for when you are in sight of it and want to start it just to be cool.
Any feedback, questions, or suggestions are welcome!
Click to expand...
Click to collapse
I am willing to pay you to help me set this up with tasker app factory. Private message me if you're interested.
Sent from my XT1056 using Tapatalk
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
is it possible that you could show me how to make my assistant app start my car i will donate to you for the assistance
udz2002 said:
Awesome! Nice work!
I have the paid version of Tasker and Assistant
I created a Tasker task that performs an HTTP GET of the viper_control.php?action= command. I then used Tasker's App Factory to create 4 different apps; lock, unlock, start, and stop.
The paid version of Assistant allows you to teach your assistant, for example; "When I say start my car open Start Car". Now I can say "Hey assistant, start my car" and my car starts.
Now to use Tasker to schedule my car to start and maybe even by temperature...
Click to expand...
Click to collapse
I found copies of your tasks elsewhere and am using in them with Tasker and Autovoice.
Do you know how to check status updates or get gps?
No I do not, sorry. I reactivated my SmartStart recently but it doesn't work right now.
if this post is still alive... I'd like to be able to send a request that unlocks the doors and then starts the car with one command, custom iPhone icon or web script. the reminder built into the app tries to start the car before disarm and alarm goes off every time. and of course, I'll pay.
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
spoteat71 said:
Alexa, Start my Car
I finally stabilized a project that I have been working on for some time now. The project is to open my garage and start my jeep on demand using the Amazon Alexa voice assistant. Similar to the features on the Tesla. Using the Raspberry PI Zero and my existing home automation system, I can now command my Echos to “Warm up my Jeep” and be more confident that the task will run.
I first created this project by writing a program in the Android app Tasker where I used the Insteon APIs and the Viper SmartStart APIs to control both my garage and jeep. The program was to open the garage, wait for a confirmation that the garage was opened, and then start my jeep only if the garage was opened, all by a voice command. But the program was unreliable. It would work sometimes but most times it didn’t. I believe that the program was too process intensive for my Samsung S8 smartphone.
A few weeks ago, I decided to use another processing mechanism; the Raspberry PI. I found a python script on GetHub that uses the Viper Smartstart APIs to start my jeep. I installed it, tailored it to my needs, and wrapped a CGI script around it so that I can easily call it from my existing home automation system as an external network resource. I created a program that opens my garage, wait for a confirmation that my garage was opened, and then call the network resource that starts my jeep.
With my home automation system already integrated with the Amazon Alexa services, it was easy to have my Echos run my program to start my jeep. I basically set up my program in the Amazon Alexa app as a new device and created an Alexa Routine, for a customized command. I now say “Alexa, warm up my jeep” and the Alexa services open my garage and start up my jeep.
This project is awesomely convenient for me and secure as well. It easily fits within my already existing security model. Taking advantage of my Geo Fencing features, the program is designed to run only if I’m at home. And it is only accessible within my internal network. The alerts whenever my garage is opened and/or closed are still in place. And my security cameras and control panels still show me the garage whenever the garage door is opened and/or closed.
This was an exciting project and I’m still making enhancements to it, but for the most part it works as I intended, and it is much more reliable than using Tasker.
Click to expand...
Click to collapse
Is it still working?

[APP] Automagic

For those not aware of automagic:
Automagic is a automation application that uses a flow-chart interface to set-up the automations you want. It has a few pre-programmed flows (mostly hidden in the 'catalog'), but it's mainly the imagination that's the limit. So my reasoning for this post is collecting more flow charts or ideas, share them with others and hopefully inspire more.
Link
Automagic for Gleeo
Automagic premium
Automagic for gleeo is in principal for their time managing app Gleeo, but it can be used for a number of different tasks as wel.
Automagic premium is their paid app, I know that's commercial but it only features more actions/triggers/... than the free version, which is already pretty versatile on its own.
Flow charts
flow charts typically consist of
- a trigger (rectangle box with rounded corners)
- a condition (diamond box)
- an action (rectangle box)
My flow charts
- basic airplane mode by clock (see catalog by pressing the menu button)
- a basic wifi connected > disable mobile data // wifi disconnected > enable mobile data
- 2 NFC triggered flows (but they could be altered to location/time)
This app looks interesting. Love the flow chart design.
I downloaded the lite version, but there seem to be very little things I can do with it.
I dont mind paying for the pro, but would like to test the task that I wish to setup firtst; as I've already bought AutomateIt and Tasker (too complicated for my usage). AutomateIt does not have some actions that I wish to setup e.g. WIFI tethering.
Is there a trial app? or do you happen to have a Xperia S, and can confirm if the following action work:
1) trigger on/ off WIFI tethering (without intervention)
2) trigger on/ off GPS (without intervention)
3) trigger on/ off NFC (without intervention)
This application shows a lot of potential. I bought the pro version and will play around with it as soon as I have some time. In the mean time, I downloaded and activated and313's Proximity Screen On/Off flow. It works pretty well except for a weird admin problem message when trying to turn off the screen.
Overall, a good program with a lot of potential. Well done guys :good:
Edit: Enabling admin privileges for Automagic from settings solves the issue.
Been using this as a replacement for Tasker and have been very happy with it. The flowchart style profiles and logging options make creating complex profiles much easier. The other thing I like is that many options like NFC or lockscreen toggling are built in and it doesn't need all the extra addins/plugins that I needed to get things done with Tasker.
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
utter! + Automagic + permanent voice recognition
Hi, good day all.
I'm trying to use command:2 (invoke permanent voice recognition) intent via automagic instead of Tasker. I much prefer Automagic and will not turn away from it. (I'm a novice re: programming language if even that)
I'll explain what I have tried so far, hopefully someone can lend a helping hand.
In Automagic I have tried "Start Activity" and "Send Broadcast" Action Types.
I'm making some progress with the "Start Activity" Action where my...
-ACTION TYPE = "Start Activity"
-ACTION = "android.intent.action.SEND"
-Explicit Component Checked...
PACKAGE NAME = "com.brandall.nutter"
CLASS NAME = "com.brandall.nutter.EIH"
EXTRAS =
"putString(command, 2);
putString(password, mypassword123)"
The ACTION results in a toast "utter! password failure for external application", it looks like the command is registering, but the password is not.
My utter! POWER USER PASSWORD = "mypassword123" literally, to make things simple... that password worked for me when invoking command:2 in Tasker. I've tried different alphanumeric passwords in utter! as well.
In other words I'm trying to set the data extras in automagic to "command:2" and "password:mypassword123", but, Automagic forces ";" and forces "putString" prestatements, if that makes any sense.
It looks like automagic has all intent Function, Variable, and Snippet options ie: putString, putBoolean, putFloat, putDouble etc.
How can I get Automagic activate the permanent voice recognition function in utter!?
It would be great to just be able to have some kind of activity shortcut to turn on off voice recognition instead of this, or just have it boot with phone boot. But I'm definately not complaining as utter! is free and very good!, thanks!
RESOLVED!
The great people at Automagic have replied to me (very quickly I might add) and have resolved my problem.
So for those of you who wish to control the permanent voice recognition of utter! via Automagic, here's the solution...
"Hi,
Your configuration almost works, only the extras field needs some small adjustments:
-ACTION: doesn't matter
-Explicit Component: Checked
-PACKAGE NAME: com.brandall.nutter
-CLASS NAME: com.brandall.nutter.EIH
-EXTRAS:
putInt("command", 4);
putString("password", "test");
It seems that utter uses an int for the command and not a string so you have to use the putInt function in this case.
The first parameter of the putInt and putString function needs to be a string, therefore the key has to be put into double quotes otherwise it would refer to a variable with this name.
Please also see the help page of action 'Script' for a description of the scripting language:
http://automagic4android.com/en/help/components#action_script
Utter also offers a plugin which can be used in Automagic with the action 'Plugin' but I'm not sure if utter allows to control the same functions using the plugin.
Automagic ROCKS!:good:
unknown cell ID's
In Llama, there's a trigger to invoke an action whereby if you are connected to unknown cell ID's the action is triggered. I wonder if it's possible to do the same on Automagic. Any ideas?
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
starbase64 said:
Hi,
please add a new action > remove / disable alarm
edit: calendar event from google calendar works also? edit 3: tested, its working
edit 2: Location based condition need a button "current Location"
cheers
starbase64
Click to expand...
Click to collapse
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
simonwil said:
Try posting your requests on the automagic site. I don't think the developer has anything to do with this thread.
http://automagic4android.com/en/
Click to expand...
Click to collapse
Yes, I forgot to mention I'm not the developer,
Just made this post to form a basis to share flows with other xda users.
For official news/posts/questions/... use the links provided in the post.
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
malexin said:
I've been wondering that as well. This is a truly amazing app, and automating my phone has never been this fun. Automagic is compatible with all the Tasker plugins, and I have yet to find anything I can't do with this app that I could do with Tasker.
Here is part of my battery saving flow, enabling data traffic for a short while four times per hour while the screen is off (except for during nights and when battery is low), at the same time making sure not to turn off data if there is any ongoing traffic.
I could do the same in Tasker, but I find it so much easier to do when you can see the whole automation flow like this. Also, it looks impressive
Click to expand...
Click to collapse
How is this profile working for you? Would you mind sharing it?
steelersmb said:
How is this profile working for you? Would you mind sharing it?
Click to expand...
Click to collapse
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
malexin said:
It's working very well, and my battery lasts noticeably longer. Previously I was using a separate app for this, but making my own flow was more fun, and works just as well.
Here are the flows for you (one for when turning the screen off and one for when turning it on).
Click to expand...
Click to collapse
Thanks, brow, but how do I import this .xml file into the app?
Firehead said:
Kinda surprised this isn't popular. Any reason why? Seems like it's a very well made app.
Click to expand...
Click to collapse
I think it's because he doesn't use advertisement for promote hes app
Importing flow as XML file
fuone said:
Thanks, brow, but how do I import this .xml file into the app?
Click to expand...
Click to collapse
Hi,
also tried to import xml files into Automagic Premium (AP)
But whithin the app you just get some bad Apps to select for opening the importing file. (Look at: Menue=>Manage=>Import Flows/Widgets)
So here is how it works for me:
- search file with any file browser
- try to open it and select AP for this action
- done
Next you open AP you'll find the flow at the "Ungrouped" folder, or in the folder defined by the programmer.
Hope this can help.
Hi,
press the 3dot to open the quick menü for this flow and then press send, now you can attached the xml file here
regards
starbase64
This is best automation app i have ever used as i used tasker and lima.. But this app is so powerful and so fun.. I love it.. And so easy to use.. Recommended for everyone...
I know this is an old thread, but I just found out about it and was wondering if anyone had any amazing flows they'd like to share?

App to add detection of driving (like moto x)?

Dear Nexus 5 users,
I'm coming to the N5 from a Motorola phone and am used to using smart actions to trigger modes on my phone. The Moto X detects when you are driving and adjusts to voice controls and readout of messages.
Is there any app out there for nexus devices that can do the following:
Turn WiFi off
Turn Bluetooth on
Play a specific Google play music playlist
Read out incoming messages
All of this triggered by NFC ideally.
I usually create a drive time playlist ahead of long journeys or a new one for the weeks commutes to work.
Thanks,
Al
I would suggest learning how to work Tasker it can do all these things and with a plugin it can even work with NFC
https://play.google.com/store/apps/details?id=net.dinglisch.android.taskerm&hl=en
Hope this helps
+1 for Tasker.
You can do what you're requesting to do...and so much more.
AndrasLOHF said:
+1 for Tasker.
You can do what you're requesting to do...and so much more.
Click to expand...
Click to collapse
Thanks both for the tasker tip. It will go a long way to what I want. The tricky bit is getting a custom playlist to load in Google music. It seems Google Music isn't very controllable...

Tasker support available - TaskS2

Didn't see anything here in the apps forum on Tasker support on the S3. (There are a couple threads in the Q&A section that mention it.) Adding info here in apps so folks to find it easily and set it up to try.
Original thread from S2 forum where it started is here. Link below is to page five in that thread where the author of the app announced the original release a couple years ago.
https://forum.xda-developers.com/gear-s2/help/request-tasker-interface-t3217756/page5
Install the "TaskS2 for Tasker: Automation on your Wrist" app on your Gear S3 from the Gear mobile app. (99 cents)
You'll need to enable "Allow external access" in Tasker Preferences on your phone (Misc. section of Preferences) so the watch app can access it.
Some have had issues w/disconnects to the Tasker app but in several days using it I've never seen that issue come up. Removing the Tasker app from battery optimization should resolve/help w/that issue.
I've used TaskS2 to manage my phone settings (e.g., set to vibrate in movie theater) and home automation tasks (turn off lights, lock doors, etc.).
Fun stuff.
Same author has another app that works with IFTTT and is supposedly "Standalone" called Trigger. I find it more responsive and doesn't disconnects as often as TaskS2
gremlin007 said:
Same author has another app that works with IFTTT and is supposedly "Standalone" called Trigger. I find it more responsive and doesn't disconnects as often as TaskS2
Click to expand...
Click to collapse
Thanks, I'll look at it.
I've still had zero disconnects/delays with TaskS2, so still wondering why others had that issue. Been perfect for me. I've had more delays w/IFTTT automations that I use w/my home automation (SmartThings) so not sure that IFTTT would be better than me, but always love a new toy so I'm off to look into his IFTTT app.
Thanks!
Redflea said:
Thanks, I'll look at it.
I've still had zero disconnects/delays with TaskS2, so still wondering why others had that issue. Been perfect for me. I've had more delays w/IFTTT automations that I use w/my home automation (SmartThings) so not sure that IFTTT would be better than me, but always love a new toy so I'm off to look into his IFTTT app.
Thanks!
Click to expand...
Click to collapse
My Tasker app is heavy on my phone because I use it to control my home automation (Wink), and not natively. It's a custom JSON set-up coupled with Autovoice, Autoinput, Autoremote etc. I'd rather have direct Tasker connection than go over the net through IFTTT too due to the delays but it seems to be the most reliable thing for me. Hope it works out for you! IFTTT + Stringify really does let you do anything you want though.
The IFTTT triggers can be used with Makers channel and Autoremote on your phone to control Tasker stuff. That's how I use mine as a plan b when TaskS2 fails.
For those using this app, can you automate the watch brightness? I'm a moderate - heavy tasker but looking at the app description it appears as though it only allows you to access existing tasker profiles.
shotguntheenforcer said:
For those using this app, can you automate the watch brightness? I'm a moderate - heavy tasker but looking at the app description it appears as though it only allows you to access existing tasker profiles.
Click to expand...
Click to collapse
I use it to run tasks on my phone to control my phone and my home automation (SmartThings).
Haven't tried to use it for watch control - you'd need a way to interface w/the Gear app, AFAIK, to control watch settings.
shotguntheenforcer said:
For those using this app, can you automate the watch brightness? I'm a moderate - heavy tasker but looking at the app description it appears as though it only allows you to access existing tasker profiles.
Click to expand...
Click to collapse
It is not possible but could be a nice feature Especially when i'm using a sHealth and every time need to turn off bluetooth in the watch manually.
Redflea said:
I use it to run tasks on my phone to control my phone and my home automation (SmartThings).
Haven't tried to use it for watch control - you'd need a way to interface w/the Gear app, AFAIK, to control watch settings.
Click to expand...
Click to collapse
OK, I'll poke around in the gear app to see if the settings are available. If so, I should be able to run a dpad task to access and toggle the settings... I'm going to test it
---------- Post added at 01:48 PM ---------- Previous post was at 01:43 PM ----------
kluczus said:
It is not possible but could be a nice feature Especially when i'm using a sHealth and every time need to turn off bluetooth in the watch manually.
Click to expand...
Click to collapse
Have you tried to run an app task to turn off Bluetooth when launching shealth? I suppose that wouldn't work if you launch it from the watch. Oh what could've been
shotguntheenforcer said:
OK, I'll poke around in the gear app to see if the settings are available. If so, I should be able to run a dpad task to access and toggle the settings... I'm going to test it
Click to expand...
Click to collapse
Thanks for checking into this, @shotguntheenforcer...I'd love to be able to modify phone volume based on location (at work or not) or day of week/time if via location isn't possible.
I'll go google a bit, but haven't heard of "dpad task" before - is that a way to automate steps in apps that don't provide a tasker plugin?
Redflea said:
Thanks for checking into this, @shotguntheenforcer...I'd love to be able to modify phone volume based on location (at work or not) or day of week/time if via location isn't possible.
I'll go google a bit, but haven't heard of "dpad task" before - is that a way to automate steps in apps that don't provide a tasker plugin?
Click to expand...
Click to collapse
You can automate volume by location with tasker either through location or cell tower. I use this to enable and disable wifi and location settings. You are correct on dpad tasks.
As of now I can't get to gear settings from the app which sucks. Still looking for alternatives
shotguntheenforcer said:
You can automate volume by location with tasker either through location or cell tower. I use this to enable and disable wifi and location settings. You are correct on dpad tasks.
As of now I can't get to gear settings from the app which sucks. Still looking for alternatives
Click to expand...
Click to collapse
Oops - typo in my response. I am already controlling my phone volume, etc., via location and Tasker. I meant to say that I wanted to figure out how to control my watch volume/settings via location.
Bummer this isn't easier to do - something that Samsung should enable.
Redflea said:
Oops - typo in my response. I am already controlling my phone volume, etc., via location and Tasker. I meant to say that I wanted to figure out how to control my watch volume/settings via location.
Bummer this isn't easier to do - something that Samsung should enable.
Click to expand...
Click to collapse
I agree. Hopefully they will add the ability to do it in the future. The only scheduling I've found was DND but like you I want to access the settings and the gear app is useless
There's no way to control the watch from the phone, or TaskS2 or anything like that.
Pity, because it would open up so many possibilities.
This is the first gear app installed for my gear s3. Thanks!

Question Rules Like routine o short ut?

Hi.
Is there anything like samsung routines or iphone shortcuts on the pixel?
In the menu I only found the rules but I can't do simple things such as activating or deactivating the data connection at a precise time on a specific day. Does this possibility exist on the pixel? Alternatively is there a program that does it but without root? I have tried macrodroid but it doesn't work. Thanks in advance
It seems this device doesn't have it and I also miss it. No way to program vibrate mode at certain hours every day for exemple
If guess Tasker app can do all of this, for a modest one time fee. I haven' tried it yet on this device, though
Tasker - Apps on Google Play
Automate everything from settings to photos, SMS to speech. ADC2 prize winner.
play.google.com
_Johnito_ said:
It seems this device doesn't have it and I also miss it. No way to program vibrate mode at certain hours every day for exemple
If guess Tasker app can do all of this, for a modest one time fee. I have tried it yet, though
Tasker - Apps on Google Play
Automate everything from settings to photos, SMS to speech. ADC2 prize winner.
play.google.com
Click to expand...
Click to collapse
Thanks. Do you have already use it to change on/off connection data?
I have already use macrodroid and aprofile But No one of the two works, not even giving adb permissions.
Since Tasker is paid, I wouldn't want to buy it unnecessarily
Tasker is maybe not the most easy to use app, but is really powerful and I confirm you that it can do what you need.

Categories

Resources