Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot with web Map APi #2040

Closed
lelbo opened this issue Jul 31, 2016 · 16 comments
Closed

Bot with web Map APi #2040

lelbo opened this issue Jul 31, 2016 · 16 comments

Comments

@lelbo
Copy link

lelbo commented Jul 31, 2016

Hello All

I have install this bot and work great in my shell (terminal)
but after run httpsimple server in /botfolder/web/
but in 127.0.0.1:8000 no view my profil

tank you

@mrthrowaway
Copy link

Its port 8000 by default. not 80000 (one less zero)

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

error typine

@mrthrowaway
Copy link

do you get any output with the httpsimpleserver command?

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

i m go this for the moment
http://pastebin.com/8f4k2irJ

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

MacBook-de-Michael:web mica$
MacBook-de-Michael:web mica$ python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [31/Jul/2016 12:53:42] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 12:53:42] "GET /main.js HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 12:53:42] "GET /main.css HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 12:53:42] "GET /userdata.js HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:48] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:48] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:51] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:51] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:51] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:51] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:51] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:51] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:51] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:51] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:53] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:53] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:54] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:54] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:54] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:54] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:54] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:54] "GET /inventory-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:55] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:55] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:56] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:56] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:56] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:56] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:57] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:57] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:57] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:57] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /catchable-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /location-lelbo.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 12:53:58] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 12:53:58] "GET /catchable-lelbo.json HTTP/1.1" 404 -
^CTraceback (most recent call last):
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 235, in
test()
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SimpleHTTPServer.py", line 231, in test
BaseHTTPServer.test(HandlerClass, ServerClass)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/BaseHTTPServer.py", line 610, in test
httpd.serve_forever()
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 231, in serve_forever
poll_interval)
File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/SocketServer.py", line 150, in _eintr_retry
return func(*args)
KeyboardInterrupt

@mrthrowaway
Copy link

Is your bot running while this happens? And the web directory is inside the bot directory.

The bot will create the files you're getting 404 error for

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

Bot working great :

[2016-07-31 12:59:54] [x] Using Greatball (chance: 46.80%)... (111 left!)
[2016-07-31 12:59:55] [-] Attempted to capture Weedle- failed.. trying again!
[2016-07-31 12:59:58] [x] Using Greatball (chance: 46.80%)... (110 left!)
[2016-07-31 12:59:59] [x] Captured Weedle! [CP 202] [IV 0.38]
[2016-07-31 12:59:59] [x] Captured Weedle! [CP 202]

i have just clone repostery of bot

i have /folderBot/web/

i have just edit userdata with my google api login.

error in server shell
127.0.0.1 - - [31/Jul/2016 13:01:57] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 13:01:57] code 404, message File not found

@mrthrowaway
Copy link

So the bot is in /folderBot/ and the web map is in /folderBot/web?

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

11

@LasseSkogland
Copy link

It seems like you have set the wrong username in userdata.js
Look at inventory-USERNAME.json file
You need that exact username or the it won't work.

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

name of user api ?

@LasseSkogland
Copy link

It's most likely your email address, the same you have in your config.json file for the bot.

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

Ok now i m view pokemon catched on me in map but no view here i m me ? my possitions
and other error
ul/2016 13:39:59] "GET /catchable-micacatt@gmail.com.json?v=1469965199436 HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 13:40:00] "GET /inventory-micacatt@gmail.com.json?v=1469965200165 HTTP/1.1" 200 -
127.0.0.1 - - [31/Jul/2016 13:40:00] code 404, message File not found
127.0.0.1 - - [31/Jul/2016 13:40:00] "GET /location-micacatt@gmail.com.json?v=1469965200165 HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 13:40:00] "GET /catchable-micacatt@gmail.com.json?v=1469965200166 HTTP/1.1" 200 -

@LasseSkogland
Copy link

LasseSkogland commented Jul 31, 2016

Seems like your location-micacatt@gmail.com.json file does not exists, thus no location on map.
Might be some buggy code in the bot.

@lelbo
Copy link
Author

lelbo commented Jul 31, 2016

Ok now i m view Bag/ Xp/hours .... but no locations how to repair this ?
tank you for your Help :)
404, message File not found
127.0.0.1 - - [31/Jul/2016 13:45:39] "GET /location-micacatt@gmail.com.json HTTP/1.1" 404 -
127.0.0.1 - - [31/Jul/2016 13:45:39] "GET /catchable-micacatt@gmail.com.json HTTP/1.1" 200 -
1

