You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discord Webhooks for new Stops, Gyms and Portals. Will also help with updating names/images and deleting Stops that turned into Gyms.
Notes
This project is pretty new, so there's a high chance for errors. If you have any questions, feel free to DM me on Discord (Malte#3333)
Only tested for python3.6 - no idea if anything is working on other python versions
The Script will work perfectly fine if you don't track Portals. I do still recommend to have an extra Portal Scraper Script running.
stop_watcher.py, edit_watcher.py and init.py can be run with -c whatever.ini to use a custom config file. Should help if you want to use the script for multiple areas or discord channels
Usage
git clone https://github.com/ccev/stopwatcher.git && cd stopwatcher, pip[3[.6]] install -r requirements.txt, then copy and rename default.ini.example to default.ini and configure everything. Refer to the table below if you're not sure about specific variables.
IMPORTANT: Before you even touch stop_watcher.py, run init.py once! This will fill in the cache files with all stops/gyms/portals in your database.
After configuring default.ini and running init.py you can start the main script using python[3[.6]] stop_watcher.py
There's an additional script in this repo, the edit_watcher.py. This will track any changes made to Portal titles, locations and images in your given area and send them to the given Webhook. Note that this only works for Portals.
To enable it, go to the [Edit Watcher] part of your config file and fill in EXTRA_PORTAL_DB_NAME, EXTRA_PORTAL_TABLE and WEBHOOK_URL. The first two options are the names for an additional table needed. I recommend to put your manualdb name for EXTRA_PORTAL_DB_NAME and editwatcher_portals for EXTRA_PORTAL_TABLE. The Script will create the table for you. For additional info, please refer to the table below.
Static Maps
Examples
Mapbox (Super Fancy mode)
Mapbox
Google
OSM (Mapquest)
Usage
Super Fancy mode:
I'd recommend to have Super Fancy mode enabled. It will show all surrounding Stops/Gyms in the static map. To use it, you'll need to have SUPER_FANCY_STATIC_MAPS enabled, have a working Imgur Client ID and use mapbox as your PROVIDER.
Imgur:
Since Super Fancy Static Map URLs are likely to exceed Discord's 2000 character limit, you'll need an Imgur Client ID. I also recommend to turn on USE_IMGUR_MIRRORS_FOR_EVERYTHING which will also mirror other types of static maps to Imgur. This will help to protect your API keys and prevents possibly reaching the 2000 character limit.
To get your Imgur Client ID, go to https://api.imgur.com/oauth2/addclient, sign in, tick OAuth 2 authorization without a callback URL and then fill out Application name:, Email: and Description:. It does not matter what you put in. Solve the captcha and click submit. Now copy the Client ID.
Providers:
Mapbox: Go to https://www.mapbox.com/, click Start mapping for free, log in and copy the Key. Limit: 50,000