-
Notifications
You must be signed in to change notification settings - Fork 2
Examples
These are examples for a Tasker Plugin. More about it here: Instructions
I did create some example profiles and screen for common usecases. All examples are created with Locus Pro, you may need to adjust them to use other Locus Version. Some examples may rely on device specific features. Feel free to create an issue if you have trouble with any of them.
To import these examples you need to long click on the according Tasker tab. For example long click on Tasks to import a Task.
- Download and import Scene LocusDashOverlay.scn
- Download and import Profile Remaining_Elevation_Overlay.prf
- configure scene to fit in your dashboard
- enable profile and apply your changes
Example does only run every 2 minutes which means it will only apear 2 minutes after you did open your dashboard.
- based on idea: http://help.locusmap.eu/topic/elevation-to-target and http://help.locusmap.eu/topic/upcoming-elevation-gain
- Usage recommendations: create an action for a hardware button in Tasker to open your dashboard and call the example after your dashboard button task got done.
- Download and import Profile Locus_Center_Map.prf
- enable profile and apply your changes
This is similar to the existing feature "center Map to GPS after 5s" but only if you are moving. It does check every 5 seconds but first check start after 2 minutes.
- based on idea: http://help.locusmap.eu/topic/hold-map-center
- Download and import Profile Locus_Screenlock_on_Display_Off.prf
- enable profile and apply your changes
If you disable android screen lock with Locus you would like to prevent unintentional touch events you need to enable locus screen lock. This Task does this for you if you turn your screen off.
It's possible to send coordinates to other Apps, for example it's possible to start Google Maps Navigation.
- Google Navigation to Locus Route End (only Working with active Routing) Download and import Task GMaps_To_GuideTarget.tsk
- Google Navigation to Locus Map Center (works allways) Download and import Task GMaps_To_MapCenter.tsk
- enable external access on tasker preferences to be able to run Tasker Tasks with Locus
- add the Addon Action "Run Task" to your Panel to execute it
- usage recomondation: Add Task as icon on Locus panel
- based on idea: http://help.locusmap.eu/topic/add-navigation-apps-link-to-menu
Tasker can directly send intents to Locus Map. Here are 3 examples:
- Download Task GuideToPoint.tsk
- Download Task NavigateToAddress.tsk
- Download Task NavigateToPoint.tsk
If you want to use Locus track database to geotag your photos you can access database file from Locus Maps main directory. I did create an example which does watch your photos folder for files which got modified during last 1 hour and geotag them if GPS coordinates are missing. It selects the nearest timestamp match and does notify an error if nearest match is over 1 hour away. To use it you need to import the following 3 files:
- Download Profile GeotagWatchFolder.prf
- Download Task GeotagFile.tsk
- Download Task Improve_Geotag_Performance.tsk
Be careful, to make the example less complicated it doesn't have any timezone adjustments you may get incorrect results if Locus timezone does not match your photo timestamp timezone and spaces in path or filename are maybe not working. You could add necessary adjustments to Task GeotagFile
If you have many tracks you need to create a database index with Task Improve_Geotag_Performance
which will increase you database file by 10% but makes timestamp requests 20 times faster. If you have trouble with write permissions, try to activate one of the other example places for the work directory. You will find example work directories in the first steps of Improve_Geotag_Performance
There are plenty of comments in these tasks to make it easier for you to understand where to adjust them for your requirements.
This geotagging profile does use direct file access which is not possible on every android version.
If you want to put the watch folder on your SD card you may need to use the following folder:
/[anyexternalstorage]/Android/data/net.dinglisch.android.taskerm/files/
For many of them I did already create a task, but they need to be described before I can share them.
- state: not startet
- Google Navigation to Locus Route Start (only Working with active Routing)
- Google Navigation to Locus Point Detail (only Working at Point Detail Share menu)
- Google Navigation to Locus select Target Dialog (Works allways)
- http://help.locusmap.eu/topic/add-navigation-apps-link-to-menu