Coder Social home page Coder Social logo

pokemon-alert's Introduction

Pokemon Alert

Automatic search pokemon in FPM using python and webdriver, sending email when it encounters.

Install some programs

I only tested on Linux, but running on windows should not be a problem.

First, you need install Chrome Driver:

https://sites.google.com/a/chromium.org/chromedriver/getting-started http://chromedriver.storage.googleapis.com/index.html?path=2.25/

Install Python 2.7:

https://www.python.org/downloads/

Install required python package (use with virtualenv):

pip install -r requirements.txt

Create this folders in home dir (~/.pokemon/ and ~/.pokemon/logs):

mkdir -p ~/.pokemon/logs

In ~/.pokemon create config.json and puts your email info:

{
	"global": {
		"email": {
			"from": "[email protected]",
			"password": "emailpassword",
			"maps-key": "mapskey",
			"continuous": {
				"enable": true,
				"minimum-interval-in-minutes": "2"
			},
			"to": [
				"[email protected]"
			]
		},
		"filter":{
			"names": [ "dragonite", "snorlax", "lapras" ]
		}
	},
	"places": {
		"university": {
			"latitude": "-23.123456",
			"longitude": "-51.123456"
		},
		"park": {
			"latitude": "-23.426085",
			"longitude": "-51.9397617"
		},
		"myhome": {
			"latitude": "-23.123456",
			"longitude": "-51.123456"
		}
	}
}

About Maps Key

https://developers.google.com/maps/documentation/javascript/get-api-key

Gmail Security

https://support.google.com/accounts/answer/6010255?hl=en

Usage

python main.py place

ex: python main.py university

Headless

sudo apt-get install xvfb

ex: xvfb-run -a python main.py place

pokemon-alert's People

Contributors

leandroxk avatar

Stargazers

Willian Kaudy avatar Robert Brinson avatar Sascha Hahne avatar Robert Kugler avatar  avatar Yoab Pizarro avatar

Watchers

 avatar  avatar

pokemon-alert's Issues

sending multiple emails

hi when its found a pokemon will keep emailing everytime it sees it again, so you can get 5/6 etc emails. Anyway to only email once?

Getting spawns from santa monica

Not sure if this is an issue with your program or FPM, but occasionally I will get results from santa monica instead of my designated place, which usually results in me getting 10 mails at a time since they get a lot of spawns over there.

two lines for retrying in requirements.txt

Why is there two lines?? I sent in a modified file and removed one of them since it throws an error when you try to install them, I mean seriously why is there two of them???????

Make coordinates clickable

Since I am having it sent as a text and there is limited characters can you have the coordinates be a link instead of having coordinates then the link? link cuts off for me.

scan area

Hi, how can you change the scanning area it is doing? as I would like it to cover a wider area. Thanks

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.