├── location.gpx
├── requirements.txt
├── assets
└── shot.png
├── static
└── pokeball.png
├── update.applescript
├── readme.md
├── pokemap.py
├── .gitignore
└── templates
└── map.html
/location.gpx:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | flask
2 |
--------------------------------------------------------------------------------
/assets/shot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhkz/pokemon-go-keyboard/HEAD/assets/shot.png
--------------------------------------------------------------------------------
/static/pokeball.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/xhkz/pokemon-go-keyboard/HEAD/static/pokeball.png
--------------------------------------------------------------------------------
/update.applescript:
--------------------------------------------------------------------------------
1 | tell application "System Events" to tell process "Xcode"
2 | click menu item "location" of menu 1 of menu item "Simulate Location" of menu 1 of menu bar item "Debug" of menu bar 1
3 | if exists (sheet 1 of window 1) then
4 | click (button "OK" of sheet 1 of window 1)
5 | end if
6 | end tell
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # Pokemon Go Keyboard
2 |
3 | Play Pokemon Go with your keyboard in a browser
4 |
5 | ### Reverted to initial version and stopped update
6 |
7 | 
8 |
9 | Environment
10 | ------------
11 | - Python 2 or 3
12 | - Xcode 7
13 |
14 | Usage
15 | ------------
16 | ```bash
17 | 1. Create new Xcode project with Single View Application (or any one you like)
18 | 2. Run the app on the phone that runs Pokemon Go
19 | 3. Xcode menu -> Debug -> Simulate Location -> add GPX File to Project,
20 | add location.gpx to it and click location option.
21 | 4. cd path-to-clone
22 | 5. [sudo] pip install -r requirements.txt
23 | 6. ./pokemap.py
24 | 7. Drag the marker or use your arrow keys to simulate your location
25 | ```
26 |
27 | Credits
28 | ------------
29 | [AbelIngrand](https://github.com/AbelIngrand)
30 |
31 | [dobiedad](https://github.com/dobiedad)
32 |
33 | [Pokemon-Go-Controller](https://github.com/kahopoon/Pokemon-Go-Controller)
34 |
35 | [PokemonGo-Map](https://github.com/AHAAAAAAA/PokemonGo-Map)
36 |
--------------------------------------------------------------------------------
/pokemap.py:
--------------------------------------------------------------------------------
1 | #! /usr/bin/python
2 | import os
3 | import argparse
4 | from threading import Lock
5 |
6 | from flask import Flask, render_template, request
7 |
8 | app = Flask(__name__)
9 | lock = Lock()
10 |
11 |
12 | @app.route('/')
13 | def poke_map():
14 | return render_template('map.html')
15 |
16 |
17 | @app.route('/pos')
18 | def get_pos():
19 | lat = request.args.get('lat')
20 | lng = request.args.get('lng')
21 |
22 | # ignore positions during writing location file
23 | if not lock.locked():
24 | gpx_gen(lat, lng)
25 |
26 | return "OK"
27 |
28 |
29 | def gpx_gen(lat, lng):
30 | with lock:
31 | with open('location.gpx', 'w') as location:
32 | location.write('