Related
Trying to make Tasker automatically open and populate Astrid todo's task edit fields the way that so many other apps can using the Share menu. With pretty much any app being able to do this using Share, I figured it wouldn't be too hard to make Tasker do the same, but I'm having trouble finding out how.
I'm using the beta of Tasker so Send Intent replaces the previous two intent actions. The fields available are Action, Category, Mime Type, Extra, Package, Class, and Target. Right now Package is set to com.timsu.astrid and Class to com.todoroo.astrid.activity.TaskEditActivity, which manages to open the task edit screen. That intent is however from the Astrid widget so I don't know if that's even the right thing to use if doing this via the Share ability.
I'm not a dev so doing this blindly. Any help would be appreciated
Hi, did you manage to get this to work?
I stopped using Astrid ages ago. Compared to what I built from scratch using Tasker, it's **** for my use
Whenever I scan an NFC tag I created with NFC Tag Launcher it brings up a prompt that says "Open in browser" with options for OK and Cancel. However, it does not do that for tags I create in Lightflow for turning sleep on or off. Is there any way to disable this prompt?
Can't offer any help but I'm having the same problem with NFC Task Launcher.
I too get this. Not sure why. I'm on a rooted Verizon S3.
Download an app for NFC from the market first, then overwrite the default command that was stored on it. Most likely the command was to redirect you the site of the brand or seller of the tag.
nunyabiziz said:
Download an app for NFC from the market first, then overwrite the default command that was stored on it. Most likely the command was to redirect you the site of the brand or seller of the tag.
Click to expand...
Click to collapse
These are blank tags that I wrote to myself. I click OK every time and it never opens anything in the browser.
Have you verified that it was blank or have you erased the tag yet? I had the same issue with blanks that were not completely blanks.
nunyabiziz said:
Have you verified that it was blank or have you erased the tag yet? I had the same issue with blanks that were not completely blanks.
Click to expand...
Click to collapse
How can I tell if it's blank? According to NFC Tagwriter by NXP it's blank, and according to NFC TagInfo, the first two pages are read-only factory locked..
What do you have using NFC taginfo under "NDEF"?
nunyabiziz said:
What do you have using NFC taginfo under "NDEF"?
Click to expand...
Click to collapse
The blank tags have no message. One that I've written with NFC Tag Launcher has a message of the following:
Code:
WELL-KNOWN: urn:nfc:wkt:U(URI)
Identifier: 0x03("http://")
"tags.to/ntl"
MIME: ntl
enU:2:M:0,Q:-1;O:7;E:h:1__3:M:2;S:2;E:h:0
One written by lightflow has the following:
Code:
MIME: application/vnd.lightflow
SleepToggle
I would imagine the first part is what's causing it, but I don't know what there is to do about it.
EDIT: looks like that URL goes to the play store page for NFC Tag Launcher. Not sure why it's not actually opening in the browser though.
I personally use "NFC task launcher" and "erase tag" option.
---------- Post added at 09:28 PM ---------- Previous post was at 09:25 PM ----------
Sounds like you got it figured out.
nunyabiziz said:
I personally use "NFC task launcher" and "erase tag" option.
Click to expand...
Click to collapse
The issue is that I'm pretty sure it's NFC Tag Launcher that's writing the URL to it when it writes the task to the tag. I don't know what I'd do to write the tasks out to the tag otherwise.
I use NFC Task Launcher's erase function as well. As soon as the tag is written to again, this issue occurs.
jh120 said:
I use NFC Task Launcher's erase function as well. As soon as the tag is written to again, this issue occurs.
Click to expand...
Click to collapse
And did you write a task to the tag after? The NFC tag will always be detect, even blanks. It will just try to launch a unknown command.
nunyabiziz said:
And did you write a task to the tag after? The NFC tag will always be detect, even blanks. It will just try to launch a unknown command.
Click to expand...
Click to collapse
The issue is that the act of writing the task with NFC Task Launcher writes the URI to the tag. So erasing then rewriting the task accomplishes nothing.
I dont know all tags are the same size so maybe my tags are different. Im using web evolved tags and by default until erased and written to the tags will launch my browser and redirect to their site.
nunyabiziz said:
I dont know all tags are the same size so maybe my tags are different. Im using web evolved tags and by default until erased and written to the tags will launch my browser and redirect to their site.
Click to expand...
Click to collapse
Yeah, this isn't caused by anything with the tags themselves, it's just that NFC Tag Launcher adds the URI to the tag when you write out a task no matter what.
I can confirm that this happens regardless of tag type. I erased an old NFC-capable train ticket and wrote a wi-fi toggle to it. It works, but the browser dialog box still pops up.
Yeah, it's NFCTL writing that URL to the tag.
That URL is used as the intent filter and serves a few purposes. 1.) it saves space over a longer custom mime type or application specific record (which stores the package name). 2.) it directs anyone who doesn't have to the app to the play store to get it so that the tag actually does something - an application specific record does the same thing but has to store the *entire* package name (28 bytes in this case).
The way this has worked on *every* other device (and the way it should work in Android) is that the entire NDEF message hits the intent filter for that URL and the message is then delivered to the app. The app then grabs all records from the message (there are two) and parses the second record and executes those actions.
Given what the OP has sent me for some reason the Verizon S3 isn't doing this. (The international and ATT version work as expected).
Given that it's showing the chooser it's missing the specific intent filter and showing a dialog for what to do with this URL:
Code:
D/NfcService( 909): TAG: Tech [android.nfc.tech.MifareUltralight,
android.nfc.tech.NfcA, android.nfc.tech.Ndef]
D/NfcService( 909): Attempting to dispatch tag with override
D/NfcService( 909): No activities for NDEF handling of Intent {
act=android.nfc.action.NDEF_DISCOVERED dat=http://tags.to/ntl (has
extras) }
However it's still delivering the payload to NFCTL as the actions get executed (which it shouldn't do if you're getting the browser chooser dialog). It shouldn't work this way, literally. If you get the chooser it should deliver the entire payload to the chosen app (it's not).
So, what can we do here? I can add an option to use an application specific record in place of the URL. This should ensure it doesn't happen but at the cost of space - you'll lose 15+ bytes of space on the tag as a result though as it will write a separate NDEF record to the tag containing the full package name.
Is there anyone with a Verizon device this *isn't* happening for?
I could in theory get this into a release tomorrow as I'd want to have this squashed pre release.
I've been playing around quite abit with this and I have "sort of" gotten around this by use the Tasker URL Launcher.
With TUL installed along with tasker, I can use another NFC writer utility to create the url of tasker://taskname
Now if I touch the new tag without NFCTL installed I will be prompted with the "New Collected Tag" screen....unfortunately its still not an autorun but I can tap the "new tag" and the sequence fires correctly.
Obviously as previously stated the problem is the interception by the phone of the URL string used by NFCTL. Personally I have rooted and ripped out most all the Verizon bloat so I'm unsure what is left to cause this interception.
Let me know and I'll test whatever.
konman2k4 said:
I've been playing around quite abit with this and I have "sort of" gotten around this by use the Tasker URL Launcher.
With TUL installed along with tasker, I can use another NFC writer utility to create the url of tasker://taskname
Now if I touch the new tag without NFCTL installed I will be prompted with the "New Collected Tag" screen....unfortunately its still not an autorun but I can tap the "new tag" and the sequence fires correctly.
Obviously as previously stated the problem is the interception by the phone of the URL string used by NFCTL. Personally I have rooted and ripped out most all the Verizon bloat so I'm unsure what is left to cause this interception.
Let me know and I'll test whatever.
Click to expand...
Click to collapse
I may add a quick option tomorrow morning and throw a test APK up here. If the Verizon release is anything like the International and US pre-orders I suspect we'll see a lot of downloads and this is a *really* annoying thing to happen. So far Samsung takes the crown from HTC's head as the OEM making the weirdest changes.
I'm looking for a way to use data from Torque in Tasker.
I want to take data from torque and use it to drive actions in Tasker. Specifically, I'd like to turn the screen on when the engine comes on. Is anyone aware of previous work done in this area that might get me started? Or, would I need to code a Tasker plugin?
I'm aware I could accomplish this using ACC power as the on/off flag, but I'd like to charge the tablet at all times and not just when the car is running.
I know this is an old post but I'm interested in this same thing. My goal is to actually get intake air temperatures onto my pebble watch by passing them from Torque to Tasker and finally to the Pebble.
Hi, so still nothing new *push*
I'd also like to integrate Torque variables into Tasker very much. E.g. disabling the security keyguard as long as the motor is running, enable security when the motor is off. (So you can leave your phone in the car with others whilst refueling...
Any ideas?
Torque and AIDL interface
hunchi said:
Hi, so still nothing new *push*
I'd also like to integrate Torque variables into Tasker very much. E.g. disabling the security keyguard as long as the motor is running, enable security when the motor is off. (So you can leave your phone in the car with others whilst refueling...
Any ideas?
Click to expand...
Click to collapse
Hi
You'll need to use the AIDL 'api' interface that Torque supports to talk to it. Sensors information is retrieved only when it is asked for (and if the data was broadcast over intents, android would probably go slow when you're doing upwards of 100sensors/second refresh rates)
The AIDL interface will be the way forwards to get what you want though (then you can do with it what you want in terms of rebroadcasting if you want) - there's some information on it on here: http://torque-bhp.com/forums/?wpforumaction=viewtopic&t=438.0 which should be enough to get people started
Tasker plugin for Torque Pro
Is anyone working on this? It would be very useful to be able to have Tasker monitor Torque variables and be able to perform actions based on their values.
iraf said:
Is anyone working on this? It would be very useful to be able to have Tasker monitor Torque variables and be able to perform actions based on their values.
Click to expand...
Click to collapse
I've been able to do this following some disperse advice from the web.
Torque
As you see, Torque is able to write a CSV file with selected parameters. All that it basically does is to add a line at the end of that file listing those parameters values. In its settings you can change the frequency of modifications to that file. In my device this file is stored at /storage/emulated/0/torqueLogs/trackLog.csv.
Tasker
Once in Tasker you should set a profile to act on each change done by Torque to it. I've found the profile to be Event > File Modified and to retrieve those parameters inside the file, set up a task that runs the following Shell Command:
tail -1 /storage/emulated/0/torqueLogs/trackLog.csv
This retrieve the last line of the file and stores the output inside a variable. I called it %OBDLOG. A second action inside this task splits this Comma Separated Values (CSV) from that last line using the action Variable Split, and the separator ",". This creates N variables named %OBDLOGN. Example: %OBDLOG1, %OBDLOG2, %OBDLOG3...
Done that, we have to check which value corresponds to the parameter we want.
Bonus Info
You might want to clean this file once it reaches a specific size.
I've done this so that I can say commands through Bluetooth usingTasker Plugin AutoVoice. You can check the logic used by me to say the Coolant Temperature once it reaches 70ºC in the attached image.
Sorry not to be able to link outside. XDA prevents me as I'm a newbie! hehe
Cheers!
I'm having trouble finding the trackLog.csv file. I have files in the .torque folder on my sdcard but what options in logging do you have to enable to generate loss in the torqueLogs folder?
Sent from my XT1060 using Tapatalk
Very interesting !!!!
Can you detail all the steps please ?
thanks
Just set up something similar. Setup torque as describer by "dirceucorsetti" above, except I dont use "log rotation".
Below is for tasker.
Profile: Torque
State-Net-BT Near
Name-find your OBD adapter in the list
Min uses regular old BT, so I had to check "Standard Devices"
Enter Task:Start Torque
Exit Task: Stop Torque
Task: Start Torque
App-Launch App-Torque
Task: Stop Torque
Misc-Send-Intent
Action-org.prowl.torque.REQUEST_TORQUE_QUIT
Package-org.prowl.torque
Script-Run Shell
Command- tail -1/storage/emulated/0/torqueLogs/trackLog.csv
Store output in- %OBDLOG
Net-Compose Email
Recipient - your email
Subject - TorqueLog - %DATE
Message-%OBDLOG
File-Delete File
File- torqueLogs/trackLog.csv
Of course you could send the file anywhere. I just wanted to share how I start and stop torque automatically. That seemed to always be the issue.
Interestingly I can also start Waze in this task. I could never figure out how to get taker to detect when I was driving. Until I remembered the OBD adapter.
good info! I started googling about tasker and torque integration not really expecting much result. I want to build a custom interface to run on my in-dash nexus7 that reflects some of the torque info/stats. Thats a good start!
Also found this listing of torque intents and data it logs.
http://torque-bhp.com/wiki/PluginDocumentation
Gator Brah said:
good info! I started googling about tasker and torque integration not really expecting much result. I want to build a custom interface to run on my in-dash nexus7 that reflects some of the torque info/stats. Thats a good start!
Also found this listing of torque intents and data it logs.
http://torque-bhp.com/wiki/PluginDocumentation
Click to expand...
Click to collapse
Not exactly on topic, but do you guys have any idea how to launch a torque plugin from tasker? I'd love to get my racing dash to launch automatically, but I cant seem to figure out how to make that happen.
I would like to see an actual plugin for torque. Just starting to work with it. Would like to use utter to announce things. And autovoice to ask it questions. Never can get torque to tell me its at operating temp. Also looking for any more creative ideas from people. This could be fun.
Sent from my HTC One_M8 using XDA Free mobile app
Getting error "sh: <stdin>[2]: tail: not found" under variables
Sent from my Nexus 7 using XDA Free mobile app
Installed busy box. Forgot since I installed android L. And file was /sdcard/torquelogs.
Sent from my Nexus 7 using XDA Free mobile app
Back at it after updating tablet to "m". I have my 9 variables I want and that keep refreshing. But after I rename them it just replaces it and the renamed variable says at the same number. What am I missing. Also had to change "tail -1" to "tail -n 1" for it to read last line.
Sent from my Pixel XL using Tapatalk
I'm trying to use the Llama Action "Android Intent" to broadcast the ACTION_DOCK_EVENT action. I have it triggered by a NFC tag on my dock. Does anyone know the correct way to enter this in Llama? I've tried Action= ACTION_DOCK_EVENT and add an Extra Key=EXTRA_DOCK_EVENT, Value=1. Not sure what to use for Class Name, if anything.
Thanks for any help you can provide!
Jason
I have just recently started using Tasker for some simple tasks like turning on/off GPS or WiFi, silencing my phone, etc... And I am trying to figure out how to set up a task to sign in to secured WiFi SSIDs. My work and school both require you to "sign in" before you can use their WiFi, so my phone tells my whenever it connects, to "Sign into Wi-Fi Network". Both of them are different however. My work is a simple checkbox to "agree" to the store's conditions My school, I actually have to type in my student information.
What I would like to do is make a task to automate that signing in process as soon as my phone connects to the WiFi. Has anyone done anything like this or have any suggestions how to go about it?
Tasker is a very powerful app whose full capabilities I personally haven't even started to scratch...play around especially with creating variables under the NET > Wifi Connected/Near task or profile and I think you'll be able to write a simple profile to do this for you. Best way to do this is when you're actually on/near that network so you can automatically pull in the details of the Mac address or SSID...
You can start by looking here to see if you can "kang" one profile/task or so
http://tasker.wikidot.com/profile-index
Under Advanced category on this wiki look to see how you can modify the Wifi Auto Start/Stop profile...
I tried to do something like this a long time ago but figured it.
Hope some one can help out
Sent from my GT-N8013
Moe5508 said:
Tasker is a very powerful app whose full capabilities I personally haven't even started to scratch...play around especially with creating variables under the NET > Wifi Connected/Near task or profile and I think you'll be able to write a simple profile to do this for you. Best way to do this is when you're actually on/near that network so you can automatically pull in the details of the Mac address or SSID...
You can start by looking here to see if you can "kang" one profile/task or so
http://tasker.wikidot.com/profile-index
Under Advanced category on this wiki look to see how you can modify the Wifi Auto Start/Stop profile...
Click to expand...
Click to collapse
I'm afraid I may have to write some sort of script to handle the authentication. I can make it check to see if I'm connected, and I should be able to see if I have connectivity or not, but I don't know where to go from there.
EDIT: On further examination, I don't see a way to check WiFi connectivity or speeds.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
There is the newbie tut thread... and a Google group
Sent from my Vivid 4G using Tapatalk 2
rignfool said:
There is the newbie tut thread... and a Google group
Sent from my Vivid 4G using Tapatalk 2
Click to expand...
Click to collapse
And this is not a newbie tut issue. It looks like people all over the internet have been trying to do it, and there hasn't been much progress.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
I've tried to do something similar some time ago to login to fon networks, with no luck I'm afraid
My best guess was trying to use "http post" plugin
https://play.google.com/store/apps/details?id=com.steelgirder.LocaleSendEmailPlugin
But still the lack of knowledge took ahead of me, maybe you can have a look at it
wish you better luck than mine :thumbup:
Sent from my Nexus 7 using Tapatalk HD
I solved one of them!!! I was able to get it (I think, haven't field tested yet) to work with my work WiFi Here's my setup:
State: Wifi Connected Guest,*,* (Name of SSID is Guest)
1. Browse URL *the URL for the login page*
2. Run Shell [Command: sleep 0.1; input tap 50 715; sleep 0.025; input tap 620 800 Timeout: 0 Use Root: Yes]
The coordinates in the "input tap" sections are the coordinates for the "agree" checkbox, and the "agree" button, respectively This seems to work awesome, but I have to try it when I'm there. I'm now going to try and figure out how to make it do it while the phone is asleep
BTW, an easy way to get those coordinates is to turn on "Show Pointer Location" in Developer Settings.
@Drinfernoo
I am going to tedt this out on Monday at work
Sent from my GT-N7000 using Tapatalk 2
I use a great app called WiFi Web Login. It's pretty cheap in the play store. Logs into my school WiFi flawlessly every time.
Sent from my SPH-L710 using xda app-developers app
ooonimrodooo said:
I use a great app called WiFi Web Login. It's pretty cheap in the play store. Logs into my school WiFi flawlessly every time.
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
Definitely worth a shot Thank you.
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Of course! You won't be disappointed.
Sent from my SPH-L710 using xda app-developers app
I just purchased the app. Works well on both secured wireless network login page and guess wifi at my school.
Interpreting the pointer position
drinfernoo said:
I solved one of them!!! I was able to get it (I think, haven't field tested yet) to work with my work WiFi Here's my setup:
State: Wifi Connected Guest,*,* (Name of SSID is Guest)
1. Browse URL *the URL for the login page*
2. Run Shell [Command: sleep 0.1; input tap 50 715; sleep 0.025; input tap 620 800 Timeout: 0 Use Root: Yes]
The coordinates in the "input tap" sections are the coordinates for the "agree" checkbox, and the "agree" button, respectively This seems to work awesome, but I have to try it when I'm there. I'm now going to try and figure out how to make it do it while the phone is asleep
BTW, an easy way to get those coordinates is to turn on "Show Pointer Location" in Developer Settings.
Click to expand...
Click to collapse
Can you explain how to interpret the coordinate figures from using the "show pointer location"
Mine are P: 0/1
dx:1.5
dy:-1.5
Xv:0.0
Yv:0.045
prs: 0.58
Size: 0.27
Which ones are relevant to the command line? Can you provide a relevant command line for those readings. It is just one ok button that needs to be pressed.
Thanks in advance!
Okay so I just used an app called Wifi Web Login.
tab through links and then press enter when the button is highlighted using keyevent
drinfernoo said:
I solved one of them!!! I was able to get it (I think, haven't field tested yet) to work with my work WiFi Here's my setup:
State: Wifi Connected Guest,*,* (Name of SSID is Guest)
1. Browse URL *the URL for the login page*
2. Run Shell [Command: sleep 0.1; input tap 50 715; sleep 0.025; input tap 620 800 Timeout: 0 Use Root: Yes]
The coordinates in the "input tap" sections are the coordinates for the "agree" checkbox, and the "agree" button, respectively This seems to work awesome, but I have to try it when I'm there. I'm now going to try and figure out how to make it do it while the phone is asleep
BTW, an easy way to get those coordinates is to turn on "Show Pointer Location" in Developer Settings.
Click to expand...
Click to collapse
Thanks so much for posting this! I had a similar problem where my Wifi at work requires users to accept the TOS every time they login. For me I just have to click on a log in button. The tap command would have been too complicated because there was a lot of scrolling to get to the accept button at the bottom of the page. My solution was very similar and uses the input keyevent shell command which simulates key presses on the keyboard. You could probably use this method to input your login information by using the right sequence of simulated keyboard presses. For my situation the pertinent key presses are keyevent 61 which is Tab, to highlight and advance through elements on the page, and keyevent 66 which is enter, to "click" on the accept button. I found a complete list of keyevent codes on the android developers website by goggling "input keyevent android"
1. Browse URL (login page link) - This opens it in my default browser which is chrome.
2. Run Shell (input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 61; input keyevent 66) - This will tab through the links on the login page until the accept button is highlighted and then the enter key will be pressed.
I'm kind of a newb and this is my first post so if anyone has any tips for shortening my shell command please let me know. I was trying to figure out how to press Shift and Tab simultaneously to take me directly to the last element on the page (which is the accept button) but couldn't figure it out. I would be super grateful if anyone could share how to do this.
I am trying something similar. My problem is that the login "page" is a notification based Android System popup. If I could get tasker to load the notification I can use intents to fill out the fields. Any ideas?
For any future people, this is not hard to accomplish through direct and "proper" means.
Create a profile that detects when you connect to a network, and in tasker, check through Java code whether you're connected or not, and if not, connect by having tasker POST the data
Easy, fast, direct, and no need to do anything like simulating key presses
To get the URL and data fields you need for POST , you'll need to do a little dev debugging to figure it out. (Check the HTML)
Find the Java code in the first answer, isWalledGardenConnection()
https://stackoverflow.com/questions...cted-internet-access-captive-portal-detection
Working great for me, check my screenshot
P.S. You can see my tasker profile and task scripts for an example
Can you expand on this and post login for Starbucks,
Wendy's etc?
BBRecon said:
For any future people, this is not hard to accomplish through direct and "proper" means.
Create a profile that detects when you connect to a network, and in tasker, check through Java code whether you're connected or not, and if not, connect by having tasker POST the data
Easy, fast, direct, and no need to do anything like simulating key presses
To get the URL and data fields you need for POST , you'll need to do a little dev debugging to figure it out. (Check the HTML)
Find the Java code in the first answer, isWalledGardenConnection()
https://stackoverflow.com/questions...cted-internet-access-captive-portal-detection
Working great for me, check my screenshot
P.S. You can see my tasker profile and task scripts for an example
Click to expand...
Click to collapse
edmondt said:
Can you expand on this and post login for Starbucks,
Wendy's etc?
Click to expand...
Click to collapse
Here is more example. No guarantee it works for you, it's highly specific to my device probably
BBRecon said:
Here is more example. No guarantee it works for you, it's highly specific to my device probably
Click to expand...
Click to collapse
That Looks amazing!! Gonna play with it and try Mc Donnalds etc..