Post Azw1LqO5ripAcDspSC by selea@social.linux.pizza
 (DIR) More posts by selea@social.linux.pizza
 (DIR) Post #AzvuVnFBi1345AVyy0 by selea@social.linux.pizza
       2025-11-05T10:52:38Z
       
       0 likes, 1 repeats
       
       Question:I need a self-hosted webhook solution, where I can create customized webhooks that triggers bash-scripts, #askfedi #askfediverse #linux #bash
       
 (DIR) Post #Azvui2otcjb1ri3iV6 by portaloffreedom@social.linux.pizza
       2025-11-05T10:54:51Z
       
       0 likes, 0 repeats
       
       @selea cgi-bin?
       
 (DIR) Post #AzvuksGFL0SJzDCWvY by phoenix@chaos.social
       2025-11-05T10:55:21Z
       
       0 likes, 0 repeats
       
       @selea I maintain https://codeberg.org/grisu48/weblug for exactly this purpose.
       
 (DIR) Post #AzvvDkqzxNRNPYA9j6 by selea@social.linux.pizza
       2025-11-05T11:00:31Z
       
       0 likes, 0 repeats
       
       @phoenix After a quick look, ( I am not a dev ) it looks like you can set it up to accept two or more arguments in the webhook?My usecase is - Webhook from Uptime Kuma - to a bash script that sends a SMS to myself
       
 (DIR) Post #AzvwdJSaWojPvzUoue by phoenix@chaos.social
       2025-11-05T11:16:24Z
       
       0 likes, 0 repeats
       
       @selea Arguments are not yet supported, no but you can open a feature request in the issue tracker.
       
 (DIR) Post #Azvx9l5RLfi6sq8kAS by m4iler@infosec.exchange
       2025-11-05T11:22:16Z
       
       0 likes, 0 repeats
       
       @selea You'll kill me, but I got ntfy for that 😂
       
 (DIR) Post #Azw1GBvcre5ZgZs9UO by selea@social.linux.pizza
       2025-11-05T12:08:14Z
       
       0 likes, 0 repeats
       
       @m4iler I do not want push, just sms - sms works even if internet does'nt ;)
       
 (DIR) Post #Azw1LoLtQvsMIoq2kK by kbm0@mastodon.social
       2025-11-05T11:04:24Z
       
       0 likes, 0 repeats
       
       @portaloffreedom @selea Yes this. It's a common trap to forget that a basic feature exists and then gasp in awe when it is given back to you disguised as a fancy framework.
       
 (DIR) Post #Azw1Lp5GiEAiZY4HTM by portaloffreedom@social.linux.pizza
       2025-11-05T11:18:50Z
       
       0 likes, 0 repeats
       
       @kbm0 @selea I would probably wrap it in a small executable that starts the bash script, to add a bit of isolation. Unless you need to see the bash script output in the http response.I can make you that small executable if you want.
       
 (DIR) Post #Azw1LqO5ripAcDspSC by selea@social.linux.pizza
       2025-11-05T12:09:07Z
       
       0 likes, 0 repeats
       
       @portaloffreedom ofcourse, but the software I use does not support that sadly - just webhooks.@kbm0
       
 (DIR) Post #Azw1SK48R5ikOjdZ9k by selea@social.linux.pizza
       2025-11-05T12:10:21Z
       
       0 likes, 0 repeats
       
       @mxfraud I scimmed throu that yesterday, but I thought it only allowed one webhook per deployment?
       
 (DIR) Post #Azw1ZNGevgOeM7rEqe by m4iler@infosec.exchange
       2025-11-05T12:11:38Z
       
       1 likes, 0 repeats
       
       @selea Riiiight.If you want to trigger stuff using SMS, I have a script for mmcli that reads messages and parses for the data I need.I parse it with grep, and you can set it for "authentication" by grepping for your number and the text can contain the command you want.I don't know the security implication, since your number can be stolen and SMS are unencrypted, but for basic stuff it may work.Let me find it and get back to you
       
 (DIR) Post #Azw21tXSXYLkYDJcUi by m4iler@infosec.exchange
       2025-11-05T12:16:53Z
       
       0 likes, 0 repeats
       
       @selea #!/bin/bashmmcli -m 0 --messaging-list-sms | grep "No sms messages were" > /dev/null && exit 1smsnum=$(mmcli -m 0 --messaging-list-sms | head -n1 | cut -d'/' -f6 | cut -d' ' -f1)json=$(mmcli -m 0 --messaging-list-sms -J -s $smsnum)sender=$(echo $json | jq '.sms.content.number')text="$(echo $json | jq '.sms.content.text' | sed -s 's/\\n/  /g')"I had issues with newlines in text messages sending via ntfy, so I pushed it into variables with \n replaced by two spaces. Other than that, once you enable the modem, you should be good to go, just perform an action on $text, whatever it may be. I used to parse numbers from the FB leak database
       
 (DIR) Post #Azw64vjJFXgY22Yqn2 by selea@social.linux.pizza
       2025-11-05T13:02:07Z
       
       0 likes, 0 repeats
       
       @mxfraud Does it accept arguments?
       
 (DIR) Post #Azw8phkTFVooBkXHaC by portaloffreedom@social.linux.pizza
       2025-11-05T13:33:09Z
       
       0 likes, 0 repeats
       
       @selea @kbm0 isn't a webhook just an URL that some service will GET at the appropriate time?What am I missing here?
       
 (DIR) Post #AzwF2KRBpUrjNdv6p6 by chebra@mstdn.io
       2025-11-05T14:42:35Z
       
       0 likes, 0 repeats
       
       @selea Maybe overkill, but would be able to create *very* customizable webhooks: Node-RED
       
 (DIR) Post #AzwU4VVn7qK9cNZMS8 by domm@social.linux.pizza
       2025-11-05T17:31:02Z
       
       0 likes, 0 repeats
       
       @selea Maybe just using a CGI script would be an easy solution?
       
 (DIR) Post #AzwWrM07TVqMDcAtTk by selea@social.linux.pizza
       2025-11-05T18:02:18Z
       
       0 likes, 0 repeats
       
       @domm You are not alone with this suggestion, and I might actually looks into it.
       
 (DIR) Post #AzwWxFawCpAg5VCx2e by domm@social.linux.pizza
       2025-11-05T18:03:22Z
       
       0 likes, 0 repeats
       
       @selea It's a pitty that nginx does not support CGI (at least not like Apache does)
       
 (DIR) Post #AzwWy3sjEx6y39uriK by selea@social.linux.pizza
       2025-11-05T18:03:20Z
       
       0 likes, 0 repeats
       
       @portaloffreedom It can POST aswell,But yeah, I have given this some thought and this is absolutely the smartest solution, if I can treat it as a webhook from Uptime Kuma :)@kbm0
       
 (DIR) Post #AzwZozIXDGLF5dLrJg by finlaydag33k@social.linux.pizza
       2025-11-05T18:35:26Z
       
       0 likes, 0 repeats
       
       @selea And this, my UNIX beard, is why I learned to code. XD
       
 (DIR) Post #AzwbTrcwjmMh7txDcW by selea@social.linux.pizza
       2025-11-05T18:54:05Z
       
       0 likes, 0 repeats
       
       @finlaydag33k I am soon forced to yes
       
 (DIR) Post #Azwd2VHVuTYvuc0i6y by finlaydag33k@social.linux.pizza
       2025-11-05T19:11:35Z
       
       0 likes, 0 repeats
       
       @selea Come to the dark side!