1. kf6kmx's Avatar
    Ok, this might have been asked before, but if so i missed finding it...

    Has anyone seen/heard of plans for a Tasker add-on that can detect Moto Mods??

    It would be VERY useful to have a way to determine when, say, the projector is connected (set rotation, start up a specific app, etc).
    10-25-2016 06:51 PM
  2. canonBoy's Avatar
    I haven't tried to make a tasker profile for this yet, but I imagine using an AutoApp plugin would do the trick... I'll have to play around w my projector mod and see if I can get tasker to recognize it... if not, maybe just making a Notification Action Button that launches your task you would want to execute when the projector is mounted could get you by till you find a trigger?

    https://play.google.com/store/apps/d...cd.autoappshub
    kf6kmx likes this.
    10-25-2016 11:53 PM
  3. canonBoy's Avatar
    So if you make a profile that triggers when the variable %WIN matches 'Projector settings' (without the quotes and only the p capitalized), you can execute anything you want when you push the projector's power button once after it's already projecting. Does that get you going in the right direction at least?
    kf6kmx likes this.
    10-28-2016 05:44 PM
  4. kf6kmx's Avatar
    So if you make a profile that triggers when the variable %WIN matches 'Projector settings' (without the quotes and only the p capitalized), you can execute anything you want when you push the projector's power button once after it's already projecting. Does that get you going in the right direction at least?
    Definitely right direction. I'll check that out, thanks
    02-07-2017 07:28 PM
  5. jesta192's Avatar
    I don't have any Mods to test with, but I'm assuming that there would be some kind of broadcast Intent when a Mod is attached. Doesn't Taker have a way to trigger based on a Broadcast Receive?
    02-12-2017 11:31 PM
  6. canonBoy's Avatar
    I don't have any Mods to test with, but I'm assuming that there would be some kind of broadcast Intent when a Mod is attached. Doesn't Taker have a way to trigger based on a Broadcast Receive?
    There is an Event Intent Received in Tasker! You wouldn't happen to know from your Tasker programming experience how to find out what to input into the fields? I guess I could look for some intent interception apps too. But maybe some dialog here can help others out?
    Attached Thumbnails Tasker and Moto Mods-43278.jpg  
    02-14-2017 07:32 PM
  7. canonBoy's Avatar
    OK, so I've been snooping around and found this info from the Moto mod developers site: https://developer.motorola.com/explo...mod-management

    as well as this from tasker's literature: https://tasker.dinglisch.net/userguide/en/intents.html
    -specifically: "Tasker can only receive intents which are sent to broadcast receiver components, not to activities or services."

    I've tried several of the intents from the Moto mods developer page in the tasker intent receive event edit, but I'm not coming up with the right combination to elicit the notification I have programmed in the profile. I'm not even sure if tasker is capable to trying to detect the Moto mods this way at all (broadcast receiver vs action vs service).

    This is the part of programming that always gets the better of me. I really don't know enough to make any real progress in Java based android coding. Every now and again I can find something somewhere that helps me get by, but in this case, I'm really just guessing as to what goes where. If anyone can shed any light, I'd be more than happy to learn.
    02-14-2017 07:33 PM
  8. jesta192's Avatar
    OK, so I've been snooping around and found this info from the Moto mod developers site: https://developer.motorola.com/explo...mod-management

    as well as this from tasker's literature: https://tasker.dinglisch.net/userguide/en/intents.html
    -specifically: "Tasker can only receive intents which are sent to broadcast receiver components, not to activities or services."

    I've tried several of the intents from the Moto mods developer page in the tasker intent receive event edit, but I'm not coming up with the right combination to elicit the notification I have programmed in the profile. I'm not even sure if tasker is capable to trying to detect the Moto mods this way at all (broadcast receiver vs action vs service).

    This is the part of programming that always gets the better of me. I really don't know enough to make any real progress in Java based android coding. Every now and again I can find something somewhere that helps me get by, but in this case, I'm really just guessing as to what goes where. If anyone can shed any light, I'd be more than happy to learn.
    It looks like you're on the right path. The documentation seems to imply that "your app" can register to receive the ACTION_MOD_ENUMERATION_DONE broadcast. But I don't know if Tasker dynamically registers for broadcast intents (or really how it is intents at all for that matter).

    Hopefully someone with a bit more Tasker knowledge can fill in the details for you (I switched over to Automate by LlamaLab so I'm not great with Tasker).
    02-15-2017 12:32 AM
  9. canonBoy's Avatar
    I've made and published an app that will automate various setting on your phone when you attach and detach a motomod to your phone! Hit up the link and let me know how it works out for ya!

    https://play.google.com/store/apps/d...ps.automodsgen
    Attached Thumbnails Tasker and Moto Mods-43374.jpg  
    jesta192 likes this.
    02-27-2017 11:02 PM
  10. canonBoy's Avatar
    I've just published an app specific to the projector and the JBL speaker!

    https://play.google.com/store/apps/d...s.automodsproj

    https://play.google.com/store/apps/d...ps.automodsjbl

    The general AutoMod is ideal if you only have one mod really, but if you happen to have the projector mod and the speaker mod, having the two apps will yield the best automation experience. I hope this helps!
    Attached Thumbnails Tasker and Moto Mods-43556.jpg  
    jesta192 likes this.
    02-28-2017 09:09 PM
  11. canonBoy's Avatar
    JBL AutoMod screen...
    Attached Thumbnails Tasker and Moto Mods-43558.jpg  
    jesta192 likes this.
    02-28-2017 09:10 PM

Similar Threads

  1. Sound quality and Volume
    By flipbeats in forum Google Pixel & Pixel XL
    Replies: 7
    Last Post: 10-26-2016, 08:55 AM
  2. AT&T to offer Pixel and Pixel XL: Is there any truth to this rumor?
    By pounder001 in forum Google Pixel & Pixel XL
    Replies: 11
    Last Post: 10-25-2016, 07:37 PM
  3. Anybody sign up on Verizon for a Pixel and immediately cancel service?
    By Sher the love in forum Google Pixel & Pixel XL
    Replies: 2
    Last Post: 10-25-2016, 06:40 PM
  4. Replies: 1
    Last Post: 10-25-2016, 05:09 PM
LINK TO POST COPIED TO CLIPBOARD