matrix
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteProchaine révisionLes deux révisions suivantes | ||
matrix [2017/10/17 08:32] – créée simon | matrix [2019/06/05 10:38] – simon | ||
---|---|---|---|
Ligne 6: | Ligne 6: | ||
Client ([[https:// | Client ([[https:// | ||
- | ==== Quaternion | + | === Installation sur Debian (Stretch ou Testing ) === |
- | Client en QT/QML ([[https://matrix.org/docs/projects/client/quaternion.html|Page sur matrix.org]]). | + | On ajoute les dépôts de Riot : |
+ | <code bash> | ||
+ | simon@laptop: | ||
+ | --2017-10-17 10: | ||
+ | Résolution de riot.im (riot.im)… 83.136.250.51, | ||
+ | Connexion à riot.im (riot.im)|83.136.250.51|: | ||
+ | requête HTTP transmise, en attente de la réponse… 200 OK | ||
+ | Taille : 8239 (8,0K) [text/ | ||
+ | Sauvegarde en : « repo-key.asc » | ||
+ | |||
+ | repo-key.asc | ||
+ | |||
+ | 2017-10-17 10:37:13 (51,9 MB/s) — « repo-key.asc » sauvegardé [8239/ | ||
+ | |||
+ | simon@laptop: | ||
+ | Mot de passe : | ||
+ | root@laptop:/ | ||
+ | OK | ||
+ | root@laptop:/ | ||
+ | |||
+ | root@laptop:/ | ||
+ | |||
+ | root@laptop:/ | ||
+ | # Riot (Matrix client) | ||
+ | deb https:// | ||
+ | deb-src https:// | ||
+ | </ | ||
+ | |||
+ | Mise à jour des dépôts et recherche : | ||
+ | <code bash> | ||
+ | root@laptop:/ | ||
+ | |||
+ | root@laptop:/ | ||
+ | En train de trier... Fait | ||
+ | Recherche en texte intégral... Fait | ||
+ | riot-web/ | ||
+ | A feature-rich client for Matrix.org | ||
+ | </ | ||
+ | |||
+ | Installation : | ||
+ | <code bash> | ||
+ | root@laptop:/ | ||
+ | Lecture des listes de paquets... Fait | ||
+ | Construction de l' | ||
+ | Lecture des informations d' | ||
+ | The following additional packages will be installed: | ||
+ | libappindicator1 libdbusmenu-gtk4 libindicator7 | ||
+ | Les NOUVEAUX paquets suivants seront installés : | ||
+ | libappindicator1 libdbusmenu-gtk4 libindicator7 riot-web | ||
+ | 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. | ||
+ | Il est nécessaire de prendre 46,8 Mo dans les archives. | ||
+ | Après cette opération, 181 Mo d' | ||
+ | Souhaitez-vous continuer ? [O/n] | ||
+ | </ | ||
+ | ===== Bots ===== | ||
+ | ==== Webhook et Matrix ==== | ||
+ | Je cherchais à envoyer des notifications sur mon compte Matrix via un webhook. J'ai trouvé une [[https://github.com/42wim/matterbridge/issues/553# | ||
+ | |||
+ | {{ :20190506-matrix-webhook-bot.png?400 |}} | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Quand on envoie " | ||
+ | < | ||
+ | Here's your webhook url for !igamGYevYexvuPZNhX: | ||
+ | To send a message, POST the following JSON to that URL: | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | On peut utiliser [[curl]] pour envoyer un texte sur l' | ||
+ | |||
+ | <code bash> | ||
+ | $ curl -d ' | ||
+ | {" | ||
+ | </ | ||
+ | |||
+ | Résultat : | ||
+ | |||
+ | {{ : |