Can I get state of track recordin in Locus?

Vasilaka shared this question 2 years ago
Answered

Hi!

Can I get state of track recordin in Locus to organize correct track recording automatisation?

Like: I send some intent, and get info to file or some other variant.

Thanks a lot!

Comments (6)

photo
1

Good day Vasilaka,

if I understand correctly, you wants to get status of current track recording?

For this, you may use system called "PeriodicUpdates". Best check sample application in Locus API :

http://docs.locusmap.eu/doku.php?id=manual:locus_api . If something won't be clear, which is more then possible, feel free to ask.

photo
1

Very sorry for my English. I completely forgot the word status.

I had no permissions to create the page. Only "this topic does not exist yet". So, for me its blank.

photo
1

Hmm, I forwarded you on a page where is basic documentation for Locus API now because I wanted from you to create some wiki pages, but because I wanted to show you how to start with Locus API.

Anyway I have to then ask:

- you are developing some own application

- are you already using Locus API?

- if now, are you able to install and start Locus API and it's sample application?

photo
1

- you are developing some own application

No, I dont

- are you already using Locus API?

No

Everything is much easier. Using http://docs.locusmap.eu/doku.php?id=manual:locus_api:public_intents and Tasker I had made bluetooth hardware button for track recordin control. But without feedback from Locus, button doesn't work correctly. I just need some intent to ask Locus "are you recording track?" And thats all. Anywhare, thank you so much!

photo
1

Hi, Menion!

Can I zoom in and zoom out the map directly using intents?

I am confused by "Do not use these constants directly. All should be handled by {@link PeriodicUpdatesHandler PeriodicUpdate} and it's {@link PeriodicUpdatesHandler#PeriodicUpdateUpdateContainer PeriodicUpdateUpdateContainer} object"

photo
1

Hello Vasilaka,

sorry, I completely forget to answer.

So, what you want is really not possible without writing own add-on with integrated Locus API. Intents may be used only to send some orders (track recording) to Locus, but not to check it's state. Zooming is anyway not possible.

Parameters you are looking at are used only for a transport of parameters from Locus to add-on over Periodic updates object. I'm not sure if you should be able to register tasker as broadcast receiver and receive intent with these parameters from Locus, I'm not an tasker expert.