Hi I am new to Tasked and trying to use it with a Samsung tab 2 and a wifi reversing camera that came with a app that automatically displays when the car is put in reverse , then when taken out of reverse the camera feed stops but the app remains. What I would like to happen is once the car reaches 10km (forward) the home screen would display and next time the car stops the task would reset so the same thing would happen again next time the car was taken out of reverse. The below works once for about a minute. Any suggestion appreciated
Profile: Speed
Context: State USB Plugged
Task:
Wait 2 Seconds
Get Location (GPS)
If %LOCSPD > 5
Go Home
On Aug 26, 2015 4:03 AM, "Grant B" <qtmulti...@gmail.com> wrote:
>
> Hi I am new to Tasked and trying to use it with a Samsung tab 2 and a wifi reversing camera that came with a app that automatically displays when the car is put in reverse , then when taken out of reverse the camera feed stops but the app remains. What I would like to happen is once the car reaches 10km (forward) the home screen would display and next time the car stops the task would reset so the same thing would happen again next time the car was taken out of reverse. The below works once for about a minute. Any suggestion appreciated
>
>
Try something like this.
> Profile: Speed
> Context: State USB Plugged
> Task:
1. Get Location (GPS) (check 'keep tracking')
2. stop : IF %PACTIVE !~ *,Speed,*
3. Wait 2 Seconds
4. If %LOCSPD > 5
5. Goto 2 : if %home = 0
5. Go Home
6. Variable set %home TO: 0
8. End if
9 variable set %home To: 1
10. Goto 2
Not tested but that should get yo going in the right direction..
> > Profile: Speed
> > Context: State USB Plugged
> > Task:
> 1. Get Location (GPS) (check 'keep tracking')
> 2. stop : IF %PACTIVE !~ *,Speed,*
> 3. Wait 2 Seconds
> 4. If %LOCSPD > 5
> 5. Goto 2 : if %home = 0
> 5. Go Home
> 6. Variable set %home TO: 0
> 8. End if
> 9 variable set %home To: 1
> 10. Goto 2
>
This will go home every time you stop then start moving again. A better approach would be to monitor the 'back up' app with a separate profile then use the %PACTVE variable to determine if you should go home or not.
--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/F_lvGhQfwmk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
This should work, you might need to verify that the App context works on your device. It seems to be having some issues with lollipop. You can do a search of this group if the App context will not work for you. You need tasker to be selected in your android accessibility settings for the app context to work.
Profile: Reverse App
Context: App : (your reverse app)
Task
1. stop
> > Profile: Speed
> > Context: State USB Plugged
> > Task:
> 1. Get Location (GPS) (check 'keep tracking')
> 2. stop : IF %PACTIVE !~ *,Speed,*
> 3. Wait 2 Seconds
> 4. If %LOCSPD > 5 AND %PACTIVE~*,Reverse App,*
> 5. Go Home
> 8. End if
> 9. Goto 2
>
--
> Hi the first 1 worked well but it did keep going home when moving. Not having so much luck with the second 1.looks like its doing a loop without going home. with line 4 do i put the name of the reversing app ?
No, use the name of the profile. And the *,,* need to be there as well.
>
> Profile: Reverse App ...(use this name)...
>> Context: App : (your reverse app)
>> Task
>> 1. stop
>>
>> > > Profile: Speed
>> > > Context: State USB Plugged
>> > > Task:
>> > 1. Get Location (GPS) (check 'keep tracking')
>> > 2. stop : IF %PACTIVE !~ *,Speed,*
>> > 3. Wait 2 Seconds
>> > 4. If %LOCSPD > 5 AND %PACTIVE~*,Reverse App,*
>> > 5. Go Home
>> > 8. End if
>> > 9. Goto 2
>> >
>>
>> --
>> You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/F_lvGhQfwmk/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
>>
>> Visit this group at http://groups.google.com/group/tasker.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Tasker" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Thanks for you help Any chance of getting it as a Xml. As I'm not getting it right
> Thanks for you help Any chance of getting it as a Xml. As I'm not getting it right
Could you post the exported description of what you have so for?
To post your profile or task here... Long press on the profile or task name / ( 3 dot menu with 4.0+ ) export / export "DESCRIPTION" to clipboard (not XML)
Any linked tasks will be exported with the profile they are linked to..
To be able to export, The beginner mode needs to be off and the profile needs to be named by you (Not the Tasker listed name. Tasker will list your profile with the context name if you have not given it one).
> Could you post the exported description of what you have so for?
>
Be sure to post both profile descriptions..
Hi
I have 2 profiles so I have sent both of them.
Thanks again
Profile: Speed (2)
State: USB Connected [ Class:Any ]
Enter: Try (3)
A1: Get Location [ Source:GPS Timeout (Seconds):100 Continue Task Immediately:Off Keep Tracking:On ]
A2: Stop [ With Error:Off Task: ] If [ %PACTIVE !~ *,Speed,* ]
A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A4: If [ %LOCSPD > 5 AND & %PACTIVE ~ *,Reverse App,* ]
A5: Go Home [ Page:0 ]
A6: End If
A7: Goto [ Type:Action Number Number:2 Label: ]
Profile: Reverse App (5)
Application: Car-Camera
Enter: Stop (6)
A1: Stop [ With Error:Off Task: ]
> Could you post the exported description of what you have so for?
>
Be sure to post both profile descriptions..
You do not need to spell out the 'AND'
> A4: If [ %LOCSPD > 5 AND & %PACTIVE ~ *,Reverse App,* ]
It should look like this..
> A4: If [ %LOCSPD > 5 & %PACTIVE ~ *,Reverse App,* ]
> thanks that did the trick on my phone but now i have set it up on the tablet its not. i have noticed at the end of line 2 after *,Speed,* there is a red line on my phone but on the tablet its green
My guess would be you have a extra white space in your profile name or the #2 action. Some keyboards will put extra white spaces in your text. The name of profile and the name in the #2 action must match exact.
> thanks that did the trick on my phone but now i have set it up on the tablet its not. i have noticed at the end of line 2 after *,Speed,* there is a red line on my phone but on the tablet its green
My guess would be you have a extra white space in your profile name or the #2 action. Some keyboards will put extra white spaces in your text. The name of profile and the name in the #2 action must match exact.
--
> Sorry to keep bothering you.
No bother.
could it be the App context will not working on the tablet
>
Sounds like the most likely. Are you sure you have tasker enabled in the tablet android accessibility settings? If so try disabling the re-enable.
The best way to see if the app context is working to turn on and check the run log (menu / more / run log)
Or
Put a action / alert / notify as the first action in the task for the app profile.
What are the android versions of both?
--
. i exported the working profiles and tasks from the phone via xml to the tablet
This might be the issue. Perhaps tasker needs to save the app context on the actual device. I would try deleting the 'Reverse app' profile and make it from scratch on each individual device.
The red/ green indicators actually seem to be reporting the opposite that I would expect. When the 'Car-Camera' app is not active then the indicator should be green on the phone. However the fact that they are different indicates some issue with the app context. Try the above and post back.
Profile: Reverse App (2)
Application: Car-Camera
Enter: Stop (3)
A1: Stop [ With Error:Off Task: ]
Profile: Usb Connected (5)
State: USB Connected [ Class:Any ]
Enter: Main (4)
A1: Get Location [ Source:GPS Timeout (Seconds):100 Continue Task Immediately:Off Keep Tracking:On ]
A2: Stop [ With Error:Off Task: ] If [ %PACTIVE !~ *,Speed,* ]
A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
A4: If [ %LOCSPD > 5 & %PACTIVE ~ *,Reverse App,* ]
A5: Go Home [ Page:0 ]
A6: End If
A7: Goto [ Type:Action Number Number:2 Label: ]
i deleted tasker and reinstalled it and did the the above, Still no luck. are you able to make it work on any of your machines
--
> Profile: Reverse App (2)
> Application: Car-Camera
> Enter: Stop (3)
>
> A1: Stop [ With Error:Off Task: ]
>
> Profile: Usb Connected (5)
>
> State: USB Connected [ Class:Any ]
> Enter: Main (4)
>
> A1: Get Location [ Source:GPS Timeout (Seconds):100 Continue Task Immediately:Off Keep Tracking:On ]
> A2: Stop [ With Error:Off Task: ] If [ %PACTIVE !~ *,Speed,* ]
> A3: Wait [ MS:0 Seconds:2 Minutes:0 Hours:0 Days:0 ]
> A4: If [ %LOCSPD > 5 & %PACTIVE ~ *,Reverse App,* ]
> A5: Go Home [ Page:0 ]
> A6: End If
> A7: Goto [ Type:Action Number Number:2 Label: ]
>
> i deleted tasker and reinstalled it and did the the above, Still no luck. are you able to make it work on any of your machines
>
You built the profiles from scratch?
These contexts do work on my device. However I have seen a few post that have had trouble with the 'usb connected' context as well. I would try a power / any context.
The run log will be able to tell you what is and is not working. There are times of every action in the run log. Once you try the profiles you can find the times in the log. You can screen shot them or hit menu / view externally and then save the file and post it here. Just be sure to include the approx times the profiles should have been working.
Hi
Yes profiles built from scratch.
Tried the power any profile. No change.
Have attached the run log from the tablet. No idea what it means.
Something I have noticed on the phone is that project is working all the time regardless on weather it's plugged in or not.
Thanks Grant
--
You have changed the profile name of the main profile. The profile name has to match the name you are using in action #2 . This is why the task is stopping.
I do not see the second profile 'Reverse App' starting at all in the run log. Did you start the app between 8:48 and 10:00.
Try renaming the profile to Speed, then do the test again and record the times of what you are doing. Then find those times in the run log and post them along with your description of the times.
Be sure to post both exported profile descriptions that were used as well.
Then find those times in the run log and post them
You can also post the entire run log. It can be found here..
/storage/sdcard0/Tasker/log/runlog.txt
--
> THANKS SO MUCH ITS WORKING.
Great, you should try to figure out the run log, it one of the most useful debugging tools. There is some info in the user guide and you can ask questions here.
.I was using tasker to control wifi bluetooth ect that worked from usb power profile should i set up a new task for this or add it into the main task ?
> thanks again
>
Not sure I understand the question. If you need a power context to control a different task then yes make a new profile with a new power context.
--
> Not sure if you can help with this 1 ? when the power turns off to the tablet would like to pause playing music and then when the power turns on continue playing the music. the trouble im having is the music will start regardless on weather i was playing music in the first place I try using media utilities plugin.
Marta is correct about starting a new post for a new issue. You will also get more help with a topic that matches you problem. Unfortunately I do not listen to music on my device so I have no experience with media utilities or other music issues.