Falcosc / locus-addon-tasker

Locus Maps API useable as Tasker Plugin
GNU General Public License v3.0
9 stars 2 forks source link

Adding a Quick point from Tasker #12

Closed sik0vny closed 3 years ago

sik0vny commented 3 years ago

Hi. Is there a way to implement Add a Quick new point in current Locus API?

I would like to create a Locus task, that will just add a certain Quick point from my list of predefined Quick points.

Falcosc commented 3 years ago

@sik0vny sorry for my late response. Active development will be around the winter time when I have less outdoor hobbies :)

I remember an API function which allows creating points on specific coordinates.

But I bet you won't get any locus dialogs popping up, so you would need to collect any point information, like position and meta information by your own inside tasker.

Would this fit you or does your idea require any locus dialog window?

Falcosc commented 3 years ago

@sik0vny Would this fit you or does your idea require any locus dialog window?

Maksim8868 commented 3 years ago

Hello! help me please. How can I configure the addition of a quick point via bluetooz remote controller and tasker? https://aliexpress.ru/item/4001240613825.html?spm=a2g0o.productlist.0.0.51cb2fc1BR2VFh&algo_pvid=cd1376f6-6abb-434f-a7d5-74ea33de8ca3&algo_expid=cd1376f6-6abb-434f-a7d5-74ea33de8ca3-51&btsid=0b8b034a16152794847006710e0a0e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_ https://aliexpress.ru/item/1005002091499653.html?spm=a2g0o.productlist.0.0.51cb2fc1BR2VFh&algo_pvid=105e9351-1f0a-4160-87e6-efdfa6b4651b&algo_expid=105e9351-1f0a-4160-87e6-efdfa6b4651b-1&btsid=0b8b034a16152792649675777e0a0e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_ https://aliexpress.ru/item/1005002070398355.html?spm=a2g0o.productlist.0.0.51cb2fc1BR2VFh&algo_pvid=d4e50b2f-b8cf-4910-ac03-6d7a684edf06&algo_expid=d4e50b2f-b8cf-4910-ac03-6d7a684edf06-35&btsid=0b8b034a16152793295566050e0a0e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_&sku_id=12000018635699482 https://aliexpress.ru/item/4001010727504.html?spm=a2g0o.productlist.0.0.51cb2fc1BR2VFh&algo_pvid=e7441771-7e1a-437c-9544-6f35c63e1ffd&algo_expid=e7441771-7e1a-437c-9544-6f35c63e1ffd-1&btsid=0b8b034a16152794274746480e0a0e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_&sku_id=10000013438486694 https://aliexpress.ru/item/32834948900.html?spm=a2g0o.productlist.0.0.51cb2fc1BR2VFh&algo_pvid=cd1376f6-6abb-434f-a7d5-74ea33de8ca3&algo_expid=cd1376f6-6abb-434f-a7d5-74ea33de8ca3-16&btsid=0b8b034a16152794847006710e0a0e&ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_&sku_id=65143676562

Falcosc commented 3 years ago

@Maksim8868 Did you already create a Task which reacts to the Bluetooth remote Controller button press?

So are you able to create a simple "Alert" on Button press task?

If yes, then I can help you to replace the "Alert" with "Save current Location as Waypoint"

Maksim8868 commented 3 years ago

Thank you for attention. I will be able to create a "Alert" task when a button is clicked. Please indicate the name of the team.

Falcosc commented 3 years ago

Cool, so your part is done there.

I don't know how the API does behave. So before I implement it I would like to know if the worst case scenario still would be useful for you. I did already ask @sik0vny this question but didn't get a response. So I did stop there to prevent wasting time implementing something which does not cover your use cases :)

Would it be enough for your solution if the point creation:

Maksim8868 commented 3 years ago

Мне это не важно. Только создание точек без номеров.

Falcosc commented 3 years ago

Ok great.

Meanwhile, you can do a trick without API Support:

  1. place a quick point action on your locus ui bar
  2. create a task to automate ui button click

Quickaction Task without api:

  1. check if locus is running
  2. make sure that display is on (you can turn it on with tasker)
  3. use autoinput UI action to click your quickpoint button
  4. turn screen off if it was off before

But I am not sure what you mean with "Только создание точек без номеров" Would it be ok if Locus forces a number behind your point name? Because I don't know what will happen :)

Maksim8868 commented 3 years ago

If I understand correctly, the button is already on the screen. When you press it, a window opens, in which you need to click "save", it itself does not close and obscures all buttons in the future. Whether or not point numbers are present does not matter.

Falcosc commented 3 years ago

Oh, that's bad, it is difficult to automate the dialog as well.

Is your decision if you want to give it a try, or you can just wait 4-8 weeks for my update :)

Falcosc commented 3 years ago

@Maksim8868 just to make sure, you mean waypoint during track recording, are you?

Then this will be the function which I need to implement: ActionBasics.actionTrackRecordAddWpt add a new waypoint to current track record.

Falcosc commented 3 years ago

@Maksim8868 have a look on https://play.google.com/apps/testing/falcosc.locus.addon.tasker

Action Task Track Recording has abilities to add Waypoints