There are multiple ways to communicate with Tasker either to command the execution of Tasks or Query it for some information.

  1. TCP ASCII

    By default Tasker opens a TCP Server on port 9210. This port listens for simple ASCII commands to command Tasker. A simple task.execute TASK_NAME\r\n can be sent to get a Task to execute.

  2. Rest API

    There is also a simple REST API to query and command Tasker. Currently there are 3 commands in the REST API that you can use.

    The first command is the Execute Task command. By entering http://IP_ADDR:WEB_PORT/executetask?name=TASK_NAME into the URL, you can execute the Task defined by TASK_NAME.

    The second command is the Get Loaded Tasks command. By entering http://IP_ADDR:WEB_PORT/getloadedtasks into the URL, you can recieve an array of all the Tasks loaded in Tasker.

    The third command is the Get Task Devices command. By entering http://IP_ADDR:WEB_PORT/gettaskdevices into the URL, you can recieve an array of all the Devices loaded in Tasker.