Code Monkey home page Code Monkey logo

pokemanager's People

Contributors

bartonp avatar cglatot avatar fshp avatar keunglh avatar ryangardner avatar sleepypikachu avatar tthreeoh avatar wenting-zhao 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  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  avatar  avatar

pokemanager's Issues

Cant do google login if 2fa is enabled.

Creating Google session for XXXXXXX
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Access token not generated
Session not created successfully

[Feature] Publish docker images to docker hub

I see that #18 added a docker file to this repository. It would be awesome if the docker image were published to docker hub so that I could grab that instead of having to clone the repository and build the image myself.

In the past, I've used travis-ci to publish docker images to docker hub automatically upon certain conditions (e.g. when the master branch is updated, when a new tag is added, etc).

I'd be happy to contribute to this if you'd like.

Best moves

It may be nice to have a way to know what are the best moves for a given pokemon and find an heuristic that defines at what IV difference is worthing having the 2 best moves on 1 pokemon vs another one that has lowest moves but has a bit higher IV.

Am I clear enough on the request ?

[feature] add item management

hello,this pokemanager really helps me alot to manage my pokemon and i think it the best so far, and is it possible to add item management feature?

Getting to menu but getting this error in Docker

MAIN MENU


1: View Pokemon
2: View Counts
3: Transfer Pokemon
4: Rename Pokemon
5: Exit

Enter choice: Traceback (most recent call last):
File "pogo/demo.py", line 337, in
mainMenu(session)
File "pogo/demo.py", line 288, in mainMenu
menuChoice = int(raw_input("\nEnter choice: "))
ValueError: invalid literal for int() with base 10: ''

I'm a newbie to docker and python. I get this when loading in. It never gives me a chance to actually put in a value.

Translate

it's possible to translate pokemon name for rename with %IV in french ? i can just modify PokeManager/pogo/pokedex.py ?

Thanks you

View Count : Tell how much we have to transfer

It would be nice to have another column telling us how many we should transfer to optimize our candies. Lets say I have 112 candies and 20 pidgey, I'd like the app to tell me I should transfer :

floor(112/12) = 9 + 4 free
20 piedgey - 9 = 11 pidgey free
if I transfer 12-4 free = 8, i can evolve evolve 1 more,
So the number of pidgey I really have to transfer is 11-8 = 3
(Also, a column with how many I can evolve Considering transfers could be nice)

Missing parenthese

Hi,
Very good job :)
I have a problem with the CMD,

capture

You can help me ?

thanks

PokemonMove has no value for 242

I'm assuming this is Ditto and Transform, but when trying to do option 1 (View Pokemon), I am now getting:

Value Error: Enum PokemonMove has no name defined for value 242.

EDIT: I was able to add it to the two placed in the PokemonMove_pb2 and then compile and it worked.

Error while starting up

I was starting up and I ran pip requirements, while starting the pokemanger this happened. I don't have 2 Step auth so yeah, don't know why this happened.capture

100% pokemon sorted alphabeticaly

100% appears close to 1% when it should appear close to 97% ones.

I changed the rename method for myself but don't want to push it for everyone in case that'S not what you want, but you could do (the 100 is in fact L(lowercase)) :

if str(monster[5]) == '100' :
session.nicknamePokemon(monster[6],'l00-15/15/15')
logging.info('Renamed ' + monster[0] + ' to l00-15/15/15')
else :
session.nicknamePokemon(monster[6],str(monster[5]) + '-' + str(monster[2]) + '/' + str(monster[3]) + '/' + str(monster[4]))
logging.info('Renamed ' + monster[0] + ' to ' + str(monster[5]) + '-' + str(monster[2]) + '/' + str(monster[3]) + '/' + str(monster[4]))

Docker container does not user AUTHTYPE environment variable

docker run --rm -it -e "AUTHTYPE=ptc" -e "LOGIN=nepoxx" -e "PASSWORD={myPass}" -e "STARTINGPOINT=X, Y" ryebrye/pokemongo-manager:latest

results in:

Creating Google session for nepoxx
          ^
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Coordinates: X -Y 0.0
Access token not generated
Session not created successfully

Transfer Pokemon Is Blank after filling criteria

Hey there,

Everything is working great, however when I need to filter out Pokemon in the transfer section doesn't return any pokemon.

Any suggestions? Great little piece of software btw! Thanks so much for writing it.

screen shot 2016-07-26 at 20 24 58

Error when choose to transfer pokemon

Hello I'm using pokemanager on mac osx, the version berfore work flawlessly, but now it's always giving me an error when i'm going to transfer pokemon.
i access this with terminal on os x with command cd ~/Downloads/PokeManager-master/pogo then run python demo.py but when i choose 3 (transfer pokemon) it giving me error messages like this :

