This object is in archive! 

LiveTracking and select Preset to NFC actions

Krzysztof Antoszek shared this idea 5 years ago
Declined

Hello,

Could you add a "start live tracking" to NFC actions? I know I can autostart live tracking when starting track recording, but most of the time I do not want to record a track, just to post my position. I know there are apps to do this like glympse or even google maps but why use them when I have Locus :)


Secondly, a "select settings preset" in NFC actions would be awesome, as we can then tag bikes, cars and other stuff and have locus change its settings when a specific tag is close.


Thanks :)

Replies (1)

photo
1

Good day Krzysztof,

NFC tags have (probably still) disadvantage in its capacity. NFC support was made into Locus Map really long time ago and till this moment, it was not developed. To be true, it is adept on removing from the application.

Maybe a year ago we started work on a special system of how to control Locus Map from external application. Working name is "Broadcast actions" and you may read about it here. Do you know Tasker (or similar) application? I can imagine a system that if it is possible to start certain tasker task over NFC, it should be easy to define the task in Tasker that will control certain functions in Locus Map. Is this doable solution for you?

photo
1

Hi,


Thanks for the reply.


I've read about those broadcast actions and intents, but I do not know how to execute them. I'm using Trigger app but I do not see "com.asamm.locus.ACTION_TASK" in intentents (some gui.fileBrowser, internal, PreviewActivity intents etc, perhaps the app is buggy), maybe I'll try to use tasker to do it as Trigger can run Tasker tasks (but thats a big execute chain ;-P). I'll update this post later with the results.


Tx.

photo
1

Hmm, these Locus actions definitely works with Tasker. Check samples I wrote here: https://github.com/asamm/locus-api/wiki/Action-tasks-(Broadcasts)#samples . and also my screen here

24ede84bac93c6222152803419318720

So only question is, if you are able to start certain tasker task over NFC and mentioned "Trigger app" seems to be usable for this.

photo
1

@Menion I confirm that Tasker works, Trigger does not allow to type in an arbitrary intent and add params to it (it allows only from the list it autodetects from the app). Thanks for the help, this topic can be closed :)

photo
1

Hello,

so if I understand correctly: you created a task in Tasker that correctly controls Locus Map over functionality I mentioned before. But, there is no method how to start certain Tasker task over NFC? I thought that "Trigger app" is able to do this, but it isn't, right? My idea was simple: define even more complicated action directly in tasker and write into NFC tag only "start action X".

As I wrote at the start, NFC support in Locus Map is currently very limited. Maybe five years ago when I wrote this function, I hoped that NFC will be used more widely, but it isn't as I see (at least in Locus Map app). So this function is really adept on complete removal. Hope you find a method that will work for you.

Thanks for understanding.

photo
2

I use NFC tags to trigger Locus configuration (Recording Profile, Preset, Lievetracking etc.) with a nfc tag on my bikemount for years now. There are two ways I had success with:

1. NFC Tasks App: supports to start a Tasker task (under misc -> Tasker). This requires to write NFC Tasks specific data to the tag

2. NFC for Tasker app: allows to use a nfc tag in a tasker profile (as event). This does not require to write specific data to the tag, as NFC for Tasker is triggered by the unique id of the tag. You are free to write other (completely independant) data to the tag. In fact, I had to write something (at least Text) for my phone to accept this tag (otherwise I always got a message that the tag was empty and the trigger did not fire). (I wrote my contact data as plain text to the tag, so maybe if the bike ever gets lost, it is easy to identify it :-) )

photo
2

Perfect, thanks for additional information.

So IT IS possible to start certain Tasker task over NFC, perfect. Then with combination with "Action broadcast" system in Locus Map, options are almost unlimited.

So the question to me remains the same: is direct support for NFC in Locus Map needed? It has really limited options, require quite a big NFC tags and it definitely needs improvements. I've answered to myself ... removing.

photo
2

Yes, and it seems that the latest version of tasker has NFC events built in so no other plugins are needed :)


Info here https://www.reddit.com/r/tasker/comments/bioopz/tasker_57_is_rolling_out_for_everyone/

photo
1

I think we do not need NFC tags in Locus. It would be better to use the time and in the help write something more about the application of Tasker or MacroDroid. Maybe a few examples. Or make a special trade where users can write their examples. Often there is no idea what you can do.

photo
1

Perfect guys, thanks for feedback.

The idea with some "info" about how to use it, is definitely something I should look on, thanks.

photo
1

Thanks @Krzysztof Antoszek

I didn't know that tasker supports this natively now...did update yesterday and tested it now. Seems to work quite well! And it does it the same way as "NFC for Tasker", does not require to write something app-specific to the tag..nice :-)


Thanks again for the hint!

photo
1

Hi guys,

how you setup your NFC tag to trigger certain tasker task? Are you using external app like Trigger for this?

photo
1

As I wrote above, I was using "NFC Tasks" and/or "NFC for Tasker" until recently, because Tasker did not come with this functionality.

But with the current Tasker version, NFC-support is built-in. You simply create a new "Event" profile and select "Network" -> "NFC Tag". For the ID, you can tab the magnifying glass icon to scan the id of the tag you want to use. After this, when you return from the configuration screen, you can select the task you want to trigger with this tag.

However, I found one small problem at least on my phone/system: if you scan a tag without any content in it's memory, the os complains that it doesn't know what to do with this empty tag and subsequently does not trigger the tasker task! I worked around this by writing arbitrary text to the tag's memory. I did this with the app "NFC Tools". I don't know if this could also be possible from the tasker nfc tag configuration screen.

photo
2

Ah, this is the key, nice.


So what about such site to help you start with: http://menion.asamm.com/.

I always wanted to have own web page :).

photo
1

Thanks for the instructions. You once recommended the app MacroDroid. Is there also a manual for this? Or just use Tasker.

photo
2

Oki, post improved.

I've separated it little bit, so check "how to" basic setup for macroDroid here: https://menion.asamm.com/2019/05/action-tasks-macrodroid/ . How to use defined Macro over NFC is then added into post with NFC. Let me know if it works for you ;).

photo
1

Thank you

I do not have a NFC sticker right now. I tested it with Bluetooth Tigger 1 week ago. I had to try something but it works great.

It's a little different than Tasker. And so I wanted to have new users a guide. And do not have to make the same mistakes.

The instructions are exactly how I did it.

Replies have been locked on this page!