sct / overseerr

Request management and media discovery tool for the Plex ecosystem
https://overseerr.dev
MIT License
3.96k stars 453 forks source link

Notification Agents - Matrix #3159

Closed spider-one closed 1 year ago

spider-one commented 1 year ago

Description

Would love to see Matrix supported.

Keep up the good work! Overseerr see's a ton of use in my house and has been working flawlessly! Currently using the Telegram notifications which work perfectly but would like to have these match with my other services on Matrix. Minor issue.

Desired Behavior

Matrix support for notifications

Additional Context

No response

Code of Conduct

louisgrasset commented 1 year ago

Hey, quick question: do you prefer a single overseer matrix user to handle that job or a matrix user you create specifically for that?

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

dannymate commented 1 year ago

Hey, quick question: do you prefer a single overseer matrix user to handle that job or a matrix user you create specifically for that?

Not sure if you still need an aswer for this.

By the first option I'm guessing you mean a global bot that serves everyone across instances.

The second option you're saying to create a bot that either the user would input the details for or overseerr would register with a specific instance.

For me personally I'd want the second option as I host my own server and in theory others may not be running a federated instance.

On the flip side, those people using somebody elses instance of Matrix may require a universal bot.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

angel1731 commented 1 year ago

I join the question. Additionally, I will describe the problem that has not yet been solved. In Matrix, it is possible to send notifications from the Supervisor via a Web interceptor. But the peculiarity of Matrix is that images cannot be displayed directly in Matrix clients. They can be shown if they are first uploaded to the Synapse server itself and inserted into json after receiving a special link. Example: URL: http://server/_matrix/client/r0/rooms/%21id_room:id_server/send/m.room.message Payload: { "msgtype": "m.image", "info":{ "mimetype":"image/png","size":512,"w":640,"h":940 }, "body": "{{subject}}", "url":"mxc://server/id_image" } Details: %21 - replaces ! in the Matrix id room

What is missing: Loading an image from the {{image}} template and substituting the newly generated msc://server/id_image link into the payload.

If this detail is solved, the functionality will be expected by the rest of the ready-made notification solutions.