Enter choice: 3
Traceback (most recent call last):
File "demo.py", line 464, in
mainMenu(session)
File "demo.py", line 415, in mainMenu
elif menuChoice == 3: massRemove(session)
File "demo.py", line 35, in massRemove
rf = open(os.path.dirname(file) + '/../exceptions.config')
IOError: [Errno 2] No such file or directory: '/../exceptions.config'

Can you help me ? Thanks before :)

Can't get access token with non-gmail

Hi, i'm playing with a google account that ends with "@tiscali.it", i used this on ingress and started to use it here on PKMN GO as well, but even though the phone app accepts it, something doesn't like it here, either the program or api, so i get:
Access token not generated
Session not created successfully
Do you think there's anything you or i can do to fix this problem?
Thanks in advance

[Feature] Transfer based on CP percentile

Since the max CP is relative to the each type of Pokemon, IV and user level, wouldn't it be better to be able to set the percentile of maximum current CP instead of a static number?

Error opening the .bat

Edited the pokemanager.bat correctly, but upon opening it closes after a quarter of a second and I can briefly see

Starting new HTTPS connection (1): android.clients.google.com
Access token not granted
Session not created successfully

Upon running the .bat as admin it flashes for an even shorter amount of time, and proceeds to do nothing.
No clue what the issue could be, help greatly appreciated.

crash on run

the console i get when it crashes, it used to work before but stopped recently

F:\gomap\mass release>python ".\pogo\demo.py" -a ptc -u khaldakke -p Indestructi
ble5 -l "35.6443926, 139.6788992"
Traceback (most recent call last):
File ".\pogo\demo.py", line 11, in
import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
File "F:\gomap\mass release\pogo\POGOProtos\Enums\PokemonMove_pb2.py", line 23
, in
2\x14\n\x0fSCALD_BLASTOISE\x10\x86\x01\x12\x19\n\x14HYDRO_PUMP_BLASTOISE\x10
\x87\x01\x12\x0f\n\nWRAP_GREEN\x10\x88\x01\x12\x0e\n\tWRAP_PINK\x10\x89\x01\x12
x15\n\x10\x46URY_CUTTER_FAST\x10\xc8\x01\x12\x12\n\rBUG_BITE_FAST\x10\xc9\x01\x1
2\x0e\n\tBITE_FAST\x10\xca\x01\x12\x16\n\x11SUCKER_PUNCH_FAST\x10\xcb\x01\x12\x1
7\n\x12\x44RAGON_BREATH_FAST\x10\xcc\x01\x12\x17\n\x12THUNDER_SHOCK_FAST\x10\xcd
\x01\x12\x0f\n\nSPARK_FAST\x10\xce\x01\x12\x12\n\rLOW_KICK_FAST\x10\xcf\x01\x12
x15\n\x10KARATE_CHOP_FAST\x10\xd0\x01\x12\x0f\n\nEMBER_FAST\x10\xd1\x01\x12\x15
n\x10WING_ATTACK_FAST\x10\xd2\x01\x12\x0e\n\tPECK_FAST\x10\xd3\x01\x12\x0e\n\tLI
CK_FAST\x10\xd4\x01\x12\x15\n\x10SHADOW_CLAW_FAST\x10\xd5\x01\x12\x13\n\x0eVINE_
WHIP_FAST\x10\xd6\x01\x12\x14\n\x0fRAZOR_LEAF_FAST\x10\xd7\x01\x12\x12\n\rMUD_SH
OT_FAST\x10\xd8\x01\x12\x13\n\x0eICE_SHARD_FAST\x10\xd9\x01\x12\x16\n\x11\x46ROS
T_BREATH_FAST\x10\xda\x01\x12\x16\n\x11QUICK_ATTACK_FAST\x10\xdb\x01\x12\x11\n\x
0cSCRATCH_FAST\x10\xdc\x01\x12\x10\n\x0bTACKLE_FAST\x10\xdd\x01\x12\x0f\n\nPOUND
_FAST\x10\xde\x01\x12\r\n\x08\x43UT_FAST\x10\xdf\x01\x12\x14\n\x0fPOISON_JAB_FAS
T\x10\xe0\x01\x12\x0e\n\tACID_FAST\x10\xe1\x01\x12\x14\n\x0fPSYCHO_CUT_FAST\x10
xe2\x01\x12\x14\n\x0fROCK_THROW_FAST\x10\xe3\x01\x12\x14\n\x0fMETAL_CLAW_FAST\x1
0\xe4\x01\x12\x16\n\x11\x42ULLET_PUNCH_FAST\x10\xe5\x01\x12\x13\n\x0eWATER_GUN_F
AST\x10\xe6\x01\x12\x10\n\x0bSPLASH_FAST\x10\xe7\x01\x12\x1d\n\x18WATER_GUN_FAST
_BLASTOISE\x10\xe8\x01\x12\x12\n\rMUD_SLAP_FAST\x10\xe9\x01\x12\x16\n\x11ZEN_HEA
DBUTT_FAST\x10\xea\x01\x12\x13\n\x0e\x43ONFUSION_FAST\x10\xeb\x01\x12\x16\n\x11P
OISON_STING_FAST\x10\xec\x01\x12\x10\n\x0b\x42UBBLE_FAST\x10\xed\x01\x12\x16\n\x
11\x46\x45INT_ATTACK_FAST\x10\xee\x01\x12\x14\n\x0fSTEEL_WING_FAST\x10\xef\x01\x
12\x13\n\x0e\x46IRE_FANG_FAST\x10\xf0\x01\x12\x14\n\x0fROCK_SMASH_FAST\x10\xf1\x
01\x62\x06proto3')
TypeError: init() got an unexpected keyword argument 'syntax'

