RocketMap / RocketMap

🌏 Live visualization of all the pokemon in your area... and more!
GNU Affero General Public License v3.0
2.81k stars 1.48k forks source link

Hex-Beehive generation #476

Closed DeastinY closed 8 years ago

DeastinY commented 8 years ago

I feel like I'm doing something really wrong here, but I always end up with shapes like this :

2016-08-11 09_07_06-pokemon go map

The command I used was python location_generator.py -lat 50.8 -lon 6.1 -st 3 -lp 7 --accounts accounts.csv

Any help would be appreciated. There are about 60 processes running for that, is that intended ?

2016-08-11 09_18_54-ric hs-se-ric_ _git_pokemongo-map

davidetan commented 8 years ago

Well, if you use lp = 7, you will have something like 169 workers. It is normal having more than 60 processes. If I did the right calculation you should have

lp | workers 1: 7 2: 19 3: 37 4: 61 5: 91 6: 127 7: 169 8: 217 ...

Do you have 169 accounts in your file?

DeastinY commented 8 years ago

Thanks for the clarification. I have about 30 accounts, so I'll try lp=2

davidetan commented 8 years ago

Since you have more than 19 account, you can enable multithreading and the script will automatically add the remaining account to the first 11 locations. In such a way you will have for the first 19 location 2 accounts (doubling the search speed), while for the next 8 location only 1 account.

To enable multithreading simply add -t 2 to your string: python location_generator.py -lat 50.8 -lon 6.1 -st 3 -lp 2 -t 2 --accounts accounts.csv

DeastinY commented 8 years ago

nice ! Thanks for the hint :) How does the process count correlate to the accounts used ? running the hive with -lp 2 ends in 4 processes running. Are those 4 processes really using 19 accounts ?

schawsk commented 8 years ago

Does multithreading now owrk on windows too, or is that still broken?

BaIthamel commented 8 years ago

This is not a support forum; please see the discord #help channel for assistance.