Reroute audio from one channel to another with Tasker - Tasker Tips & Tricks

Hello Taskers,
I have already managed to reroute audio from a channel to another on Android, and using only Tasker. Therefore, it will no longer be necessary to use the well-known 'SoundAbout' app; at least with the most common channel: Multimedia.
Code:
A1: Java Function [ Return:(AudioManager) temp Class Or Object:CONTEXT Function:getSystemService
{Object} (String) Param:audio Param: Param: Param: Param: Param: Param: ]
<Headphones -> Speaker>
A2: Anchor
A3: Java Function [ Return: Class Or Object:temp Function:setWiredHeadsetOn
{} (boolean) Param:false Param: Param: Param: Param: Param: Param: ]
A4: Java Function [ Return: Class Or Object:temp Function:setSpeakerphoneOn
{} (boolean) Param:true Param: Param: Param: Param: Param: Param: ]
A5: Java Function [ Return: Class Or Object:temp Function:setMode
{} (int) Param:3 Param: Param: Param: Param: Param: Param: ]
<Speaker -> Headphones>
A6: Anchor
A7: Java Function [ Return: Class Or Object:temp Function:setSpeakerphoneOn
{} (boolean) Param:false Param: Param: Param: Param: Param: Param: ]
A8: Java Function [ Return: Class Or Object:temp Function:setWiredHeadsetOn
{} (boolean) Param:true Param: Param: Param: Param: Param: Param: ]
A9: Java Function [ Return: Class Or Object:temp Function:setMode
{} (int) Param:0 Param: Param: Param: Param: Param: Param: ]
Now it only remains to find out the following:
- How to redirect to/from other channels: Call (second speaker, not in-call), BT.
- As an option, find out how to do it in the Alarm, System, Notifications, etc. channels. But knowing that these channels use the main speaker, I don't think it's necessary.
- Play the sound by two channels at the same time, that is, Main speaker and Headphones. (another app other than SoundAbout used allow it, so it should be possible, unless external libraries are used)
- And I don't know what else. I leave it to your imagination ...
So, if someone can contribute to it, I would be very grateful. WE CAN

Related

Pebble smart start

