engels74 / mover-status

Mover Status Script for Unraid / UnraidOS
GNU Affero General Public License v3.0
12 stars 0 forks source link

Request - Apprise API? #5

Open nebb00 opened 3 months ago

nebb00 commented 3 months ago

Just wondering if you would be interested adding Apprise support. Its just an curl using the right formatting, that way any notification service could be used. Just an idea.

https://github.com/caronc/apprise-api

engels74 commented 3 months ago

I'll look into it, no promises :).

But I'm thinking of restructuring this little project a bit, or doing an off-shoot version of it.. Probably in Python or something, where I can split up the project to multiple files. I don't think currently the user scripts plugin in Unraid supports this properly.

Either way, it's going to be a while before I'll take a proper look at this project again. I'll happily accept a PR, if anyone's up for it.

Reason being the bash script is getting increasingly complex, and that combined with me not being that great of a programmer, makes it a bit hard to manage. Especially if I keep on adding more and more notification services, that all has different approaches to how they accept/decode e.g. markdown or formatting in general.

So my plan is to make it available as a Docker image on the Unraid, that then uses pid=host or uses the /proc in read-only mode or something, if that's even possible. This should also mitigate the issue(s) with it not working with cron and so on. At least move away from having one huge / long bash script. Maybe not a docker image, but anything that's not one huge bash script.