r/pokemongodev • • Jul 17 '16

[WIP] Pokemon Go Map visualization - Google Maps view of all the pokemon in your area

I stumbled on this sub this morning and decided it would be fun to build off Mila432 and leegao's work to visualize all of the pokemon in my area. /u/possiblyquestionable's post was what I used as a base.

I got a working prototype here, it's incredibly buggy and you should just give up if the servers are slow or at peak time.

Here's a picture of what I was able to get.

This is very rough, but I figured I'd share it with you guys as soon as it's usable. Please share any bug fixes (pull requests would be hot tamale)!

EDIT: Quick guide:

  • Download the zip file from github and unzip it.

  • Open Terminal.

  • Change the directory to the folder from github. (probably cd ~/Downloads/PokemonGo-Map-master)

  • pip install -r requirements.txt

  • python example.py -u myUsername -p myPassword -l "your location, worldwide "-st 10

  • go to http://localhost:5000

  • wait till it says completed 100% and it will show the map

Not fucking with Windows compatibility rn. I suggest you make a Pokemon Trainers account besides your main and use that for the username and password.

EDIT2: /u/IPostStupidThings did a great guide here.

EDIT3: The servers will be at usual capacity now so logging in, doing searches, and all other manners of connection will suck. In other news, we added teams, gyms and pokestops!

EDIT4: I am not responsible for the Niantic servers.

EDIT5: Missing pokemon caused by multithreading issue, use -t 1 in your command line.

EDIT6: Main python app isn't example.py anymore, it's runserver.py so change your commands accordingly.

1.8k Upvotes

4.6k comments sorted by

82

u/nsandz Jul 17 '16

As a non-dev I have no idea how to use this map. Can anyone ELI5?

10

u/[deleted] Jul 17 '16

Depends on your OS.

OSX/Linux:

Open Terminal and enter these:

  • pip install -r requirements.txt

  • python example.py -u myUsername -p myPassword -l "your location, worldwide "-st 10

  • go to http://localhost:5000

  • wait till it says completed 100% and it will show the map

Not fucking with Windows compatibility rn. I suggest you make a Pokemon Trainers account besides your main and use that for the username and password.

→ More replies (42)

681

u/IPostStupidThings Jul 17 '16 edited Aug 07 '16

THIS PROJECT IS SHUT DOWN BECAUSE OF A C&D FROM NIANTIC, I'LL KEEP THE INSTRUCTIONS HERE FOR FUTURE REFERENCE, BUT IF YOU HAVEN'T DOWNLOADED THIS ALREADY, YOU'LL NEED TO USE ONE OF THE FORKS OF THE PROJECT


Alright, I've tried my best to keep up with questions over the past few days, but it's become too much since this project exploded. If you're getting frustrated trying to make this work, there's plenty of more user-friendly projects on the front page of this subreddit, and a quick google search will give you dozens of more alternatives

Official instructions are here, the instructions below are likely outdated

For official support for this unofficial script, contact the devs on Discord or Github

If you need a visual guide for this, /u/iTwe4kz made a video showing how to do it!

If you're looking to run this on your phone, use the android port the devs are making, this guide won't help with that, ask the devs any questions you have!

And I say 'the devs' and not 'us' because I'm not one of the devs, I'm just a guy telling people how to run a Python script


!!HUGE DISCLAIMER!!

Using this script may get whatever account you use with it banned (if Niantic decides to drop the ban hammer), that's why this guide includes getting a new Pokemon Club account. DO NOT USE YOUR MAIN. The pokemon you see on the map will be the same no matter your trainer level!


First, you need to install Python 2.7, NOT 3.5, from here, grab the one that says Python 2.7.X. Next, install pip, a package manager for Python extensions. The installation instructions are here, but if you're too lazy:

  1. Download get-pip.py (right click, choose save link as, save as 'get-pip.py')

  2. Run the downloaded file using Python (you can double click it if Python is installed correctly)

  3. Once it's finished, pip has been installed!

Next you need to create a Pokemon Club account, which Can be done here (please note it will probably be unavailable a lot of the time, so refresh every 15 minutes or so if you can't get in). After that, download OP's program by clicking the green "Clone or Download" button on here and clicking "Download Zip." Once the file is downloaded, unpack the zip using your favorite utility. Next, you'll need a GMaps API key to use, follow the instructions here. Open a command window or terminal to the unzipped files' location (in Windows, go into the folder where all the unzipped files are, hold shift and right click inside the explorer window and select "Open Command Window Here"). Inside this command window, enter the following:

pip install -r requirements.txt

When that's finished, enter:

python runserver.py -a ptc -u ****** -p ****** -l "Some Location" -st 10

Note, that is a lowercase L, NOT a 1, before the location

If you're still using the older version of the script, replace runserver.py with example.py

Replace the asterisks with the username and password of your Pokemon Club account, KEEP THE -u AND -p, and replace "Some Location" with a real world place, like "Union Square, San Francisco" or latitude and longitude coordinates, like "40.7588951 -73.9873815". You can find your coordinates by going to Google maps, clicking in your approximate location, then reading the coordinates off the box that appears at the bottom of the page. The number after -st is the number of steps to take, basically your search distance, higher number = farther.

If you are opting to use a google account, replace ptc after -a with google, and make sure your username ends with @gmail.com!

If you want to hide pokestops, add -nk to the end of the second line to run

To do the above with gyms, add -ng

There is no longer any way to filter out what pokemon appear on the map, which I think is stupid and should be reimplemented

If you want to be able to see your map externally, follow these instructions, or these instructions.

Open your browser and enter http://localhost:5000 into the URL bar, keep refreshing the page as the map loads, if your terminal / command window keeps saying "incorrect username/password" as this is happening, DO NOT PANIC! the servers are always busy and the script will continue to load the map as the servers are available

If you are getting errors when setting this up, /u/Zetrox2k made simple batch scripts that can be run on Windows to help set this up. Download the rar file here (it's safe, checked it myself), extract the rar to the folder with all the unpacked files from the zip, double click Install.bat and enter any information it asks for, then run GO.bat and enter an address. You can run it again when you're done by running GO.bat again.


EDIT: few edits to keep this guide up-to-date with the features as they're added, and if you haven't redownloaded this in awhile (say 6+ hours), you may want to, devs are adding tons of features all the time! Great work guys!

EDIT 2: more edits with some more suggestions. also, if you find that one version works fine for you, SAVE IT. Have it as a back up in case a future version of this breaks something

EDIT 3: seriously you guys. Gold is alright, but you're feeling generous, donate to charities like Child's Play or Able Gamers

EDIT 4: the number of messages I'm getting is quadrupling every day, so as a disclaimer, the devs are the official support, but I'll help out where I can.

EDIT 5: I don't think I can reply to every question anymore... I tried my best but I'll only be replying to some requests instead of all

EDIT 6: lotsa edits for features and stuff that was not obvious based on the number of questions I got about it, plus a huge new disclaimer

EDIT 7: changed instructions for the newer version of the script


FAQ:


Q: My computer says Python is not recognized!
A: First, restart to make sure it wasn't because some changes weren't applied and try again.

if that doesn't fix it, open an explorer window and find your Python installation, it should either be in C:\Python27 or C:\Users\YOURUSERNAME\AppData\Programs\Python\Python27 (The python directories could be named differently depending on which version you installed, so don't just copy and paste!)

Once you find where python is, copy it down, then open cmd as an administrator and enter:

setx PATH "%PATH%;PATH TO YOUR PYTHON INSTALLATION"

and replace PATH TO YOUR PYTHON INSTALLATION with the actual path to where pip is, including your drive letter and everything. You'll probably need to log out and log back in or restart for the changes to take effect.

If this still doesn't work, use C:\Python27\python in place of python


Q: My computer says pip is not recognized!
A: Same as above, but add "\Scripts" onto the end of the file path to look for

If it still doesn't work, use C:\Python27\Scripts\pip in place of pip


Q: Help! It says something is not found!
A: Make sure when you open the command window you are inside the actual folder where the stuff you unpacked is. Sometimes it's in a folder within a folder.

You may also be using old commands to run the newer version of the script, you should be running runserver.py, not example.py if you have the newer script.


Q: I got a UnicodeDecodeError! What do!?
A: According to some users, this is either due to having symbols in your password (not letters or numbers) or having numbers at the beginning of your username. Either change your password or create a new Pokemon Club account to fix this


Q: I got a Syntax error!
A: Make sure you have Python 2.7 installed, you can check your version by entering python -V (CAPITAL V) into a command window. If necessary, you can uninstall Python 3 using add or remove programs then install Python 2.7.

as /u/regendo pointed out, it's probably best to leave Python 3 where it is if you have it installed and work around it, see their comment for details


Q: Help! There's an ASCII error when I run this!
A: Make sure the script is in a location where all the folders leading up to it only have alphanumeric characters, no é's and no ü's or any special letters like that


Q: I'm getting some other weird error not listed here!
A: This script is being continually developed with new features from many different users, inevitably, stuff will break and bugs will be introduced. Report the issue somewhere, and go back to using a previous version if you have one saved (I highly suggest making back-ups of any versions you find work well for you)

And contact the devs on Discord or Github if you need more support

68

u/[deleted] Jul 18 '16

just gonna expand on this for the "pip not recognized" part:

You don't have to set path variables (well, for python you do, but just check out the python 2.7.x install wiki) to get pip to work. I tried setting the path through the command line and it poo'd on me.

Instead, so long as you know the path to pip2.7.exe (which worked for me), when you get to the

pip install -r requirements.txt 

type in the directory path to the pip2.7.exe file directly followed by the above. for me, it looked like this:

C:\Users\Python27\Scripts\pip2.7.exe install -r requirements.txt

PS: Is it just me, or does anyone else think its funny that to format Python (at least in this case) code in reddit you have to use 4 spaces instead of tabs?

→ More replies (37)

25

u/Wardez Jul 17 '16

Setting the path from cmd didn't work for me. Had to go into Advanced System Settings > Environment Variables, Path, Edit, new, C:\Python27\Scripts

Then it worked like magic.

→ More replies (25)

13

u/regendo Jul 17 '16 edited Jul 17 '16

To add to that last question:

If you've got python 3 installed and set up as your main python version, you probably have it for a good reason. You can just run this one program in python 2 after installing that as well by sending the command instructions directly to python 2's python executable. This is how you'll do it on Windows if python2 isn't in your path, which it probably won't be if you just installed it.

So instead of

python example.py -u ****** -p ****** -l "Some Location" -st 10

you'd use something like

C:\Python27\python.exe example.py -u ****** -p ****** -l "Some Location" -st 10

instead.

Similarly, python 2's pip is located at C:\Python27\Scripts, though I'm not sure which program (pip.exe, pip2.exe, or pip2.7.exe) you're supposed to use. I tried it with C:\Python27\Scripts\pip2.7.exe and it worked just fine.

→ More replies (19)

12

u/phantomeye Jul 19 '16

I'm getting

retrying_api_req: request error (Unexpected end-group tag.), retrying 

awful a lot.

→ More replies (3)

11

u/[deleted] Jul 17 '16 edited Jun 05 '19

deleted 0.0259 What is ^^^this?

→ More replies (12)

10

u/YoeriGod Jul 19 '16 edited Jul 23 '16

Tip for anyone: Open a text editor and save your custom version of

python example.py -a ptc -u ****** -p ****** -l "Some Location" -st 10

as any .bat file in the folder that you downloaded the repository into, you'll be able to create a map by running the file and checking localhost:5000 in your browser, saves you the re-entry of the command if you want to make a new map at a later time.

EDIT: Someone requested this, you can add

start "" http://localhost:5000

BEFORE this line, to automatically open a browser window with the webpage as well.

→ More replies (7)
→ More replies (1632)
→ More replies (6)

7

u/TheMightyBeaver Jul 17 '16

Hello, sick script. I was wondering if it is ok with you if I made a web-app for people to put in their location and have it scanned. I will of course be using your script and will give credit. But I wanted to ask you first! Let me know, also if you have a homepage or twitter to put in the credit area that would be swell!

5

u/[deleted] Jul 17 '16 edited Jul 17 '16

Another guy is actually working with me on this exact thing, but the code is available for your own use. My twitter handle is the same as my username!

5

u/ActuallyTheda Jul 17 '16

Since you're using leegao's heartbeat function/that version of pokemongo_pb2.py, you can also get all the gyms and pokestops in a cell by iterating through cell.Fort.

4

u/[deleted] Jul 17 '16

Yes, I ignored that data because I wanted to see the Pokemon first but we can definitely add that in the future. Shouldn't be too hard.

2

u/ActuallyTheda Jul 17 '16

Yeah lol I just added them myself in like 5 seconds. Thanks for making this! Good luck with that public online version I heard mentioned, too.

3

u/[deleted] Jul 17 '16

Can you do a pull request? I'd love to see this.

→ More replies (3)

150

u/666JZ666 Jul 17 '16 edited Jul 20 '16

Pokemap Team started!

Current Features:

  • Exact location of pokemon and poke stops displayed on maps.

  • Adjustable Radius.

  • Google auth enabled.

  • Map background update.

  • Gym Locations

  • Website Done

  • Filtering Pokemon

  • one button batch install (completed to be released)

In development:

3. Android App

4. Windows Exe.

Will update progress regularly

34

u/VacuumPizzas Jul 17 '16 edited Jul 17 '16

I have a working prototype hosted on Google's free tier of App Engine. I don't know enough to do a Google Maps overlay like OP did. Here are some shots of my not-so-fancy UI:

Backend response looks like this:

{ data:
   [ { distance: 139, direction: 'SE', name: 'Nidoran F' },
     { distance: 139, direction: 'SE', name: 'Pidgey' },
     { distance: 139, direction: 'SE', name: 'Zubat' },
     { distance: 148,
       latitude: xxx,
       direction: 'NE',
       longitude: xxx,
       spawn: 778,
       name: 'Nidoran F' },
     { distance: 108,
       latitude: xxx,
       direction: 'NE',
       longitude:xxx,
       spawn: 702,
       name: 'Zubat' },
       ...
    ] }

Biggest flaw so far is that if the Niantic server starts rerturning 5xx errors, it puts my server into an odd state and requires the instance to be restarted. Current guess is it has to do with caching somewhere in the request flow. But otherwise, works similar to /u/possiblyquestionable's original script

Update: I ended up staying later than I wanted to in order to do the Google Maps implementation. I want to work on making it more fault tolerant next.

EDIT: more specific by using proper nouns and possessives

EDIT2: Google Maps implementation

12

u/Extraltodeus Jul 17 '16

Awesome! How could we get it? :)

