Btw. is anyone using Tasker application for some automation? I've created quite interesting feature ( https://github.com/asamm/locus-api/wiki/Action-tasks-(Broadcasts) ) a week ago, so I'm curious if someone find it useful
.
Following this tutorial:
http://forum.joaoapps.com/index.php?resources/integrate-google-assistant-with-tasker-using-join-ifttt.206/
Now google assistant can start the recording profile "live" that I set up in locus with automatic start of livetracking. No need to touch the phone.
An add on to the profile should be the automatic send to your selected contacts by e-mail/sms/whatsup... of message that they now can follow me on locus or on the site.
<TaskerData sr="" dvi="1" tv="5.1m">
<Profile sr="prof17" ve="2">
<cdate>1526833426177</cdate>
<clp>true</clp>
<edate>1526834042115</edate>
<id>17</id>
<mid0>16</mid0>
<mid1>19</mid1>
<nme>Bt On Off Locus</nme>
<State sr="con0" ve="2">
<code>3</code>
<Str sr="arg0" ve="3">mydevice</Str>
<Str sr="arg1" ve="3"/>
</State>
</Profile>
<Task sr="task16">
<cdate>1526221014713</cdate>
<edate>1526834008723</edate>
<id>16</id>
<nme>Locus Paused</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Locus paused</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Locus paused</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">com.asamm.locus.ACTION_TASK</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3">tasks: { track_record: { action: "pause", name: "geo" } }</Str>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
</Task>
<Task sr="task19">
<cdate>1526221014713</cdate>
<edate>1526833994740</edate>
<id>19</id>
<nme>Locus Started</nme>
<pri>100</pri>
<Action sr="act0" ve="7">
<code>559</code>
<Str sr="arg0" ve="3">Locus started</Str>
<Str sr="arg1" ve="3">default:default</Str>
<Int sr="arg2" val="3"/>
<Int sr="arg3" val="5"/>
<Int sr="arg4" val="5"/>
<Int sr="arg5" val="1"/>
<Int sr="arg6" val="0"/>
<Int sr="arg7" val="0"/>
</Action>
<Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">Locus started</Str>
<Int sr="arg1" val="1"/>
</Action>
<Action sr="act2" ve="7">
<code>877</code>
<Str sr="arg0" ve="3">com.asamm.locus.ACTION_TASK</Str>
<Int sr="arg1" val="0"/>
<Str sr="arg2" ve="3"/>
<Str sr="arg3" ve="3"/>
<Str sr="arg4" ve="3">tasks: { track_record: { action: "start", name: "geo" } }</Str>
<Str sr="arg5" ve="3"/>
<Str sr="arg6" ve="3"/>
<Str sr="arg7" ve="3"/>
<Str sr="arg8" ve="3"/>
<Int sr="arg9" val="0"/>
</Action>
</Task>
</TaskerData>
It works but has a some strange behaviour.
First of all each one has to configure his device that triggers the tasker action.
If left blank every BT connected will active the tasker trigger. I usually wear a Garmin forerunner sometimes I share data with bt to my wife phone so I want that the action triggers only when my bt car device connects.
Second I declared a profile to start and stop named geo. But this Locus react in this way to the intent:
If the profile exists in locus than it is started or paused, if it does not exists it starts or pause the default profile (I did not expect this).
Third if there is not any track recording started, the pause intent starts a recording but it starts paused.
This is my 0.0.1 version of the task and needs some improvement but I need some explanation about the 3 points I wrote.
Inviato dal mio SM-A520F utilizzando Tapatalk