Location tracking with tasker - Tasker Tips & Tricks

I know normally how to send location from a device, my question is how to send a live location link from device using google maps(or any plug in).
I am working on a task that sends live location link to another device, as the link expires in one hour the task will also update the libk every one hour.
Plz help me with this task and thanks in advance.

There are many ways to do this. One is to use a "Get Location" action then plug the result into a maps link;
maps.google.com/maps?q=%LOCN Accuracy of %LOCNACC m
Where "%LOCN" = GPS coordinates of the device and "%LOCNACC" is the accuracy of the last "Get Location" action.
If you have not used Tasker location action before, read the user guide: location without tears
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

ktmom said:
There are many ways to do this. One is to use a "Get Location" action then plug the result into a maps link;
maps.google.com/maps?q=%LOCN Accuracy of %LOCNACC m
Where "%LOCN" = GPS coordinates of the device and "%LOCNACC" is the accuracy of the last "Get Location" action.
If you have not used Tasker location action before, read the user guide: location without tears
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Click to expand...
Click to collapse
I have read all those, the thing i want is live location sharing like available in google maps. Tasker location tracking is battery consuming and slower to detect current location.
Sent from my OnePlus 5 using XDA Labs

Related

"smart pixels" support?

Is there anyway to have tasker control "smart pixels"?
There must be. Maybe through a Custom Setting action which can read or write any Global, Secure or System setting. If not that, then there is likely a way with a rooted phone and Tasker.
Check with your rom developer as to how the settings are stored.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Yes. There is. As long as you have custom settings.
--"Custom Settings"--
Action Edit:
Type: System
Name: smart_pixels_enable
Value: 1
Continue Task After Error: Checked
I pulled this information from here:
https://www.reddit.com/r/tasker/comments/ad4nnh/lineage_os_smart_pixels/

AutoTools Web Screen - programatic update via Tasker actions

Trying to create a dynamic user interface using Tasker. Found the AutoTools plugin, specifically its Web Screens. I'm trying to show a webscreen using default values, then update/add html based on subsequent Tasker actions. EG: use tasker actions to read a local file, parse the contents, perform some manipulation and then update the webscreen with new content based on this processing. Can't find any way to access Webscreen variables in Tasker actions (other than the configuration page in the original action). Am I missing something? Is there any way to expose webscreen variables to other tasker actions so they can be manipulated?
If not, has anyone done something similar with Tasker Scenes, forget AutoTools Webscreens altogether?
Basically just looking to build a dynamic UI in Tasker, programatically changing it based on various tasker actions.
Maybe this link will help: https://forum.joaoapps.com/index.ph...rted-with-autotools-web-screen-variables.269/
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Thx but I already reviewed that page several times, as well as every example I could find related to webscreen variables. Besides the initial values passed from Tasker, I can't see how they can be accessed or updated in subsequent Tasker actions. That's the problem - there doesn't seem to be a way to programmatically update the contents of a webscreen by later actions.
Have you explored using JavaScript in the webview? User guide: JavaScript Support
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Yes, I'll be using javascript a lot within the Webscreen. The challenge is not so much processing within the webscreen, but rather updating the page using tasker actions that are "outside" the webscreen. There are things I can't do with javascript, but I can do with tasker actions. The results of those actions need to somehow make it back into the webscreen (new divs added, formatting changes, page scroll, etc.). Basically I want to control the webscreen from Tasker and have it updating live in front of the user.
There is an element web control action that has a reload mode. You would have to assign a button to control that. I'm sure this could be scripted for an auto refresh. Not something I've done. It should also be able to be done through intents.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
I saw that option, if I drop Autotools Webscreen and just use Tasker Scenes it might do what I want.
Was hoping to use Webscreens however since they offer a much richer UX than Scenes.
Still experimenting to see if I can come up with a workable solution...
Then I think you need to look at intents to refresh the webview.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
intents seem like an overly-complicated way to achieve what would hopefully be a more obvious sharing of data between Tasker and one of its plugins (Autotools). Also concerned that an async method like intents (or Autotools.sendcommand for that matter) won't allow the kind of predictable timing I require. It's a shame - Tasker is powerful but so arcane.

After enter plane mode, cant turn on wifi

When turn on plane mode (as part of a task) cant turn on wifi...
1-Tried wifi on from tasker does not work
2-Tried wifi toggle from tasker does not work
3-Tried with RUN SHELL/svc wifi enable but does not work too...
4-Tried Secure Settings plugin (intangibleObject developer) and this works when testing alone while adding to task but when running the whole task it does not, it shows "an error occurred while excecuting action:WiFi!"
5-Tried moving these actions all around the task, immediately after turn on plane mode... after a few other task... after wait 1 second... 5... 10....
6-Really exhausted
Any suggestions?
this is the log for the 1-
17.51.46/M lastWifiDisableAgoMS: 1541195506509
17.51.46/E check AP state
17.51.46/E AP state: 1
17.51.46/M lastWifiDisableAgoMS: 1541195506511
17.51.46/E current state: 1
17.51.46/E curval: 1
17.51.46/E WiFi: cur: false new: true
17.51.46/E WiFi: setWifiEnabled()
17.51.46/E WiFi: enable failed
17.51.46/M setKeepWifiOn: E/doWifiStatus1
17.51.46/E result: stop task (error)
17.51.46/E Error: 1
17.51.46/MacroEdit action finished exeID 1 action no 14 code 425 status: Err next 14
My comment is to be patient with your post on the Tasker Google group. Joao, tasker's current developer, frequents there.
However, you should add a post to that thread with specifics about your device model, which Tasker version and Android version.
The fact that you talk about secure settings makes me wonder. That plug-in has been useless since Marshmallow days.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
ktmom said:
My comment is to be patient with your post on the Tasker Google group. Joao, tasker's current developer, frequents there.
However, you should add a post to that thread with specifics about your device model, which Tasker version and Android version.
The fact that you talk about secure settings makes me wonder. That plug-in has been useless since Marshmallow days.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Click to expand...
Click to collapse
Wow didint know about secure sertings... im new on tasker and it seemed to be good... thanks for your answer
wallyhenderson said:
Wow didint know about secure sertings... im new on tasker and it seemed to be good... thanks for your answer
Click to expand...
Click to collapse
All of the functionality that the old (very old [emoji6]) secure settings plug-in provided are available and maintained by the same developer who now owns Tasker, via the AutoTools plug-in. Many of these features are working their way into Tasker directly.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

