I want to be start wireguard when on public network and stop when log off.
Any help will be appreciated.
Could you post the exported description of the profile that is not working add you expect? Where specifically does it fail?
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
ktmom said:
Could you post the exported description of the profile that is not working add you expect? Where specifically does it fail?
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Click to expand...
Click to collapse
Honestly I don't know where to start. I searched all the internet but found nothing and even developer did not provide any information on Tasker.
I don't use wireguard but it looks like you can start/stop it using scripts. So you just need a profile context(s) that determine when your connected to WiFi but it's not a known one then the entry task fires the wireguard connect script and the exit task fires a wireguard disconnect script.
I found this by reading through the [GUIDE] How-to Use WireGuard on Android, Ubuntu, and macOS thread.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
ktmom said:
I don't use wireguard but it looks like you can start/stop it using scripts. So you just need a profile context(s) that determine when your connected to WiFi but it's not a known one then the entry task fires the wireguard connect script and the exit task fires a wireguard disconnect script.
I found this by reading through the [GUIDE] How-to Use WireGuard on Android, Ubuntu, and macOS thread.
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
Click to expand...
Click to collapse
Great I will give it a shot
Related
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
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/
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.
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
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