Giter Club home page Giter Club logo

openpogoweb's Introduction

Note that this project is deprecated and no further support will be provided for this repo. Use OpenPoGoUi with the latest version of OpenPoGoBot instead.

OpenPoGoBotWeb

Web View for OpenPoGoBot and PokemonGo-Bot

Installation and Use

This project is a module of OpenPogoBot and PokemonGo-Bot.
In case the module version has not been updated on those projects, you can run the following to update it:

$ cd OpenPoGoBot  
$ git submodule foreach git pull origin master  

In the event that there is nothing in your web folder and the above doesn't do anything run the following:

$ cd OpenPoGoBot  
$ git submodule init  
$ git submodule update  

Copy the userdata.js.example to userdata.js and update your settings
YOU WILL NEED A GOOGLE MAPS API KEY Get one here

If you want to serve this as a webpage you will have to set up a webserver, for example:

$ cd OpenPoGoBot\web  
$ python -m SimpleHTTPServer

This will enable you to view your page on http://localhost:8000

Troubleshooting

  1. If you have the latest code of both web and bot project and start the web server correctly, however you see a blank page when hit localhost:8000: clear your browser history data/cookie and try again. For Chrome user, try to open a Incognito window.

Contributing

If you would like to contribute please review OpenPoGo's contributing guidelines and submit a pull request.

openpogoweb's People

Contributors

alxnegrila avatar andythorne avatar aslafy-z avatar bluehaunter avatar bogny avatar crusardri avatar filipimor avatar gregwar avatar jadbalout avatar jtdroste avatar lfhao avatar meyer9 avatar particle6 avatar redsparr0w avatar rolfkoenders avatar saturate avatar sniok avatar tracerneo avatar wblondel avatar wchill avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openpogoweb's Issues

No Image or Menu For Trainers?

My map shows Pokemon when they appear but I have no menu to show stats for trainers and they also don't appear on the map.

screen shot 2016-07-25 at 4 35 39 am

[Suggestion] Sort by...

A button to sort the pokemons by candy, CP, IV, IV attack, IV Stamina, IV Defend, Hour, and Pokedex number

Sorry for my bad english

Edit config to have web view settings

Insert in the option (userdata.js) the value (ex userPath) for "Bot path" setting, like userZoom and userFollow...
So anyone can set it for default, and when the web page is launched, bot path is show (or not, depends on setting) by default.

:)

Use Pokemon Go Map Colors

I changed the Google Maps Style to reflect a more PGo like style.

  map = new google.maps.Map(document.getElementById('map'), {
    center: {lat: 50.0830986, lng: 6.7613762},
    zoom: 8,
    mapTypeId: 'roadmap',
          styles: [ 
          { "featureType": "road", "elementType": "geometry.fill", "stylers": [ { "color": "#4f9f92" }, { "visibility": "on" } ] },
          { "featureType": "water", "elementType": "geometry.stroke", "stylers": [ { "color": "#feff95" }, { "visibility": "on" }, { "weight": 1.2 } ] },
          { "featureType": "landscape", "elementType": "geometry", "stylers": [ { "color": "#adff9d" }, { "visibility": "on" } ] },
          { "featureType": "water", "stylers": [ { "visibility": "on" }, { "color": "#147dd9" } ] },
          { "featureType": "poi", "elementType": "geometry.fill", "stylers": [ { "color": "#d3ffcc" } ] },{ "elementType": "labels", "stylers": [ { "visibility": "off" } ] } 
          ]
  });

This is how it looks:
map

I think this should be implemented

;) uhhh, look at the little wiener-street they build

Error while using the map with PokeGO- Bot

C:\Users\Andrea\Desktop\PokemonGo-Bot-master\OpenPoGoWeb-master>python -m SimpleHTTPServer
Serving HTTP on 0.0.0.0 port 8000 ...
127.0.0.1 - - [26/Jul/2016 23:30:28] "GET / HTTP/1.1" 200 -
127.0.0.1 - - [26/Jul/2016 23:30:28] "GET /css/main.css HTTP/1.1" 200 -
127.0.0.1 - - [26/Jul/2016 23:30:28] "GET /config/userdata.js HTTP/1.1" 200 -
127.0.0.1 - - [26/Jul/2016 23:30:28] "GET /js/main.js HTTP/1.1" 200 -
127.0.0.1 - - [26/Jul/2016 23:30:28] code 404, message File not found
127.0.0.1 - - [26/Jul/2016 23:30:28] "GET /favicon.ico HTTP/1.1" 404 -
I dont have any file "favicon.ico"... any help?

