Tasker Integration

I've seen lots of threads about integrating Tasker with connect iq apps and after making the switch over from pebble I finally figured out how to call Tasker tasks without needing to use IFTTT or any web based service.

Inside your so or widget map the function Comm.openWebPage("http://taskName",{},{},); to button presses or any other type of interaction.

In Tasker, create a profile using the event autonotification notification intercept as a trigger, with the filter of notification text containing " wants to open http://". For the task that this triggers use variable spilt on %antext with a splitter of "http://". Add action perform task with the task name being %antext2. Finally, remove the notification from your phone with Autonotification cancel action, cancelling by I'd %anid.

You could probably do the same thing using the native Tasker notification intercept and cancel actions too.

If you need help understanding further feel free to message me and I hope to see more former pebble developers join me here to help grow the community and share knowledge.

  • Hey Sir,

    Here coming from Pebble also; enjoying the advantages and suffering the disadvantages.
    I can't code, but I can help you test stuff on a VAHR.
    Do you think it is possible to be able to reply to notifications with canned messages or the OS will never allow that to happen?

    Many thanks
  • You mean respond like this? :) Just one I've seen in the store but never used myself.

    https://apps.garmin.com/en-US/apps/741713ae-818a-4c83-b53a-9df273209ca6
  • You mean respond like this? :) Just one I've seen in the store but never used myself.

    https://apps.garmin.com/en-US/apps/741713ae-818a-4c83-b53a-9df273209ca6


    Yes, I got that, and works well -it allows you to type due to the touch screen, nice and welcome advantage over the Pebble- but outbound it can only be SMS.

    I am fundamentally looking at replying to Whatsapp messages via Whatsapp, even if canned alone.

    Regards Sir
  • Hey Sir,

    Here coming from Pebble also; enjoying the advantages and suffering the disadvantages.
    I can't code, but I can help you test stuff on a VAHR.
    Do you think it is possible to be able to reply to notifications with canned messages or the OS will never allow that to happen?

    Many thanks


    Alex,
    The app has now been updated to allow you to use it on the VAHR. It will probably take a couple days for them to approve it, please let me know what you think or if you see anything worth changing. For your device the enter button runs one task, swipe left another, and swipe right a third. Pressing the back key brings up a menu with up to 20 more tasks. Using the app settings in the Connect IQ App type in the name of the tasks you want for each button (Up Task=Left for touch devices,Down=Right). For the Task Menu tasks fill in as many tasker tasks as you want and any blank row is ignored by the app so that your menu is resized to only include tasks you configured.

    https://apps.garmin.com/en-US/apps/fbb74bfe-f617-4667-be49-884239c12307
  • Alex,
    The app has now been updated to allow you to use it on the VAHR. It will probably take a couple days for them to approve it, please let me know what you think or if you see anything worth changing. For your device the enter button runs one task, swipe left another, and swipe right a third. Pressing the back key brings up a menu with up to 20 more tasks. Using the app settings in the Connect IQ App type in the name of the tasks you want for each button (Up Task=Left for touch devices,Down=Right). For the Task Menu tasks fill in as many tasker tasks as you want and any blank row is ignored by the app so that your menu is resized to only include tasks you configured.

    https://apps.garmin.com/en-US/apps/fbb74bfe-f617-4667-be49-884239c12307


    Couple of comments on your UI.
    • On devices like the va-hr, there are SWIPE_RIGHT,SWIPE_LEFT,SWIPE_UP, and SWIPE_DOWN, so you may want to handle the UP and DOWN too (maybe equate them to right/left), as that's really common on that device (the va-hr screen is basically the va turned 90 degrees) You can also make use of tap or hold (with the screen location), but those may be a bit harder to map to non touch devices. on the va-hr, moving through the app/activity or widget loop, up/down is the way you do it, and right/left are ignored, and for native or CIQ menus, you do that only with up/down.
    • For displaying the menu, why not use the menu button? Again, something users are used to, and some devices, it's even labeled as menu. On the va-hr, a long press of the right button is menu, on devices such as a fr 23x/735, it's a long press of the up button, and on some devices, there is an actual menu button (the va and 630 as far as wearables). "Back" is kind of dual use in many things on many devices. One, is exiting the app, and for some apps, it's also "lap" button.
    • Start/enter is also generally the "do something" button


    I think the common use of buttons, etc is in either the Programmer's guide or the UX guide. Sticking with "common usage" may make supporting the app easier, as for things like the menu, users are already used to using the menu button if there's a menu. The common usage isn't a CIQ thing, but also in the native apps on the device.
  • Any way to use tasker without plug-ins??
    I tried to use event - ui - notification and it didn't work.
  • Former Member
    Former Member over 8 years ago
    I've seen lots of threads about integrating Tasker with connect iq apps and after making the switch over from pebble I finally figured out how to call Tasker tasks without needing to use IFTTT or any web based service.

    Inside your so or widget map the function Comm.openWebPage("http://taskName",{},{},); to button presses or any other type of interaction.

    In Tasker, create a profile using the event autonotification notification intercept as a trigger, with the filter of notification text containing " wants to open http://". For the task that this triggers use variable spilt on %antext with a splitter of "http://". Add action perform task with the task name being %antext2. Finally, remove the notification from your phone with Autonotification cancel action, cancelling by I'd %anid.

    You could probably do the same thing using the native Tasker notification intercept and cancel actions too.

    If you need help understanding further feel free to message me and I hope to see more former pebble developers join me here to help grow the community and share knowledge.


    Thx for that. Is working fine. Must adapt it to german language, cause "wants to open ..." is in German "möchte ... öffnen", so there is another split nessecary, but then works great. Can toggle mobile data, call forward, wifi all with the watch now. Thx
  • I updated the app today to use more standard button interfaces. Back button is now mapped to a task giving you 4 hotkeys (unfortunately the change will require you to reset all your tasks upon updating). A double press of back exits the app (1 second timeout from first press, task waits 1 second before running). The menu button now brings up the task menu.
  • We have figured out how to listen to messages from the watch without a long running service and without Autonotification. Please see https://forums.garmin.com/showthread.php?367097-Start-an-Android-service-from-watch&p=934392#post934392
  • Former Member
    Former Member over 8 years ago
    Could you please make step by step guide

    Hello,
    thank you for Tasker for Garmin, I imported your xml file but it does nothing. Could you please make some step by step guide how to configure tasker+autonotification app?

    Thanks
    Pavel