Fletchling is a Golbat webhook receiver that processes pokemon webhooks and computes nesting pokemon.
- Receives and processes pokemon on the fly via webhook from Golbat
- Uses global spawn data to not confuse event spawns (CD, Spotlight, etc) with nesting pokemon.
- No reliance on external sites for event or current nesting mon data.
- Tool for importing nests from overpass (fletchling-osm-importer)
- API to pull stats, purge stats, reload config, etc.
- Copy configs/fletchling.toml.example to configs/fletchling.toml and edit it.
- In golbat, add a new webhook entry to its config. It should look like this:
[[webhooks]]
url = "http://FLETCHLING-HOSTNAME:9042/webhook"
types = ["pokemon_iv"]
Replace 'FLETCHLING-HOSTNAME' with your host that is running Fletchling. If you are using pm2 and not using docker, this should likely be '127.0.0.1'. If you are using docker, your fletchling hostname will likely be 'fletchling'.
After adding the config to Golbat, restart Golbat to have it take effect.
- If you plan to use docker-compose, copy docker-compose.yml.example to docker-compose.yml and edit.
- There is an included docker-compose.yml.example file. Copy it to docker-compose.yml and edit it, if needed.
docker-compose up -d
You will need to have at least golang 1.22.1 installed. It is rather new as of the time of this writing. You may need to install it manually. See the instructions and download links.
make
pm2 start ./fletchling --name fletchling -o /dev/null
curl http://localhost:9042/api/config
-- this should give you the current processor configuration- Check the logs in logs/ (or the log_dir that you configured in fletchling.toml) for errors.
- Every minute, a log message will appear saying how many pokemon were processed. If this is 0, it means that Fletchling is not getting any webhooks. Check your Golbat webhooks configuration. Check the address Fletchling is listening on (http section in config).
- Gather your Golbat DB info.
- Create
configs/fletchling.toml
as per 'Configuration' instructions above.- configure your existing golbat db in configs/fletchling.toml in BOTH 'nests_db' and 'golbat_db' sections.
- fix the listen address in 'http' section, if necessary.
- nuke your cronjob.
- start up fletchling per 'Running' section above.
I would just start over, personally. :)
Importing docs can be found here.
API docs can be found here.
FAQ can be found here.
Thanks to the folks who put a lot of time and effort into nestcollector! Most of the importing, nest-activation filtering, and so forth were either copied/ported from nestcollector or used as a guide to achieve some amount of compatibility.
All your nest are belong to us.