-
Contributor
Originally Posted by
MooseJuice1983
I have gotten this to work without too much effort, which is more than I can say about some other people's versions of this type of thing.
Assuming I were to leave my PC on and scanning, maybe even thru multiple accounts for multiple areas, is there a way I can access this populated map on my phone while out and about?
Also, is there any way to increase the range?
Originally Posted by
jonomc666
The problem with leaving it running is that you'll most definitely have to restart the scanners frequently due to how unstable servers are. I've never had mines work for more than an hour. As I type this I'm having to restart mines.
It's just a web server so I'd imagine a port forward/firewall rule could accomplish external access however due to the above I just use remote desktop so I can also restart the scanners.
There's a NUM_STEPS variable in main.py. I don't recommend increasing it past 10 though. From what it looks like the scanner scans in a spiral around your set location. If you increase the size too much it'll take so long to complete that everything in the middle will have despawned and you'll have an empty space while the scanner is still working on the outer edge.
My solution to increasing range is to have multiple scanners work on 10 step areas and just combine them on the one map. Basically I created copies of main.py to output to different json files. Each one would scan a different area. I then modified Index.html to load all the extra files onto one map.
It's a shitty solution that doesn't scale well. I looked into possibly making a multithreaded scanner but I concluded that I definitely don't have the python skills to attempt that.
If you get your computers ip at ipchicken.com or another site visit that ip on your port (default 8000) it shows up.(ip:8000) You must use your own google api key for this to work though. also i am aware that hide pokemon takes up the whole screen basically.
-
Member
after i login, my cmd just closes out with errors just before.
-
Contributor
Originally Posted by
kn0cturnal
after i login, my cmd just closes out with errors just before.
is pause the last line of your bat?
-
can anyone show how to increase radius ?
-
Originally Posted by
jonomc666
The problem with leaving it running is that you'll most definitely have to restart the scanners frequently due to how unstable servers are. I've never had mines work for more than an hour. As I type this I'm having to restart mines.
It's just a web server so I'd imagine a port forward/firewall rule could accomplish external access however due to the above I just use remote desktop so I can also restart the scanners.
There's a NUM_STEPS variable in main.py. I don't recommend increasing it past 10 though. From what it looks like the scanner scans in a spiral around your set location. If you increase the size too much it'll take so long to complete that everything in the middle will have despawned and you'll have an empty space while the scanner is still working on the outer edge.
My solution to increasing range is to have multiple scanners work on 10 step areas and just combine them on the one map. Basically I created copies of main.py to output to different json files. Each one would scan a different area. I then modified Index.html to load all the extra files onto one map.
It's a shitty solution that doesn't scale well. I looked into possibly making a multithreaded scanner but I concluded that I definitely don't have the python skills to attempt that.
can u show how u managed to do it ? manage to have 2 radars running but cant figure how to edit the index.html to show both markers
Last edited by fokeiro; 07-20-2016 at 10:16 PM.
-
Active Member
Originally Posted by
fokeiro
can anyone show how to increase radius ?
Edit main.py with any text editor.
Find the line that starts with "NUM_STEPS ="
change the number after that to something else.
Keep in mind that it has to do the number of steps squared so if you go too high it you will not be updating all the parts of the map fast enough, so you will always have blank spots.
-
Member
-
Originally Posted by
Mav
Edit main.py with any text editor.
Find the line that starts with "NUM_STEPS ="
change the number after that to something else.
Keep in mind that it has to do the number of steps squared so if you go too high it you will not be updating all the parts of the map fast enough, so you will always have blank spots.
did that running perfect, trying to figure how to show different radars on same map without refreshing it
-
Member
Originally Posted by
fokeiro
did that running perfect, trying to figure how to show different radars on same map without refreshing it
thats easy you might need another login though. Just run the "main.py"" again with new login and coords it will edit the data.json file like the other one does.
-
Active Member
Originally Posted by
Nipper
thats easy you might need another login though. Just run the "main.py"" again with new login and coords it will edit the data.json file like the other one does.
Unfortunately it doesn't work that easy. I only glanced over it so i could be wrong but: The python script just dumps all of it's pokemon data into the json file. When you run the same python script with two different accounts the pokemon that are shown just switch between the locations you setup.
I think I've just about figured out how to edit the html file so that you can make it work with a datafile, py script for each instance you want to run. I'll post if I figure it out.
-
Member
How to update new pokemon on location?
-
Member
Perdonen, no hablo mucho ingles.
De que trata este foro?
Entiendo que modifican el API de google para obtener la ubicacion de los pokemones.. estoy en lo correcto?
-
Active Member
Originally Posted by
fokeiro
did that running perfect, trying to figure how to show different radars on same map without refreshing it
Okay, I've got multiple locations working with multiple scripts now, but my solution isn't the prettiest. I'm only going to cover how to do it for one extra location, but it should work for more, just repeat the steps for however many you want.
1. Make a copy of the main.py and name it something like main2.py
2. Make a blank data.json and name it something like data2.py
3. Edit your main2.py so that it looks at data2.json
4. Editing the index.html:
4a. Find the section "function refreshData()"
4b. Move/Cut the lines of code that start with "// Clear markers" through the line with "markers = [];"
4c. Place the clear markers code as the first lines under "function refreshData()"
4d. Copy everything from "getFile("data.json", true, function(response) {" though the part that looks like "});"
4e. Paste the copied block of code below the original getFile code
4f. Edit the first line of your new getFile so that it reads from "data2.json"
4g. Toward the very bottom of the html is a line "setInterval(refreshData, 1000);". Change it to something slower like 5000.
You can also remove the block of code about map.setZoom from all your copies of the read file. You also might want to change the map.setZoom to something smaller so you start more zoomed out.
If my instructions are hard to follow then you probably don't know enough about code, because I made them pretty leecher friendly. As such I will not be helping people with getting this to work.
-
Post Thanks / Like - 4 Thanks
-
Member
Thanks Mav! Good job. How to Pokéscanner speed up?
-
Member
Originally Posted by
deadmarine
is pause the last line of your bat?
Yes.
Constantly getting decoderunicode errors
http://imgur.com/a/p2f7g
Last edited by kn0cturnal; 07-21-2016 at 03:43 AM.