How to turn off led notifications during certain times using tasker

I tried to create a tasker profile based on time between 11pm to 7 am
Created a task to turn off notification pulse and exit task to turn on notification pulse
However, this is not turning off the notification led. Am I using the right task? This is my first tasker attempt, so I am already unsure of what would or would not work
Thanks
It's better to share your profile when it's not working as expected. The exported description provides much more information than a screenshot.
Make sure it's named - not a default name assigned by tasker. To name the profile if it isn't already, long press on the name to highlight the profile and, at the top, tap the square with the A.
Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Now you'll be able to paste it. Be aware, it easier to use pastebin.com and link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters directly after to emoticons making it very hard to read.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
ktmom said:
It's better to share your profile when it's not working as expected. The exported description provides much more information than a screenshot.
Make sure it's named - not a default name assigned by tasker. To name the profile if it isn't already, long press on the name to highlight the profile and, at the top, tap the square with the A.
Then long press on the name to highlight the profile. Go to the 3-dot menu and select export -> Description to Clipboard.
Now you'll be able to paste it. Be aware, it easier to use pastebin.com and link to a post here. If you paste in a post here, the forum software will convert all semicolons with characters directly after to emoticons making it very hard to read.
"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 detailed information on how to post my profile. Here is the profile link
https://pastebin.com/jV5n7eds
That's a very straight forward task [emoji6]
Have you checked the run log for information (3-dot menu -> more -> run log)?
Have you tested the notification pulse off task using the play button in the task? If it doesn't work when testing, is there an error?
If things work when testing, but not on schedule, please check Tasker's FAQ: Why doesn't Tasker work in the background on my device
What device and OS? Rooted?
As a side note: you shouldn't need to have an exit task to restore the setting. With a few exceptions, the default setting in a profile is to restore the previous state. There is a check box in the profile settings that controls this behavior (long press profile name -> profile highlights -> tap cog/gear at top of screen)
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Thanks ktmom for the tip about exit task and run log.
Samsung S8+, not rooted, Android version 8.0.0
When I run the task, tasker thinks it ran successfully (At least that is what I think from the log pasted here - https://pastebin.com/Q9KKiyFu)
but the led keeps flashing for notifications
MacroDroid has macros that I tried and they work, so I do have a solution, but I would like to make it work via Tasker, I have had tasker for a long time and have never been able to make something that would be useful to me.
tnkrer said:
Thanks ktmom for the tip about exit task and run log.
Samsung S8+, not rooted, Android version 8.0.0
When I run the task, tasker thinks it ran successfully (At least that is what I think from the log pasted here - https://pastebin.com/Q9KKiyFu)
but the led keeps flashing for notifications
MacroDroid has macros that I tried and they work, so I do have a solution, but I would like to make it work via Tasker, I have had tasker for a long time and have never been able to make something that would be useful to me.
Click to expand...
Click to collapse
Does MacroDroid (I've never used it) have you give permission via ADB for this to work? It even just as part of the install?
Since Tasker thinks it's running, I wonder if the setting is just different on your Samsung device. This idea could be tested if you have AutoTools and have granted permissions via ADB.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

How to play sound when text received

Is there any way to look at a text from a certian phone number and play a mp3 depending on the content of the text
e.g
Front Door Open - would play one mp3
Front Door Unlocked - would play a different mp3
Thanks
Easy peasy [emoji6]
Profile context:
Event -> Phone -> Received Text. Leave "type" at "any" and enter the phone number in the "sender" field. Leave content empty.
Enter task needs only two actions, both the same-ish:
Media -> Music Play
The first one under file, choose the MP3 for for Front Door Open.
The start and loop can be left blank.
Choose the stream for the music to play on. When I want the sound to play through DND, I use the alarm stream since my DND permits alarms.
Add an "If" statement by tapping the +
If %SMSRB ~ *Front Door Open* ( that's matches)
Save the action.
The second action is similar, only choose the mp3 for Front Door Unlocked, and change the if statement: If %SMSRB ~ *Front Door Unlocked*
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Thanks that was easy. In regards to playijng different sounds depending on the content of the text your way works good If %SMSRB ~ *Front Door Open*. Can I not do the same thing in the Profile - Content
Have a good holiday
Sure, you can use multiple profiles + multiple tasks
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Ok. I think I like your way I found that I could create serveral tasks then in the profile all I have to do is click on clone and then pick the new task works good. One other question. If I have a test like "Lock Ft Dr was UnLocked manually" in the task how would I ignore the manually would I just put *Lock Ft Dr was Unlocked*
Yes, your pattern should work.
The reason I use only one profile with the logic inside the task is for future expandability. Any text message from your system will activate the task. But action will be taken only if it matches a condition in the task. Future actions can be added with a minimum of fuss.
If the logic is in the profile, management rapidly becomes unwieldy (IMO).
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Thanks
in regards to the smsrb I know whast sms is but whats the rb. is there a web page that has reference to all these
Rick
Tasker's User Guide, look for the section on variables.
That page is also linked in Tasker -> 3-dot menu -> info -> userguide.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

Categories

Resources