F:\gomap\mass release>pause
Press any key to continue . . .

[Error] Running bat file

Traceback (most recent call last):
  File "./pogo/demo.py", line 20, in <module>
    from api import PokeAuthSession
  File "/home/nitrous/PokeManager/pogo/api.py", line 7, in <module>
    from session import PogoSession
  File "/home/nitrous/PokeManager/pogo/session.py", line 36, in <module>
    from requests.packages.urllib3.exceptions import InsecureRequestWarning
ImportError: No module named packages.urllib3.exceptions

Can someone please help

Error on running the .bat

capture
i set everything ok just follow your steps, however, when i ran the .bat file, the window didn't show me a main menu like yours. may u figure out where the trouble is & help me fix this issue? many THANX! :-b

[Feature] Bulk upgrade/evolve of Pokemon

Great app, loving it so far!

I've started implementing this myself, so maybe I can submit it as a pull request once I've got it complete.

It would be great to be able to quickly Upgrade a specific Pokemon a specified number of times, or until you run out of candies/dust. Same idea with Evolving, except evolve all Pokemon of a single type (useful for cases where you're farming XP or have popped an egg). I've started work on this, and it seems to be doable using the UpgradePokemonMessage_pb2 and EvolvePokemonMessage_pb2 messages.

I'll submit a Pull Request some time this weekend or early next week with my implementation.

[Feature] Website Viewer

hi can i req feature for website viewer?
maybe simple run webserver and json request..
im so sorry i dont know about python....

Not transferring correctly.

Take a look at these two images. One says to transfer all low CP pokemon, but none are found, despite the second image proving otherwise.
capture
capture2

access token not generated

Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Access token not generated
Session not created successfully

I installed and did everything y'all said to do but ^ im running windows 10

Can't run on Linux

Hi!
I tried running PokeManager on Linux, had this as a result:

tokarevi@home-pc:$ cd /home/tokarevi/PokeManager-master
tokarevi@home-pc:
/PokeManager-master$ ./PokeManager.bat
Traceback (most recent call last):
File "./pogo/demo.py", line 10, in
import POGOProtos.Enums.PokemonMove_pb2 as PokemonMove_pb2
File "/home/tokarevi/PokeManager-master/pogo/POGOProtos/Enums/PokemonMove_pb2.py", line 10, in
from google.protobuf import symbol_database as _symbol_database
File "/usr/local/lib/python2.7/dist-packages/google/protobuf/symbol_database.py", line 180, in
_DEFAULT = SymbolDatabase(pool=descriptor_pool.Default())
AttributeError: 'module' object has no attribute 'Default'

How can this be corrected?

Connection problem since 13/02/17

Can't connect using the API since 13th February (it seems to be a general problem on other pogo api too) :

Creating Google session for xxxx
Starting new HTTPS connection (1): android.clients.google.com
Starting new HTTPS connection (1): android.clients.google.com
Limited functionality. No location provided
Starting new HTTPS connection (1): pgorelease.nianticlabs.com
Invalid URL u'https:///rpc': No host supplied
Traceback (most recent call last):
File "./Loisirs/PokemonGo/AutomaticRenamer/pogo/demo.py", line 709, in
session = poko_session.authenticate(args.location)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 149, in authenticate
}[self.provider](locationLookup=locationLookup, noop=noop)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 101, in createGoogleSession
noop=noop
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/api.py", line 71, in createPogoSession
location
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 62, in init
self.getInventory()
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 216, in getInventory
self.getProfile()
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 249, in getProfile
res = self.wrapAndRequest(payload)
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 151, in wrapAndRequest
res = self.request(self.wrapInRequest(payload, defaults=defaults))
File "/Users/Pierre/Loisirs/PokemonGo/AutomaticRenamer/pogo/session.py", line 148, in request
raise GeneralPogoException('Probably server fires.')
custom_exceptions.GeneralPogoException: Probably server fires.

