Waking my #Librem5 from suspend when a new #matrix message triggers a notification.

Starring:

matrix server: #conduit
#UnifiedPush and notification server: #ntfy
#sip client: #pjsua
#fractal: matrix client
#feedbackd: rhythm & sound

https://git.sr.ht/~chrichri/Librem5-wake-on-IM

Follow

@me Nice write up.

To wake up the phone one can also do `ntfy <topic> send-sms.sh` and then mark the number that sends the SMS as silent in .

The SMS can be sent from the UP server via an old phone or via services like text-belt.

(that's what I'm using atm to get my devices to sleep longer).

@me a nice feature of SMS is that you can put the metadata into the SMS so one can e.g. just fetch that one single message in matrix (once chatty supports this, l already added support to libcmatrix)

@agx@librem.one Yes, that's supperior if sending SMS is cheap or flat. I looked around for cheap SMS and it seems to depend on the volume: either a flat starting from 3,50€ / month or some internet service charging around 0,06 € / SMS.

And there are shady services offering SMS for free via form on the internet. I don't believe in services that are for free and protect my privacy.

The companies I use for calling I do pay already even though I believe that calling for signaling only might be against my contract.

I guess the best solution will be if people join into groups to drive a SMS flat to share the monthly price. The groups still would need to trust each member or at least the admins, because they have their numbers.

Implementing a notification distributor into chatty is a genius move 😀. It'd be great if it could subscribe over IP as well. This could open the way to a protocol that avoids sending SMS in times the distributor is online and receiving notifications via IP.

This could work like a fallback connection: if the notification server doesn't detect the distributor getting a notification it'll fallback to pushing it out by SMS.

@agx@librem.one P.D.

It would be really great if the chatty distributor would offer from the beginning an option to run scripts for received notifications.

Setting up my POC for calling to wake up using the ˋntfyˋ cli client has been great fun, because I could just hack away with some script that is called on each incoming notification.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml