This guide will walk you through the initial setup of PokeAlarm.
This guide assumes the following:
- You have Python 2.7 successfully installed
- You have Git successfully installed
- You have RocketMap or another supported scanner successfully installed.
- You have either Notepad++, Nano, or Vi(m) installed. Do NOT use or open any files with Notepad or TextEdit - they will break your files!
-
Clone PokeAlarm locally - Create a new folder to install PokeAlarm in (It is recommended you store it in a different folder than your scanner). Use
git clone https://github.com/kvangent/PokeAlarm.git
to create a local copy of the project. -
Install requirements - Navigate into the root folder of your PokeAlarm installation. Run
pip install -r requirements.txt --upgrade
. This will install and update the packages that PokeAlarm needs to run. -
Create your Filters configuration file - Copy and paste
alarms.json.example
. Rename the copy toalarms.json
. This file will tell PokeAlarm what information it should send. -
Create your Alarms configuration file - Copy and paste
filters.json.example
. Rename the copy tofilters.json
. This file will tell PokeAlarm what the alerts to say and what service to send them on. -
Finish configuring PokeAlarm - Now you should configure PokeAlarm. Use the Configuration Guide for more detailed instructions on how to personalize PokeAlarm to fit your needs.
-
Start PokeAlarm - Run the command
python start_pokealarm.py
to have PokeAlarm start and begin listening for information via webhooks.
Note: PokeAlarm installs some dependenices on the fly. If you encounter errors when first running a new service, try running as root (withsudo
) to insure it can install the dependency. -
Send webhooks to PokeAlarm - Make sure you are sending your webhooks to PokeAlarm by adding PokeAlarm's address to your scanner. If you are using Rocketmap (and the default PokeAlarm settings), add
-wh http://127.0.0.1:4000
to your start up command orwebhook:http://127.0.0.1:4000
to yourconfig.ini
file.
Updating PokeAlarm is a simple process, provided you haven't changed any files you weren't supposed to. For this reason, it is highly suggested not to edit any files that end in the .py
extension.
- Open a command line in the root folder of your PokeAlarm installation.
- Run
git pull
. - Run
pip install -r requirements.txt
. - Make sure to checkout the Patch Notes to see if any updates to your config files are nessecary.