Capturing less pokemon?

As far as I can tell, it seem like the new version of the bot (current dev) is capturing less pokemon than the version I used yesterday. This is just an impression and I have no exact numbers.
Is anyone experiencing the same problem?

My settings are:
"catch": {
"any": {"catch_above_cp": 0, "catch_above_iv": 0, "logic": "or"}
}

Pokedex issue on the dev branch of the bot..

pokedex isn't loading anything...

TypeError: self.pokemonArray[(pkmID - 1)] is undefined
mapView.sortAndShowPokedex() main.js:615
mapView.buildMenu() main.js:328
mapView.bindUi/<() main.js:180
n.event.dispatch() jquery.min.js:3
n.event.add/r.handle() jquery.min.js:3

[Spun off from another issue that had the candy bug too]

[IDEA] Separate each account to specific URL

provide each url for each account
so for example my private url will be

localhost:8000/view/[email protected] => or else instead of put it all together, we could separate it.

It's also cool so show all but maybe using different url

localhost:8000/view/all (maybe some privileged needed.

Sorry I couldn't contribute for now, but here's some idea that might be useful :)

Add 'Candy' Menu item to trainer

View current candies for all base pokemons.

Unable to PR atm. Menu code dump:

if (menu == 5) {
    /*Candy Menu*/
    var current_user_candy = user_data[users[user_id]].bagCandy;
    var total_candy = 0;

    document.getElementById('sortButtons').innerHTML = "";
    out = '<div class="row items">';
    for (i = 0; i < current_user_candy.length; i++) {
      pkmnNum = current_user_candy[i].inventory_item_data.pokemon_family.family_id;
      pkmnImage = pad_with_zeroes(pkmnNum, 3) +'.png';
      pkmnName = pokemonArray[pkmnNum-1].Name;

      out += '<div class="col s12 m4 l3 center"><img src="image/pokemon/' +
              pkmnImage +
              '" class="png_img"><br><b> ' +
              pkmnName +
              '</b><br>Candy: ' +
              current_user_candy[i].inventory_item_data.pokemon_family.candy +
              '</div>';
      total_candy += current_user_candy[i].inventory_item_data.pokemon_family.candy;
    }
    out += '</div>';
    document.getElementById('subtitle').innerHTML = "Candy. " +current_user_candy.length+" types. " +total_candy+ " total." ;
    document.getElementById('subcontent').innerHTML = out;
  }

Edit: code to display as per copypasta of existing menus.

[bug] Sort menu stays on "Info" view

Bug:

Sort buttons stay on player info window after viewing pokemon or pokedex

Steps to reproduce:

  1. Open Pokemon Window
  2. Click Info

Expected Outcome:

Sort buttons disappear.

Actual Outcome:

Sorting buttons stay.

would have fixed it but ran out of time tonight, sorry.

Permission denied when cloning from PokemonGo-Bot

D:\Pokemon stuff\PokemonGo-Bot>git submodule update --init --recursive
Cloning into 'web'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:OpenPoGo/OpenPoGoWeb.git' into submodule path 'web' failed

Having issues with userdata.js

Account is a google account. Let's call it [email protected].

In userdata.js, I modified line 3 to try both:

var users = [[email protected]];

and

var users = ["[email protected]"];

I also included my API key.

When running python -m SimpleHTTPServer, I get:

127.0.0.1 - - [25/Jul/2016 20:45:47] code 404, message File not found
127.0.0.1 - - [25/Jul/2016 20:45:47] "GET /catchable-username.json HTTP/1.1" 404 -
127.0.0.1 - - [25/Jul/2016 20:45:47] code 404, message File not found
127.0.0.1 - - [25/Jul/2016 20:45:47] "GET /location-username.json HTTP/1.1" 404 -

I looked in the main.js and even commented out the lines where it looks for

loadJSON('location-' + users[i] + '.json', trainerFunc, errorFunc, i);

and hardcoded

loadJSON('[email protected]', trainerFunc, errorFunc, i);