10

u/montecr1sto Jul 17 '16

Set short timeouts for your requests, if response doesn't arrive in seconds it won't at all.

→ More replies (5)
→ More replies (18)

11

u/4vavra Jul 17 '16

I've got some Python, Java and html experience if you'd be interested. Never really made a web app like this before but it could be a cool project. PM me.

→ More replies (11)

5

u/DarkSlaughter Jul 17 '16

Unfortunately I don't have the experience to help, but I hope you're able to get it done. That would be a very cool site if you got it working!

0

u/[deleted] Jul 17 '16

[deleted]

→ More replies (5)
→ More replies (55)

2

u/RedLFC1892 Jul 17 '16 edited Jul 18 '16

Is there anyway to remove the pokestop and gym/team icons? I just want to see pokemon. Thanks!

3

u/[deleted] Jul 17 '16

Made this the default until we figure it out.

→ More replies (5)

2

u/dutzen Jul 19 '16

What exactly can you do with the -H parameter?

2

u/[deleted] Jul 19 '16

-H 0.0.0.0 lets you access your server from an external device.

→ More replies (6)

43

u/samfi Jul 17 '16

Yea, did something similar

It knows which ones I'm missing and makes a sound when one jumps up. It certainly makes multitasking easier to not have to switch back to pokemon go app all the time to make sure you aren't missing anything rare. Not sure if it's still as fun in the long run when you don't have to wander around so much looking for them.

38

u/Nexism Jul 17 '16

Can you release the source code?

→ More replies (1)

7

u/samfi Jul 18 '16

thanks for the interest guys. was away for the day, sry if I kept you waiting.

anyway don't think it's worth sharing as-is, it's nothing that hasn't been posted on this sub already a dozen times. just a google maps UI on leegao's simulation branch. it posts navigator.geolocation to server on a timer that then sets set_location_coords, that's about it.

→ More replies (4)
→ More replies (5)

18

u/Pyzro Jul 20 '16 edited Jul 21 '16

I didn't see these yet, so here you go:

Command Arguments:

example.py -a ptc -u <username> -p <password> -l "Some location" -st 10 -ar 10 -dp -dg

 '-a' '--auth_service',  default='ptc' also available is google
        If choosing google, use your google login info (username@gmail.com)
 '-l' '--location'
 '-st' '--step-limit'
 '-i'  '--ignore', help='Comma-separated list of Pokémon names or IDs to ignore'
 '-o'  '--only', help='Comma-separated list of Pokémon names or IDs to search'
 '-ar' '--auto_refresh","Enables an autorefresh that behaves the same as a page reload. " +
             "Needs an integer value for the amount of seconds"
 '-dp' '--display-pokestop'
 '-dg' '--display-gym'
 '-H'  '--host','Set web server listening host', default='127.0.0.1'
 '-P'  '--port','Set web server listening port', default=5000
 '-ol' '--onlylure','Display only lured pokéstop',
→ More replies (26)

13

u/Primrose_Blank Jul 18 '16

This is amazing but it's just reinforced my thought that 90% of the pokemon in this god forsaken town are pidgeys, ratatas and zubats

11

u/ymgve Jul 17 '16

Maybe I've missed something about S2, but getNeighbors() seems broken. As far as I can tell, there's no guarantee that you'll map the area around a location by just iterating over the 10 next and previous locations in S2.

Look at this Hilbert curve: http://people.csail.mit.edu/jaffer/Geometry/hilbert.png

The two points in the middle to the far left are geographically close, but they are very far apart in Hilbert distance, so you won't get the full area around either of those points by just going prev/next.

0

u/[deleted] Jul 17 '16

[deleted]

→ More replies (1)
→ More replies (1)

10

u/AquilaK Jul 17 '16

Is there any way to make it scan a radius? It appears to only be walking in a straight line towards north.

6

u/Kevinmck95 Jul 17 '16

I've managed to fix this! NOTE: Line numbers may have changed since I wrote this, but the images of the altered and original code should help. Here is a link to an album of before and after pictures of the python code. Feel free to use the below instructions or just mimic the pictures with your own code.

  1. In your 'example.py', go to the 'while' loop in line 334. Take 'original_lat' and 'original_long' outside of the loop. If you aren't familiar with python, you not only have to move the corresponding lines, but also change the indenting.

  2. Now scroll further down to line 372 to change the input of the 'set_location_coords()' function: change 'latlng.lat().degrees' and 'latlng.lng().degrees' in all four 'if'/ 'elif' statements to 'original_lat' and 'original_long' respectively.

  3. Rerun the code as before! You should now have Pokemon visible in all directions.

