Giter Site home page Giter Site logo

Comments (5)

dugite-code avatar dugite-code commented on July 24, 2024 1

For anyone looking for a work around Like I was using Installing the Termux API app you can issue intents back to Tasker. You will have to split your task up into chunks but it's the best I could come up with.

In a bash script

am broadcast --user 0 -a net.dinglish.tasker.totals -e totals "${calculated}"

In Tasker

Add a new profile: Event -> System Event -> Intent Received

Action: net.dinglish.tasker.totals

The variable %totals will be available in the task

from termux-tasker.

jschwinger233 avatar jschwinger233 commented on July 24, 2024

same issue, I am to make some 'meta programming' in Tasker, here's the steps:

  1. call termux:task to run a script that renders a xml file
  2. call import data to import rendered xml as a task
  3. call perform task for imported task

the problem is step 2 starts before step 1 finish, and I haven't got a elegant way to make it.

from termux-tasker.

ks9208661 avatar ks9208661 commented on July 24, 2024

The 19 January 2020 update (0.4) may have finally brought us some form of synchronicity.

I deinstalled version 0.3 and installed 0.4. After that I ran a test. I have a script with the following lines:

sleep 5
echo Finished

In Tasker I created a task with 2 actions:

  1. Termux:Task action to run my script above, with the timeout setting to 30 seconds
  2. Flash %stdout

When I ran this task, it flashed Finished after 5 seconds.

Thanks Fredrik!!!

The phone I tested this on is rooted though. When I tried this in my other, unrooted phone, for some reason I'm getting an error. It runs the Termux action but waits the full 30 seconds, and then I get a an error (I see Termux: plugin comp: com.termux.tasker/com.termux.tasker.FireReceiver and some lines regarding add wait type, but the last line simply says Error: null). The settings for both phone, with the exception of one being rooted and the other one not, are the same (e.g. Termux and Termux:Task can auto-start, run in the background, do not care about battery, etc). I can overlook this issue for now since my rooted phone is the one I use for the stuff I'm doing, and things seem to work there.

from termux-tasker.

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

@ks9208661 the wait type issue should be solved in version 0.5. Check number 9 in Issue 36 for details.

from termux-tasker.

agnostic-apollo avatar agnostic-apollo commented on July 24, 2024

Check fecba50 for disabling wait for background commands. Other issues mentioned likely don't really apply anymore. Closing.

from termux-tasker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.