Open Passing Parameter as a Tasker Variable using Join API

Discussion in 'Join' started by jwmann, Oct 7, 2016.

  1. jwmann

    jwmann New Member

    Joined:
    Apr 5, 2016
    Messages:
    14
    Likes Received:
    3
    Hi there,

    I've successfully set up a Tasker profile and I'm triggering it using a 'text' match in Tasker.
    This all works quite well. The thing is, I don't know how to pass a parameter.

    I know it can be done, there is some nice help text in the text match screen in Tasker (something like TaskerCommand=:=datagoeshere) but I can't seem to figure it out.

    This is what my Tasker Profile looks like
    https://drive.google.com/file/d/0B5NiYYc-GMLYaWo5Z2xrREdiNlk/view?usp=sharing

    I'm calling this profile with this API call. (This works)
    https://joinjoaomgcd.appspot.com/_ah/api/messaging/v1/sendPush?text=WakeUp&deviceId=0123456

    What I'm trying to do is pass another ID through that URL but it's not really well explained how to do that because the above example doesn't work.

    I've also noticed a slight bug where Join is taking my set variable name of 'wakeID' and setting it as %wakeid you can see that at the bottom of here.

    https://drive.google.com/file/d/0B5NiYYc-GMLYUXV2MXAtcnFKdlE/view?usp=sharing

    This is bad because lowercase variables in Tasker are only available in the task instance. That means I can't compare this WakeID to itself when its run again. Variables with an uppercase letter in its name are considered global variables.

    Please let me know what I'm doing wrong. I feel like there should be much more information on this page.
    https://joaoapps.com/join/api/

    Thanks
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    To pass more parameters use the AutoApps command system. Check here for an example.

    Also, plugins can't create global variables like that. You need to set them yourself in the task :)

    Hope this helps
     
: api, variable, tasker

Share This Page