phaetec / pogo-cruncher Goto Github PK
View Code? Open in Web Editor NEWUNMAINTAINED, Niantic now requires keys for their API
License: MIT License
UNMAINTAINED, Niantic now requires keys for their API
License: MIT License
When sorting for anything secondary and tertiary sort should be CP and IV %
Also 100% Pokemon are at the bottom.
Adding the feature to evolve then transfer would be nice. I'm not entirely sure if that's what "crunching" already does. I would love to help with implementing the feature if I could be shown the right direction to go; Python's not my primary language.
While some progress bar via ajax on the webUI would be nice, just doing simple debug prints on the console would make large deletions much clearer rather than sitting at a blank screen for many minutes.
And please do not use "finish" etc.
If it is able to also scan for the amount of candy you have then it could be used to calculate amount of evolves you can do.
This would be especially usefull for people for do bulk evolves with lucky egg.
I used a run.bat instead of using cmd and got the following result:
C:\Users\Bob\Downloads\poke-cruncher-windows\poke-cruncher>pip install -r requir
ements.txt
Collecting click==6.6 (from -r requirements.txt (line 1))
Using cached click-6.6.tar.gz
Collecting Flask==0.11.1 (from -r requirements.txt (line 2))
Using cached Flask-0.11.1-py2.py3-none-any.whl
Collecting Flask-Cors==2.1.2 (from -r requirements.txt (line 3))
Using cached Flask-Cors-2.1.2.tar.gz
Collecting future==0.15.2 (from -r requirements.txt (line 4))
Using cached future-0.15.2.tar.gz
Collecting geopy==1.11.0 (from -r requirements.txt (line 5))
Using cached geopy-1.11.0-py2.py3-none-any.whl
Collecting gpsoauth==0.3.0 (from -r requirements.txt (line 6))
Using cached gpsoauth-0.3.0.tar.gz
Collecting itsdangerous==0.24 (from -r requirements.txt (line 7))
Using cached itsdangerous-0.24.tar.gz
Collecting Jinja2==2.8 (from -r requirements.txt (line 8))
Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting MarkupSafe==0.23 (from -r requirements.txt (line 9))
Using cached MarkupSafe-0.23.tar.gz
Obtaining pgoapi from git+https://github.com/tejado/pgoapi.git@1f25e907f3e5f1b60
3330e71041e1ad7bee7580f#egg=pgoapi (from -r requirements.txt (line 10))
Cloning https://github.com/tejado/pgoapi.git (to 1f25e907f3e5f1b603330e71041e1
ad7bee7580f) to c:\users\bob\downloads\poke-cruncher-windows\poke-cruncher\src\p
goapi
Error [WinError 2] The system cannot find the file specified while executing c
ommand git clone -q https://github.com/tejado/pgoapi.git C:\Users\Bob\Downloads
poke-cruncher-windows\poke-cruncher\src\pgoapi
Cannot find command 'git'
You are using pip version 8.1.1, however version 8.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.
C:\Users\Bob\Downloads\poke-cruncher-windows\poke-cruncher>pause
Press any key to continue . . .
This was on my second attempt to install. What does it look like I'm doing wrong here?
(I should warn: I'm no power user.)
Edit: I think I found the issue. Will try again after I have Git installed.
I've sent a bunch of Pokémon away and there were no error messages. It said everything went ok, but all my Pokémon are still there.
Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Restarting with stat
Debugger is active!
Debugger pin code: 144-805-040 Exception in thread Thread-1: Traceback (most recent call last): File "C:\python35\lib\threading.py", line 914, in bootstrap_inner self.run() File "C:\python35\lib\threading.py", line 862, in run self._target(self._args, *self._kwargs) File "C:\python35\lib\site-packages\werkzeug\serving.py", line 656, in inner fd=fd) File "C:\python35\lib\site-packages\werkzeug\serving.py", line 550, in make_se rver passthrough_errors, ssl_context, fd=fd) File "C:\python35\lib\site-packages\werkzeug\serving.py", line 462, in __init _ socket.SOCK_STREAM) File "C:\python35\lib\socket.py", line 450, in fromfd nfd = dup(fd) OSError: [WinError 10038] An operation was attempted on something that is not a socket
Hello,
Built and run. Input my data, click on login, nothing happens. No loading page, no backend logs. Frontend gives the following error in the JS console cruncher.js:809 OPTIONS http://localhost:5000/api/login net::ERR_CONNECTION_REFUSED
. Seems to me it has to use docker-machine ip default
instead of fixed localhost to correctly contact login api, right?
Would need secure connection to sent login details through.
I get a error message when I try to login:
cruncher.js:907 Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value).Cg is not a function
Its very messy
Although using the headers to sort the Pokemon functions correctly, clicking on a header which is already being used to sort should reverse the sort order.
For better distinction we could color-code pokemon. Not sure yet, what would be the best method.
Lets collect here:
\at\TooHotinBoston inside the Discord was proposing something along the lines of this: https://postimg.org/image/4eg47lq7r/
If I look the IV% with this nice tool up, I want to mark my strongest Pokémon as favourite, so I can see it ingame without searching for name or something else.
Bonus: Only delete pokemon not needed for evolution.
$ docker-compose up
Creating network "pogocruncher_default" with the default driver
Creating pogocruncher_backend_1
Creating pogocruncher_frontend_1ERROR: for frontend oci runtime error: no such file or directory
ERROR: Encountered errors while bringing up the project.
When trying to put pokemon into the shredder, this error occures:
127.0.0.1 - - [24/Jul/2016 01:49:30] "OPTIONS /api/pokemon/delete HTTP/1.1" 200 -
Argument pokemon_id with value 7620163301563474000 unknown inside ReleasePokemonMessage (Exception: 'int' object has no attribute 'append')
Argument pokemon_id with value 11922932584228714000 unknown inside ReleasePokemonMessage (Exception: 'int' object has no attribute 'append')
Lets see if somebody can help me, I already could open the app in browser.
But when I click login. It shows like if is working but nothing happen.
Did I forget to do something?
EDIT: AGAIN SORRY IT LOOKS LIKE SERVERS ARE DOWN
I have a pidgey with 8% IV and if I sort my Pokémon according to IV it is listed with the 80% Pokémon.
It isn't possible to click on 'Name' in the table.
first of all this is a really nice tool :)
but to decide which pokemon is better there are some more stats that you could show:
for mor information see my java tool: https://github.com/Tsunamii/IVTool
Its not sent! Its send!
I never could start the daemon services of VM to can do the "docker-compose build" thanks for the app this looks great
EDIT: I just do it runing the start.sh in c:\program files\docker, and then searching the path of pogo-crunch. In that console all work perfect
Awesome program btw.
Possibly as mouseover or clickon information on the picture / name.
Combine this with the message returned by #49
backend_1 | 172.18.0.1 - - [28/Jul/2016 14:58:07] "OPTIONS /api/login HTTP/1.1" 200 -
backend_1 | 172.18.0.1 - - [28/Jul/2016 14:58:08] "POST /api/login HTTP/1.1" 200 -
backend_1 | 172.18.0.1 - - [28/Jul/2016 14:58:12] "GET /api/pokemon HTTP/1.1" 200 -
backend_1 | 172.18.0.1 - - [28/Jul/2016 15:02:57] "OPTIONS /api/pokemon/delete HTTP/1.1" 200 -
backend_1 | 172.18.0.1 - - [28/Jul/2016 15:02:57] "POST /api/pokemon/delete HTTP/1.1" 400 -
This is the request for my pokemon list, which works. The second request is when I hit delete on multiple pokemon. It sends 1 delete but not a single pokemon is deleted.
Instead of specifying a location manually it would be better to detect the users current location.
Additionally it's harder to detect that the user is using third party tools, because if I use cruncher and start the app afterwards, I'm presumably in another location. I don't want to insert lan lon coordinates at each login.
api/status
should return something like
{"status": "ok"}
if it is running
It would be cool if there were buttons / actions to do the following:
Not sure why, maybe the same rust error, that is plaguing pogo-optimizer?
I tested your code a little bit and in communication/main.cljs
the result is still in place.
Just before the update-pokemon!
call res
returns still the correct value.
When I output the value immediately after entering update-pokemon!
however, the value is nil.
Im not sure how this can happen, but your cljs knowledge should help you find the bug.
Out of all Pokemon in the Inventory which make up the perfect Attacker / Defender team, considering the Moves and other Stats.
Running docker-compose build
and docker-compose up
, everything seems to be okay from the logs.
The two containers start up and the SimpleHttpServer is listening on port 8888.
But, upon connecting, I get 404's for nearly every resource:
✔ pogo-cruncher master@5c651f2$ docker-compose up
Creating network "pogocruncher_default" with the default driver
Recreating pogocruncher_frontend_1
Recreating pogocruncher_backend_1
Attaching to pogocruncher_backend_1, pogocruncher_frontend_1
backend_1 | * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET / HTTP/1.1" 200 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/bootstrap/dist/css/bootstrap.min.css HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/bootswatch-dist/css/bootstrap.min.css HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/fontawesome/css/font-awesome.min.css HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/bootstrap/dist/js/bootstrap.min.js HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /css/style.css HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/jquery/dist/jquery.min.js HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /js/compiled/cruncher.js HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /bower_components/bootstrap/dist/js/bootstrap.min.js HTTP/1.1" 404 -
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] code 404, message File not found
frontend_1 | 172.18.0.1 - - [26/Jul/2016 05:41:23] "GET /js/compiled/cruncher.js HTTP/1.1" 404 -
Attaching to the frontend container through docker exec -it pogocruncher_frontend_1 /bin/bash
and re-running the following parts from the frontend's Dockerfile:
cd /frontend/
GIT_DIR=/tmp bower install --allow-root
lein deps
lein cljsbuild once min
sass css/style.sass css/style.css --style compressed
cd resources/public/
sass css/style.sass css/style.css --style compressed
rm -rf .sass-cache
I end up with a working pogocruncher.
I suppose that somehow the frontend container is created without running the commands from it's Dockerfile.
✔ pogo-cruncher master@5c651f2$ docker -v
Docker version 1.10.3, build 20f81dd
✔ pogo-cruncher master@5c651f2$ docker-compose -v
docker-compose version 1.7.1, build 6c29830
I'm german and I need to lookup the german names everytime I'm using pogo-cruncher.
app.py returns Login failed - unexpected server response!
when i use a "wrong" location, e.g. Remscheid...
Since app update 0.31 favorite pokemon can not be deleted anymore. Do not allow this in the cruncher either.
Using Ubuntu 16.04's regular package repositories, docker-compose build
fails with the following error message:
✔ pogo-cruncher master@5c651f2$ docker-compose build
ERROR: In file './docker-compose.yml' service 'version' doesn't have any configuration options. All top level keys in your docker-compose.yml must map to a dictionary of configuration options.
Ubuntu 16.04's version of docker-compose
is
✔ pogo-cruncher master@5c651f2$ docker-compose -v
docker-compose version 1.5.2, build unknown
whereas the version: '2'
in docker-compose.yml
requires version 1.6+ (See here).
A possible solution is to not support docker-compose <= 1.6.x.
I will try to work out if it is also compatible with a version 1 docker-compose.yml
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.