Hello everyone, I just received my pebble watch yesterday from best buy and I had a good idea or concept for pebble. I'm not an expert on making apps or hacking but, I do know a little and I'm still learning. What I'm trying to do if possible is remote start/lock and unlock your vehicle from your pebble, calling it pebble smart start. Of course you would need a viper smart start device installed on your vehicle or by hacking an odb scanner dongle to send commands via blue tooth. So far I'm figuring out what I can do with Tasker and pebble Tasker app. I know it's not impossible to come up with this, I just don't have enough experience but, if anybody wants to help or start developing something of this sorts I will gladly donate some cash and help on anything I can. In the mean time I'm gathering info and more Ideas to make this happen. I think it would be awesome to have something like this. People are already opening garage doors with the pebble watch.
Sent from my HTC One using Tapatalk 2
With Pebble Tasker or Glance you can launch any tasker task and since tasker can already do this with compatible Viper equipment, it's not only possible but really very simple. You just need the watch, tasker and a viper remote start compatible system.
Thanks I have every thing accept the viper smart start which I'm planning on getting sometime next week.
Sent from my HTC One using Tapatalk 2
Anyone know how to get this to work?
Sent from my GT-N8013 using Tapatalk 4
This is the link for the instructions: https://plus.google.com/109925457418000128828/posts/WKjzY7rktKz
I don't use Viper but I would assume just map the proper task. Let us know if anyone gets this working, this sounds pretty cool ^___^
Sent from my Nexus 7 using xda app-developers app
I've been doing this for a while, but I just saw this thread.
Here's a task I've been using. You need to feed it your Viper username and password, the command you want to send, and your vehicleID. I'll put that task in, too. Basically, it send the credentials out and receives a sessionID. Then, using that ID, it sends the control command. You can send it "arm", "disarm", and "remote". The %SERVER value is "https://colt/calamp-ts.com". Then, I just use PebbleTasker to run tasks that set the command variable and run the Send Command Task. I get a notification depending on if it responds with success or an error.
Car Send Command (94)
<Success Pattern>
A2: HTTP Get [ Serverort:%SERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SSSERVER Path:device/sendcommand/%SSVEHICLEID/%SSCOMMAND?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A9: If [ %HTTPD ~ *"StatusCode"* ]
A10: Variable Set [ Name:%SSRESPONSE To:%HTTPD Do Mathsff Appendff ]
A11: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," received. Do Mathsff Appendff ]
A12: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Success Pattern>
A13: Vibrate Pattern [ Pattern:%SUCCESSPATTERN ]
A14: Else
A15: Variable Set [ Name:%SSRESPONSE To:ERROR Do Mathsff Appendff ]
A16: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," failed. Do Mathsff Appendff ]
A17: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Error Pattern>
A18: Vibrate Pattern [ Pattern:%ERRORPATTERN ]
A19: End If
A20: Perform Task [ Name:Show Car Remote Notification Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
This one fetches the carID and keeps it in a global variable. It also needs the username and password. You may need to adjust the parsing if you have more then one car in the system.
Car Fetch Id (99)
A1: Variable Set [ Name:%SSSERVER To:https://colt.calamp-ts.com Do Mathsff Appendff ]
A2: HTTP Get [ Serverort:%SSSERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SERVER Path:device/advancedsearch?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A10: Variable Set [ Name:%vipervehicleiddata To:%HTTPD Do Mathsff Appendff ]
A11: Variable Split [ Name:%vipervehicleiddata Splitter:"DeviceId":" Delete Baseff ]
A12: Variable Split [ Name:%vipervehicleiddata2 Splitter:"," Delete Baseff ]
A13: Variable Set [ Name:%SSVEHICLEID To:%vipervehicleiddata21 Do Mathsff Appendff ]
Im new to tasker and android, but i want to do this. Where do i put this code?
ecordova6 said:
Im new to tasker and android, but i want to do this. Where do i put this code?
Click to expand...
Click to collapse
Looking to try this out. Any answers?
Go into Tasker and create a new task. Start adding actions and fill them out according to the line descriptions in the previous post. Do it all again for the second task listed. That one will need to be run on its own once to grab the vehicle id.
These are pretty complicated tasks that will likely require personalization and troubleshooting based on your individual setup. I'd highly suggest working on some simpler tasks first to gain familiarity with Tasker. It's a really complex program, but highly worth learning.
Thanks I figured it out but opted to do it with my glass rather than the Pebble. Voice commands are a pretty cool way to do it.
hawkjm73 said:
I've been doing this for a while, but I just saw this thread.
Here's a task I've been using. You need to feed it your Viper username and password, the command you want to send, and your vehicleID. I'll put that task in, too. Basically, it send the credentials out and receives a sessionID. Then, using that ID, it sends the control command. You can send it "arm", "disarm", and "remote". The %SERVER value is "https://colt/calamp-ts.com". Then, I just use PebbleTasker to run tasks that set the command variable and run the Send Command Task. I get a notification depending on if it responds with success or an error.
Car Send Command (94)
<Success Pattern>
A2: HTTP Get [ Serverort:%SERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SSSERVER Path:device/sendcommand/%SSVEHICLEID/%SSCOMMAND?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A9: If [ %HTTPD ~ *"StatusCode"* ]
A10: Variable Set [ Name:%SSRESPONSE To:%HTTPD Do Mathsff Appendff ]
A11: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," received. Do Mathsff Appendff ]
A12: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Success Pattern>
A13: Vibrate Pattern [ Pattern:%SUCCESSPATTERN ]
A14: Else
A15: Variable Set [ Name:%SSRESPONSE To:ERROR Do Mathsff Appendff ]
A16: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," failed. Do Mathsff Appendff ]
A17: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Error Pattern>
A18: Vibrate Pattern [ Pattern:%ERRORPATTERN ]
A19: End If
A20: Perform Task [ Name:Show Car Remote Notification Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
This one fetches the carID and keeps it in a global variable. It also needs the username and password. You may need to adjust the parsing if you have more then one car in the system.
Car Fetch Id (99)
A1: Variable Set [ Name:%SSSERVER To:https://colt.calamp-ts.com Do Mathsff Appendff ]
A2: HTTP Get [ Serverort:%SSSERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SERVER Path:device/advancedsearch?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A10: Variable Set [ Name:%vipervehicleiddata To:%HTTPD Do Mathsff Appendff ]
A11: Variable Split [ Name:%vipervehicleiddata Splitter:"DeviceId":" Delete Baseff ]
A12: Variable Split [ Name:%vipervehicleiddata2 Splitter:"," Delete Baseff ]
A13: Variable Set [ Name:%SSVEHICLEID To:%vipervehicleiddata21 Do Mathsff Appendff ]
Click to expand...
Click to collapse
I see a bunch of smiley faces in the text. I dont think I can use this code when its like that.
Funkquito said:
I see a bunch of smiley faces in the text. I dont think I can use this code when its like that.
Click to expand...
Click to collapse
11min into the new day here where I live and you've officially secured the winning of the Internets for the day.
Sent from my Nexus 5 using XDA Premium 4 mobile app
hawkjm73 said:
I've been doing this for a while, but I just saw this thread.
Here's a task I've been using. You need to feed it your Viper username and password, the command you want to send, and your vehicleID. I'll put that task in, too. Basically, it send the credentials out and receives a sessionID. Then, using that ID, it sends the control command. You can send it "arm", "disarm", and "remote". The %SERVER value is "https://colt/calamp-ts.com". Then, I just use PebbleTasker to run tasks that set the command variable and run the Send Command Task. I get a notification depending on if it responds with success or an error.
Car Send Command (94)
<Success Pattern>
A2: HTTP Get [ Serverort:%SERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SSSERVER Path:device/sendcommand/%SSVEHICLEID/%SSCOMMAND?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A9: If [ %HTTPD ~ *"StatusCode"* ]
A10: Variable Set [ Name:%SSRESPONSE To:%HTTPD Do Mathsff Appendff ]
A11: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," received. Do Mathsff Appendff ]
A12: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Success Pattern>
A13: Vibrate Pattern [ Pattern:%SUCCESSPATTERN ]
A14: Else
A15: Variable Set [ Name:%SSRESPONSE To:ERROR Do Mathsff Appendff ]
A16: Variable Set [ Name:%SSLASTCOMMANDRESULT To:Last comm: "%SSCOMMAND," failed. Do Mathsff Appendff ]
A17: Pebble Notifier [ Configuration:Notification with title: "Prius" and body: "% Package:com.dattasmoon.pebble.plugin Nameebble Notifier Continue Task After Errorn ]
<Error Pattern>
A18: Vibrate Pattern [ Pattern:%ERRORPATTERN ]
A19: End If
A20: Perform Task [ Name:Show Car Remote Notification Stopff Priority:5 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: ]
This one fetches the carID and keeps it in a global variable. It also needs the username and password. You may need to adjust the parsing if you have more then one car in the system.
Car Fetch Id (99)
A1: Variable Set [ Name:%SSSERVER To:https://colt.calamp-ts.com Do Mathsff Appendff ]
A2: HTTP Get [ Serverort:%SSSERVER Path:auth/login/%username/%password Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:vipersessid ]
A3: Variable Set [ Name:%viperssiddata To:%HTTPD Do Mathsff Appendff ]
A4: Variable Split [ Name:%viperssiddata Splitter:"SessionID":" Delete Baseff ]
A5: Variable Split [ Name:%viperssiddata2 Splitter:"," Delete Baseff ]
A6: Variable Set [ Name:%sessid To:%viperssiddata21 Do Mathsff Appendff ]
A8: HTTP Get [ Serverort:%SERVER Path:device/advancedsearch?sessid=%sessid Attributes: Cookies: Timeout:10 Mime Type:text/* Output File:viperdata ]
A10: Variable Set [ Name:%vipervehicleiddata To:%HTTPD Do Mathsff Appendff ]
A11: Variable Split [ Name:%vipervehicleiddata Splitter:"DeviceId":" Delete Baseff ]
A12: Variable Split [ Name:%vipervehicleiddata2 Splitter:"," Delete Baseff ]
A13: Variable Set [ Name:%SSVEHICLEID To:%vipervehicleiddata21 Do Mathsff Appendff ]
Click to expand...
Click to collapse
wow thank you so much, this is great, got it to work with my car, i might work on a tasker "code" that allows my car to autocatically unlock when I am near it
maybe i'll usee the connection to my cars bluetooth, but my car has to be on first
I keep getting an input/output error. I am going step by step with a flash to see if the info is coming in correctly but I'm not getting part the 2nd action can anyone help me
****figured it out****
Sent from my LG-D801 using xda premium
An easy way to get this to work is with a program called Repetitouch. It records your swipes and taps and allows you to replay them. You can then set it up as a Tasker task and map it to a button.
Sent from my SM-N900V using Tapatalk
How did you solve the input/output error?
I am getting this error after I updated my rom on my Verizon Note 3
Upgrading to the new 4G Module
For a long time this has been working for me. I even gone as far as recreating it on a raspberry pi and integrating it with the Amazon Echo. But recently I upgraded my 3G module to the 4G module and discovered that "colt" did not manufacture the 4G module as they did with the 3G module. So the url to command the Viper system has changed. Does anyone know the url that controls the 4G module? I did some sniffing and I found part of the url as vcp.cloud/v1 but can't create that url to run the authentication. If anyone has found the url I would greatly appreciate the help.
Thanks

Save car position

Hi
Is there a way to create a small app (or scene) with
-button to save actual position
-another one for later use - use google maps/any navi to guide me to that point
[optional]
include an menu to save such points, with options to name the points
You should be able to find many examples to do that for you. If you want, I have a tasker that saves the location to my contacts...and another that navigates. You could use as and example to learn from.
Sent from my g928c powered by RiverRom RR5 and SkyHigh 5.7
Sounds great!
dwa4321 said:
Sounds great!
Click to expand...
Click to collapse
Sure, so here's my task to save a location to contacts. I can trigger it with an AutoVoice command or a shortcut icon...the task recognizes which, hence the redundancy.
Code:
LOC Save To Contact (233)
A1: Secure Settings [ Configuration:AutoInput: service.ServiceAccessibility - Enabled Timeout (Seconds):0 ]
A2: Perform Task [ Name:LOC Convert Priority:%priority + 1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
A3: Send Intent [ Action:android.intent.action.INSERT Cat:None Mime Type: Data:content://com.android.contacts/contacts Extra:postal_type:Navigation Extra:postal:%LocLatLon Extra: Package: Class: Target:Activity ]
A4: AutoInput Action [ Configuration:Type: Id
Value: com.android.contacts:id/add_button_container
Nearby Text: address
Action : Click Timeout (Seconds):20 ]
A5: Set Clipboard [ Text:%LocAddress Add:eek:ff ]
A6: AutoInput Action [ Configuration:Type: Focus
Action : Paste Timeout (Seconds):20 ]
A7: If [ %AVCONTINUOUS !~ true ]
A8: AutoInput Action [ Configuration:Type: Text
Value: name
Action : Focus Timeout (Seconds):20 ]
A9: Else
A10: Set Clipboard [ Text:%avcommnofilter Add:eek:ff ]
A11: AutoInput Action [ Configuration:Type: Text
Value: name
Action : Paste Timeout (Seconds):20 ]
A12: AutoInput Action [ Configuration:Type: Text
Value: save
Action : Click Timeout (Seconds):20 ]
A13: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A14: Run Shell [ Command:input keyevent 4 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
A15: End If
A16: Secure Settings [ Configuration:AutoInput: service.ServiceAccessibility - Disabled Timeout (Seconds):0 ]
Here's that nested task "Location Convert":
Code:
LOC Convert (242)
A1: Secure Settings [ Configuration:GPS Enabled Timeout (Seconds):0 ]
A2: Variable Set [ Name:%space To: Do Maths:eek:ff Append:eek:ff ]
A3: Get Location [ Source:Any Timeout (Seconds):100 Continue Task Immediately:eek:ff Keep Tracking:eek:n ]
A4: HTTP Get [ Server:Port:maps.google.com/maps/api/geocode/json?latlng=%LOC&sensor=false Path: Attributes: Cookies: User Agent: Timeout:10 Mime Type:text/xml Output File: Trust Any Certificate:eek:ff ]
A5: Stop Location [ Source:Any ]
A6: Variable Set [ Name:%location To:%HTTPD Do Maths:eek:ff Append:eek:ff ]
A7: Variable Split [ Name:%location Splitter:"formatted_address" Delete Base:eek:ff ]
A8: Variable Split [ Name:%location2 Splitter:"lat" Delete Base:eek:ff ]
A9: Variable Split [ Name:%location21 Splitter:, USA Delete Base:eek:ff ]
A10: Variable Split [ Name:%location211 Splitter:" Delete Base:eek:ff ]
A11: Variable Set [ Name:%LocAddress To:%location2112 Do Maths:eek:ff Append:eek:ff ]
A12: Variable Split [ Name:%location22 Splitter:"lng" Delete Base:eek:ff ]
A13: Variable Split [ Name:%location221 Splitter::%space Delete Base:eek:ff ]
A14: Variable Split [ Name:%location2212 Splitter:, Delete Base:eek:ff ]
A15: Variable Set [ Name:%lat To:%location22121 Do Maths:eek:ff Append:eek:ff ]
A16: Variable Split [ Name:%location222 Splitter::%space Delete Base:eek:ff ]
A17: Variable Split [ Name:%location2222 Splitter:%space Delete Base:eek:ff ]
A18: Variable Set [ Name:%long To:%location22221 Do Maths:eek:ff Append:eek:ff ]
A19: Variable Set [ Name:%LocLatLon To:%lat %long Do Maths:eek:ff Append:eek:ff ]
A20: Variable Split [ Name:%location2112 Splitter:, Delete Base:eek:ff ]
A21: Variable Split [ Name:%location21123 Splitter:%space Delete Base:eek:ff ]
A22: Variable Set [ Name:%LocCity To:%location21122 Do Maths:eek:ff Append:eek:ff ]
A23: Variable Set [ Name:%LocZip To:%location211233 Do Maths:eek:ff Append:eek:ff ]
And here's my navigation task. It will recognize if I've told it to navigate to a specific address, a point of interest, or to one of my contacts.
Code:
Voice Navigation (240)
A1: Variable Set [ Name:%navto To:%avcommnofilter Do Maths:eek:ff Append:eek:ff ]
A2: AutoVoice Continuous [ Configuration:
Stopping continuous voice recognition
Persistent Notification: false Timeout (Seconds):0 ]
A3: Variable Convert [ Name:%navto Function:To Lower Case Store Result In: ]
A4: Variable Search Replace [ Variable:%navto Search:[0-9] Ignore Case:eek:ff Multi-Line:eek:ff One Match Only:eek:ff Store Matches In:%addressdirect Replace Matches:eek:ff Replace With: ]
A5: AutoContacts [ Configuration:Contact Name or Nickname: %navto Timeout (Seconds):1000 Continue Task After Error:eek:n ]
A6: Wait Until [ MS:100 Seconds:0 Minutes:0 Hours:0 Days:0 ] If [ %AVCONTINUOUS ~ false ]
A7: Media Volume [ Level:15 Display:eek:ff Sound:eek:ff ]
A8: If [ %acname Set ]
A9: If [ %acaddresses1 ~ *acadd* ]
A10: For [ Variable:%contact Items:%acaddresses() ]
A11: Array Pop [ Variable:%acaddresses Position:1 To Var: ]
A12: Goto [ Type:Action Label Number:1 Label:Check Contact Address ]
A13: End For
A14: Else
A15: Variable Set [ Name:%destination To:%acaddresses1 Do Maths:eek:ff Append:eek:ff ]
A16: Flash [ Text:Navigating to contact at %acaddresses1 Long:eek:ff ]
A17: Say [ Text:Navigating to %acname at %acaddresses1 Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:eek:n Network:eek:ff Continue Task Immediately:eek:n ]
A18: End If
A19: Else If [ %addressdirect1 !Set ]
A20: Perform Task [ Name:LOC Convert Priority:%priority + 1 Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:eek:ff ]
A21: Variable Set [ Name:%destination To:%navto %LocZip Do Maths:eek:ff Append:eek:ff ]
A22: Flash [ Text:Navigating to search result: %destination Long:eek:ff ]
A23: Say [ Text:Navigating to search result: %destination Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:eek:n Network:eek:ff Continue Task Immediately:eek:n ]
A24: Else
A25: Variable Set [ Name:%destination To:%navto Do Maths:eek:ff Append:eek:ff ]
A26: Flash [ Text:Navigating to address: %destination Long:eek:ff ]
A27: Say [ Text:Navigating to address: %destination Engine:Voice:default:default Stream:3 Pitch:5 Speed:5 Respect Audio Focus:eek:n Network:eek:ff Continue Task Immediately:eek:n ]
A28: End If
A29: Variable Set [ Name:%Destination To:%destination Do Maths:eek:ff Append:eek:ff ]
A30: Send Intent [ Action:android.intent.action.VIEW Cat:None Mime Type: Data:google.navigation:q=%destination Extra: Extra: Extra: Package: Class: Target:Activity Continue Task After Error:eek:n ]
Edit: I haven't looked at these tasks in a long time....they could probably be a bit more efficient.
Sent from my g928c powered by RiverRom RR5 and SkyHigh 5.7
thanks! Now I need to search how to import them
What you can do, is create these Tasks:
- GPS: on (you may need to be rooted and/or have "Secure Settings" app installed in order to turn on GPS. Alternative is to do that manually)
- Wait: 30 seconds to give time to get a GPS fix
- Variable Set: set Var %CarLocation to %LOC
- Variable Split: Split %CarLocation by a comma (so you get %CarLocation1 which is the Latitude and %CarLocation2 which is the Longitude)
Now you saved your current GPS position.
To use Google, you can find the Google URL. In Tasker:
- Go to URL: find the correct URL somewhere online
Replace the coordinates of destination by the %CarLocation1 and %CarLocation2 variables.
It depends if you already turned on GPS in another Project or Task, in that case you can skip that step

Bluetooth "Car" Mode not working. Exit task runs before "exiting".

Bluetooth "Car" Mode not working. Exit task runs before "exiting".
So here is my problem. Everything works fine. Connect to my HU and and it launches what I want. The exit task force closes the apps and locks the screen. However, what I have noticed is that after about 2 minutes the exit task would always run while my music was still playing. So I tried just making a 2nd profile for bluetooth connected (inverted). Exact same thing would happen. What I think is going on is that my head unit or s8 may disconnect somehow for a split second thus triggering the exit task. Is there any way to tell the profile to not run the exit task unless it has disconnected from my head unit for lets say more than 3 seconds?
Again, everything works...just the 1/2 second of what I think is the Bluetooth disconnecting triggering the exit task too soon.
Here is the copy of the description:
Profile: Blu (2)
Restore: no
State: BT Connected [ NameNX690HD Address:00:08:E0:4A:ED:1A ]
Enter: Music1 (6)
A1: Flash [ Text:LAUNCHING MUSIC FOR YOU DUDE Longff ]
A2: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A3: Launch App [ App:Samsung Music Data: Exclude From Recent Appsff Always Start New Copyff ]
A4: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A5: Launch App [ App:Music Visualizer Data: Exclude From Recent Appsff Always Start New Copyff ]
A6: Media Volume [ Level:15 Displayff Soundff ]
A7: Stop [ With Errorff Task: ]
Exit: Ex (13)
A1: Flash [ Text:CLOSING APPS Longff ]
A2: Variable Set [ Name:%app To:Music Visualizer Recurse Variablesff Do Mathsff Appendff ]
A3: AutoLaunch Query [ Configuration:App Nickname: %app
Contains All App Nickname: true Timeout (Seconds):60 ]
A4: Variable Set [ Name:%package To:%alpackages(1) Recurse Variablesff Do Mathsff Appendff ]
A5: AutoShare [ Configuration:App: Android
Action: App Details Settings
Data: package:%package Timeout (Seconds):10 ]
A6: AutoInput Action [ Configuration:Type: Text
Value: Force Stop
Action : Click Timeout (Seconds):20 ]
A7: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A8: AutoInput Action [ Configuration:Type: Text
Value: Force Stop
Action : Click Timeout (Seconds):20 ]
A9: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A10: AutoInput Global Action [ Configuration:Action: Home Timeout (Seconds):20 ]
A11: Variable Set [ Name:%app To:Samsung Music Recurse Variablesff Do Mathsff Appendff ]
A12: AutoLaunch Query [ Configuration:App Nickname: %app
Contains All App Nickname: true Timeout (Seconds):60 ]
A13: Variable Set [ Name:%package To:%alpackages(1) Recurse Variablesff Do Mathsff Appendff ]
A14: AutoShare [ Configuration:App: Android
Action: App Details Settings
Data: package:%package Timeout (Seconds):10 ]
A15: AutoInput Action [ Configuration:Type: Text
Value: Force Stop
Action : Click Timeout (Seconds):20 ]
A16: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A17: AutoInput Action [ Configuration:Type: Text
Value: Force Stop
Action : Click Timeout (Seconds):20 ]
A18: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A19: AutoInput Global Action [ Configuration:Action: Home Timeout (Seconds):20 ]
A20: Secure Settings [ Configuration:Lock Device Timeout (Seconds):0 ]

Automatic Birthday with Calendar and Whatsapp using AutoInput

Hi,
I Copied a project from the web for automatically wishing birthdays using whatsapp, but it doesn't seem to work since yesterday. When i started to debug, i found that the For loop doesn't put the %event in %item. If anyone could spare sometime to look into the task, it'll be very helpful.
Thanks
Post the description of the profile, not the xml.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
ktmom said:
Post the description of the profile, not the xml.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Click to expand...
Click to collapse
Thanks for the early reply, i have already solved it by replacing the variable. I still don't know why the %event variable wasn't working but %birthdays is.
Anyway here is the description
4. GetBday (11)
A1: Perform Task [ Name:7. Unlock Screen Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ] If [ %SCREEN ~ off]
A2: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A3: Launch App [ App:WhatsApp Data: Exclude From Recent Appsff Always Start New Copyff ]
A4: Perform Task [ Name:4. Unlock Whatsapp Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stopff ]
A5: AutoInput Global Action [ Configuration:Action: Home Timeout (Seconds):3 Continue Task After Errorn ]
A6: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
You can ignore upto here because the above is just to bypass my lockscreen password and app lock password.
<Get Events>
A7: Test App [ Type:Calendar Title Data:%TIMES Store Result In:%birthdays ]
A8: For [ Variable:%items Items:%birthdays() ]
A9: Variable Split [ Name:%items Splitter:'s birthday Delete Basen ] If [ %items ~ *'s birthday ]
<If you want to use it...>
A10: [X] Array Push [ Variable Array:%bday Position:999 Value:%items1 Fill Spacesn ] If [ %items1 Set ]
A11: Perform Task [ Name:4. WABday Priority:%priority+1 Parameter 1 (%par1):%items1 Parameter 2 (%par2): Return Value Variable: Stopff ]
If [ %items1 Set ]
A12: End For

Tasker Cell Near state issues

Hey there guys,I got some problems with my Tasker setup.
I'm using the cell near state to get my device detect when I'm at home.
At home it should turn off WiFi,gps and nfc.
After leaving home it should torn on wifi,gps and nfc.
The profile for home is called "Safe Zone" and the profile for when I'm not at home is called "Wildlands"
I got it to work for the @home task,but even after leaving home it's still active.
Tasker is excluded from all battery safer modes.
So I don't know what to do more,even after a couple days of research via Google,I couldn't figure out a solution.
I'm not a pro in Tasker,not even close to,but I had some nice tasks already going an working flawlessly.
So if you could help me out finding the solution I would highly appreciate it.
Code:
Profile: Safe Zone (6)
State: Cell Near [ Cell Tower / Last Signal:LTE:262.1.25736449 / 4
LTE:262.1.25736448 / 0 Ignore Cells:* ]
Enter: WiFi On (3)
Profile: Wildlands (7)
State: Not Cell Near [ Cell Tower / Last Signal:LTE:262.1.25736449 / 4
LTE:262.1.25736448 / 0 Ignore Cells:* ]
Enter: WiFi Off (2)
Profile: [App] YouTube (10)
Application: YouTube
Enter: App Sound Low (9)
Exit: App Sound Mid-range (11)
Profile: [App] 9GAG (12)
Application: 9GAG
Enter: App Sound Low+Display (13)
Exit: App Sound Mid-range+Display (14)
Profile: JBL Go Connected (15)
State: BT Connected [ Name:* Address:xxxxxx ]
Enter: App Sound High (8)
Exit: App Sound Mid-range (11)
Profile: Kenwood Connected (16)
State: BT Connected [ Name:* Address:xxxxxxxx ]
Enter: App Sound High (8)
Exit: App Sound Mid-range (11)
Profile: Headset Connected (19)
State: BT Connected [ Name:* Address:xxxxxxx ]
Enter: App Sound High (8)
Exit: App Sound Mid-range (11)
Task: WiFi Off (2)
A1: WiFi [ Set:eek:ff ]
A2: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Location Mode [ Mode:High Accuracy ]
A4: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: NFC [ Set:eek:n ]
A6: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: Flash [ Text:Von WLAN getrennt und GPS+NFC aktiviert Long:eek:ff ]
Task: WiFi On (3)
A1: WiFi [ Set:eek:n ]
A2: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Location Mode [ Mode:eek:ff ]
A4: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: NFC [ Set:eek:ff ]
A6: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: Flash [ Text:Mit WLAN verbunden und GPS+NFC deaktiviert Long:eek:ff ]
Task: At Work (4)
A1: Sound Mode [ Mode:Vibrate ]
A2: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Location Mode [ Mode:eek:ff ]
A4: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: NFC [ Set:eek:ff ]
A6: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: Flash [ Text:Arbeitsprofil Aktiviert Long:eek:ff ]
Task: After Work (5)
A1: Sound Mode [ Mode:Sound ]
A2: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: Location Mode [ Mode:High Accuracy ]
A4: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: NFC [ Set:eek:n ]
A6: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A7: Flash [ Text:Arbeitsprofil Deaktiviert Long:eek:ff ]
Task: App Sound High (8)
A1: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A2: Media Volume [ Level:15 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: Flash [ Text:Medien Lautstärke Max Long:eek:ff ]
Task: App Sound Low (9)
A1: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A2: Media Volume [ Level:1 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: Flash [ Text:Medien Lautstärke Mini Long:eek:ff ]
Task: App Sound Mid-range (11)
A1: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A2: Media Volume [ Level:7 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: Flash [ Text:Medien Lautstärke Mitte Long:eek:ff ]
Task: App Sound Low+Display (13)
A1: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A2: Media Volume [ Level:1 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: Display Timeout [ Secs:0 Mins:5 Hours:0 ]
A5: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A6: Flash [ Text:Medien Lautstärke Mini Long:eek:ff ]
Task: App Sound Mid-range+Display (14)
A1: Wait [ MS:0 Seconds:3 Minutes:0 Hours:0 Days:0 ]
A2: Media Volume [ Level:7 Display:eek:ff Sound:eek:ff ]
A3: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: Display Timeout [ Secs:0 Mins:1 Hours:0 ]
A5: Wait [ MS:50 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A6: Flash [ Text:Medien Lautstärke Mitte Long:eek:ff ]
I really hope someone can help.
Greets
You're using two different profiles one for turning off Wi-Fi and a different one to turn on, but both with cell near states?
I would use one, with the entry task turning off Wi-Fi (and whatever else), and the exit task to turn on Wi-Fi (and other settings).
You may need to long press the profile name, select the gear icon at the top then uncheck restore settings.
There are also some settings in preferences (three-dot menu);
Monitor / Display Off Monitoring / Cell Workaround: if things aren't working when the display is off
Monitor / Display Off Monitoring / Cell Wake Screen: second possible workaround when the display is off
Make sure to read Location Without Tears
Thanks for your reply.
As far as I remember, I already tried it with an exit task, not sure.
The two options are already enabled.
But I just deactivated the second cell profile called Wildlands and put and the wifi off task as the exit task for safe zone.
I was just using two profiles because I saw a lot of post, complaining about problems when using exit tasks in there profiles.
But my other profiles also using an entry and exit task without any hassle.
Is there a was to test that without having to leave home?
Cause I didn't plan to go somewhere over the weekend?
If not I've gotta wait and and see if that worked out.
The thing is,that Tasker is powerful and I know so less about all the stuff,even after watching tutorials and reading about variables etc.
I barely understand some of it,maybe because English isn't my native language,or because I can't open my mind for that right now.
But I will give you feedback asap.
Greets
Those two options should only be enabled if needed. If you haven't tried without them, then try that, and then only one at a time.
There are other ways to achieve this goal without using the cell near state. That is the least reliable of the location states.
I do understand that you want Wi-Fi off, but if you have a Wi-Fi network proximate to home, then letting that be the state, even with Wi-Fi off (it toggles on periodically to check and that's quick) may be more reliable for you.

Categories

Resources