Comments (5)
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.
same issue, I am to make some 'meta programming' in Tasker, here's the steps:
- call
termux:task
to run a script that renders a xml file - call
import data
to import rendered xml as a task - 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.
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:
- Termux:Task action to run my script above, with the timeout setting to 30 seconds
- 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.
@ks9208661 the wait type
issue should be solved in version 0.5. Check number 9
in Issue 36 for details.
from termux-tasker.
Check fecba50 for disabling wait for background commands. Other issues mentioned likely don't really apply anymore. Closing.
from termux-tasker.
Related Issues (20)
- Is the development of this plugin stopped? I can't install in on Android 14 HOT 1
- bash: extglob off in the plugin - not possible to enable it HOT 4
- Run scripts from the location they are saved in, instead of the destination of the softlink. HOT 3
- The argument not support file paths HOT 2
- App package conflicting HOT 1
- Cannot install: Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE] HOT 4
- change request: make com.termux.permission.RUN_COMMAND permission enforcement optional HOT 3
- Error installing Termux Tasker HOT 1
- I can't install this app on my Android HOT 1
- stdout not working with Tasker HOT 9
- Installation issue HOT 1
- httpie binary doesn't work in background HOT 9
- My script output dissappears immediately after running HOT 2
- Working directory doesn't seem to work if there are spaces in the name
- Actions downloads expired HOT 1
- "other plugin host apps"? HOT 1
- Readme unclear HOT 2
- Script not found HOT 9
- bash - "Arguments" doesn't accept bash commands HOT 3
- App icon stay showed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from termux-tasker.