April 6, 20224 yr The ability to have Matrix as a notification agent would be great. Also having a section for custom agents. An example script to send a message to Matrix room (inc E2EE) 1 2 #!/bin/bash # https://gist.github.com/RickCogley/69f430d4418ae5498e8febab44d241c9 # https://gist.github.com/travnewmatic/769cd9532504e0f85983d69acd4a7d29 # # Get Access Token # curl -XPOST -d '{"type":"m.login.password", "user":"***your_username***", "password":"***your_password***"}' "https://matrix.org/_matrix/client/r0/login" msgtype=m.text homeserver=<homeserver> room=<room> accesstoken=<accesstoken> #Piped Version #curl -XPOST -d "$( jq -Rsc --arg msgtype "$msgtype" '{$msgtype, body:.}')" -H 'Authorization: Bearer $accesstoken' "https://$homeserver/_matrix/client/r0/rooms/$room/send/m.room.message" #Arg Version curl -XPOST -d '{'\"msgtype\":\"$msgtype\"', '\"body\"':'\""$*"\"'}' -H 'Authorization: Bearer $accesstoken' "https://$homeserver/_matrix/client/r0/rooms/$room/send/m.room.message" #RichText Version #curl -XPOST -d '{"msgtype":"m.text", "body":"**Hello**","format":"org.matrix.custom.html","formatted_body":"<strong>hello</strong>"}' -H 'Authorization: Bearer $accesstoken' "https://$homeserver/_matrix/client/r0/rooms/$room/send/m.room.message" Edited April 9, 20224 yr by CorvinusLucian duplicate access token in piped url
May 25, 20224 yr Author Should it be of interest, I'm working round the limited notification agent options via Mailrise (uses apprise api). Thanks to the Compose Manager plugin, it is very easy to run on the unraid server itself.
July 3, 20233 yr Oh just to let you know, I've implemented Pushbits notifications into Unraid which is a notification agent for Matrix-Synapse. Pushbits is based on the Gotify API and is working really well with Unraid. You can find the Docker container also in the CA App. & @kardinal EDIT: It looks something like that in the Unraid GUI: And if you click test you get this: The notifications are also color coded for Normal, Warning and Alert messages if enabled in Pushbits.
February 25, 20251 yr I just had a go at pushbits and it's very buggy and I couldn't get it working. I formally request direct to Matrix or Apprise as a notification agent. Thanks!
February 26, 20251 yr 7 hours ago, _freestone__ said: I just had a go at pushbits and it's very buggy and I couldn't get it working. I formally request direct to Matrix or Apprise as a notification agent. Can you please be a bit more specofic what is buggy? I’m using it for years now and it sent me thousands of push notifications without an issue:
March 24, 20251 yr Sorry for my question in this old message. But how use the script ( firts message ) with unRaid?? With PushBits? How Thanks a lot
March 25, 20251 yr 7 hours ago, Vctrsnts said: But how use the script ( firts message ) with unRaid?? With PushBits? How You don't need the script anymore. Just go to Settings -> Notification Settings, scroll down to PushBits and configure it:
March 25, 20251 yr So: - Token: Matrix token - URL: Matrix server address But then, how will the room be reported? And thanks for your reply. Update: Now I've seen it, it acts as an intermediary between unRaid and Matrix ( pushbits ) And from what I see, there's also a Docker version. Correct? Is it available on unRaid or Docker Hub? Thanks for everything. Edited March 25, 20251 yr by Vctrsnts
March 25, 20251 yr 17 minutes ago, Vctrsnts said: Update: You should really investigate before writing... 18 minutes ago, Vctrsnts said: Now I've seen it, it acts as an intermediary between unRaid and Matrix ( pushbits ) Yes. 18 minutes ago, Vctrsnts said: And from what I see, there's also a Docker version. Correct? Is it available on unRaid or Docker Hub? Both: Please refer to the documentation on how to set up PushBits, I have it now running for years and it just works.
March 25, 20251 yr I trying to install on unRaid, copy the config.example.yml and put the information: debug: false http: listenaddress: '' port: 8080 trustedproxies: [] certfile: '' keyfile: '' database: dialect: 'sqlite3' connection: 'pushbits.db' admin: name: 'admin' password: 'admin' # [required] matrixid: '@myUser:matrix.myServer.org' matrix: homeserver: 'https://matrix.myServer.org' # [required] username: 'myUser' # [required] password: 'myUser' security: checkhibp: false crypto: argon2: memory: 131072 iterations: 4 parallelism: 4 saltlength: 16 keylength: 32 formatting: coloredtitle: false alertmanager: annotationtitle: title annotationmessage: message repairbehavior: resetroomname: true resetroomtopic: true And I watch this error: ✔ Container matrixPushbits Started 0.3s 2025/03/25 17:19:46 Starting PushBits. Failed to find configuration config.yml panic: MatrixID is required, but blank goroutine 1 [running]: github.com/pushbits/server/internal/configuration.Get(0xc00031ff48) /build/internal/configuration/configuration.go:77 +0x167 main.main() /build/cmd/pushbits/main.go:32 +0x98 Failed to find configuration config.yml 2025/03/25 17:19:47 Starting PushBits. panic: MatrixID is required, but blank goroutine 1 [running]: github.com/pushbits/server/internal/configuration.Get(0xc00031ff48) /build/internal/configuration/configuration.go:77 +0x167 main.main() /build/cmd/pushbits/main.go:32 +0x98 Where is the problem? Because the MatrixID is with information. Thanks a lot
March 25, 20251 yr 5 minutes ago, Vctrsnts said: panic: MatrixID is required, but blank Maybe this is the issue…
March 25, 20251 yr Yes, but if matrixid is not blank. admin: name: 'admin' password: 'admin' # [required] matrixid: '@myUser:matrix.myServer.org' matrix: homeserver: 'https://matrix.myServer.org' # [required] username: 'myUser' # [required] password: 'myUser' the MatrixID is '@myUser:matrix.myServer.org'
March 25, 20251 yr 41 minutes ago, Vctrsnts said: the MatrixID is Sorry but if PushBits says that it's empty, it's empty, can't help here since it is working fine over here. Are you sure that your editor didn't change the formatting from the file?
March 25, 20251 yr It downloads the file and I'll redo it. Although the editor I'm using is VI. Thanks again for everything...
March 25, 20251 yr 2 hours ago, ich777 said: Sorry but if PushBits says that it's empty, it's empty, can't help here since it is working fine over here. Are you sure that your editor didn't change the formatting from the file? I've already gotten it working correctly through Docker and with my Matrix server. It took me a while to figure out how to use it, because the Pushbits Git information is a bit sketchy, and their website doesn't really explain how to get it working. But looking at the issues people have posted, I finally understood how everything worked. Thanks for everything. Now enjoy it and see if I can get more out of Pushbits by using it with other applications. PS: Will it work with FlexGet?
March 26, 20251 yr 9 hours ago, Vctrsnts said: Will it work with FlexGet? Granted that I don‘t know what FlexGet is, PushBits is almost the same as Gotify in terms of how you send messages, so to speak, if it supports Gotify it supports PushBits.
March 28, 20251 yr Flexget is a service that allows you to automate many things (downloading podcasts and reorganizing them, downloading and reorganizing series, movies, and much more). The only drawback is that the configuration is a bit complicated because everything is done through a YAML file that you have to build gradually. It also has several notification options that you can use, so that after completing a task, it notifies you via message. But the problem is that it uses an older version of Matrix and cannot be used to send these notifications with newer versions. And this is where I have to agree with you completely. Since PushBits emulates Gotify, what I've done is use Flexget's ability to use Gotify but using PushBits data, and now it's working perfectly. The only drawback I can find is that you can't send a message to Matrix with an attached image. It's a shame, but it seems to me the problem isn't with FlexGet or PushBits, but with Matrix's own protocol. Thanks again for all the help you've provided.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.