Monocle icon indicating copy to clipboard operation
Monocle copied to clipboard

[Feature Request] When workers detect a gym changes hands, send notification.

Open Aethios opened this issue 7 years ago • 5 comments

I know gym data is already stored with info about the defenders, so encounters are already happening and being saved in the database. It would be helpful if, when a gym changes hands, information about the change were sent to notifications and/or webhooks. Similar scripts like RocketMaps already have this feature, and PokeAlarm is already set up to receive them.

Aethios avatar Mar 03 '17 23:03 Aethios

Yes please and a report on each gym!

baskettcase avatar Mar 06 '17 00:03 baskettcase

Im looking forward to this one, it'll make my keeping track of gym changes a whole lot easier :) I might give it a go, but it would most likely be a hack since Im not a python coder, but I see in the web.py console that it displays the new gym icon, so there is definitely a trigger of some sort when a change occurs.

baskettcase avatar Apr 25 '17 23:04 baskettcase

Where are you seeing this gym data? I just checked the database, it is not in there. Only the basic info is stored: lat, long, team, prestige, king pokemon

DavePlater avatar Apr 26 '17 03:04 DavePlater

@DavePlater Im just seeing when /gym_data is called that when a gym changes color then a new fort is loaded. So whenever a new fort image is loaded then it seems like that would be a good time to send a notification...

baskettcase avatar Apr 26 '17 04:04 baskettcase

Oh I thought maybe you had found the data on all the defenders and I was looking for it.

DavePlater avatar Apr 28 '17 04:04 DavePlater