Tasker run action via .sh script - Tasker Tips & Tricks

I use Timurs Kernel on my Nexus and there is the possibity to run a Script (usersuspend.sh)
Is it possible to call a tasker action in this script?

If you are executing a script, why not call the action through android directly instead of adding the tasker layer? Can you give an example of what you want to achieve?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

aggro600 said:
I use Timurs Kernel on my Nexus and there is the possibity to run a Script (usersuspend.sh)
Is it possible to call a tasker action in this script?
Click to expand...
Click to collapse
I've heard of launching tasker tasks via adb commands so I think it's definitely possible. I just don't know the specifics but I will report back if I find any more info. Hopefully someone with more experience will chime in.

The Tasker should only connect to a bluetooth device.
Gesendet von meinem SM-G930F mit Tapatalk

On a rooted device, you should be able to use this intent:
su -c am broadcast -a net.dinglisch.android.tasker.ACTION_TASK --es "task_name" "The-Actual-Task-Name"
I just don't understand the benefit of doing this through a script on the device.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

ktmom said:
On a rooted device, you should be able to use this intent:
su -c am broadcast -a net.dinglisch.android.tasker.ACTION_TASK --es "task_name" "The-Actual-Task-Name"
I just don't understand the benefit of doing this through a script on the device.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Can't find any sense to use this now but good to keep this in mind.

Related

Integrate MyQ with Tasker

So, I searhed and the only thing that pops up about this is about a year old.
MyQ makes chamberlain and liftmaster garage door openers open by using their app on your smarthphone.
What I would like to do is create a task that triggers based off my proximity (location) to arriving home for my garage to automatically open.
I see that people were able to achieve something to this affect a year ago, but it seems that myQ has locked down this functionality.
Can anyone elaborate or help with a solution to this? I would be fine with using my android smartwatch to trigger a tasker profile too.
Thanks in Advance!
elijahblake said:
So, I searhed and the only thing that pops up about this is about a year old.
MyQ makes chamberlain and liftmaster garage door openers open by using their app on your smarthphone.
What I would like to do is create a task that triggers based off my proximity (location) to arriving home for my garage to automatically open.
I see that people were able to achieve something to this affect a year ago, but it seems that myQ has locked down this functionality.
Can anyone elaborate or help with a solution to this? I would be fine with using my android smartwatch to trigger a tasker profile too.
Thanks in Advance!
Click to expand...
Click to collapse
I have been using Tasker with MyQ for my watch and shortcuts and it had been working great until someone at MyQ decided to disable that function. Now they figured they can make a buck by charging you for that function. I haven't came across any work arounds yet but if you or anyone else know of a way to get Tasker to work with MyQ again. Please let us know.
Why not just revert to an older version of the app? If version 3.83 is old enough, then it's available on apkmirror.com. Make sure to turn off auto updates for the app in the play store.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
Why not just revert to an older version of the app? If version 3.83 is old enough, then it's available on apkmirror.com. Make sure to turn off auto updates for the app in the play store.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
i may be wrong, but i think they actually setup the paywall by when you hit their server to login with your credentials... So I don't "think" an older version of the app would help. (i could be wrong)?
I take it then that this works by your logging into their server which then sends a packet to the opener via the internet?
Can you sniff the network and grab what the command is the opener is looking for, then mimic that directly to the opener?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
I take it then that this works by your logging into their server which then sends a packet to the opener via the internet?
Can you sniff the network and grab what the command is the opener is looking for, then mimic that directly to the opener?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
You mean do a packet capture with wireshark? I can give it a try

Tasker unable to send email

Hello Group,
Samsung Galaxy S8 Plus; running Android version 7.0
Tasker version 5.0u6m
Email Plugins: SendSilentMail and MailTask
Problem: I have a number of Profiles that when executed they will email the Tasker backup file along with the battery logs that was created from a separate Profile. These profiles work great on my Note 3. The problem that I am having is ever since I transitioned to my Samsung Galaxy S8+ the mail plugins are not emailing the files that it did when the Profiles were on the Note 3. I have reached out to the developer of MailTask and he/she could not figure out why its not working. The developer of SendSilentMail has a dead email address. In addition, I have tried other mail plugins and I am still getting the same issue. SL4 does not work on my version of Android and have not worked after Kit Kit so using that plugin is out of the question.
Does anyone know how I can get Tasker and the mail plugins (or other alternative) to send email with our without attachments.
Regards,
Vernon
Have you tried capturing a logcat while running the task? It's possible it will give some insight.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
Have you tried capturing a logcat while running the task? It's possible it will give some insight.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
How do I "capturing a logcat?"
Regards
How to logcat
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Simulate tap without root

