Turn your PocketC.H.I.P. into a Pokémon tracking device and go catch ’em all!
The tutorial uses code written by AHAAAAAAA, which you can find here. And NTC’s very own Crunch wrote up a nice little script to automate the installation for you.
Happy hacking and Pokémon hunting!
Open the Terminal application on the PocketC.H.I.P. home screen and type the following command, then press enter.
wget -O install.sh http://bit.ly/29XOzba
Note: Here’s what’s in our install script, which calls this one too.
chmod +x ./install.sh
You should set up a new Pokémon account just for the project! Seriously, setup a new account just for this project.
Once you have the new account, type in the two command belows. In the second command, replace the USER and PASSWORD with your Pokémon credentials and LONGITUDE LATITUDE of location you’re looking for Pokémon in.
python example.py -a ptc -u USER -p PASSWORD -l "LONGITUDE LATITUDE" -st 10
Note: Looking up the longitude and latitude of your location is pretty easy using most search engines. I searched for “West Oakland BART longitude and latitude”, which I input as -l “37.8049 -122.2951”.
Press the plus icon in the top-left corner of the terminal to get a new tab. Then run the following command to start the map client.
Assuming everything went well, you’ll see a Google Map with tons and tons of catchable Pokémon.
Tip: You can refresh the map by pressing CTRL+R
There are plenty of fun ways to take this project even further. Consider adding a home screen icon that launches the tracker. Connect PocketC.H.I.P. to it your phone’s WiFi to keep the map current while you’re on the go. Or even print a custom 3D enclosure for PocketC.H.I.P. using your team’s logo and colors.