@deadmarine:
I didn't looked @ your Code, but you could add the following to support Google Accounts:
Add Google Auth:
Make sure you add "service" to the following lines:Code:// https://github.com/simon-weber/gpsoauth/tree/master/gpsoauth from gpsoauth import perform_master_login, perform_oauth ANDROID_ID = '9774d56d682e549c' SERVICE= 'audience:server:client_id:848232511240-7so421jotr2609rmqakceuu1luuq0ptb.apps.googleusercontent.com' APP = 'com.nianticlabs.pokemongo' CLIENT_SIG = '321187995bc7cdc2b5fc91b11a96e2baa8602c62' def login_google(username, password): print('[!] Google login for: {}'.format(username)) r1 = perform_master_login(username, password, ANDROID_ID) r2 = perform_oauth(username, r1.get('Token', ''), ANDROID_ID, SERVICE, APP, CLIENT_SIG) return r2.get('Auth') # access token
After that, check if the Username contains a "@" character and if so,Code:def api_req(service, api_endpoint, access_token, req): p_req.auth.provider = service def get_api_endpoint(service, access_token): p_ret = api_req(service, API_URL, access_token, req.requests) def get_profile(service, api_endpoint, access_token): return api_req(service, api_endpoint, access_token, req.requests)
use "google" for auth instead of "ptc" :3
The Automap is updating but my position is going north. I doesn't update around me.
Any line to modify to change that?
Thanks for this great tool! It works great.
Any ideas how to use it with my server? I mean i got the website and I wanted to post the map itself on the website. Any ideas? I know the pc will be running all the time, but it's not a problem.
Yes that is my point. That is why his bat2 is crashing. It works if you follow the instructions only it keeps getting north instead of circulating around my location, as you said.
it doesn't display on the map, i get to see the whole world map to...
this is what i get:
C:\pokemongo-api-demo>"C:\Python27\python.exe" -m SimpleHTTPServer 8000
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [17/Jul/2016 20:25:47] code 404, message File not found
127.0.0.1 - - [17/Jul/2016 20:25:47] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [17/Jul/2016 20:28:38] code 404, message File not found
127.0.0.1 - - [17/Jul/2016 20:28:38] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [17/Jul/2016 20:31:41] "GET /index.html HTTP/1.1" 200 -
Evreything seems to be working, it prints pokemon locations to the CMD. The map however doesnt seem to work. The website opens and goes to http://127.0.0.1:8000/index.html. I updated the HTML file with yours (from page 1, hide options).
The servers are down, you can see in bat2 what is happening.
Amazing script. Thank you