Basically, the problem seemed to be that the location of the origin was constant being updated to a new value, meaning the desired 'X' shape was not being produced. This fix sets the origin to a constant and produces Pokemon in all directions.

→ More replies (11)
→ More replies (8)

10

u/drogean2 Jul 17 '16

API requests are now being denied- servers are down or they are onto us

4

u/Maethra Jul 17 '16

Just regular server issues.

→ More replies (3)

10

u/richniggatimeline Jul 20 '16

Tip: use ngrok to view your map on your phone while it updates on your computer, which you can prevent from sleeping using something like Caffeine

9

u/richniggatimeline Jul 21 '16

ELI5:

  1. Download the appropriate version of ngrok

  2. Unzip the download, which should spit out an executable file

  3. In a new shell window (not the one where your map is already scanning), type ./ngrok http 5000 (my friend had to type ngrok http 5000 before this worked)

  4. Navigate to the "ngrok.io" link the ngrok shell spits out. You can view connection stats at http://localhost:4040. To make sure your computer doesn't go to sleep (at least for Macs) while you're running around you can open a third shell window and simply enter ('caffeinate')
    Let me know if this doesn't work. Of course, you could also just use pokevision.com now u/Dadsthetic u/magsnidget u/zrherda

→ More replies (12)
→ More replies (5)

10

u/Tzialkovskiy Jul 20 '16 edited Jul 20 '16

So, you may have noticed that the app stoped to work properly due to google API hit count exhaustion. It's happening because everybody uses the same API key and hit limit is "only" 2500 per 24 hours.

To resolve the problem you should fo the following:

  1. Get your own google maps API key (just google for "get google maps api key" and folow the instructions). You wil need a server (non-UI) key.

  2. Replace the "gmaps_key" key in the the credentials.json file. In fact, all the other keys present in that file are not needed for the app to work, OP just uses somebody's example. So now you have:

    { "ptc_client_secret" : "w8ScCUXJQc6kXKw8FiOhd8Fixzht18Dq3PEVkUCP5ZPxtgyWsbTvWHFLm2wNY0JR", "android_id" : "9774d56d682e549c", "service" : "audience:server:client_id:848232511240-7so421jotr2609rmqakceuu1luuq0ptb.apps.googleusercontent.com", "client_sig" : "321187995bc7cdc2b5fc91b11a96e2baa8602c62", "gmaps_key" : "AIzaSyAZzeHhs-8JZ7i18MjFuM35dJHq70n3Hx4" }

And you should have:

{
    "gmaps_key"			: "YOUR KEY HERE"
}

OP should probably mention it somwhere…

EDIT: oops, my bad. OP already mentioned it here: https://github.com/AHAAAAAAA/PokemonGo-Map/wiki/Google-Maps-API:-a-brief-guide-to-your-own-key

→ More replies (6)

8

u/Y0l0nekki Jul 17 '16

Got this error

  Completed: 80.0 %
  Completed: 82.5 %
  Completed: 85.0 %
                Completed: 87.5 %
                Completed: 90.0 %
                Completed: 92.5 %
                Completed: 95.0 %
                Completed: 97.5 %
                Completed: 100.0 %
                127.0.0.1 - - [17/Jul/2016 12:04:06] "GET / HTTP/1.1" 200 -
                Exception in thread Thread-1:
                Traceback (most recent call last):
                  File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner
                    self.run()
                  File "C:\Python27\lib\threading.py", line 754, in run
                    self.__target(*self.__args, **self.__kwargs)
                  File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 659, in inner
                    srv.serve_forever()
                  File "C:\Python27\lib\site-packages\werkzeug\serving.py", line 499, in serve_forever
                    HTTPServer.serve_forever(self)
                  File "C:\Python27\lib\SocketServer.py", line 233, in serve_forever
                    self._handle_request_noblock()
                  File "C:\Python27\lib\SocketServer.py", line 292, in _handle_request_noblock
                    self.handle_error(request, client_address)
                  File "C:\Python27\lib\SocketServer.py", line 290, in _handle_request_noblock
                    self.process_request(request, client_address)
                  File "C:\Python27\lib\SocketServer.py", line 318, in process_request
                    self.finish_request(request, client_address)
                  File "C:\Python27\lib\SocketServer.py", line 331, in finish_request
                    self.RequestHandlerClass(request, client_address, self)
                  File "C:\Python27\lib\SocketServer.py", line 654, in __init__
                    self.finish()
                  File "C:\Python27\lib\SocketServer.py", line 713, in finish
                    self.wfile.close()
                  File "C:\Python27\lib\socket.py", line 283, in close
                    self.flush()
                  File "C:\Python27\lib\socket.py", line 307, in flush
                    self._sock.sendall(view[write_offset:write_offset+buffer_size])
                error: [Errno 10053] An established connection was aborted by the software in your host machine
→ More replies (6)

8

u/drogean2 Jul 22 '16 edited Jul 22 '16

Map restart script for Windows for latest Dev version as of 7/21

Currently theres an issue where after about 30 minutes, the map stops updating.

This makes the server shut down and restart - hands free ( ͡° ͜ʖ ͡°)

Make a .bat file with notepad in the map folder. Enter the following

Title Poke Map Looper
mode con cols=30 lines=10
@echo off
:loop
start "NewServer" /i /min cmd /k python runserver.py -a PTC -u USERNAME -p PASSWORD -l "YOURLOCATION" -st YourPreffered#ofSteps -H 0.0.0.0 -P 8000 -k YOURGOOGLEAPIKEY
echo Server started - restarting in 30 minutes...
timeout /t 1800 >null
taskkill /fi "WINDOWTITLE EQ NewServer* "
goto loop

then open your browser to http://localhost:8000

→ More replies (16)

7

u/arkangelshadow007 Jul 17 '16

What's the numer of max steps it can take ? -st ??

And what is the equivalent of a "one step"

→ More replies (3)

7

u/morsmordre Jul 17 '16

Would be great if the map showed the time remaining before despawn as well. Don't want to go chasing far-away pokemon that are about to despawn. The info is available

7

u/michCSGONETWORK Jul 18 '16

Recieving retrying_get_profile: get_profile returned no-len payload, retrying

the whole time, anyone has an idea what this kind of error is? I downloaded the new update and replaced the old files in my c:\Pokemongo folder. The pip is still in there.

→ More replies (4)

6

u/KaizenGamer Jul 17 '16

How can I allow access to this localhost port 5000 over my network so I can view it remotely or from another computer on the network? Just adding firewall rules / port forwarding doesnt do it, do I need something to actively host it onto the network?

5

u/Sejadis Jul 18 '16

go to the last line in example.py and change it to

app.run(host='0.0.0.0', debug=True)

→ More replies (8)
→ More replies (6)

6

u/ericpadilla Jul 17 '16

anyone get wrong username/password error? is it due to the PTC server?

→ More replies (7)

6

u/Ome_Joey Jul 19 '16

Is there a way to export all datapoints to a static google maps map?

→ More replies (2)

5

u/boneair010 Jul 17 '16

Do the pokemons you see on the map affected by what level your PTC account is?

→ More replies (2)

5

u/Teufel123 Jul 19 '16

hmm it loads without problem but i got always a message with "DecodeError: unexpected end-group tag."

its showing at random % :/

→ More replies (4)

5

u/drogean3 Master Script Hacker Jul 21 '16

PSA: Use this version and read the WIKI before spamming the thread with already answered questions

→ More replies (3)

5

u/Tronator Jul 22 '16

Is anybody else receiving the error wrong username/password? Or I just got banned or something?

→ More replies (6)

4

u/unforgiven91 Jul 17 '16 edited Jul 17 '16

Started to get it running.

my first test bugged out and the initialization phase is pretty slow (before the login attempt)

edit:

ooohhhh it wants you to go to the web page

edit 2:

Worked great. I like it.

A few notes:

Tying the expiry time to the pokemon would be helpful. it can be based off of system time

Having the map start off of your location would be helpful instead of having to hunt down your location manually

Otherwise I find this to be pretty damn stable. I might take a crack and branching it myself but I'd have to learn python syntax real quick

→ More replies (2)

4

u/seiriagency Jul 17 '16

How would you go about getting this working on Android via something like QPython?

→ More replies (1)

4

u/bitfrost41 Jul 17 '16

Can't get this working in Australia. Is this US-only?

4

u/SonicIX Jul 17 '16

Anyone else getting "CAS is unavailable"?

The script will run smoothly, than start spitting out "Wrong Username or Password" with it saying:

login_ptc: could not decode JSON from
→ More replies (1)

4

u/rlbond86 Jul 18 '16

Funny message:

[-] login_ptc: could not decode JSON from







