Guest User

Pokemon Go Scanner Timeout PowerShell Workaround - v1.2

a guest
Jul 21st, 2016
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NOTE: THIS IS A POWERSHELL SCRIPT, AND AS SUCH, WILL ONLY WORK IN THE MICROSOFT WINDOWS OPERATING SYSTEM. I've never used Python before, but I'll try to learn it to publish an OS independent workaround if the issue isn't fixed soon.
  2. 1. Open your Start menu, type in "PowerShell ISE" and open the program it brings up.
  3. 2. Click on "View" at the top of the window. Make sure "Show Script Pane" is checked.
  4. 3. Copy/paste this into the white part:
  5.  
  6. While ($True) {
  7. $Job = Start-Job -Name "Workaround" -ScriptBlock {
  8. CD C:\Users\YourProfile\PathToScannerFolder
  9. Python example.py -u USERNAME -p PASSWORD -l "38.897781, -77.036541" -st 5}
  10. Start-Sleep -s 300
  11. Stop-Job $Job
  12. }
  13.  
  14. 4. Replace the path in the line beginning with CD C:\ with the actual path to the folder you have the scanner in.
  15. 5. Replace the words USERNAME and PASSWORD with the credentials for your dummy account.
  16. 6. Replace the coordinates with the location you want to scan.
  17. 7. Replace the number 5 (a modifier for how far the scanner scans) with a different number, if desired.
  18. 8. Replace 300 with the number of seconds you want the scanner to scan for before starting over.
  19. 9. Click the green, triangular play button at the top of the screen to start the program running. It will run indefinitely until you stop it.
  20. 10. You can now open the browser of your choice and go to localhost:5000, as usual. You can also start running ngrok at this point. See below if you wish to do so.
  21. 11. To stop it, click the red, square stop button.
  22. 12. After you stop it, make sure the jobs actually close by typing in "Stop-Job Workaround" in the dark blue section, then pressing Enter.
  23.  
  24. ngrok is a neat little application that will let you see the map you generated in the above steps on your phone or any other device.
  25. 1. Go to https://ngrok.com/download
  26. 2. Download the version that corresponds to your operating system. In this case, if you just ran the above script, it will be some variation of Windows.
  27. 3. Extract the .zip file it downloads.
  28. 4. Open the folder containing the folder it just extracted (for me, it was called ngrok-stable-windows-amd64), and Shift+Right Click on it.
  29. 5. Click "Open command window here"
  30. 6. A command prompt will appear. Type in: ngrok http 5000
  31. 7. Press Enter.
  32. 8. A URL will be generated if all is successful. Put that URL in your phone's browser while the Python/PowerShell script is running. Leave that command window open until you're done using the map on your phone. Once you're done, you can close it.
Advertisement
Add Comment
Please, Sign In to add comment