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

How to use web ui ? #5209

Closed
lusherlo opened this issue Sep 5, 2016 · 13 comments
Closed

How to use web ui ? #5209

lusherlo opened this issue Sep 5, 2016 · 13 comments

Comments

@lusherlo
Copy link

lusherlo commented Sep 5, 2016

Expected Behavior

Actual Behavior

Your FULL config.json (remove your username, password, gmapkey and any other private info)

Output when issue occurred

Steps to Reproduce

Other Information

OS:

Branch:

Git Commit:

Python Version:

Any other relevant files/configs (eg: path files)

Short Description

Possible solution

How it would help others

@Darkayer
Copy link

Darkayer commented Sep 5, 2016

Can you provide a little bit more information according to your question?
What is the problem you're running in to?

@lusherlo
Copy link
Author

lusherlo commented Sep 5, 2016

sorry I am a newbie .?
How to start web UI bot in linux

@KingTheRipper
Copy link

KingTheRipper commented Sep 5, 2016

Hi newbie ;P

First you have to install a Simple HTTP server here:
http://www.tecmint.com/python-simplehttpserver-to-create-webserver-or-serve-files-instantly/

After that setup your config file in a WEB folder > config > userdata.js.example (Clone and remove .example):

var userInfo = {
    users: ["YOUR_USER_NAME_HERE"],
    userZoom: true,
    zoom: 16,
    userFollow: true,
    gMapsAPIKey: "YOUR_API_KEY_HERE"
};

Open your terminal and send a commad:

cd PokemonGo-Bot/web
python -m SimpleHTTPServer

Open up your browser to http://localhost:8000/
and Enjoy!

For any questions about UI Web is not here, you can asking to a web repository:
https://github.com/PokemonGoF/PokemonGo-Web

@avexus
Copy link

avexus commented Sep 5, 2016

@KingTheRipper I am new to this too. After following your instruction, I got this:
code 404, message File not found
"GET /Catchable-xxx.json HTTP/1.1" 404
error. I don't know how to copy the message from my cmd on Windows to here

@Darkayer
Copy link

Darkayer commented Sep 5, 2016

Is your bot allready Running?? Normally the bot should make 3 files in your /web directory. location-USERNAME.json, catchable-USERNAME.json and inventory-USERNAME.json. Did you fill in the right username in the userdate.json file?

@BarrieG14
Copy link

I am getting a similar error:
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [05/Sep/2016 20:34:01] "GET /config/userdata.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 20:43:06] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 20:43:06] "GET /config/userdata.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 20:43:22] "GET / HTTP/1.1" 200 -

My userdata.js has:
var userInfo = {
users: ["MyName"],
userZoom: true,
zoom: 16,
userFollow: true,
gMapsAPIKey: "mykey"
};

@Gobberwart
Copy link
Contributor

@BarrieG14 they're not errors. What you're seeing is a request for a file with a 200 (success) result

@lytesout2376
Copy link

lytesout2376 commented Sep 5, 2016

I'm also having problems getting the web ui to work. I've followed all of the above instructions. It seems like the localhost server is serving up the page, however I get a white screen with only one button: "Settings". When I click on settings I see "Pan", "Zoom", "Bot Path" and "Logs". The first three have toggle sliders and "Logs" has a "Logs" button in blue. They react to my clicks but nothing happens. No map and no user menu. I've had this web ui work previously. I am not sure what is causing this. Yes userdata.js is filled out including a gmaps key. I do have catchable, location and inventory (.json). Any assistance would be appreciated. Thanks!

Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [05/Sep/2016 14:04:10] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 14:04:10] code 404, message File not found
127.0.0.1 - - [05/Sep/2016 14:04:10] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [05/Sep/2016 14:04:12] "GET /PokemonGo-Bot/ HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 14:04:15] "GET /PokemonGo-Bot/web/ HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 14:04:15] "GET /PokemonGo-Bot/web/config/userdata.js HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 14:04:15] "GET /PokemonGo-Bot/web/css/main.css HTTP/1.1" 200 -
127.0.0.1 - - [05/Sep/2016 14:04:15] "GET /PokemonGo-Bot/web/js/main.js HTTP/1.1" 200 -

userdata.js:

var userInfo = {
users: ["myPGusername"],
userZoom: true,
zoom: 16,
userFollow: true,
gMapsAPIKey: "myGMAPSkey"
};

screen shot 2016-09-05 at 2 16 43 pm

@Gobberwart
Copy link
Contributor

@lytesout2376 I had this issue after a recent web update and discovered that my userdata.js file was missing (no idea why, it was there before). Make sure you have a file called userdata.js (not userdata.js.example) and that it's correctly filled out.

@Gobberwart
Copy link
Contributor

All required information is contained in docs/google_map.md. No need for this "issue" to exist.

@lusherlo
Copy link
Author

lusherlo commented Sep 6, 2016

Thanks I will try to do again.

@lytesout2376
Copy link

I still can't get web ui working. I have userdata.js properly configured per the google map doc. I am now wondering if my config.json settings have any effect to my problems. I have the following in my config.son:

"websocket": {
    "start_embedded_server": true,
    "server_url": "127.0.0.1:4000"
}

and

"websocket_server": true,

Here is my userdata.js:

var userInfo = {
users: [{
enable: true,
username: "myPGusername",
socketAddress: "0.0.0.0:4000"
},{
enable: false,
username: "username2",
socketAddress: "0.0.0.0:5000"
}],
userZoom: false,
userPath: true,
zoom: 16,
userFollow: true,
gMapsAPIKey: "myGMAPsKey"
};

Please help!

@Gobberwart
Copy link
Contributor

Try "socketAddress": "127.0.0.1:4000" instead of 0.0.0.0

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

7 participants