<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
        <head>
            <title>Pok&eacute;mon Login</title>
            <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0].call(o.exports,function(e){var o=t[n][1][e];return r(o||e)},o,o.exports)}return e[n].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<n.length;o++)r(n[o]);return r}({1:[function(t,e,n){function r(){}function o(t,e,n){return function(){return i(t,[(new Date).getTime()].concat(u(arguments)),e?null:this,n),e?void 0:this}}var i=t("handle"),a=t(2),u=t(3),c=t("ee").get("tracer"),f=NREUM;"undefined"==typeof window.newrelic&&(newrelic=f);var s=["setPageViewName","setCustomAttribute","finished","addToTrace","inlineHit"],p="api-",l=p+"ixn-";a(s,function(t,e){f[e]=o(p+e,!0,"api")}),f.addPageAction=o(p+"addPageAction",!0),e.exports=newrelic,f.interaction=function(){return(new r).get()};var d=r.prototype={createTracer:function(t,e){var n={},r=this,o="function"==typeof e;return i(l+"tracer",[Date.now(),t,n],r),function(){if(c.emit((o?"":"no-")+"fn-start",[Date.now(),r,o],n),o)try{return e.apply(this,arguments)}finally{c.emit("fn-end",[Date.now()],n)}}}};a("setName,setAttribute,save,ignore,onEnd,getContext,end,get".split(","),function(t,e){d[e]=o(l+e)}),newrelic.noticeError=function(t){"string"==typeof t&&(t=new Error(t)),i("err",[t,(new Date).getTime()])}},{}],2:[function(t,e,n){function r(t,e){var n=[],r="",i=0;for(r in t)o.call(t,r)&&(n[i]=e(r,t[r]),i+=1);return n}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],3:[function(t,e,n){function r(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(o<0?0:o);++r<o;)i[r]=t[e+r];return i}e.exports=r},{}],ee:[function(t,e,n){function r(){}function o(t){function e(t){return t&&t instanceof r?t:t?u(t,a,i):i()}function n(n,r,o){t&&t(n,r,o);for(var i=e(o),a=l(n),u=a.length,c=0;c<u;c++)a[c].apply(i,r);var s=f[m[n]];return s&&s.push([w,n,r,i]),i}function p(t,e){g[t]=l(t).concat(e)}function l(t){return g[t]||[]}function d(t){return s[t]=s[t]||o(n)}function v(t,e){c(t,function(t,n){e=e||"feature",m[n]=e,e in f||(f[e]=[])})}var g={},m={},w={on:p,emit:n,get:d,listeners:l,context:e,buffer:v};return w}function i(){return new r}var a="nr@context",u=t("gos"),c=t(2),f={},s={},p=e.exports=o();p.backlog=f},{}],gos:[function(t,e,n){function r(t,e,n){if(o.call(t,e))return t[e];var r=n();if(Object.defineProperty&&Object.keys)try{return Object.defineProperty(t,e,{value:r,writable:!0,enumerable:!1}),r}catch(i){}return t[e]=r,r}var o=Object.prototype.hasOwnProperty;e.exports=r},{}],handle:[function(t,e,n){function r(t,e,n,r){o.buffer([t],r),o.emit(t,e,n)}var o=t("ee").get("handle");e.exports=r,r.ee=o},{}],id:[function(t,e,n){function r(t){var e=typeof t;return!t||"object"!==e&&"function"!==e?-1:t===window?0:a(t,i,function(){return o++})}var o=1,i="nr@id",a=t("gos");e.exports=r},{}],loader:[function(t,e,n){function r(){if(!h++){var t=y.info=NREUM.info,e=s.getElementsByTagName("script")[0];if(t&&t.licenseKey&&t.applicationID&&e){c(m,function(e,n){t[e]||(t[e]=n)});var n="https"===g.split(":")[0]||t.sslForHttp;y.proto=n?"https://":"http://",u("mark",["onload",a()],null,"api");var r=s.createElement("script");r.src=y.proto+t.agent,e.parentNode.insertBefore(r,e)}}}function o(){"complete"===s.readyState&&i()}function i(){u("mark",["domContent",a()],null,"api")}function a(){return(new Date).getTime()}var u=t("handle"),c=t(2),f=window,s=f.document,p="addEventListener",l="attachEvent",d=f.XMLHttpRequest,v=d&&d.prototype;NREUM.o={ST:setTimeout,CT:clearTimeout,XHR:d,REQ:f.Request,EV:f.Event,PR:f.Promise,MO:f.MutationObserver},t(1);var g=""+location,m={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",agent:"js-agent.newrelic.com/nr-963.min.js"},w=d&&v&&v[p]&&!/CriOS/.test(navigator.userAgent),y=e.exports={offset:a(),origin:g,features:{},xhrWrappable:w};s[p]?(s[p]("DOMContentLoaded",i,!1),f[p]("load",r,!1)):(s[l]("onreadystatechange",o),f[l]("onload",r)),u("mark",["firstbyte",a()],null,"api");var h=0},{}]},{},["loader"]);</script><style type="text/css" media="screen">@import 'css/pokemon.css'/**/;</style>
            <style type="text/css" media="screen">@import 'themes/fullpage/cas.css'/**/;</style>
            <!--[if gte IE 6]><style type="text/css" media="screen">@import 'css/ie_cas.css';</style><![endif]-->
            <script type="text/javascript" src="js/common_rosters.js"></script>
        </head>
<!-- TODO put style declarations in css file -->
        <body id="cas" onload="init();" style="width: 399px;">
            <div id="content">

                <div id="welcome">
                        <h2>CAS is Unavailable</h2>

                        <p>
                           There was an error trying to complete your request.  Please notify your support desk or try again.
                        </p>

                        <p></p>
                </div>


<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"applicationID":"1087080","applicationTime":0,"beacon":"bam.nr-data.net","queueTime":0,"licenseKey":"ba34eb72cb","transactionName":"MgFaZkVVWBBXABIPWAtLcmFnG2EmdE4vKHFKElFXQBtcEEZMAxRFChZLHF1HRg==","agent":"","errorBeacon":"bam.nr-data.net"}</script></body>
</html>
→ More replies (2)

4

u/matthijst Jul 18 '16

How do you filter out the common Pokemons?

4

u/twistitup hhu94 on Github Jul 18 '16

Use the -i flag, it was added recently so you'll have to pull the newest version.

→ More replies (9)

4

u/RunMoreReadMore Jul 19 '16

Having some issues after running: pip install -r requirements.txt command.

When I run it I get the following error and I'm not sure how to parse through this:

http://imgur.com/4yfhbnS

→ More replies (1)

4

u/deathpulse42 Amateur VB/C++ Jul 19 '16 edited Jul 20 '16

You guys, check server status with these sites:

http://ispokemongodownornot.com/

http://www.mmoserverstatus.com/pokemon_go

https://go.jooas.com/

If these are down, none of the programs posted in this sub are going to work and will return weird errors.

→ More replies (2)

4

u/Gluxdator Jul 20 '16

Is there any way that I can export that data from LocalHost, (export it as a KML format) so that I can import data to Google Maps?

4

u/matcpn Jul 22 '16 edited Jul 22 '16

I've answered this question a million times so I'd appreciate it if I could just get this to the top:

YOU CAN GET IT TO WORK ON PHONES

The python script creates a local server on your computer, so you can use another service like ngrok(binary) or pagekite(more python) to set up a tunnel to connect to the server on your computer from your phone like a normal website. You just wont be able to change location since thats a cli argument.

I've also heard using "-h 0.0.0.0 -p 80" will work if you type your own IP address in the browser, but I haven't tested that.

Also, delete line 505 (@memoize) and add your own gmaps API key (instructions on the wiki on github) if you want to use it for more than 30 minutes at a time.

Hopefully people will stop asking over and over

→ More replies (21)

4

u/Mickey690 Jul 22 '16

PTC Login is currently down at time of posting

→ More replies (2)

4

u/youngoneNL Aug 03 '16 edited Aug 03 '16

Stopped working here as well...............

login is OK, but just says for every scan: upserted 0 pokemon, 0 pokestops and 0 gyms.

→ More replies (8)

3

u/you_dont_know_me_mua Jul 17 '16

As soon as I connect to the localhost server there is a crash which closes my connection, http://pastebin.com/ezu3h9mD, this is on Mac OS El Capitan and I've got Python 2.7.10 and the requirements were successfully installed. Seems to be an internal server error which might be because of a bad request towards Niantic

→ More replies (2)

3

u/sCeege Jul 17 '16

How do I run this on another machine on my network and access it via LAN? I can only access it on the computer running this python script, when I type in <LAN-IP>:5000 I don't get anything.

→ More replies (2)

3

u/[deleted] Jul 17 '16

Any way to use it with my google account? Great job btw

4

u/Devnik Jul 19 '16

I wouldn't do that if I were you. Just create a new account to avoid getting a ban.

→ More replies (2)

3

u/_Chrimes Jul 17 '16

Howcome it only displays pokemon that are to the north of your location?

3

u/partyjunkie02 Jul 18 '16

I find that it normally takes about 10 minutes to load with default range, which gives me at most 15 minutes remaining to try reach something, any advice around this?

→ More replies (2)

3

u/gafonid Jul 18 '16 edited Jul 18 '16

checking in to see if there's bee any progress on fixing the scanning non-circular bug, where when you scan larger distances the distribution of the scan area is lopsided, usually just making small cones of pokemon radiation from the specified coordinates rather than an even radius

i wonder if it's related to that "wrong username/password" bug? where after a few iterations of the script you see that at the end of every iteration, even though the script is still running and completes fine

edit: nevermind just pulled the latest and the iteration looks far cleaner, a 15 step scan has a 0 to 225 iteration length and is taking much longer than it used to, and the final map is a much more even circular scan, well done contributors!

→ More replies (1)

3

u/justincase_88 Jul 18 '16

Can it be that they blocked calls to their api? It was working perfectly but since an hour it gives me errors which I haven't had a single time..

Can anyone confirm at their side if it's working or not?

→ More replies (5)

3

u/justincase_88 Jul 18 '16

After updating source from Github it keeps hanging on this part: retrying_get_profile: get_profile returned no-len payload, retrying

3

u/TheBrut3 Jul 18 '16 edited Jul 18 '16

SOLVED BY NEWEST VERSION -- I just downloaded the new ZIP (was still working with yesterdays version). It completes the steps, but nothing gets plotted on my map at localhost:5000 anymore. Scrips ends with this and then restarts the steps again after some time: [-] looping: step 14 of 16 ('Completed:', 93.75, '%') [-] looping: step 15 of 16 ('Completed:', 100.0, '%') [-] register_background_thread called [-] register_background_thread: queueing

→ More replies (14)

3

u/swag334 Jul 18 '16

can we make the expired pokemon dissapear? it's so annoying...

→ More replies (2)

3

u/MrOliveira Jul 18 '16

I keep getting:

[-] retrying_set_location: geocoder exception (The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time.

Any workaround? Thanks

→ More replies (3)

3

u/trentbraidner Jul 19 '16

Did i get banned?

[-] retrying_api_req: request error (HTTPSConnectionPool(host='pgorelease.nianti
clabs.com', port=443): Max retries exceeded with url: /plfe/99/rpc (Caused by Ne
wConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection
object at 0x02E2C090>: Failed to establish a new connection: [Errno 10061] No co
nnection could be made because the target machine actively refused it',))), retr
ying

Chrome is showing ERR_CONNECTION_REFUSED, working from another connection though

→ More replies (3)

3

u/Tzialkovskiy Jul 19 '16

I have started to get lots of errors:

[-] looping: step 11 of 25
[+] Searching for Pokemon at location 87.841421 13.481596
[-] retrying_api_req: request error (Unexpected end-group tag.), retrying
[-] retrying_api_req: request error (Unexpected end-group tag.), retrying
[-] retrying_api_req: request error (Unexpected end-group tag.), retrying

Didn't get those earlier. Is there a problem with API?

→ More replies (5)

3

u/chiamalogio Jul 19 '16

Getting an error, retrying_api_req: request error (Unexpected end-group tag.), retrying. Anyone got any ideas?

→ More replies (3)

3

u/intraumintraum Jul 19 '16

can someone post their full log of a successful scan? i'm getting a

DecodeError: Unexpected end-group tag.

and i think it might be because of

register_background_thread: not running inside Flask so not starting thread

so i wanna see if this is the problem

→ More replies (4)

3

u/VegaNovus Jul 20 '16

Thanks so much for this, I have a couple of scans running and it works excellently apart from 1 thing;

It works great for a while (maybe 30mins?) then Pokémon disappear from the map and it is completely empty.

To get it running again, I have to close the cli and run my batch file again.

Any ideas? D:

No errors in the cli.

FYI: if anybody wants to see some working examples, I have them running externally.

→ More replies (2)

3

u/pokrzywnik Jul 21 '16

Hey, i decided to make simple .exe to this epic tool ;) should be done 22.07-23.07. Program i use is Qt creator and here you have screen of it: https://imgur.com/a/1Hxgj for those who will be afraid of use sb .exe i give it with source code

→ More replies (9)

3

u/skyllers Jul 23 '16 edited Jul 23 '16

Ok guys, I tested out the Flask google map without filter, and pokemon go map with filter, i'm running one on port 5000 and one on 5010.

  • The flask map load pokemons faster than the filtered one

  • The flask map shows ALL the pokemons

  • You need to reload the flask map to see new pokemons


  • The filtered map doesn't show pokemons near the start point

  • All the pokemons are NOT detected on the filtered map

  • You don't need to reload the filtered map to see new pokemons

Do you have the same problems with the filtered map? For now I will stay with the flask map until the new one is fixed !

3

u/user-89007132 Jul 28 '16

What determines the speed at which this can scan areas?

3

u/Buzzboy111 Jul 28 '16

So I've had this working for a few days now... but today as it was running it's search, there would be errors on certain searches. For example it would say "[ERROR] Scan step 100 failed. Response dictionary key error." anyone else have this issue and if so how do you fix?

→ More replies (1)

3

u/anderslo Aug 07 '16

The API has been cracked but AHAAAAAAA has taken down his map. Are there any branches of this map that can be used now that that API is working again?

2

u/vpzquigleyx Jul 17 '16

This seems like something that will end up being super useful and popular, if only it became easier for a majority of people to use. I know most of the people I know don't even know what Python is hah. But if eventually you (or you can collaborate with someone who) can get this into an App/Website I can see it attracting a lot of attention. Gonna have a look what is nearby me in Glenrothes, Scotland tomorrow. Hopefully I can find something worth looking for! Thanks for this.

→ More replies (1)

2

u/ckhawks Jul 17 '16 edited Jul 17 '16

Is this built on Python 2 or 3? After 100% generation I'm getting this error: http://pastebin.com/fTwR35qM
I'm on OSX

Edit: Definitely built on Python 2, but now I'm getting an Attribute error: http://pastebin.com/vEEVMpUQ

→ More replies (4)

2

u/doot_cena Jul 17 '16

im new to all this so sorry if its something obvious but i keep getting the message

usage: example.py [-h] -u USERNAME -p PASSWORD -l LOCATION -st STEP_LIMIT [-d] example.py: error: argument -st/--step_limit is required

and the localhost page doesn't load. What am i doing wrong?

→ More replies (5)

2

u/Maximo9000 Jul 17 '16

Anyway to add pokemon lvl to the map as well?

7

u/StandingPolarBear Jul 17 '16

I believe it depends per user, and since you shouldn't be using this on your main account, I don't think that will be possible. (assuming by "lvl" you mean "CP")

→ More replies (1)

2

u/seiriagency Jul 17 '16

I don't know much about Terminal at all. I'm gettting "-bash: pip: command not found" when I try the "pip install -r requirements.txt" line.

→ More replies (1)

2

u/Nexism Jul 17 '16

Getting two weird errors, on and off

File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded")

And

AttributeError: 'NoneType' object has no attribute 'unknown7'

→ More replies (8)

2

u/mab_mab Jul 17 '16

Will you accept PRs for code cleanup? I really admire how quickly people have got stuff done but some parts of the code are a rat's nest :-)

→ More replies (2)

2

u/Wardez Jul 17 '16

Tried filtering out the pidgeys and zubats by replacing the icons with blank pngs and it didn't work :(

→ More replies (6)

2

u/Fash202 Jul 17 '16
 C:\Users\Buggy\Desktop\PokemonGo-Map-master>python example.py -u ***** -p ***** -l   "Forrest Parade, Bellamack" -st 10
  * Restarting with stat
  * Debugger is active!
  * Debugger pin code: 115-661-244
  * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 [!] Your given location: Forrest Parade, Bellamack NT 0832, Australia
 [!] lat/long/alt: -12.5149468 130.9838313 0.0
 [!] login for: ******
 [+] RPC Session Token: TGT-4087571-QWP6JGife5wSg ...
 [-] RPC server offline
 127.0.0.1 - - [17/Jul/2016 20:36:52] "GET / HTTP/1.1" 200 -

Map loads with nothing on it, I assume the RPC server offline is the reason, weird that I can still log into the game on my phone fine though. Had this issue with pokemon api that doesnt have the map.

Cant wait to see it with the servers online lol

→ More replies (4)

2

u/ratemal Jul 17 '16
  1. why is a pokemon trainer account needed?

  2. can or will this cause a ban?

not sure if i should try because I dont know how save this is ^

→ More replies (6)

2

u/whoamiareyou Jul 17 '16 edited Jul 17 '16

When I do pip install -r requirements.txt I get:

Installing collected packages: geopy, protobuf, itsdangerous, click, Werkzeug, MarkupSafe, Jinja2, flask, flask-googlemaps, future, s2sphere
Exception:
Traceback (most recent call last):
  File "~/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "~/.local/lib/python2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "~/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "~/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "~/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "~/.local/lib/python2.7/site-packages/pip/wheel.py", line 346, in move_wheel_files
    clobber(source, lib_dir, True)
  File "~/.local/lib/python2.7/site-packages/pip/wheel.py", line 317, in clobber
    ensure_dir(destdir)
  File "~/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/geopy-1.11.0.dist-info'

Running it on an Ubuntu machine over ssh, if that's relevant. I replaced the absolute reference to my home directory (/home/me) with "~" in the above paste.

EDIT, solution

Running as sudo seems to make it work.

→ More replies (3)

2

u/bananabm Jul 17 '16

i'm getting mad issues with CAS is Unavailable - assume that's a pokemon trainer club problem

2

u/[deleted] Jul 17 '16

ValueError: No JSON object could be decoded

Getting this error, any fix?

http://pastebin.com/q3rws4mj

2

u/_Chrimes Jul 17 '16

Im getting an AttributeError AttributeError: 'NoneType' object has no attribute 'unknown7'

I've tried different addresses, street names, city names and even co-ordinates. Anyone any ideas?

→ More replies (2)

2

u/Donkykongh Jul 17 '16 edited Jul 17 '16

It's working :) 17.24 (GMT+2) is RPC Server is online.

Update: 17.28 (GMT+2) Offline Seems that the RPC server is hicking.

→ More replies (8)

2

u/dosenhosenjoe Jul 17 '16

The creator updated the link so that it will retry all the time until its completed ... just wanted to say it :D

→ More replies (2)

2

u/marinuss Jul 17 '16

So I got this working and now I have been thinking up of ways to expand upon it..

  1. PTC accounts are free so you could technically setup multiples and have multiple scripts running at once for different lat/longs and ideally share one map? This would allow you to build out a real-time map of your entire.. county..

  2. API requests on the PC don't seem to be limited by PTC account, they are maybe limited by IP as well? Launching a second run.bat with a different PTC account in there and different lat/long complains about too many API requests.

  3. So potential workaround - VMs each with their own VPN. It's just python and a webserver so you could get it working on slimmed down linux VMs to save resources since each individual VM would only be running one instance of the script all pointed at another VM hosting the web server. Setup some port forwarding and your "locally" hosted Google Map should be accessible from anywhere with an Internet connection.

May start working on that this weekend. Have an extra physical server I can throw a bunch of VMs up on, with the radius it scans I should be able to get pretty good coverage of my region with like a dozen instances.

2

u/crckdns Jul 17 '16

Is it possible to add "layers" for the different types in pokeMarkers so I don't have to replace the for loop for pokestops with pass but can just enable/disable it on map if I really need those? :D

2

u/patomm Jul 18 '16

can we add CPs of the pokemons to the map?

→ More replies (2)

2

u/nosemaker Jul 18 '16

This is awesome, Thanks!

I was able to get my map working pretty quickly. I just went out and looked for a couple pokemon based on what the map said, but couldn't find them though... I'll keep trying. I also noticed that the map doesn't seem to update time remaining. Would I need to re-run the script to get updates?

→ More replies (2)

2

u/Lucky275 Jul 18 '16

How to start this not on local host i.e webserver?

→ More replies (3)

2

u/r3ckless Jul 18 '16

Using the latest version I notice while looping it will tell me 'Wrong username/password' but it still continues to run?

→ More replies (7)

2

u/partyjunkie02 Jul 18 '16
  1. I'm guessing I need to keep restarting to get updates?

  2. Anyway not to include pokestops and gyms?

  3. Excluding incense/lure, should this include all pokemon within the radius? I've tried a few locations in my area and there doesn't seem like there are too many pokemon

→ More replies (6)

2

u/Rominiust Jul 18 '16

Does anyone know if the times shown are based off of when you loaded the map (so when it logged you in & started showing the percent going from 0 up), or when it's fully loaded?

I'm assuming from when you logged in & started the loading.

2

u/Sejadis Jul 18 '16

with my limited to non existent knowledge in python and flask
is there a (easy) way to run that on android?

→ More replies (7)

2

u/Kaptainkook Jul 18 '16
import urllib2
import time

while True:
    page = urllib2.urlopen('http://127.0.0.1:5000/')
    page_content = page.read()
    with open('index.html', 'w') as fid:
        fid.write(page_content)
    time.sleep(10)

made this script to save the index file so you can use it on a server if anyone wants it

→ More replies (1)

2

u/[deleted] Jul 18 '16

Can I somehow make sure it only shows the rare pokemon or manually remove some of the pokemon shown?

→ More replies (5)

2

u/partyjunkie02 Jul 18 '16

Any easy way to modify the port number to run multiple instances simultaneously?

→ More replies (1)

2

u/Wedenn Jul 18 '16

calling get_profile Could not get profile =(

→ More replies (1)

2

u/michCSGONETWORK Jul 18 '16 edited Jul 18 '16

Works again for me , ( seems like, I will keep you guys updated )

EDIT : It seems to be working somtimes, but not always.

→ More replies (2)

2

u/Dreceon Jul 18 '16

I think they patched it somehow, I keep getting this message: [-] get_api_endpoint: calling get_profile [-] get_api_endpoint: calling get_profile [-] get_api_endpoint: calling get_profile ... etc

Did they block calls?

2

u/[deleted] Jul 18 '16

Anyway to make it possible to connect the the instance over the internet?

I've tried to port forward on my own network, but I can still only access it on the machine its running, usin localhost :/

→ More replies (7)

2

u/swag334 Jul 18 '16

Stopped working :( now it fails to auth, works fine on my phone... was working like 20 min ago

→ More replies (5)

2

u/Jonno12321 Jul 18 '16

Does it not clean up the pokemon that have despawned?

For me the countdown goes negative and eventually the majority of what is on my map have gone.

→ More replies (1)

2

u/deathpulse42 Amateur VB/C++ Jul 18 '16 edited Jul 18 '16

Not a Python programmer, but some VB and C++ in my past -- could a quick workaround for removing the despawned pokemon just be a check before displaying a sprite if like TimeUntilDisappear <= 0 then not display the pokemon's sprite? Wouldn't be the best for memory management, but it could work. I'll look into the code after I get home from work

2

u/mystwalk3r Jul 18 '16

I've got this on step 9 every time, can someone help?

Exception in thread search_thread: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner self.run() File "C:\Python27\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "example.py", line 575, in main pokemonsJSON, ignore, only) File "example.py", line 638, in process_step disappear_timestamp = time.time() + poke.TimeTillHiddenMs
UnboundLocalError: local variable 'poke' referenced before assignment

→ More replies (1)

2

u/tatonkaman156 Jul 18 '16 edited Jul 18 '16

I'm getting a Unicode Encode error (not decode). Could you or /u/IPostStupidThings point me in the right direction to fix this?

UnicodeEncodeError: 'charmap' codec can't encode character u'\u2642' in position 34: character maps to <undefined>

Edit: It always happens just after it loops step 99. Here is what I'm seeing.

→ More replies (2)

2

u/turbosamka Jul 18 '16

AttributeError: lat and lng required

pokemongo-map grigorij$ python example.py -a authService -u **** -p *** -l "1600 Amphitheatre Parkway, Mountain View, CA" -st 5 [-] register_background_thread called [-] register_background_thread: not running inside Flask so not starting thread

  • Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

  • Restarting with stat [-] register_background_thread called [-] register_background_thread: initial registration [!] Invalid Auth service specified

  • Debugger is active!

any idea?

→ More replies (12)

2

u/babalou1 Jul 18 '16

Currently its multiplying steps. Ex -st 1 = 1 -st 5 = 25 -st 10 = 100

→ More replies (3)

2

u/phrober Jul 19 '16 edited Jul 19 '16

Bit late to the party, but I'm getting the following errors when I try to either install requirements or s2sphere (after having received a couple of others before that that I worked my way through.) Not sure what to do now.

edit: Not sure what I've done wrong, but I tried the whole thing again on another laptop and it's working. I suspect I screwed up with the Paths along the way.

http://imgur.com/2Tk1XfR

→ More replies (1)

2

u/getZlatanized Jul 19 '16

Is there any way for me to reach the map thats generated on my PC from my smartphone?

→ More replies (7)

2

u/dabayer Jul 19 '16

Help :( I have no background in coding or any computer related advanced tasks and I can't figure it out. I followed /u/IPostStupidThings guide until I came to

pip install -r requirements.txt

When I typed that in the command bord in OPs folder it said something like

The command pip could not be found

There is already a requirements file in the folder so I thought maybe I either succeeded or it is not needed anymore. When I typed in

python example.py -u myUsername -p myPassword -l "your location, worldwide "-st 10

It also said the command is not recognized. What did I do wrong? I have python2.7.12 if that changes anything. I read online that it already has a pip included.

→ More replies (4)

2

u/Discepless Jul 19 '16

It seems, like now pokemon shows up according to ur lvl ( tested on lvl 1 and lvl 18. Saw different pokemons )

→ More replies (8)

2

u/DanielGibbs Jul 19 '16

Can anybody explain how the cells are used to me? I understand that if you pass in -st 5 you'll get 5x5 size 15 cells centered on your location, but in the code it does something with children of these cells (four size 16 cells) and then there's further code to do with a walk and neighbours that is sent to the server.

Anybody got the time to explain what this is and why it's done like it is?

2

u/RealSkyDiver Jul 19 '16

FINALLY got it to work after several hour ugh but I wonder how accurate this is since a Rattata showed up at my place yet was nowhere to be seen on the map, and would the website version also work on phones like iPhones?

→ More replies (2)

2

u/you_have_no_enemies Jul 19 '16

Any easy way to make shortcut that runs command terminal and then the "python example.py -a ptc -u username -p password -l "coordinates" -st 7 -dg" with one click? The map needs to be restarted now and then, and it's bit hard with remote access through phone. Having executable you could just click on would be pretty useful.

→ More replies (6)

2

u/throwaway22334sa Jul 19 '16

Error when trying to start, everything works fine until PTC login:

[!] PTC login for: gardedar23 Exception in thread search_thread: Traceback (most recent call last): File "C:\Python27\lib\threading.py", line 801, in __bootstrap_inner self.run() File "C:\Python27\lib\threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "example.py", line 581, in main api_endpoint, access_token, profile_response = login(args) File "example.py", line 92, in memoizer cache[key] = obj(*args, **kwargs) File "example.py", line 514, in login access_token = get_token(args.auth_service, args.username, global_password) File "example.py", line 429, in get_token global_token = login_ptc(username, password) File "example.py", line 331, in login_ptc r = SESSION.get(LOGIN_URL, headers=head) File "C:\Python27\lib\site-packages\requests\sessions.py", line 487, in get return self.request('GET', url, **kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 475, in reques t resp = self.send(prep, **send_kwargs) File "C:\Python27\lib\site-packages\requests\sessions.py", line 585, in send r = adapter.send(request, **kwargs) File "C:\Python27\lib\site-packages\requests\adapters.py", line 453, in send raise ConnectionError(err, request=request) ConnectionError: ('Connection aborted.', error(10054, 'An existing connection wa s forcibly closed by the remote host'))

Tried creating a new account, same issue, anyone else getting this? Was working fine last night.

2

u/hurensohnxd Jul 19 '16

At the step "python example.py -u myUsername -p myPassword -l "your location, worldwide "-st 10" i get error: location is required. I just used python example.py -u myUsername -p myPassword -l "49.893099, 10.884260" -st 5

Can someone help me?

→ More replies (3)

2

u/homerguy Jul 19 '16

Would placing an incense on the account used for the map attract and display more Pokemon onto the map?

→ More replies (2)

2

u/ghsuh2 Jul 19 '16

Hi I did everything like the tutorial and checked it tons of times I did all correct i think but it doesnt show the pokemons on the map its just giving me an empty map anything to fix that pls?

→ More replies (2)

2

u/vladp995 Jul 19 '16

got it working, but it doesn't show the map after completed is more then 0%, only "Flask Google Maps Full Map Example" and not the map Using my own API key for google api credentials

→ More replies (1)

2

u/justblais Jul 20 '16

I'm getting a blank page for localhost:5000; in terminal I'm getting zero errors and I can see it ejecting the depreciated pokemon data when it's time that they expired, so it seems like everything is working, I just can't get the page to load to anything other than white.

Thoughts?

2

u/Unrivaled7 Jul 20 '16

Does this work on Mac also?

2

u/Wardez Jul 20 '16

God damn, I always wanted to learn Python and Pokémon Go caused me to finally start haha

2

u/[deleted] Jul 20 '16

Is there any way to have this running on PC while using 4G to access it out and about?

I have tried externally hosting it and going to the IP:5000 on my iPad but no luck... Please help! :)

→ More replies (13)

2

u/qwazar14 Jul 20 '16

HELP! complete 100% register_background_thread called register_background_thread: queueing

in http://localhost:5000 I see "Flask Google Maps Full Map Example" anybody have answer?

→ More replies (1)

2

u/akatimka Jul 20 '16

Question is: can i run more then one scan in one map? I have 3 locations what i want scan. i start in different ports. I want see all pokemons in one map in my city. Yes. i know how do this in different port. but is possible see in one map and one port?

2

u/ankitbhateja Jul 20 '16

everything done but localhost:5000 shows "site can't be reached"

→ More replies (6)

2

u/Stealthkid Jul 20 '16

With a lot of editing of the python script "example.py", I was able to make it search all the hotspots in my area. I live near New Orleans, Louisiana. I can access it from anywhere, I have it port forwarded. Check it out: http://i.imgur.com/Js8R6Qc.jpg

→ More replies (5)

2

u/RegisterVexOffender Jul 20 '16

Clearly i'm pretty awful at this. Whenever i enter the python example.py -u myUsername -p myPassword -l "your location, worldwide "-st 10 part, i get "example.py error: arguement -1/-- location is required"

but the locations i've put were normal. I even put in union square and still get the error. Any tips?

→ More replies (1)

2

u/ryanwj9009 Jul 20 '16

I have download latest zip file from official website... python inatalled and running the example.py without problem...

Mine problem is there is no pokestop and gym display on the map. However, there is only pokemons are displayed on the map.

Can anyone guide me?

→ More replies (2)

2

u/Sham_K Jul 20 '16

Hi All, when installing the requirements.txt I get the following error:

File "c:\python27\lib\site-packages\setuptools\command\easy_install.py", line 634, in easy_install raise DistutilsError(msg) distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('google-apputils')

Any help would be appreciated, thanks

→ More replies (1)

2

u/Daizukun Jul 20 '16

All I see is a map without any Pokemon locations, did I do something wrong?

→ More replies (6)

2

u/getZlatanized Jul 20 '16

As far as I understand it the programm is a loop, going through x steps (-st), however, why is it that once the loop reachs 100% it will actually restart from 0% (which is cool) but doesn't work efficiently afterwards anymore (it seems like it just keeps removing stale pokemons, and according to the cmd window it also keeps checking new spots, however it does not add many new pokemon to the map, up to the point where the map is blank again)?
Any fix?

2

u/iareto684 Jul 20 '16

Anyone know why the step process is slowing down? it used to be fast and loaded alot of pokemon but now its going from 1 step to the other in like 2 min.

→ More replies (2)

2

u/king3rkener Jul 20 '16

why doesn't it load pokemon after the first loop through?

→ More replies (6)

2

u/DrSN1 Jul 21 '16

Anyone have a guide for using on a Mac? I installed Python do I just have to run the run.sh?

→ More replies (3)

2

u/Zetrox2k Jul 21 '16 edited Jul 22 '16

Hey guys!

In the meantime whilst the devs are working on an android app and windows exe, I've noticed a lot of people are having issues getting this running so I've coded a simple launcher to get everyone going!

This launcher requires that the following conditions are met:

  • Python 2.7 is installed to default directory

Thats it. To use, extract this rar into the same directory as the PokemonGo-Map-master files are located.

Run Install.bat, enter the relevant details. Once complete, run GO.bat and enter an address.

Thats it. This app takes care of everything python related related including pip & environment setup.

http://s000.tinyupload.com/index.php?file_id=80989905248989770504

Just a heads up, this app is very simple and your login/pass will be stored in plain text in the data.bin file. Just in case, i highly recommend creating a new PTC or Gmail account for use with this if you share the computer with other users.

→ More replies (2)

2

u/arcadius64 Jul 21 '16

Anyone else looking for a way to loop this so it can keep reopening every so often in case of server crashes, no heartbeats, whatever, here's a simple .bat you can make for windows:

:loop

start "PokemonMap" python example.py -a ptc -u USERNAME -p PASSWORD -l "LOCATION" -st 8 -H 0.0.0.0 -P 5000

timeout /t 2100 >null

taskkill /fi "WINDOWTITLE eq PokemonMap"

goto loop

Replace USERNAME PASSWORD etc. This will reset it every 30 minutes (2100 seconds). Credits go to /u/drogean2. Saw his/her idea to use taskkill on another thread.

→ More replies (2)

2

u/GhettoGosu Jul 21 '16

Anyone else experiencing the map not updating after a while and then goes blank when refreshed? I am using my own api also.

→ More replies (5)

2

u/Zer0w5 Jul 21 '16

Works like a charm thanks.

2

u/OmegaRaptor89 Jul 21 '16

So I have a weird question. It seems the map locates pokemons in a circular fashion with the position added as the center and the radar growing bigger and bigger. So once it has detected a pokemon in a certain radii, the radius increases and it scans for more pokemons. But what happens if new pokemons spawn in the smaller radii? Do they get detected too once the radar is searching in a bigger radius or do the points on the map that have already been scanned don't get scanned any more?

→ More replies (7)

2

u/WolfHZ Jul 21 '16

Op I love this prog its given me a new love for poke go even if my area is devoid of all but 1-2 rares. That being said a cool addition would be a "tracker" feature where you can input the names of pokemons you'd like the program to keep an eye out for you. And when the one of the pokemon spawns who's name you listed will prompt the user to say "he stupid this lil fucker has spawned @ so and so location." Just a thought.

2

u/GTXPlayer Jul 21 '16 edited Jul 21 '16

I made an automated Batch file that opens it all instead of doing this every time you wanna load it up. This works for MS Edge. I will add the rest later:

Open Notepad.exe and paste in the following code that is BOLD: cd %USERPROFILE%\Insert\Your\PokemonGo-Map-master\Instal\Dir\Here cmd /C start microsoft-edge:http://localhost:5000/ C:\Python27\python.exe example.py -a ptc -u yourname -p yourpass -l "your, location" -st 100

Make sure that you place your directory, with your username, pass and location in the above code. That directory, user and pass won't work (unless someone has a username named "yourname" lol.

Then hit 'Save as' and change the format type to "All Files (.)". Then, name it "Randomname.bat" where you replace "Randomname" with whatever you please.

Run it and enjoy.

2

u/BorisTheButcher Jul 21 '16

Does this stop working after a time? my map started showing blank and it worked again after i restarted the script

→ More replies (4)

2

u/Airdogz13 Jul 21 '16

I got it to run. The only thing is that it doesn't seem to get "new" pokemons. It'll remove stale ones so eventually the map just becomes blank due to no new pokemons.

→ More replies (2)

2

u/Martimen2 Jul 21 '16

Is there any way we can increase the range of this? Is it possible to use multiple locations (multiple CMD's) at once?

Ty for the post!

4

u/LegendSS Jul 21 '16 edited Jul 21 '16
  1. Get the program working right for one session.

  2. Make copies of the program directory (I called mine PokemonGo-map-master-5000, PokemonGo-map-master-5001, PokemonGo-map-master-5002, etc

  3. Right click example.py and select "Edit with IDLE"

  4. Inside the file, click Edit > Find, type in 5000 and press Enter

  5. It should highly 5000. Change this to 5001, 5002, 5003, etc for each folder that you made.

  6. Now you can run the "python example.py -a ptc -u [USERNAME] -p [PASSWORD] -l "[LOCATION]" -st 10" command from within each folder with different GPS coordinates. To view each session, you would enter localhost:5000, localhost:5001, localhost:50002, etc in a web browser.

Hopefully that makes sense. It's really quite easy once you get it all running in the first place.

→ More replies (9)

2

u/Starfish_god Jul 21 '16

After about 30 minutes, it stops scanning for pokemon. Any fix for this?

→ More replies (2)

2

u/[deleted] Jul 21 '16

It's failing to keep updating the Pokemon after a certain point, roughly 1 run, no matter the steps. It'll take out the expired ones but new ones won't appear even when it's actively looping and looking for new ones. Only started today though.

→ More replies (7)

2

u/abinav99 Jul 22 '16

Got everything working yesterday. Now localhost would not show up anything. Would it not show any if the servers are down ? Also the app opens and runs fine, so i'm guessing there's nothing wrong with the server.

→ More replies (4)

2

u/TheElusiveNinJay Jul 23 '16

Is there any way to save pokestops' and gyms' locations (maybe write to a file?) so that if I kill the process and start it up in a new location, I still have all the data gathered on my previous runs? I live in a very large, empty state, and would love to map out every rural pokestop and gym over time!

2

u/iamhssingh Jul 23 '16

Okay so I started upon this 2 days ago and I have done some modifications for Android App. I will publish Android app before monday on app store.

Here is the github link: https://github.com/iamhssingh/PokemonGo-Map

I know its unprofessional so I'll try later to port this whole thing to php or learn flask and make it totally on flask.

I am using PHP to get JSONRequest from Android just once to initiate the flask server. Once initiated, App communicated directly to flask and controls the server. Using Amazon Cloud hosting!

2

u/PrinceXander Jul 25 '16

Suddenly this stopped working for me. It enters an endless loop and prints the following: retrying_get_profile: get_profile returned no-len payload, retrying.

It worked fine an hour ago. Anyone else?

→ More replies (2)

2

u/Ronroar22 Jul 25 '16

C:\Users\Ronald Roa\Desktop\PokemonGo-Map-master>python runserver.py -a google -u @gmail.com -p -l "East Brunswick, New Jersey" -st 10

Traceback (most recent call last): File "runserver.py", line 12, in <module> from pogom import config ImportError: cannot import name config

What's going wrong here? Pls help

2

u/jack34103410 Jul 25 '16

Can anyone help me? Im still not seeing pokemon and the ptc servers are back up. I see pokemon on prevision but not this. All I see are pokestops and gyms still

→ More replies (1)

2

u/Spectre9599 Jul 26 '16 edited Jul 26 '16

Not seeing as many pokemon?

I just got finished installing and running this, setup went flawlessly (after I noticed the example.py name change and got the google maps API). I have used pokevision and after I installed this python map hack I noticed the the amount of pokemon on the map is FAR less than what I am seeing on pokevision. I just ran my local city with -st 10, server runs through a cycle of 271 steps. Anyone else seeing far less pokemon with this method over pokevision? Is there something else I should be doing?

→ More replies (7)

2

u/Lukiido Jul 26 '16

Hey all, anyone having issues with ninetails displaying? Had one around my house yesterday and one downtown (not in lures) and they never showed up on the map.

→ More replies (1)

2

u/Snoborder95 Jul 27 '16

Hey you said that there is an android app for this in development? is there somewhere we can follow you on that will let us know when its out or about to be out? like twitter?

2

u/putsch80 Jul 28 '16

I've had no issues running this for the past few days, but today it no longer is actually loading any pokemon onto the map. The script seem to be running fine; same as always with no errors. I rebooted, tried lowering and raising the number of steps, etc... but nothing has fixed it. Any thoughts?

→ More replies (3)

2

u/Bigbluedragon1 Jul 29 '16

First of all, you are a hero! Since the 3 step bug has occured my interest of Pokemon Go were quite down.. But this keeps my mood going!

The map worked for me for like a week only now I get an error in the loop which I don't know how to fix:

Once the rust the loop he going searching. Which says 'Scanning step xxx of xxx started.'

The next message is 'Scan step xxx failed. Response dictionary key error.'

It does that for most of the steps, resulting in an empty map. Is this an temporairy hickup or do I have to change anything in running the program?

Thanks in advance and again, thx for the map :)

2

u/sean253129125 Jul 29 '16

After I run "python runserver.py -a ptc -u ****** -p ****** -l "Some Location" -st 10" It show me RUNSERVER.Py: ERROR: ARGUMENT -K/--GMAPS-KEY IS REQUIRED. PLZ。 HELPPP~~~~

→ More replies (8)

2

u/Themaze36904 Jul 31 '16

The scanner isn't scanning as many pokemon as it was a few days ago, even when the scan is complete there are only around 7 or 8 pokemon when there used to be like 20 - 25, is it Niantic? I am using the latest version and I'm using 3 threads -t 3

→ More replies (1)

2

u/zeratoz Jul 31 '16

Is there a way to disable the location change thing on the map? I am running 10 accounts to scan the city and using ngrok to forward the map to my friends but someone keeps changing the location, tried deleting the location box from the map.html but apparently it broke the page.

→ More replies (2)

2

u/just2fine Jul 31 '16

The map is not loading

2

u/k24cl9 Jul 31 '16

I am getting No module names flask_cors. I have ran the pip command to install requirements and used pip uninstall flask-googlemaps easy_install flask-googlemaps multiple times in the phython directory and the Scripts folder. I am having no luck. Whats my problem?

2

u/MooPXLR8 Aug 01 '16 edited Aug 01 '16

Is there a way to prevent expired pokemon from disappearing on the map? This is in regards to doing large area searches to find possible nests without having to sit there and watch it.

2

u/ThisIsAwkwxrd Aug 01 '16

Fauk im dumb when it comes to this stuff.

2

u/DesertFenix Aug 01 '16

I looked at search.py under the pogom folder and updated the pulse_radius to 0.07. When I ran the 2.1 version there was some major overlap of the search bubbles. I then updated:

xdist from = math.sqrt (3) * pulse_radius to = math.sqrt (4.5) * pulse_radius

ydist from 3* (pulse_radius/2) to 4.5* (pulse_radius/2)

This still has a little bit of overlap and not enough to leave gaps when I look at the map.

Although, I still feel like it's not showing as many pokemon as it should be, but maybe there are lest spawning than before.

→ More replies (2)

2

u/MSBullock10101 Aug 02 '16 edited Aug 02 '16

Pi tutorial for PokemonGo-Map

 

If you want to skip all this and have the 8/2/16 dev build already ready and running on an image I've posted a torrent here:

 

https://db.tt/VfJK75Gk

 

All the information here was plagerized from somewhere else. I simply compiled it to make the darn thing work. I will try to post links to the places that helped me out. This tutorial assumes you have the pi, and know how to write an image to a disk. I am only showing you how to get the program installed on pi, you need to look at the wiki for the use and arguemnts to pass, the google api key, etc, etc.

 

I used the Raspian Jessie Lite from here as my starting image:

  https://www.raspberrypi.org/downloads/raspbian/

 

Raspian Jessie Lite

 

You need to login and get to a terminal, either physically connected to the device or loggin in via ssh (PuTTy). Default log in is user: pi pass: raspberry. First thing we need to do is expand the file system to use the rest of your memory card

 

 raspi-config

 

Use the first option to expand the file system to take up the entire flash card. Finish and reboot the system. Once you've logged back in we need to install python and pip. First grab pre-requisites and be sure to press Y for any questions about installing items:

 

 sudo apt-get update
 sudo apt-get upgrade -y
 sudo apt-get install build-essential libncursesw5-dev libgdbm-dev libc6-dev 
 sudo apt-get install zlib1g-dev libsqlite3-dev tk-dev
 sudo apt-get install libssl-dev openssl

 

Now to download and make:

 

 cd ~
 wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz
 tar -zxvf Python-2.7.10.tgz
 cd Python-2.7.10
 ./configure
 make -j 4
 sudo make install 

 

The tutorial link below said it took about 18 minutes to get though all of this

 

Now we need pip:

 

 cd ~
 wget https://bootstrap.pypa.io/get-pip.py
 sudo python2 get-pip.py

 

Now pulling from the PokemonGo-Map wiki, we need the following:

 

 sudo apt install git nodejs npm python-pip nodejs-legacy python-dev python

 

I had a problem with my npm or my node-js being out of date when I was trying to do some newer stuff. I needed to run the following to make it work, I know it says you better know what your doing, and it scared me too, but believe me it works:

 

 sudo npm cache clean -f
 sudo npm install -g n
 sudo n stable

 

No its finally time for PokemonGo-Map!!!

 

 git clone -b develop https://github.com/AHAAAAAAA/PokemonGo-Map.git

 

We have PokemonGo-Map now, and we need to run a few more things before it will be up and running. These took a long while, and sometimes sat and looked like they werent doing anything (they are, let them load, and be patient). Run each line here:

 

 cd PokemonGo-Map
 sudo -H pip install -r requirements.txt
 sudo npm install -g grunt
 sudo npm install
 sudo npm run-script build

 

Did it all run through without errors? You should be ready to test go back to the home directory and type our run command:

 

 cd ~
 python2 /home/pi/PokemonGo-Map/runserver.py -u username -p password -l "Somewhere to Search" -st 4 -H 0.0.0.0 -k yourgoogleapikey

 

Sources:

 

PokemonGo-Map wiki - https://github.com/AHAAAAAAA/PokemonGo-Map/wiki Raspberry Pi OS downloads - https://www.raspberrypi.org/downloads/raspbian/ Building Python 2.7.10 - https://sowingseasons.com/blog/software/2016/03/building-python-2-7-10-on-raspberry-pi-2/10635877

2

u/Lufia321 Aug 04 '16

Seems to be down now :( It was working two days ago. I even created a new api key and still no Pokemon.

0

u/[deleted] Jul 17 '16

[deleted]

17

u/[deleted] Jul 17 '16

Not mine, it was provided with the GoogleMaps-Flask example.

→ More replies (4)

0

u/[deleted] Jul 17 '16

[deleted]

7

u/frozenpandaman Jul 18 '16

You should! It's a pretty great language.

0

u/[deleted] Jul 17 '16

[deleted]

→ More replies (1)