favll / pogom

The fastest Pokémon Go Map available.
MIT License
548 stars 199 forks source link

Implementing the new api into the Scanner #414

Open Su9m7 opened 8 years ago

Su9m7 commented 8 years ago

Checklist

Is there anyway to implement the new api into the pogom scanner? My coding skills aren't high enough to understand the scanner's code or to edit the code.

...

smartcuc commented 8 years ago

Good question. Not sure by when the new API will be released, but is PoGoM still under development?

CookiesOfficial commented 8 years ago

I think so

smartcuc commented 8 years ago

Would be great. I like PoGoM, is my favorit app.

CookiesOfficial commented 8 years ago

Wait it there a app for pogom

HerrTapper commented 8 years ago

the new api is live, lets hope it gets implemented soon!

Brandje commented 8 years ago

yes please, pogom is the best scanner out there

Paralysing commented 8 years ago

If you are running on a 64bit version of linux, such as ubuntu, try this: https://github.com/PokeHunterProject/pogom-linux. It isn't using the latest api since no one has 0.45.0 re'd yet.

Brandje commented 8 years ago

Thx for that Paralysing, now just need to figure out how to get rid of the rate limited errors

Paralysing commented 8 years ago

Already patched for 0.45.0, will apply a few patches that I use on my website to minimize empty responses. I would also recommend using a lot of accounts.

Su9m7 commented 8 years ago

Paralysing, a Windows version would be very nice. Would that be possible?

Paralysing commented 8 years ago

Yes, I'll see what I can do, shouldn't be too hard.

Paralysing commented 8 years ago

@Su9m7 Could you try to use https://github.com/PokeHunterProject/pogom-windows?

Su9m7 commented 8 years ago

Yes, i will check it :)

Su9m7 commented 8 years ago

Console crashes after starting it. Do I have to install the requirements.txt again or anything else?

Paralysing commented 8 years ago

Any specific error messages? Are you on a 64bit version of windows?

Su9m7 commented 8 years ago

Yes 64bit Windows. Tried it on 2 pc's. Cant read anything on the console, it crashes too fast

Paralysing commented 8 years ago

I'll check if there are any issues.

Paralysing commented 8 years ago

Added a patch for library path, could you replace the contents of pogom/utils.py with https://github.com/PokeHunterProject/pogom-windows/blob/master/pogom/utils.py or pulling the latest version?

Paralysing commented 8 years ago

Also, try running the program in cmd with the command "c:\python27\python.exe runserver.py" instead of double clicking.

Paralysing commented 8 years ago

Windows instructions:

  1. Pull the latest verson from github
  2. Hold shift and right click in the main folder, click "Open command window here"
  3. In the command window, type "python runserver.py", if that doesn't work, try "c:\python27\python.exe runserver.py"
Su9m7 commented 8 years ago

Stuck at this https://picload.org/image/rdppridr/unbenannt.png

Paralysing commented 8 years ago

Go to localhost:5000 in a browser and configure the map, the rest is exactly the same as the old pogom.

Su9m7 commented 8 years ago

Working, thanks a lot, you legend

Su9m7 commented 8 years ago

btw would it be possible to implement pushbullet notifications? https://github.com/favll/pogom/pull/317

Paralysing commented 8 years ago

Should be fine if you want to implement it yourself, that PR doesn't affect the api, so there shouldn't be any conflicts.

Su9m7 commented 8 years ago

It crashes after the changes, error message says its because of the changes in runserver.py. Do you have any idea how to solve that? :/

Paralysing commented 8 years ago

I'll implement it myself and check, might be because that PR is based off a very old version of pogom, but I'll need to test it first.

Paralysing commented 8 years ago

I got a running application, but I don't have a pushbullet key, could you try the "pushbullet-test" tree (https://github.com/PokeHunterProject/pogom-windows/tree/pushbullet-test)?

Paralysing commented 8 years ago

@Su9m7 Does the "pushbullet-test" branch work?

Su9m7 commented 8 years ago

Sorry, still testing, propably not

Su9m7 commented 8 years ago

the pushbullet key is old, creating a new one and i will test it again

Paralysing commented 8 years ago

Also, remember to change the "mobilealert = {1,2,3,4,5,6,7,8,9}" in models.py to the actual things you want to be alerted about.

Su9m7 commented 8 years ago

Working, checked that before and added Pidgey to test. The PB key was too old

Su9m7 commented 8 years ago

Again, thanks a lot @Paralysing

Paralysing commented 8 years ago

No problem.

PseudoLL commented 8 years ago

getting nttn but rate limit, new accounts, new key. ideas?

Su9m7 commented 8 years ago

Softban maybe? Only tested it with 4 Locations and 2 accounts over the night without any problems. How many locations and accounts do u use?

MartynTech commented 8 years ago

managed to get this installed but it wont scan. when I click on the map nothing happens, I don't get a pin point.

also it says on the setting page "no scans yet"

Any Ideas?

Paralysing commented 8 years ago

@MartynTech Could you try going to localhost:5000/login?

Paralysing commented 8 years ago

Also, there was a banwave earlier in the day, make sure the accounts you use aren't banned.

MartynTech commented 8 years ago

I can login to the config page okay.

I only created the accounts with ptc-acc-gen about an hour ago so they shouldn't be banned.

Paralysing commented 8 years ago

So your only issue is that when you click on the map, no pin appears?

MartynTech commented 8 years ago

yes, no pin appears and no scans take place.

Paralysing commented 8 years ago

Could you go to the config.json and try adding {"latitude": (your latitude here), "altitude": 0, "radius": 200, "location": "(your latitude here),-(your longitude here)", "longitude": (your longitude here)} in SCAN_LOCATIONS?

Ex: "SCAN_LOCATIONS": [{"latitude": (your latitude here), "altitude": 0, "radius": 200, "location": "(your latitude here),-(your longitude here)", "longitude": (your longitude here)}]

Paralysing commented 8 years ago

Forgot that I kept the "-" in, {"latitude": (your latitude here), "altitude": 0, "radius": 200, "location": "(your latitude here),(your longitude here)", "longitude": (your longitude here)} should work.

MartynTech commented 8 years ago

okay, I get a point in my area now however I still cannot move the area to search.

Also I get errors saying that its rate limited. no Pokémon are found either.

Paralysing commented 8 years ago

Not sure what's wrong with the point, have you done any modifications? Also can you redownload map.js in the static folder? The rate limits are caused by scanning too fast and having too little accounts. Since pogom was made for scanning fast, you will need a decent amount of accounts to prevent being rate limited.

iamburny commented 8 years ago

I greatly improved the rate limit issue by adding the following:

scan.py - Line 84 - time.sleep(1)

This adds a 1 second delay between each scan attempt.

FYI, I have 26 account scanning a 1km area. Also ensure all accounts have been logged in via the official mobile app and have completed the initial training and chosen a nickname, this all help to look less "bot'y"

omlet05 commented 8 years ago

How many account do you use? I've got only

2016-11-15 17:16:48,078 [ models] [WARNING] Received valid response but without any data. Possibly rate-limited?

👎

Paralysing commented 8 years ago

Using approximately 100 accounts to scan my city, I'm assuming you're on the 0.45.0 version.