Pokemon-Go-Controller icon indicating copy to clipboard operation
Pokemon-Go-Controller copied to clipboard

GPX File

Open Jonathanwb opened this issue 8 years ago • 10 comments

I'm not quite sure what needs to be in the GPX file, are we supposed to put

"{"lng":"114.132530212402","lat":"22.3636264801025"}" This inside, or make a new .gpx somehow?

Jonathanwb avatar Jul 12 '16 20:07 Jonathanwb

no. you can either use a gpx file for directions from point A to point B, or for one specific location I believe. I'm not an expert on this, but I used http://gpx-poi.com It creates a gpx.txt file for you based on the information you give it for the location. The "file name" is what you put in that space. So I renamed mine "PokemonLocation.gpx" and that's what I use, which is basically my home address. Remember to remove the .txt in the file name so it converts to a gpx file format.

brendanvu1 avatar Jul 12 '16 21:07 brendanvu1

Yeah but the Pokemon Controller isnt editing that file, for whatever reason for me

Jonathanwb avatar Jul 12 '16 21:07 Jonathanwb

Oh yeah same for me. I posted something earlier today in regards to that in one of the other issue forums

brendanvu1 avatar Jul 12 '16 21:07 brendanvu1

I honestly don't know how to proceed from where I'm at

brendanvu1 avatar Jul 12 '16 21:07 brendanvu1

so how do we fix this? im stuck on this part

g3crossfire avatar Jul 13 '16 13:07 g3crossfire

Im stuck too

devmustache avatar Jul 13 '16 16:07 devmustache

Put your controller's ip in the "readAndChangeXML" file, then run this file in terminal. If you see the terminal updates the lng & lat, you should be good. GPX file will update itself.

ldminh94 avatar Jul 13 '16 18:07 ldminh94

When i run "readAndChangeXML" i get this....

MacBook-Pro:Pokemon-Go-Controller gavinsaunders$ ./readAndChangeXML.py ./readAndChangeXML.py: line 1: import: command not found ./readAndChangeXML.py: line 2: import: command not found ./readAndChangeXML.py: line 3: import: command not found ./readAndChangeXML.py: line 5: lastLat: command not found ./readAndChangeXML.py: line 6: lastLng: command not found ./readAndChangeXML.py: line 8: syntax error near unexpected token (' ./readAndChangeXML.py: line 8:def getPokemonLocation():'

g3crossfire avatar Jul 13 '16 20:07 g3crossfire

@g3crossfire It's a python script, thus, you need to run it with python: python readAndChangeXML.py

EmDee avatar Jul 14 '16 23:07 EmDee

  1. You have to install PokemonController onto a device.
  2. Connect it using wifi
  3. Get the ip address of the device running PokemonController Wifi > Info > Ip address
  4. Edit readAndChangeXML.py to the ip address you scribbled down
  5. Do the same of autoclick.py
  6. Run readAndChangeXML.py, next run autoclick.py

JensDebergh avatar Jul 19 '16 12:07 JensDebergh