Coder Social home page Coder Social logo

static_pokemon_go_alert's Introduction

static_pokemon_go_alert

Makes use of data from sgpokemap.com.sg to alert you of Pokemon nearby. This script is suitable for a Ubuntu machine running in your house so that you can make it say what pokemon is nearby.

Tested only on Ubuntu 14.04 with Python 2.7.6. On other environments, the requests module for python will behave differently.

Step 1

Install this first. It is for the audio alert when there is a pokemon. You can use other text-to-speech packages if you like, but you will have to edit the code. You can use espeak, it pronounces pokemon names better.

sudo apt-get install gnustep-gui-runtime

Step 2

Next open up the poke_map.py file with your favourite editor and edit the latitude and longitude values to your own location. You can adjust the range (in metres) too.

Step 3

To run:

python poke_map.py
# Ensure that list_of_pokemon.json is in the same directory.

Step 4

Use Ubuntu's crontab to run this periodically and you have yourself a pokemon alert for your house. Insert this into your crontab, this will make the script run every 3 minutes from 10am to 10pm.

*/3 10-21 * * * python ~/Desktop/static_pokemon_go_alert/poke_map.py

static_pokemon_go_alert's People

Contributors

wongherlung avatar

Watchers

James Cloos avatar

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.