Gen2 Pokemons are missing and causing it to crash.

MAIN MENU

1: View Pokemon
2: View Counts
3: Transfer Pokemon
4: Transfer Duplicate Pokemon
5: Rename Pokemon
6: Set Favorite
7: Exit

Enter choice: 1
Traceback (most recent call last):
File "./pogo/demo.py", line 634, in
mainMenu(session)
File "./pogo/demo.py", line 573, in mainMenu
if menuChoice == 1: viewPokemon(session)
File "./pogo/demo.py", line 520, in viewPokemon
L = [pokedex[pokemon.pokemon_id],pokemon.cp,pokemon.individual_attack,pokemon.individual_defense,pokemon.individual_stamina,IvPercent,pokemon,move_1,move_2]
KeyError: 239

Hatched an elekid which is 239 in Gen2.

OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'

I just installed this application locally with Python 2.7.12 and tried to run this.
After running I immediately got this error:

C:\PokeManager>python ".\pogo\demo.py" -a google -u "[email protected]" -p "mypassword" -l "xx.lat , xx.long"
Traceback (most recent call last):
  File ".\pogo\demo.py", line 14, in <module>
    from api import PokeAuthSession
  File "C:\PokeManager\pogo\api.py", line 10, in <module>
    from gpsoauth import perform_master_login, perform_oauth
  File "C:\Python27\lib\site-packages\gpsoauth\__init__.py", line 4, in <module>
    from . import google
  File "C:\Python27\lib\site-packages\gpsoauth\google.py", line 4, in <module>
    from Cryptodome.PublicKey import RSA
  File "C:\Python27\lib\site-packages\Cryptodome\PublicKey\RSA.py", line 79, in <module>
    from Cryptodome.IO import PKCS8, PEM
  File "C:\Python27\lib\site-packages\Cryptodome\IO\PKCS8.py", line 73, in <module>
    from Cryptodome.IO._PBES import PBES1, PBES2, PbesError
  File "C:\Python27\lib\site-packages\Cryptodome\IO\_PBES.py", line 44, in <module>
    from Cryptodome.Cipher import DES, ARC2, DES3, AES
  File "C:\Python27\lib\site-packages\Cryptodome\Cipher\__init__.py", line 78, in <module>
    from Cryptodome.Cipher._mode_ecb import _create_ecb_cipher
  File "C:\Python27\lib\site-packages\Cryptodome\Cipher\_mode_ecb.py", line 46, in <module>
    """
  File "C:\Python27\lib\site-packages\Cryptodome\Util\_raw_api.py", line 168, in load_pycryptodome_raw_lib
    raise OSError("Cannot load native module '%s'" % name)
OSError: Cannot load native module 'Cryptodome.Cipher._raw_ecb'

Some information about my software:

Python 2.7.12
pip 8.1.2
git version 2.9.2.windows.1
java version 1.8.0_102-b14 64-bit
Windows 10 pro 64-bit

[Bug] Pokemon with final evolutions show they can be evolved

Pidgeot, Hypno, etc show that they can be evolved, even though they are at their final evolution.

This seems to be inconsistent. Sometimes it will show a 1, other times it will show nothing (the intended behaviour for final evolve forms)

Access token not generated

Cannot login right now. I tried to login with latest api and it worked. It seems like you just copied the python api and modified the demo.py. This tight coupling is very bad and causes problems like these when api needs to be updated, it is very hard to do. Instead you can add the api as a submodule which can be updated on the fly.

[feature] rename pokeman to default

I'd like to see a way to rename all (or selected) Pokémon back to default. Also, could you add options for renaming? I'd like just "IV NAME"

[Feature] Do not transfer starred Pokemon

This is currently taken into consideration in the "Transfer duplicates" - but is not for the normal transfer.

Add it to the normal transfer (refer to the duplicates method for checking)

[Feature] Add an export to CSV option

The data is basically already formatted correctly anyway. Exporting to a CSV would allow people to get a copy of what they have without having to reload the script every time. Saves on API calls and with a CSV you can use Google Sheets or Excel to do a bunch of stuff with the data.

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.