@buettner123
Copy link

just create the file location-micacatt@gmail.com.json in the web folder and put in {}

@lelbo lelbo closed this as completed Jul 31, 2016
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
hoanghuynh pushed a commit to hoanghuynh/PokemonGo-Bot that referenced this issue Sep 28, 2016
* show pokemon icon in select2 elements

* vertical-align class

* Add support for arbitrary pokemon sprites (PokemonGoF#1886)

* Add support for arbitrary pokemon sprites

* Use var instead of let

* Fix indentation

* Update select box listener for newer code

* Auto-resize icons depending on zoom depth

* Fix indentation

* Make icon cropping less aggressive, as it's only due to rounding errors

* Merged in changes from master README

* use sprite with css classes (not tested yet)

* better like this.

* resize + vertical align

* Add geolocation capability to mobile route (PokemonGoF#1687)

* Allow client to specify location of origin

* Conditionally get device's location for mobile route

* Reset app.min.js as it didn't change

* Add dynamic countdown timer and names

* Fix lured Pokéstops (PokemonGoF#1943)

* Update README.md

* easy-setup.sh: updates and cleanup (PokemonGoF#1836)

* easy-setup.sh: updates and cleanup

  - Check for debain based OS otherwise quit.
  - Use already bundled get-pip.py over debian's.
  - Use sudo in commands instead of exiting.
  - Be a little smarter with the creation of credentials.
  - Be more verbose for the user.
  - Declare script as shell script
  - Give script executable permissions.

* easy-setup.sh: remove sudo from pip

* fixed retrieving and storing values in localStorage (PokemonGoF#1694)

* Changed gym icons into shields/badges (PokemonGoF#1946)

* Changed gym icons into shields/badges

* Added Harmony as gym shield/badge

* Revert "Fix lured Pokéstops" (PokemonGoF#2033)

* Loading pokemons hangs, when Notification is not supported in browser (PokemonGoF#1985)

* Add Id to dropdown. (PokemonGoF#1958)

* Fix pokemon filter dropdown (PokemonGoF#2042)

* value was removed in AHAAAAAAA/PokemonGo-Map@b4c36a5

* Skip notification when merely redrawing existing pokemon (PokemonGoF#2017)

* Fix order of loading map.js and the map api (PokemonGoF#2043)

* Let's load map.js first. The callback for the api requires initMap
  to be defined or things break.
* Furthermore, defer, but don't async, the api call so we're sure
  everything is ready to go before it fires.

* Doesn't hammer the server when map download fails. (PokemonGoF#2040)

* Higher navbar (PokemonGoF#1515) (PokemonGoF#2050)

* Update main.css

* Update app.min.css

* Update _nav.scss


Rebase of PokemonGoF#1515

* Fix up this configuration mess (PokemonGoF#2021)

* Kill credentials.json with fire
* Match up our command line options with config.ini options
* Switch to ConfigArgParser to make the task of overriding
  config.ini options via command line parameters easier
* This provides a much easier long-term method of maintaining
  config/argument options

* Travis tests (PokemonGoF#2056)

* Travis tests

* Amended script tests per Chlodochar's suggestion

* Remove lured pokemon toggle (PokemonGoF#1995)

Remove lured pokemon toggle, fix pokestop with no lured pokemon

* Fix missing bracket

* Revert "Higher navbar (PokemonGoF#1515) (PokemonGoF#2050)" (PokemonGoF#2082)

There were problems with scrolling in the sidebar

* removed app.min.js and app.min.css as they are gitignored (PokemonGoF#2034)

* Fixes BOM marker with setup.bat on Windows (PokemonGoF#2108)

Currently, the Out-File PowerShell Cmdlet breaks config.ini by turning it into a Little Endian UTF-16 file, in turn breaking the script.
Replaced the Out-File Cmdlet with a python in-line replace of a file (I mean, we already have python, so why not make full use of it...?)

* Revert "removed app.min.js and app.min.css as they are gitignored" (PokemonGoF#2114)

* Update config.ini.example (PokemonGoF#2149)

Spelling error correction.

* outsource sprite css

* show pokemon icon in select2 elements

* vertical-align class

* use sprite with css classes (not tested yet)

* better like this.

* resize + vertical align

* outsource sprite css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants