New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tasker support #146
Comments
Do you know how to find out the correct intents? The only method I know in Tasker is to select "Load Application" and long press on the app to see the available intents. There's just one for DNS66 called "MainActivity". |
No, I don't know anything about tasker. If someone figures out what to do, I'm ready to make it work. |
This is the developer documentation for Tasker tasks. A good place to start would probably be an action plugin that can start, stop, and pause DNS66. You can do that pretty easily from within the app by sending a startService to AdVpnService, but it's not something that can be done externally because AdVpnService is protected by android.permission.BIND_VPN_SERVICE. |
That's really not a documentation, that's a confusing page that is half-broken. Basically the only link there is TaskerPlugin.java, and that does not have a license, and it's unclear what that does. The rest links to some "Locale" app framework thingy. |
Tasker's plugin API is based on Locale's plugin API. Locale came first, but Tasker was a lot more powerful, and got more traction. If you write a Locale-compatible plugin, it will automatically work with Tasker. The Locale plugin SDK, the sample setting plugin, and sample condition plugin are all licensed Apache 2.0. The Locale developer documentation also seems quite comprehensive. |
+1 for Tasker support. Once DNS66 is running its VPN, Tasker doesn't seem to be recognizing the WIFI SSID anymore. As a result, profiles like e.g. "phone connects/disconnects to/from a WIFI with SSD X" will not work. |
So according to the Manifest there is a org.jak_linux.dns66.vpn.AdVpnService intent which should start/stop the blocker. My complete Settings in tasker: Could you please tell me what is wrong? |
@winnieXY did you get it working? |
no - as written by blueshiftlabs on 20 Jun, this can't be done sadly externally up to now. |
I'd also love to be able to automate dns66 with tasker. Thanks for the great app! |
Hi Guys, why #280 has not been merged, is this really a matter of not enough coverage tests? Tasker support would take this app to the next level of usability. |
Hey. Any news to tasker support? I would really love to see this. |
I got Tasker support working in my fork today. A Tasker plugin has been used https://github.com/julian-klode/dns66/pull/280/commits but it is overly complicated for my purpose. I'm just using intents to issue commands from Tasker (start/stop/pause/resume) and to update status to Tasker.
For the status updates I have added sendBroadcast(intent) to AdVpnService.java. Not sure it is the best way to hook the status updates because I haven't studied the code for long. Appears to be working well though. Check out my fork if you're interested. |
A couple of feature ideas that would be great to have:
The text was updated successfully, but these errors were encountered: