-
-
Notifications
You must be signed in to change notification settings - Fork 65
Add webhook support #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add webhook support #384
Conversation
Att the moment I only have created the web ui for the monthly report but the code support all type of webhook (daily with custom information or on event) |
hey @BreizhHardware . Just tested this out. theres an error when running.
Think on new instnaces, when the db returns 0 rows for |
…nd fix error when webhook is undefined
It should be fixed now (and I have removed all the french debug things that I had left) |
…s refreshed on interval increase refresh interval to 10 seconds removed redundat empty webhooks message and check
so far looks good. il check again once everything is completed. I added a few quick QOL changes |
Hi, I come back to you after a while (I was pretty busy), I have a question, for which event do you find relevant to send a notification using a webhook ? I was thinking when a new media is discovered and when a session start, but do you have any other idea ? |
- Implement event handlers for 'playback_started', 'playback_ended' and 'media_recently_added' - Add API routes to manage event webhook status - Create user interface components for easy webhook configuration - Update webhook manager to properly trigger events - Add translations for new UI elements
…or playback and media actions
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Hi, I have add event based webhook and generic webhook support. |
Hey @BreizhHardware , sorry for taking so long to get back to this, il get to reviewing it over the next few days and provide any feedback if any |
Hey @BreizhHardware , everything seems good, im going to merge this into unstable for now and work on adding more ui elements later for the different hook types. The base functionality seems good so far and dont want anything to break due to merge conflicts |
This pull request introduces a webhook management system that includes creating, scheduling, and triggering webhooks, along with a new API for managing them. Key changes include the addition of a
WebhookManager
class, aWebhookScheduler
class, a new database table for webhooks, and corresponding API routes.Webhook Management System
WebhookManager
Class:WebhookScheduler
Class:Database and API Enhancements
Database Migration:
webhooks
table to store webhook configurations, including fields for name, URL, headers, payload, trigger type, schedule, and more.API Routes for Webhooks:
GET
,POST
,PUT
,DELETE
), along with endpoints to test and trigger monthly summary webhooks.Integration and Dependencies
Server Integration:
WebhookScheduler
in the server setup. [1] [2] [3]New Dependency:
node-cron
for scheduling webhook tasks.Used to complete Webhooks? #6