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
@tapio - can you please explain the underlying purpose of your script, now that LM has BRouter built-in with behind-the-scenes handling of .RD5 files, the average user (like me) no longer needs to be aware of their existence? Note to myself - .RD5 files are stored in Locus/router/segments4 directory.
Well, what you say applies only to gold subscription of LM4 afaik. May also be useful outside of Locus context.
I was about to delete my post, but you were too quick
also I guess - to force a manual update/ download from BRouter server if LM is not working correctly
I see two more differences:
1. app takes care of updates fully automatically in the defined interval, which I consider a huge benefit.
2. app and also BRouter offers updates over "diffs" > only changes are downloaded. The difference is, that in the case of BRouter if you do not update within 10 days, you always download the completely new file. Which is quite slow in the case of BRouter if I remember correctly. Locus Map offers diffs up to 60 days. And even if you download full files, it should be really fast as we have a server hosted on 1GB network.
Otherwise routing engines are still identical, so there should be no difference in computed routes (in case of identical routing profile).
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.
Oki, thanks, good to know :). Then we will have to figure out any bigger benefit then just "easy-to-use" :)
It now downloads and properly places Geonames files for your offline pleasure:
https://taskernet.com/shares/?user=AS35m8kdDIMDeveQcQfRglam%2Fah1mTW%2FWcg05FZ39c0i1q%2F77iY3E7cIwxCkXqJTaTA%3D&id=Task%3ALocusDownloads
I get the message: Too often ? More than 7 files (0) ?
I have only adjusted the path in the 1st set to my system.
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
Slightly off-topic sorry, but is separate BRouter app needed any more if all routing is performed with LM4Gold? Can I safely uninstall BRouter?
Quote from: Andrew Heard on January 06, 2022, 22:12:22
Slightly off-topic sorry, but is separate BRouter app needed any more if all routing is performed with LM4Gold? Can I safely uninstall BRouter?
Yes, I don't have a BRouter app on my new phone.
I thought so that I could get newer data through the direct DL. But that is not the case. With the automatic I get every 4 days. Now I have made a DL with Tasker. But no newer data was loaded. but have changed 2 days ago in OSM what. Normally this is available within a day at BRouter.
currently I do not see any advantage with the task.
Freischneider, if you have LM4 you don't need that, except maybe for the offline Geonames files.
I have tested this now anyway. Since I have LM4 for over a week no new routing data. From time to time I would like to have changes in OSM the next day for routing. I used to download the file from the server and then replace it in the folder. BRouter has the changes already the next day.
Now for my test.
With the geonames came an error message. But I don't care, I don't really know what I need them for. Can I possibly later times exactly look at me.
But with BRouter the message came so that 0 files were changed.
In my folder are files from 31.12. and on the server of BRouter were yesterday data from 12.01..
Nevertheless nothing was loaded ?
Translated with www.DeepL.com/Translator (free version)
Quote from: freischneider on January 13, 2022, 08:29:10In my folder are files from 31.12. and on the server of BRouter were yesterday data from 12.01..
This task does not check date, if local path is configured correctly it downloads exactly those brouter files which it finds there. On running, does the task output "Downloading file x/y: n50w10.rd5" (example)? Did you configure your local paths in line 1?
Quote from: tapio on January 13, 2022, 14:09:58
Quote from: freischneider on January 13, 2022, 08:29:10In my folder are files from 31.12. and on the server of BRouter were yesterday data from 12.01..
This task does not check date, if local path is configured correctly it downloads exactly those brouter files which it finds there. On running, does the task output "Downloading file x/y: n50w10.rd5" (example)? Did you configure your local paths in line 1?
I think it's the path. I opened the folder Segents4 in Solid Explorer and then clicked on the path for a long time. Then copy path. This I have pasted. Now I have done the whole thing in the TC and there the path is different in front. There is in front not /sdcard/ but /storage/emulated/0/
But also here it did not work. I tested with the old and the new task. This time the error message did not appear with the old task.
What I also noticed. You wrote the rd5 in your post like this: n50w10.rd5
For me they are written in the folder with _ and capital letters (see picture)
It's not the file names. Path looks fine. I wonder if something else is going on.
This task has a directory picker. Start it and point it to the rd5 directory. Confirm with top left back arrow. It would then display rd5 files and copy the path to clipboard. Use that one.
https://taskernet.com/shares/?user=AS35m8kdDIMDeveQcQfRglam%2Fah1mTW%2FWcg05FZ39c0i1q%2F77iY3E7cIwxCkXqJTaTA%3D&id=Task%3ADirPicker
And as for this threads task, open it and start it from there, at least you may see where it stopped or if there were errors...
"Time error message", you confuse it with the other thread, oam downloader.
If I understood correctly, the DirPicker is there to find and copy the path.
I think I have found the problem. When I use it, I only get to Android/Data and then I don't see any folders.
I think so that Tasker does not have access to the other folders. That's why it won't find and download files.