ofelia icon indicating copy to clipboard operation
ofelia copied to clipboard

Signal middleware

Open poplawskidaniel opened this issue 1 year ago • 4 comments

Added Signal middleware with https://github.com/bbernhard/signal-cli-rest-api usage. Approach copied from slack implementation. Tested on my fork. I am using that daily.

poplawskidaniel avatar Jan 11 '25 15:01 poplawskidaniel

Taking into account that bbernhard/signal-cli-rest-api is a self-hosted API wrapper around CLI, I'm not sure if it would make sense to create dedicated middleware for. Especially is API is as simple as

$ curl -X POST -H "Content-Type: application/json" 'http://localhost:8080/v2/send' \
     -d '{"message": "Test via Signal API!", "number": "+4412345", "recipients": [ "+44987654" ]}'

I don't want ofelia to end up with integration with dozens of APIs. Instead I'm wondering maybe building generic HTTP middleware with examples on how to use specific services will be better long term.

See discussion in:

  • https://github.com/mcuadros/ofelia/pull/313

taraspos avatar Feb 03 '25 11:02 taraspos

I don't want ofelia to end up with integration with dozens of APIs. Instead I'm wondering maybe building generic HTTP middleware with examples on how to use specific services will be better long term.

What about generic shell script exec middleware? or even a middleware to run another job as hook

akhy avatar Feb 05 '25 13:02 akhy

I would be very happy about a general webhook integration so that I can finally link the tasks with services like Uptime Kuma or Healthchecks.io. Then I would be able to monitor the execution of the tasks and receive a notification via those services if errors occur during execution.

mrclschstr avatar Feb 17 '25 08:02 mrclschstr

Taking into account that bbernhard/signal-cli-rest-api is a self-hosted API wrapper around CLI, I'm not sure if it would make sense to create dedicated middleware for. Especially is API is as simple as

$ curl -X POST -H "Content-Type: application/json" 'http://localhost:8080/v2/send' \
     -d '{"message": "Test via Signal API!", "number": "+4412345", "recipients": [ "+44987654" ]}'

I don't want ofelia to end up with integration with dozens of APIs. Instead I'm wondering maybe building generic HTTP middleware with examples on how to use specific services will be better long term.

See discussion in:

Sure. I've just created it like that because of my needs :D. It was pretty straightforaward and fast to implement. I've used such API because it's used in Uptime-Kuma, so I have it running and working already.

However it's not just simple POST call. You need to register and verify a number which using signal-cli-rest-api is also very easy to do instead general HTTP call.

poplawskidaniel avatar Mar 22 '25 11:03 poplawskidaniel