ZSamuels28 / UnifiClientCheck-Docker

Monitor UniFi networks for new devices with Telegram or Ntfy alerts using Art-of-WiFi/UniFi-API-client.
Apache License 2.0
16 stars 2 forks source link

Custom webhooks #8

Open lazmo88 opened 1 month ago

lazmo88 commented 1 month ago

Hello 👋

Any chance we could add custom webhooks and option to filter based on different events such as client joined/active, client inactive for 5 minutes?

Would be useful for various use cases such as presence detection, time logging etc.

ZSamuels28 commented 1 week ago

@lazmo88 what type of webhook are you looking for? Would this just be a JSON payload of when a client joins and details about that client?

The other items seem out of scope for this app as it would require significant rework to have events pushed out. If you wanted to look into building something like this, I'm happy to help out! Check out the https://github.com/Art-of-WiFi/UniFi-API-client library.