-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Matrix #105
Comments
Sounds great. Can someone help with the implementation? |
Could use this lib: https://github.com/matrix-org/gomatrix |
I don't think an external library is needed. Use the pushover service as a basis/inspiration and it wouldn't require a lot of work. |
recently i noticed that sending a message to matrix (not e2e) is as simple as a curl call. here are my findings, maybe they help: one time setuppre-setup done by the userfrom my point of view this is the part the user should do by itself. get an access tokencurl -XPOST -d '{"type":"m.login.password", "user":"username", "password":"password"}' "https://matrix.org/_matrix/client/r0/login" get room id
sending a messageaccess_token=YOURACCESSTOKEN
# $message_id is to prevent sending duplicate messages in a certain timeframe (i think it is 24h). you don't have to provide it but it makes sense.
message_id=YOURMESSAGEID
# jo produces a json from bash variables
message_json_data=$(jo -p msgtype="m.text" body="my message - aka hello world")
full_matrix_url="https://matrix.org/_matrix/client/r0/rooms/$room_id/send/m.room.message/$message_id?access_token=$access_token"
curl --silent -X PUT -H "Content-Type: application/json" -d "$message_json_data" $full_matrix_url |
Hi,
nobody seemd to mention Matrix support. Would be nice to have that!
The text was updated successfully, but these errors were encountered: