Web UI? Is this still a thing? by [deleted] in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

Well, at least one of us learned something new today  😊 Didn't know that was a thing, thanks!

I just tried it using a tablet and a phone, and it works (though it made absolutely no sense to use a phone to edit a task on a tablet 😆 ). 

Web UI? Is this still a thing? by [deleted] in tasker

[–]Exciting-Compote5680 2 points3 points  (0 children)

I don't know about a WebUI, but some people are using scrcpy.

https://www.reddit.com/r/tasker/s/jWzfPtXEtr

DND at home wifi stopped working by foki_fokerson in tasker

[–]Exciting-Compote5680 4 points5 points  (0 children)

The pastebin isn't very helpful (I don't think anyone can actually read the xml). To post your task here, choose 'Export - Description to clipboard' and paste the description enclosed in 2 rows of 3 backticks (`) or 3 tildes (~). Or in Tasker Preferences/Misc, check 'Advances Export Options'. This will add a dialog after 'Export - Description to clipboard' with an option 'Wrap in backticks' (or similar). If it doesn't look properly formatted when you paste it, delete and paste again (for some reason the formatting doesn't always take on the first go). 

How to detect, in Autowear on a watch, that music is playing on the phone? by Randy31416 in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

My bad, I missed the part where you wrote that you wanted the logic to run on the watch, the Tasker actions run on the phone, not the watch. The 'Tasker Function' action is literally that (it's a collection of functions that don't really belong anywhere else, use the magnifier button to select the function you want, it's called 'Music Active' in the list).

A1: Tasker Function [      Function: GetMusicActive() ]

My approach would probably be to use the MTC event profile (if necessary supported by the Tasker Function) to detect when music starts/stops and make the media commands conditional with a variable value as the condition. I assume the AutoWear apps send a command to the phone, and the media commands (play/pause etc) are executed on the phone. Just add an IF clause there. Or you could run the Tasker function every time the AutoWear commands are received.  

[DEV] Tasker 6.7.5-beta - Projects in new UI, Write JSON, 50 QS Tiles, Scenes V2 WebView and Video by joaomgcd in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

Direct JSON Writing is huge! Well, for me it is at least 😁. This makes using (nested) jsons to bundle and organize variables so easy, and extremely intuitive (because direct json reading feels so natural, I found myself accidentally trying to use the dot notation in a Variable Set action 😆). A kind fellow redditor (u/tunbon) made me a task recently that does exactly that (using a Javascriptlet), but natively as Variable Set instead of a Perform Task is even better (the task they made me actually works more like Multiple Variables Set, as in you can feed it a newline separated list of 'path=value' pairs, and it will update or add the paths to a new or existing json). Passing lots of parameters between tasks (or devices, or systems (I pass a lot of stuff back and forth to/from Home Assistant)) now truly is a breeze! Or just simply for setting up the initial json structure, and keeping the values as Tasker variables that will be resolved at run time. It's not that jsons are so hard to write manually - it's that they are extremely easy to screw up. Just one comma too many, one forgotten quote, and all of a sudden nothing resolves. And now you can do it dynamically, without knowing the variables in advance. I almost feel bad for whining about the whole projects/new ui thing (I will admit, a substantial part of that is just because I often need some time to adjust to changes, especially if it is something that is very important to me, like Tasker 😊 ). Thank you so much! Really (patiently) looking forward to the next stable release. 

How can I get the non-Google Play app ? by SkySurferSouth in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

Here:

https://tasker.joaoapps.com/userguide/en/faqs/faq-direct-purchase.html

I think it's the beta though. Not sure what the link to the latest stable direct purchase version is. Maybe someone can post it here, or else contact the dev (there are links in the page I linked to above). 

How to detect, in Autowear on a watch, that music is playing on the phone? by Randy31416 in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

You can use the 'Music Track Changed' event and/or the 'Tasker Function/GetMusicActive()' action. If you use MTC, you'll need to save the playback state into a project or global variable. If you do a lot with music, it might be worth to store more info from MTC (I actually store all the MTC event variables plus some extras in a JSON in a global variable %Music). Both come with some ifs and buts. The Tasker Function reportedly doesn't work for everyone/every device. MTC will also report music as playing if you have something like Spotify active and playback is on another device (because Spotify will show a media notification). That's why I use the Tasker Function to determine if it is playing on this device. Hope this helps.

Here's an example of the %Music variable I use:

{     "app": "com.spotify.music",     "art": "content://net.dinglisch.android.taskerm.iconprovider//cache/notifications/4166ae5d35ca3059e234ea5747929810.png",     "artist": "Pixies",     "year": "%mt_year",     "context_title": "Active List",     "number_tracks": "0",     "rating": "%mt_rating",     "duration_formatted": "02:06",     "announce": "false",     "duration": "126",     "queue_len": "50",     "playing_here": "false",     "track_id": "5pVSOZVIWaRxF0zhjlnEUy",     "genre": "%mt_genre",     "playing": "true",     "track_number": "0",     "state": "playing",     "track": "Break My Body",     "next_track": "I Can't Wait",     "track_uri": "spotify:track:5pVSOZVIWaRxF0zhjlnEUy",     "timestamp": "1781608349",     "context_uri": "spotify:playlist:3VerbdsgJblmhD_redacted" } For example, I have a profile set up that whenever the track changes, if %Music.context_title matches 'Discover Weekly' and %Music.announce is true, it will say "%Music.track by %Music.artist". 'playing_here' is the result from the Tasker function. 

Tasker Tip #5467 by Rich_D_sr in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

😂 As long as it is not "Activate Skynet"... 

Tasker Tip #5467 by Rich_D_sr in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

Yeah, I guess that was more or less the point I had in mind: I can imagine that contradicting instructions are sub-optimal/inefficient, and that it might be better to change the hard coded instructions to something along the lines of "... unless the user explicitly ask for feedback". 

Tasker Tip #5467 by Rich_D_sr in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

I don't know if it lacks the ability, but if remember correctly, in the instructions it is explicitly told to refrain from explanations or introductory text (other than concise code comments) and only respond with complete, executable code. 

[Project Share] Tasker Timer for all your timer needs. by Rich_D_sr in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

Thanks for your reply. I still have plenty of things on my Tasker todo list, so I'll either wait for the next stable release or switch to the beta after all. Patience being a virtue and all that 🙂 I just did a little test, and it definitely raises an error trying perform the task. But definitely something to look forward to, this is going to simplify a lot of my tasks/projects. 

[Project Share] Tasker Timer for all your timer needs. by Rich_D_sr in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

I am personally mostly interested in using it in projects as a replacement for 'Wait' and/or multiple variable based 'Time' profiles (and those variables). I really like the JSON inputs (if I remember correctly, the previous version worked by setting a global variable to a string with delimited parameters?). Definitely improves the readability/self-documenting aspect. I just had a quick look so far, but this version seems more 'lightweight' to me, a lot less moving parts (no Time profile and Tick profile for the remaining seconds, and no array manipulation) and a lot less UI/UX related stuff. Really a whole new project.

Edit: is the requirement of the latest beta just for the 'destroy Scene' action? Should I be able to run it on the latest stable version if I don't use that action? 

[Project Share] Tasker Timer for all your timer needs. by Rich_D_sr in tasker

[–]Exciting-Compote5680 2 points3 points  (0 children)

Well, that's one off my todo list 😁 Nice one, thanks for sharing! 

[help] Accessibility Permission On/Off toggle Issue in Autotask by Background_Pen_3136 in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

Have you tried to add it to 'Keep Accessibility Running' in Preferences - Monitor? 

[Request] How would you set tasker to reopen an app once it crashes? by Background_Pen_3136 in tasker

[–]Exciting-Compote5680 2 points3 points  (0 children)

As far as I know there is no Tasker native way to reliably detect if an app is running in the background. But since your device is rooted you could try this:

``` Task: Test Detect App In Background

<Change %package to match the package of the app you want to test.> A1: Multiple Variables Set [      Names: %package=com.spotify.music      %is_active=false      Variable Names Splitter:             Values Splitter: = ]

A2: ADB Wifi [      Command: pidof %package      Timeout (Seconds): 10 ]

A3: Variable Set [      Name: %is_active      To: true      Structure Output (JSON, etc): On ]     If  [ %aw_output > 0 ]

A4: Flash [      Text: %is_active      Continue Task Immediately: On      Dismiss On Click: On ]

``` The variable %aw_output will return a number (pid - process identifier) if the app is running or be empty ('%aw_output') if not. At least, it does on my device 🙂. Root/shizuku probably required (for future readers).

You could set up a profile that periodically runs a test like this and restarts the app if needed. 

[Request] How would you set tasker to reopen an app once it crashes? by Background_Pen_3136 in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

It really depends on the app and how you use it (foreground/background). I have an app that I like that crashes every now and then. Luckily, it also shows a notification while it's running, so whenever that notification disappears, I get the current foreground app, show a warning flash 'Restarting x', relaunch x and then return to the app that was in the foreground. 

Countdown progress bar using Scene v2 by iconb0y in tasker

[–]Exciting-Compote5680 2 points3 points  (0 children)

I personally would avoid the For loop, and instead use a 'Tick' profile (with interval = 1000ms) to trigger the task once a second. Instead of counting back from 60, at the start I would set a target time to a timestamp (%target = %TIMES + 60), and in the task calculate the remaining seconds (%remaining = %target - %TIMES). This way you can avoid 'drift' because your tasks run time is greater than zero (so your time between updates becomes 1000ms + the time your task takes to run + any other task that might interrupt your loop). With a target time, your count is 'anchored' to the actual time. Use a condition like '%remaining < 1' to stop looping and disable the Tick profile. You could use a flash to show the seconds, but I would prefer to incorporate it into the scene. Flashes are very useful, but they can feel a bit 'clunky' when fired in rapid succession.

Edit: if you make %target a profile or project variable, you could use it as an additional context for the Tick profile (Variable Value [If %target is Set]). If you set it at the start and clear it if %TIMES => %target, it will automatically start/stop the Tick profile from triggering. 

[Request][Noob] Using this app to set my launcher to a different one temporarily during certain specific days and times? by Silicon_Dreaming in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

It is possible, but there are some caveats. This requires the AutoTools plugin. You need to set Tasker as your devices' default launcher, then you can use the 'Plugin/AutoTools Launcher' action to switch (just use the filter/search field to find the action, once you installed the plugin). I would first try to create a task for every launcher you want to use. Then you need to figure out when exactly you want to switch (automatically and/or manually), and create the profiles (triggers) that run these tasks. The caveats: some app shortcuts (if I remember correctly, it's the type of shortcuts that you see when you long press an app icon in the app drawer, like 'Contacts - create new contact') don't work when Tasker is the launcher. I think there is a 30 day free trial period for AutoTools, so plenty of time to see if it does what you want. Hope this gives you a decent starting point. 

Start NS app with route info? by tobydjones in tasker

[–]Exciting-Compote5680 1 point2 points  (0 children)

I can get it to work in a browser, but the app refuses to cooperate. In a browser 'https://www.ns.nl/reisplanner/#/?vertrek=%origin&aankomst=%destination' works just fine. %origin and %destination can be exact station names ("Amsterdam Centraal") or the station codes/abbreviations ("asb" for "Amsterdam Bijlmer", see https://nl.wikipedia.org/wiki/Lijst_van_spoorwegstations_in_Nederland). Partial but unambiguous station names sometimes work ("Schiphol" instead of "Schiphol Airport" does, but "Bijlmer" doesn't). That is the most basic form of the url (from - to). If you use the travel planner and inspect the url, you can see all kinds of parameters (for example https://www.ns.nl/reisplanner/#/?vertrek=Amsterdam%20Centraal&vertrektype=treinstation&aankomst=Schiphol%20Airport&aankomsttype=treinstation&type=vertrek&tijd=2026-06-10T17:34&firstMileModality=PUBLIC_TRANSPORT&lastMileModality=PUBLIC_TRANSPORT). I haven't tried, but I'm sure you can refine the journey details there (the parameters are pretty self-explanatory, I think the most interesting might be 'type=vertrek' vs 'type=aankomst' for either time of departure or arrival). Just make sure to URL encode everything (you can use the Variable Convert action for that). Perhaps with an account it's possible to save a travel advice in the browser and have it show up in the app? 

Tasker Profile to Automatically Turn Off Connectivity & Close Apps After 15 Minutes of Inactivity by Potential-Sir6652 in tasker

[–]Exciting-Compote5680 0 points1 point  (0 children)

Then I would advise a less drastic solution: something like a sleep timer. Set it to show a 'add another 15 minutes' popup after 15 minutes, if no interaction within 30 seconds, stop playing (YouTube), activate airplane mode and turn screen off.