to no avail. It still looks for location-username.json.

Any help as to what is causing my error?

Trainer Icon Not Showing

i have latest git pull, but why my trainer icon not showing? it just show path... and pokemon candy still undefined? need help :) thank you...

capture

Sort by doesnt work correctly

When sorting e.g. for "IV" or for "CP" numbers above 1000 will actually be counted smaller as 900.
It sorts after 9,8,7,6,5,4,3,2,1 rather than taking the real amount into consideration.

openpogo web ui

[PROBLEM] Nothing show on map

Tomorrow, with latest master branch, the webgui don't work anymore...

This is log:

12:36 Loading Data..
12:36 Data Loaded!

As we can see, user info are not load.. Maps is set on on Luxemburg, and character is not show..

This is my console logs:

GET http://localhost:8000/socket.io/?EIO=3&transport=polling&t=LOn5kc2 404 (File not found) socket.io-1.4.5.js:1
Uncaught TypeError: Cannot read property 'length' of undefined main.js:688
Uncaught TypeError: Cannot read property 'pokemon_family' of undefined main.js:426
Uncaught TypeError: Cannot read property 'length' of undefined main.js:688

ecc.....

Commit 0e2ee3f is the latest that I've working..

Record starting point and end point for a path

I have an enhancement proposal. The bot outputs in the logs the start and end points when the trainer travels, so it shouldn't be too hard to draw a predicted path on the map for some visual feedback of where the trainer is traveling next. It would also be nice to record the last X points of travel and the path between them. I think it would help botters optimize their bots.

Thanks

problems when tracking multiple users

Expected Behavior

Clicking on Info - shows user info about user currently in focus
Clicking on Items - shows items of user currently in focus
..
same for Pokemon and Pokedex

Actual Behavior

Clicking on Info - always shows the first username, shows info of a random user
Clicking on Items - always shows the first username, shows items of a random user
..
same for Pokemon and Pokedex

All item names are undefined, some item counts are undefined

Steps to Reproduce

Start SimpleHTTPServer and go to localhost:8000

Other Information

OS: Ubuntu 14.04
Git Commit: c7ab5b03cb93b5393bebbc383545a50e8519e57a

Remove Trainer Icons

Remove Trainer Icons and use eg Pokéballs with random colors as trainer icon.

It requires only one icon or we could do it alone with CSS instead.

We could place a 'label' or 'hover' over the icon to identify which trainer we are looking at.

candy/pokedex issue with dev branch of the bot

on the dev branch of the bot candy says it's undefined and pokedex isn't loading anything...

TypeError: self.pokemonArray[(pkmID - 1)] is undefined
mapView.sortAndShowPokedex() main.js:615
mapView.buildMenu() main.js:328
mapView.bindUi/<() main.js:180
n.event.dispatch() jquery.min.js:3
n.event.add/r.handle() jquery.min.js:3

there's also some socket error:
GET XHR http://192.168.0.4/socket.io/ [HTTP/1.1 404 Not Found 2ms]

Not understand how to run... any full commend

Not understand how to run... any full commend ?

and

If you want to serve this as a webpage you will have to set up a webserver, for example:

$ cd OpenPoGoBot\web  
$ python -m SimpleHTTPServer

inside pokemongobot\web i cant see any "SimpleHTTPServer"

Candies Value showing as undefined

When viewing a bot from the WebUI I am unable to see how many cadies i have for each pokemon has this deen implemented yet,

If so any ideas what maybe the reason why i see undefined?

Destination indicator and line

Title pretty much says it all.
Either a circle that's bigger than the pokestop icon or a dot that's not intrusive for the eye, and maybe a slightly transparent line towards the circle/dot using google.maps.Polyline(). [Google Dev]

Idea just popped, but I'll see if I can spare some time to do it tomorrow.

EDIT: I guess the Polylines can be used to incorporate a repeating route feature to the bot

Controls too large on small screens

Currently the controls on the right side are too large on small screens.

This will be fixed by:

  • Making expandable
  • Making them auto hide on smaller screens

[Idea] Serving files with Node.js

Instead of using SimpleHTTPServer, we could use a Node.js server. It could update the web page with web-socket and it would be easier to connect multiple client.

Mine is actually sending logs to the web client console and restarting the bot when it crash for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.