HI, how can I tab a button on the screen, withou root ?
Using Automate, for example, there is a option named "Interactions" that I configure the control type and its text content.
In Tasker, how can I do that?
The only ways using only tasker that I know to do that requires root. However, the AutoInput plugin can help. You authorize AutoInput with sufficient permissions through ADB so it doesn't require root.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Multi-window and Tasker

How can I close both apps in multi-window mode using Tasker? I'm on an unrooted Galaxy Note 8.
I am not particularly familiar with Samsung's multi window mode, but on a un-rooted device, I believe your best bet is to mimic the button presses you would normally do using the tasker plugin, AutoInput.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
I am not particularly familiar with Samsung's multi window mode, but on a un-rooted device, I believe your best bet is to mimic the button presses you would normally do using the tasker plugin, AutoInput.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Thanks, but I've already tried that with no success.
Why not post the description of the task that didn't work. Anything that you can do with your finger on the device, AutoInput is able to mimic.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
Why not post the description of the task that didn't work. Anything that you can do with your finger on the device, AutoInput is able to mimic.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
I tried setting up an autoinput action to long click on multi-window navigation button using easy actions. And I've tried to use screen coordinates to do the same in autoinput. But I have had no success yet. I'm still working on it... maybe I should look into a kill app action...

Tasker: display my position at regular time intervals?

Hello,
I discovered Tasker and thanks to tutorials, I managed to reach my first goal: send an SMS indicating my position directly on Google Maps.
Question security, it's great when traveling alone on a hike.
Now, I have a very theoretical goal that I can not reach: how to automatically send this position at regular time intervals? In other words, how to follow a mobile in his move?
Thanks in advance to the tasker experts who will enlighten me.
alamyr said:
Hello,
I discovered Tasker and thanks to tutorials, I managed to reach my first goal: send an SMS indicating my position directly on Google Maps.
Question security, it's great when traveling alone on a hike.
Now, I have a very theoretical goal that I can not reach: how to automatically send this position at regular time intervals? In other words, how to follow a mobile in his move?
Thanks in advance to the tasker experts who will enlighten me.
Click to expand...
Click to collapse
Just put a "wait" action for however many minutes between updates then a "go-to" back to the start (or wherever the location point is in your task).
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
State>Time From: Every>(how often) To:> Add your task
Using wait will take a toll on battery
ktmom said:
Just put a "wait" action for however many minutes between updates then a "go-to" back to the start (or wherever the location point is in your task).
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Thank you, it works
Chym3ra said:
State>Time From: Every>(how often) To:> Add your task
Using wait will take a toll on battery
Click to expand...
Click to collapse
I use solution proposed by Ktmom, it works but I will consider your advice
Thank you
alamyr said:
I use solution proposed by Ktmom, it works but I will consider your advice
Thank you
Click to expand...
Click to collapse
I agree that this advice is better on battery. If you want to run this activity on battery power (not plugged in) for an extended period of time, then maybe use a shortcut to toggle the profile on/off unless you want this information available 100% of the time.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
I agree that this advice is better on battery. If you want to run this activity on battery power (not plugged in) for an extended period of time, then maybe use a shortcut to toggle the profile on/off unless you want this information available 100% of the time.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Thank you to confirm
However, I'm a new user of Tasker and what you propose about a shortcut looks like chinese for me. But I will study this recommandation
alamyr said:
Thank you to confirm
However, I'm a new user of Tasker and what you propose about a shortcut looks like chinese for me. But I will study this recommandation
Click to expand...
Click to collapse
How are you currently causing the task to run?
Maybe it is time based, such as between 5-6 pm during your commute home? Does it run when ever you open a specific app?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
ktmom said:
How are you currently causing the task to run?
Maybe it is time based, such as between 5-6 pm during your commute home? Does it run when ever you open a specific app?
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
Click to expand...
Click to collapse
Soory, I'm a bit late to answer.
My question was theorical because I do not have the immediate need for a solution.
I am interested in answering two cases of concern.
That of parents whose children are alone outside and that of children whose parents are old and, for some, likely to go astray when they leave alone.
A tranquillizing solution would be to press the key that triggers the tracking of the position every n minutes and simply put the mobile phone in the pocket of the child or the elderly person. Upon his return, stop the tasker.
This is a use case where toggling a variable to initiate the location mode makes sense. Then the profile triggers on two contexts, when the variable is set and a time context every x- minutes.
"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers

Categories

Resources