Tasker: Total Automation for Android

Subscribe to Tasker: Total Automation for Android feed
Updated: 6 min 47 sec ago

Having trouble with wifi login and autoinput

12 min 29 sec ago

At work I have to login to my wifi. I don't mind keeping my data on usually and not logging into wifi but where I'm working the cell reception is so bad that it's draining my battery very quickly. Unfortunately with my work's wifi it automatically logs me out after about 15 minutes.

So I tried to setup tasker to auto log me in but I can't seem to get auto input to work correctly. The main issue I seem to have is that I have to pull down the notification first then click "login". I can't figure out how to make autoinput pull down the notification.

So if I pull down the notification myself I do get autoinput to click connect, then on the next screen I get it to accept the SSL certificate. But then after that I have to login with my username and password but I can't figure out how to make it type those in.

Lastly, since my phone will likely be in my pocket when I get automatically disconnected, is there any way to have the task trigger without unlocking the phone?

Is there a simpler way of doing this? Thanks in advance for any help!

submitted by /u/w00ly
[link] [comments]

[Project Share]Self-purging Clipboard Manager/History Overlay

2 hours 52 min ago

Hello all.

I used to use Swiftkey, but after several recent updates, accessing the clipboard manager was rather obnoxious. I moved to Gboard, especially after they added the automatic space after punctuation. The only thing Gboard didn't have that Swiftkey has that I missed was a clipboard manager with a history. Tasker to the rescue! I created a clipboard manager that maintains a 3 hour clipboard history (this can be changed) that you can copy from if you need an old clipboard snippet.

This project is inspired by /u/joaomgcd's Read Later List project.

If you're feeling lazy, you can download the XML for the project right here.

PREREQUISITES: You will need to have the AutoApps, AutoTools, and optionally the AutoNotification plugins for this project to work.

N.B. When describing the configuration of any actions, if I don't mention a field, leave it at its default value.

STOP. PLEASE READ!! Throughout this project, we'll be using a tilde (~) as our item separator in lieu of a comma in certain areas, as sometimes copied text contains a comma, which can throw off the entire JSON table. Please be aware of this if you are manually building the project.

The first task we're going to build is called "Reset Clipboard," a clear/reset of the JSON where the clipboard content will be stored. This will allow us to reset the table if something goes wonky, and initialize it for first use. The variables used here will be elaborated on further in the guide.

The first action is to clear the variable where the JSON is stored.

A1: Variable Clear [ Name:%Clipboard Pattern Matching:Off Local Variables Only:Off ]

Next, we'll need to create a clean JSON that can be written to.

A2: AutoTools Json Write [ Configuration:Separator: ~ Json Input: %Clipboard Add to Array Key: items Array Object Keys: text~time Array Object Values: %CLIP|%TIME Arrays Separator: | Timeout (Seconds):60 ]

We'll then store the "clean" JSON in the variable cleared above.

A3: Variable Set [ Name:%Clipboard To:%clipboard Recurse Variables:Off Do Maths:Off Append:Off ]

Run this task once to prepare the JSON table and its variable.

Next, we'll need to build the profile that will actually take the clipboard's contents, and add them to the JSON. It is called "Add Clipboard Content To Clipboard Manager."

Event: Variable Set [ Variable:%CLIP Value:* User Variables Only:Off ]

First, we'll need to read the JSON, and ensure that whatever we just copied isn't already in the clipboard manager already, so a duplicate entry isn't made. This is done using the value filter on the dynamic system variable "%CLIP."

A1: AutoTools Json Read [ Configuration:Simple Mode: true Json: %Clipboard Fields: text(),time() Filter Fields: text() Filter Values: %CLIP Contains All: true Separator: , Timeout (Seconds):60 ]

Once we've ensured that this is a new snippet, we'll add it to the clipboard JSON.

