-
Notifications
You must be signed in to change notification settings - Fork 6
Installation
This guide assumes:
- You have a working RocketMap installation. There is a detailed wiki here and here
- You have the latest version of python 2.7 installed
- You have a working git installation
- You have a good text editor installed. Do NOT use Notepad or TextEdit! Use PyCharm or Notepad++
PokeAlarm Version 3 is a lightweight webserver designed to receive POST requests from your local RocketMap server. It sorts through these requests, letting you know through your favorite service something has happend. It might be a tweet when a rare pokemon spawning down the street, a Telegram message letting you know a lured pokestop only a few minutes away, or else a Discord notification letting you know your teams gym has fallen.
Below, we'll configure PokeAlarm and set it to listen for POST requests. Then we'll start RocketMaps to send out POST requests at the specific HOST and PORT on which your PokeAlarm installation is listening.
-
Clone PokeAlarm locally. Navigate to the folder you want to store the Alarm in. Use
git clone https://github.com/kvangent/PokeAlarm.git
to create a local copy of the project. -
Install dependencies. Go into the root directory of your local PokeAlarm folder. Run
pip install -r requirements.txt
. This will install additional packages that PokeAlarm needs to run. -
Configure filters and alarms (and maybe geofences). (Windows or Mac users: do not use the default text editors like Notepad and TextEdit!)
- Make a copy of the
filters.json.example
file and rename it tofilters.json
. Editfilters.json
with your [filter configuration] settings by setting the Pokemon, Pokestop, Gym, Egg, and Raid values you want to"True"
. Visit the filter configutation wiki page for details. - Optional: Make a copy of the
geofence.txt.example
file and rename it togeofence.txt
. Visit the [Geofencing] wiki page for details. - Make a copy of the
alarms.json.example
file and rename it toalarms.json
. Editalarms.json
with your alarm configuration settings. Visit the alarm configuration wiki page for details.
- Make a copy of the
-
Start Pokealarm. Run
python start_pokealarm.py
. You should receive a notification right away, letting you know your alarm has been set up correctly. The default listening address ishttp://127.0.0.1:4000
. You can use the-H HOST -P PORT
arguments to set a custom listening address and port. Note: This address/port should be DIFFERENT then the address/port your map is running on. -
Start RocketMap. Start your map like normal, but add the
-wh http://127.0.0.1:4000
(or whatever listening address you specified in the last step). You can also putwebhook:http://127.0.0.1:4000
inconfig.ini
file of your RocketMap installation as well. -
Monitor PokeAlarm output. PokeAlarm should log to console every time it learns about a pokemon - and will say
Pokemon notification was triggered!
when a Pokemon on your list was found. If you aren't receiving anything, make sure that you have the correct address running on your map and try again!
- Change into the root directory of your PokeAlarm installation folder.
- Run
git pull
. - Run
pip install -r requirements.txt
.