Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Tapio

#706
Tasker / [Tasker] Openandromaps map downloader
January 07, 2022, 12:00:44
Hi,

with this Tasker script you can automatically download OpenAndroMaps.

At first configure Task:
a) Configure which file(s) you wish to download, multiple items are comma separated. Full URLs! Like: http://ftp.gwdg.de/pub/misc/openstreetmap/openandromaps/mapsV5/germany/Ruegen.zip
b) Configure the target directory of your system, where you want the files to be. Like: /extSD/Android/media/menion.android.locus/MapsVector/OAM

Then you are ready to go. The Task first sends only a http-head command, compares file date of the zip file on server with your local maps file time and only downloads, if there's a newer version server side, or if you haven't got that map. So we're friendly to the server.

This is how it operates the downloads per url:

- Task downloads zip file to target dir
- Then it unpacks the zip completely AND OVERWRITES existing .map/.db/.poi
- zip file gets deleted
- .poi file gets deleted (unneeded by Locus)
- Next download

Use at your own risk, enhance task by yourself, I am not planning to add much security/error handling code. I'd use the script only if the whole process does not take too much time, if it takes minutes, not hours. Because by the nature of Tasker, this task may block execution of other tasks while it is running.

[snip - currently only working in Tasker beta]
#707
Ugh, I need to look again. Just some related thoughts I hope:

a) I didn't only have Locus GPX in mind. Some other apps were in use as well, they create different xml formats. Replace with NULL? Do I leave an ugly empty line? May need to look at it again.
b) time xml tag may be stretched over multiple lines.
c) I think with the exclusion of the bracket I prevented greedy matching. Keep in mind Regex matches greedy. a.*b matches until the last "b": 1234abcdgebabbbgggchbdkj - i.e. in GPX it would match from first <time> until the last </time> it can find. This would effectively delete most of the gpx - this is also because sed -z in a way flattens the whole file to one line (otherwise, in the default line-by-line style of sed, regex wouldn't work for xml tag structures IMO)
d) As for the tab I probably was just lazy to look into docs, wasn't sure about it being included in \s, thanks for the info
#708
Freischneider, if you have LM4 you don't need that, except maybe for the offline Geonames files.
#709
Quote from: freischneider on January 06, 2022, 17:01:56
I get the message: Too often ? More than 7 files (0) ?

I have only adjusted the path in the 1st set to my system.
I removed a stupid check which caused your error. Redownload https://taskernet.com/shares/?user=AS35m8kdDIMDeveQcQfRglam%2Fah1mTW%2FWcg05FZ39c0i1q%2F77iY3E7cIwxCkXqJTaTA%3D&id=Task%3ALocusDownloads
#711
Aside from that - it's easily extendable to Geonames download + unpacking - will definitely add that.
It's Taskers DNA (ie. Profiles and Triggers) to automatically execute tasks... 😊
Menion, no, downloads are fast here: http://brouter.de/brouter/segments4/
But we should not stress the server, I think I read the brouter downloader ui is throttled on purpose.
#712
Well, what you say applies only to gold subscription of LM4 afaik. May also be useful outside of Locus context.
#713
Anyone remember where I can set the frequency of routing files download? Can't find the setting any more.
#714
Hi guys,

here's a Tasker script which downloads BRouter routing files (rd5). In the task, just adjust the rd5 path to match your own system. It will then download and overwrite exactly those rd5 files it finds in that directory. Task has no error handling whatsoever.

BRouter rd5 files are typically in:
//ExtOrIntSD/Android/media/btools.routingapp/brouter/segments4/

Please execute task in a reasonable manner and have server load in mind.

HTH.

https://taskernet.com/shares/?user=AS35m8kdDIMDeveQcQfRglam%2Fah1mTW%2FWcg05FZ39c0i1q%2F77iY3E7cIwxCkXqJTaTA%3D&id=Task%3ALocusDownloads
#715
Quote from: Menion on January 04, 2022, 19:39:15
Exactly this was changed in latest version @tapio, so all Androids now support this folder automatically.

UI is confusing here. I moved Srtm, Maps, MapsVector, MapsOnline to Android/media.
I set them as custom directories for srtm (otherwise srtm didn't work) and for MapsVector.MapsOnline and Maps work, but UI doesn't show.
#716
Themes - Vector maps / Re: Editing theme in desktop
January 04, 2022, 16:17:38
Guys I just remembered RouteConverter can show OSM maps and themes. I've just checked OAM v5 and Voluntary theme, it works, see lovely screenshot. Seems like a good way to test themes.

Stuff for this application goes into default dir "%userprofile%\.routeconverter\" - paths can be changed in options.

https://www.routeconverter.com/home/en

#717
And I think it should check Android/media/menion... already on Android <=10, for less complexity and unification.
#718
Yes, this is a Tasker script. Tasker is an Android automation app. Look for it in the PlayStore.
#719
In the About screen, Locus should not portray the external folder as some kind of error, in red... because it is a valid setup.
#720
BTW, I always wondered, are there other reason than "historical" as for the somewhat redundant path? 😄

- menion.android.locus - Good.
- /files -? What else, a bit unnecessary subfolder?
/Locus - Again? Yes? It's not Osmand, I know!