A2: If [ %text(#) ~ 0 ] A3: AutoTools Json Write [ Configuration:Separator: ~ Json Input: %Clipboard Add to Array Key: items Array Object Keys: text~time Array Object Values: %CLIP|%TIME Arrays Separator: | Timeout (Seconds):60 ]

Then, we'll write the JSON to a global variable.

A4: Variable Set [ Name:%Clipboard To:%clipboard Recurse Variables:Off Do Maths:Off Append:Off ]

Next, we'll create the profile that purges old content out of the clipboard manager. I have it set to purge content older than three hours, but if you want to lengthen/shorten that, it can be done in step A4.

Profile: Purge Old Clipboard Content (223) Time: Every 1h

The first step will to be to read the variable where the JSON is stored.

A1: AutoTools Json Read [ Configuration:Simple Mode: true Json: %Clipboard Fields: text(),time() Separator: , Timeout (Seconds):60 ]

We'll need to grab the current system time, and put it into a variable we can modify so we can compare against it to purge old content. We'll then grab just the hour section, and modify the variable to contain just that.

A2: Variable Set [ Name:%purgetime To:%TIME Recurse Variables:Off Do Maths:Off Append:Off ] A3: Variable Section [ Name:%purgetime From:1 Length:2 Adapt To Fit:Off Store Result In: ]

This is the step where you can modify how long you want to keep content. Just modify the subtraction value to however many hours you want to keep content.

A4: Variable Subtract [ Name:%purgetime Value:3 Wrap Around:23 ]

Because Tasker keeps time in 24 hour format, we'll want to modify it to perform the comparison easier.

A5: If [ %purgetime > 12 ] A6: Variable Subtract [ Name:%purgetime Value:12 Wrap Around:0 ] A7: End If

Now, you'll need to do a loop through every item in the JSON to compare it against your PurgeTime to see if it's eligible to be purged.

If it is, then the content will be removed from the JSON.

A8: For [ Variable:%time Items:%time() ] A9: Variable Section [ Name:%time From:1 Length:2 Adapt To Fit:Off Store Result In:%calctime ] A10: If [ %calctime > 12 ] A11: Variable Subtract [ Name:%calctime Value:12 Wrap Around:0 ] A12: End If A13: If [ %calctime < %purgetime ] A14: AutoTools Json Write [ Configuration:Separator: ~ Json Input: %Clipboard Prettify: true Delete Paths: items.time Delete Values: %time Exact: true Arrays Separator: | Timeout (Seconds):60 ] A15: Variable Set [ Name:%Clipboard To:%clipboard Recurse Variables:Off Do Maths:Off Append:Off ] A16: End If A17: End For

Ok. So we have all this backend stuff that's adding snippets to the clipboard, and automatically purging it after a set time. How do we actually view and interact with the content? With just one, simple (haha, not really) command!

Normally, I'm not one to create named tasks, and just create ad hoc tasks. In this case though, we'll want to create a task called "Show Clipboard Manager" that we can reference in a couple different places.

Show Clipboard Manager

First, we'll want to read the JSON to get its content to display.

A1: AutoTools Json Read [ Configuration:Simple Mode: true Json: %Clipboard Fields: text(),time() Separator: , Timeout (Seconds):60 ]

We'll want to join all the clipboard snippets into a single variable to make it easier to read and act upon.

A2: Variable Join [ Name:%text Joiner:~ Delete Parts:Off ]

If there's nothing in the clipboard manager, we'll show a simplified window that states as much.

A3: If [ %text(#) ~ 0 ] A4: AutoTools Web Screen [ Configuration:Screen Preset: Card List Display Mode: Overlay Source: /storage/emulated/0/AutoTools/cardlist/page.html Toast Duration: 5000 Width: 300 Height: 130 Gravity: Center Animation: Zoom In Show Duration: 500 Hide Duration: 250 Drag: Not Draggable Close Button: Top Right Close On Command: true Search Color: #ffffff Filter With Search: true Command Prefix: search Drawer Width: 80% Card Titles: Clipboard history is empty. Card Buttons: Close Accent Color: #01579B Max Card Widths: 90% Min Card Widths: 90% Title Text Size: 20 Subtitle Text Size: 22 Card Padding: 10 Card Alignment: Center Item Separator: , Timeout (Seconds):30 ]

If there is actually content to display, we'll want to show it!

A5: Else A6: AutoTools Web Screen [ Configuration:Screen Preset: Card List Display Mode: Overlay Source: /storage/emulated/0/AutoTools/cardlist/page.html Toast Duration: 5000 Width: 300 Height: 360 Gravity: Center Animation: Zoom In Show Duration: 500 Hide Duration: 250 Drag: Not Draggable Close Button: Top Right Wait For Command: true Title Icon: android.resource://net.dinglisch.android.taskerm/hd_content_new_event Title Button Commands: ResetClipboard Search Color: #ffffff Filter With Search: true Command Prefix: search Drawer Width: 80% Card Titles: %text Card Buttons: Copy~Remove Accent Color: #01579B Max Card Widths: 90% Min Card Widths: 90% Title Text Size: 20 Subtitle Text Size: 22 Card Padding: 10 Card Alignment: Top Item Separator: ~ Timeout (Seconds):30 ]

Now, we'll need to configure the buttons on each card allowing you to either add the snippet to your current clipboard, or manually remove it from your list.

A7: If [ %atcommand Set ] A8: If [ %atcommand ~ *=:=Copy ] A9: AutoTools Web Screen [ Configuration:Display Mode: Close Toast Duration: 5000 Height: 400 Gravity: Center Animation: Slide In From Top Show Duration: 500 Hide Duration: 250 Timeout (Seconds):30 ] A10: Variable Search Replace [ Variable:%atcommand Search:=:=Copy Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With: ] A11: Set Clipboard [ Text:%atcommand Add:Off ] A12: Flash [ Text:Copied! Long:Off ] A13: Else If [ %atcommand ~ *=:=Remove ] A14: Variable Search Replace [ Variable:%atcommand Search:=:=Remove Ignore Case:Off Multi-Line:Off One Match Only:Off Store Matches In: Replace Matches:On Replace With: ] A15: AutoTools Json Write [ Configuration:Separator: ~ Json Input: %Clipboard Prettify: true Delete Paths: items.text Delete Values: %atcommand Exact: true Arrays Separator: | Timeout (Seconds):60 ] A16: Variable Set [ Name:%Clipboard To:%clipboard Recurse Variables:Off Do Maths:Off Append:Off ] A17: AutoAppsHub SendCommand [ Configuration:Command: ClipboardManager Timeout (Seconds):60 ] A18: End If

Now we need to create a profile that calls the action we just built to show the clipboard manager itself. This is based on calling an AutoApps command.

Profile: Show Clipboard Manager (226) Event: AutoApps Command [ Configuration:Command Filter: ClipboardManager ] Enter: Show Clipboard Manager (219)

That's all you need! An additional optional step you can do is create a quick action tile to easily access your clipboard from anywhere. If you don't want to do this, you do not need the AutoNotification plugin, and you can be finished now!

This is a fairly simple task. I am only using tile number 4 as I'm already using the other tiles for other projects.

Clipboard Manager Tile (225) A1: AutoNotification Tiles [ Configuration:Tile: AutoNotification 4 Command: ClipboardManager Label: Clipboard Manager Icon: android.resource://net.dinglisch.android.taskerm/hl_ab_content_paste State: Active Hide Notifications: true Timeout (Seconds):60 ]

And there you go! You now have a self-purging clipboard manager that you can access and copy from any screen! Please let me know if you have any questions, and I'll be happy to answer them!

-Crepusculi

submitted by /u/crepusculi
[link] [comments]

[Help] - Error in AutoTools or me?

3 hours 12 min ago

This is on a LG V30, Oreo 8, up to date paid version of tasker, and all installed subscribed Auto apps are up to date.

I'm attempting to use AutoTools Time function to add time. The problem is that no matter what I try, I can't get anything to populate. No errors, no data, nothing.
I have simplified the query in many different ways, filling in only one value for the date plus 1 second, or 'now' plus 1 day, etc. Default formatting, Then popup with every related variable. Not even the auto-created vars have any data. I just can't narrow it down to anything.
I have no idea if it's related, but I also see double % in front of some of the auto vars. Duplicating this in a function call doesn't help.
I've even made a separate task with just the Add and the popup. Nothing.
Anyone have any ideas? Thanks!

submitted by /u/Mythril_Zombie
[link] [comments]

Help with autoweb plugin...

Tue, 06/19/2018 - 18:13

I just started using autoweb plugin for tasker and it has a lot of potential.

I am looking to use Merriam Webster's medical dictionary API to return the definition of a term.

Now the base URL is https://www.dictionaryapi.com/api/references/medical/v2/xml/test?key=[my key goes here]

Now to get the definition the 'test' in this URL has to replaced with a term you want to define

So the endpoint is https://www.dictionaryapi.com/api/references/medical/v2/xml/{termtobedefined}?key=[my key goes here]

I am so far so good, but I am lost as to how to replace {termtobedefined} in input function through tasker and then return output. Basically I don't know to generate input and output for the API action.

Also the API uses only XML and not JSON

Any help would be appreciated.

submitted by /u/darshitkoladiya
[link] [comments]

Any better way to solve this?

Tue, 06/19/2018 - 17:59

I have an exit event to hide scenes and floating bubble. But in this app, everytime I use Autovoice Recognize, the dialog comes up and cause my exit event gets to trigger.

  1. Turn off the exit event profile and then turn it back on when done

  2. Use enter event to get it back when the dialog disappears. I don't like this option. Too many things flashing off / on the screen

Do you have other ideas?

Thank you.

submitted by /u/xyph5
[link] [comments]

Using Phone to set an alarm that triggers chromecast

Tue, 06/19/2018 - 16:06

Currently I have set my phone to play the next song on spotify after the alarm is dismissed. That was the best way I could think of doing it. Anyhow, Is there a way to blast this over my chromecast on my tv? I can't seem to get that portion to work. I've tried the autoinput approach that /u/joaomgcd put together. It seems to make an effort, but only pulls up the home app. I'm running lineageos 15.1 on the Pixel Xl if that matters.

submitted by /u/Reevos
[link] [comments]

Event 'Phone Ringing' not working anymore?

Tue, 06/19/2018 - 13:32

Hey folks. Is anybody else having issues with tasker recognizing the phone ringing event on 8.1 (oreo)? I have a oneplus 5 running openbeta 11 firmware+modem if that makes any difference.

submitted by /u/knobbysideup
[link] [comments]

Basic question about setting actions by time - why doesn't my action trigger at time between 830 am to 9 am? I've checked the actions work if I don't put the time.

Tue, 06/19/2018 - 12:01

Sorry very noob question.

I've setup a simple tasker . When connect to my work Wi-Fi it sets my phone to silent and sends whatsapp if it between 830 to 9am.

But I find the whatsapp message doesn't get send unless I remove the 830 to 9 am part.

Any clues?

https://i.imgur.com/bqzrnw3.png

submitted by /u/secretsarebest
[link] [comments]

Can anyone spare 12 seconds to check this regex for search replace?

Tue, 06/19/2018 - 11:55

Firstly, thanks for taking a quick look - I'll keep this brief.

I have a Tasker variable with multiple insistence of roughly 7 digits and all of which start with 'bb'

Example: text text text bb2545432 text text text

I am trying to extract those numbers into a list/variable.

So far I have tried dozens of regex such as:

\bb[0-9]

(?<=\bb)\d+

(?<=\bb)\d{2}

and many many more.

I'm sure this would take someone a few seconds to work out so huge thanks in advance if you can!!

-b

submitted by /u/binvius
[link] [comments]

Is there any way to "get" persistent notification ?

Tue, 06/19/2018 - 08:44

I use MP3 Converter to convert my daily records. This app creates notification(like this) while converting. I want to get the notification variables when notification's text change, but autonotification's event and state doesn't work the way I want.

submitted by /u/tuvin5f0
[link] [comments]

Select dynamically bulb with variable autohue

Tue, 06/19/2018 - 07:34

Hi,

I'm new in tasker / autohue plugin. I use it with google home to create voice actions.

I have done one by using if/then condition, but I would like to improve it. I explain : I say "ok google, power off all lights except X" with X a text ingredient pass through join and get by tasker. What I have done if that : If X equals "sofa" then power off all others lights. It works but there if one if for each possibility.

So, I want to do a for loop that loop all the existing lights, and for each of them, check if the name of the light corresponds to X or not. If not, there is a huestate line + à hue 2.0 line to say power off this light.

I have 2 problems with this: 1) it seems that to get value of hue 2.0 variables (%hue_nr_lights, %hue_lights ...), an action hue 2.0 is needed before 2) I don't find the way to target dynamically the hue light. I don't want to select a light in the list, I want that huestate and hue 2.0 target the light from the for loop (it loops through %hue_lights)

I'm not sure my explanation is very clear, is so, don't hesitate to tell me. Before to post this, I have search without finding the solution.

Thank you in advance for your answers / help.

submitted by /u/Tilou86400
[link] [comments]

Tasker Loop WhatsApp

Tue, 06/19/2018 - 00:37

How can I loop tasker to forward message to 'n' number of WhatsApp broadcast list? e.g. Broadcast1, Broadcast2..

submitted by /u/deepakgonge
[link] [comments]

AutoLocation Geofences: two non-intersecting actually too far geolocations are active

Mon, 06/18/2018 - 20:20

Hi everyone,

I have a Note 8 with Android version 8.0.0. I'm new to android so I didn't make any changes on my stock rom (I don't know a thing about Android OS). I'm using Tasker for about a month and AutoLocation for a couple of days.

Today I faced with a strange issue with AutoLocation Geofences. I have two geofences with 9-10 km far from each other. One have 30 meters radius and other have 40 meters. I have enter and exit tasks and variables for both of the geofences separately (i.e home geofence profile makes %HomeGeofence=1 in its enter task and 0 in exit task, similar for work geofence and %WorkGeofence variable in another profile etc). But I saw that I have both %HomeGeofence and %WorkGeofence have values 1, I thought that it was a Tasker priority error or maximum tasks queue limit reached. But then I checked the geofence settings in AutoLocation app. Both home and work geofences shows the desired areas for my home and work, with correct radiuses. I also see my live location (blue dot) in my home area, not in the work area. But still both geofences shown as active, ie. names are green. I cannot think of a solution bu the I deleted the work profile and re-add the work geofence. Now everything seem to work like normal but it's just 2-3 hours and I'm still at home so not sure that I'll face the issue again or not.

I'm also using Llama so I turn the geofence monitor OFF in tasker after 5 min.s that I'm outside of all geofences (all geofence variables are 0). And turn it on as soon as Llama catches a known cell. But since I never quit from Work (this is what AutoLocation thinks) Geolocation monitor didn't turn off while I'm coming home today.

For it might be asked, I always keep my location at battery saving mode, mobile data, wifi and BT are always on. I also have the improve location accuracy settings "wifi scanning" and "BT scanning" on.

submitted by /u/akivura
[link] [comments]

[HELP] Menu scene elements are hard to tap

Mon, 06/18/2018 - 15:39

I have a little budget project which is constantly evolving. The last thing I did is I added a POI search for my cash popup task. l chose menu element in a scene for this, and populated the menu with an array (via Autolocation).

It all seems to work fine but the texts are really hard to tap. There is only a little area of every element which is tappable and I can't find the reason why.

Link to the scene: Google Drive

Link to the video: https://streamable.com/3x69q

Cab anyone guess what could be the problem?

submitted by /u/barcaxavi
[link] [comments]

Extracting part of each variable in array?

Mon, 06/18/2018 - 08:02

I'm trying to make a notification which appears every morning with my calendar events for the day. I'm using autoweb with the Google calendar API to read the data from my calendar. This results in two arrays, %items_summary() with the name of each event and %start_datetime() which has the start time and date of each event in the format 2018-06-18T13:00:00+01:00.

From this, for each event I want to extract only the time in hours and minutes (ie. 13:00). In an ideal world I'd convert this to 12 hour time but I can cope without. For the life of me I can't find a method that works. My instinct was to use a for loop with the items %start_datetime() and search & replace to remove the end of each variable (:00+01:00) then split it using 'T' as the splitter and save the second part but I can't manage to save the result to use after the for loop is finished. Any help is greatly appreciated!

submitted by /u/crownsandclay
[link] [comments]

Screen dimming and locking issue

Mon, 06/18/2018 - 07:07

So I guess I'm pretty new to Tasker, but I spent past week trying to set up a neat little alarm clock that plays a song and then afterwards plays my morning briefing through Google assistant. I also have just figured out how to unlock the phone with a pin unlock without rooting the phone, I'm on a Samsung Galaxy S8 Plus , I just used autoinput to punch in my PIN number for me. The problem is is that even when I have a 5 minute screen timeout, after the task successfully unlock the phone after 5 seconds the screen will dim and then will re lock the phone. This doesn't happen if I use my fingers to unlock the phone so I don't know what's going on I would imagine that the Android system would be handling the unlock in the same way.

This screws up the next task that I run which is the alarm clock so does anyone have any ideas?

submitted by /u/infadibulum
[link] [comments]

Tasker instead Smart Network Xposed?

Mon, 06/18/2018 - 06:44

So I hve been using the xposed module smart network since years but it's kinda outdated and I thought why not use Tasker instead. So my questions are is there a way to turn off Bluetooth when screen off unless I have my BT headset connected. Also WLAN off when screen off when i'm not connected to a WLAN network and 2G for screen off aswell.

submitted by /u/RooR8o8
[link] [comments]

Tasker Media Volume -- Resets Itself?

Sun, 06/17/2018 - 22:22

This is a wild ride, I'm not quite sure what's going on.

I made a simple profile to mute the media volume on my phone if I'm in a certain location. Because I'm paranoid and worry about the media volume somehow being raised after I enter the location, I made it a two-profile deal:

The profiles are a location and if %VOLM > 0 (i.e. so if I raise it will be fixed) the task is Media Volume 0

Bingo, right? Weirdly, though, the media volume seems to play defense: it immediately jumps back to what it was set to before the Tasker mute set it to 0. (Literally, watching the volume bar is like watching my phone have a seizure: it jumps from 0 to what it was before, and does this again and again as long as this profile is active.)

Strangely, just running the Media Volume 0 task works like a charm: tasker doesn't play defense if I run that in the app (with the little play symbol). I disabled all of my other profiles and am on LineageOS 15.1 (6/11/18 nightly) on a OnePlus 3T. This happens even after restart with no apps open.

Does anyone have any thoughts about this?

submitted by /u/ltrwp
[link] [comments]

Trigger on Venmo/Square Cash payment

Sun, 06/17/2018 - 17:33

Hi, I did a number of searches and haven't quite found this functionality. I want to trigger a task when someone sends me money via venmo, squarecash, or (less ideally) paypal.

Any ideas?

submitted by /u/YouTee
[link] [comments]

Tasks triggering without conditions met

Sun, 06/17/2018 - 14:51

I setup tasker to run 4 independant tasks when when an NFC tag is detected and between a certain time.
4 tasks are Leaving home, at work, leaving work, at home. the one task i'm having trouble is leaving work, its set to activate from 14:30 an 18:00 and read an nfc tag on my car dock. the problem is every thursday it triggers at 14:30, but the last few days, since maybe wednesday its triggered every day at 14:30, is there a way to see why tasker thinks it seeing the NFC tag.
I'm using the locale NFC plugin to recognise the NFC tags.
Any help much appreciated.

submitted by /u/i_sharpen_crayons
[link] [comments]

Pages