SL4A support for Tasker

219 views
Skip to first unread message

baudi

unread,
Sep 5, 2011, 8:54:15 PM9/5/11
to tas...@googlegroups.com
The SL4a developer suggested that I try to gauge the interest of people in being able to invoke Tasker actions from SL4A. 

Here's an example: Use Tasker to call an SL4A "Sunrise.py" script. Sunrise.py would use pyEphem to calculate tomorrow's sunrise time, then Invoke a tasker action to store the value of sunrise in a tasker variable. That variable could then be used by any Tasker action. It's possible to do the first part of that now: call Sunrise.py. But the only way to get values back into Tasker is to put them in the clipboard or into a file -- kind of a kluge.

What I see is a library of SL4A scripts like this that Tasker users could easily invoke to provide data and services that are otherwise unavailable in Tasker. For example, the sunrise.py script could also calculate sunset, and civil twilight. There are many, many other incredible python modules (see this link) that could dramatically extend the capabilities of Tasker using SL4A.

If you would like to see SL4A support the Tasker interface, please support this enhancement request 
.

strictlyrude27

unread,
Sep 6, 2011, 1:31:26 AM9/6/11
to Tasker
It would be VERY beneficial if we could get values into Tasker, say
from STDOUT or STDERR. RIght now Corey Z's Secure Settings plugin can
run shell scripts that can write STDOUT and STDERR to variables; maybe
talk to him about implementing it for SL4A?

I use Perl religiously (well I did anyway, but I'd love to start up
again) and would use SL4A all the time if I could have (a) the ability
to get values like discussed; and (b) the ability to run scripts as
root.

On Sep 5, 5:54 pm, baudi <dch...@gmail.com> wrote:
> The SL4a developer suggested that I try to gauge the interest of people in
> being able to invoke Tasker actions from SL4A.
>
> Here's an example: Use Tasker to call an SL4A "Sunrise.py" script.
> Sunrise.py would use pyEphem to calculate tomorrow's sunrise time, then
> Invoke a tasker action to store the value of sunrise in a tasker variable.
> That variable could then be used by any Tasker action. It's possible to do
> the first part of that now: call Sunrise.py. But the only way to get values
> back into Tasker is to put them in the clipboard or into a file -- kind of a
> kluge.
>
> What I see is a library of SL4A scripts like this that Tasker users could
> easily invoke to provide data and services that are otherwise unavailable in
> Tasker. For example, the sunrise.py script could also calculate sunset, and
> civil twilight. There are many, many other incredible python modules (see this
> link <http://wiki.python.org/moin/UsefulModules>) that could dramatically
> extend the capabilities of Tasker using SL4A.
>
> If you would like to see SL4A support the Tasker interface, please support this
> enhancement request<http://code.google.com/p/android-scripting/issues/detail?id=568>
>  .

baudi

unread,
Sep 6, 2011, 11:08:33 AM9/6/11
to tas...@googlegroups.com
If you do support this enhancement for SL4A, be sure to click "Vote for this issue" at the bottom of the screen here: http://code.google.com/p/android-scripting/issues/detail?id=568

You don't have to add a comment, but voting for it will make it more likely that the SL4A dev will make it happen.

And thanks to those who have already voted.


TW

unread,
Sep 6, 2011, 1:08:07 PM9/6/11
to Tasker
great, thanks for creating the enhancement request - it has my vote :)

I would just love to pass vars from my Bash scripts back to Tasker

On Sep 6, 2:54 am, baudi <dch...@gmail.com> wrote:
> The SL4a developer suggested that I try to gauge the interest of people in
> being able to invoke Tasker actions from SL4A.
>
> Here's an example: Use Tasker to call an SL4A "Sunrise.py" script.
> Sunrise.py would use pyEphem to calculate tomorrow's sunrise time, then
> Invoke a tasker action to store the value of sunrise in a tasker variable.
> That variable could then be used by any Tasker action. It's possible to do
> the first part of that now: call Sunrise.py. But the only way to get values
> back into Tasker is to put them in the clipboard or into a file -- kind of a
> kluge.
>
> What I see is a library of SL4A scripts like this that Tasker users could
> easily invoke to provide data and services that are otherwise unavailable in
> Tasker. For example, the sunrise.py script could also calculate sunset, and
> civil twilight. There are many, many other incredible python modules (see this
> link <http://wiki.python.org/moin/UsefulModules>) that could dramatically
> extend the capabilities of Tasker using SL4A.
>
> If you would like to see SL4A support the Tasker interface, please support this
> enhancement request<http://code.google.com/p/android-scripting/issues/detail?id=568>
>  .

RogueSpear

unread,
Sep 6, 2011, 8:12:22 PM9/6/11
to Tasker
I went and voted for it. I'm finally digging into SL4A/Py4A the last
month or so.

strictlyrude27

unread,
Sep 7, 2011, 5:07:29 PM9/7/11
to Tasker
Take a look at Secure Settings plugin - it does this already.

baudi

unread,
Sep 7, 2011, 5:20:22 PM9/7/11
to tas...@googlegroups.com
Ummm, does what already?

Corey Z

unread,
Sep 7, 2011, 6:16:23 PM9/7/11
to tas...@googlegroups.com
Hi,

My app can run any GNU linux shell command/script (with/without root) and output the stderr/stdout and exit value to user-defined Tasker variables. It will also accept any Tasker variables as input parameters. If you're interested, here's a link to the market page. The app is free and has a ton of other features :)

Cheers,
Corey

David Hite

unread,
Sep 7, 2011, 6:46:20 PM9/7/11
to tas...@googlegroups.com
That's great. But SL4A is a different kind of tool. It can run Python, Perl, Lua, Rhino and other scripts. It also implements an extensive Android API. Check it out here

David

Corey Z

unread,
Sep 7, 2011, 6:52:57 PM9/7/11
to tas...@googlegroups.com
I'm aware of SL4A. I used it extensively before I wrote my plugin. I was just answering your previous question asking what Secure Settings does.

-Corey

baudi

unread,
Sep 7, 2011, 7:24:23 PM9/7/11
to tas...@googlegroups.com
Thanks to everybody who voted for the enhancement request. It got 14 votes in 2 days, and the SL4A developer has agreed to take a look at developing an API Facade for Tasker.


Reply all
Reply to author
Forward
0 new messages