matrix
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédente | |||
matrix [2019/06/05 13:18] – [Webhook et Matrix] simon | matrix [Date inconnue] (Version actuelle) – supprimée - modification externe (Date inconnue) 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Matrix ====== | ||
- | Matrix est un protocole de communication (texte, vocal et visioconférence) libre et fédéré. Matrix permet également de se connecter à d' | ||
- | ===== Client(s) ===== | ||
- | ==== Riot.im ==== | ||
- | Client ([[https:// | ||
- | |||
- | === Installation sur Debian (Stretch ou Testing ) === | ||
- | 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/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:// | ||
- | |||
- | On invite le bot " | ||
- | |||
- | {{ : | ||
- | |||
- | {{ : | ||
- | |||
- | 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 : | ||
- | |||
- | {{ : | ||
- | |||
- | ==== Bot Matrix <-> Telegram ==== | ||
- | Basé sur : [[https:// | ||
- | |||
- | On ajoute le bot " | ||
- | {{ :: | ||
- | |||
- | On fait la commande pour se connecter à Telegram et on suit la procédure pour se connecter : | ||
- | {{ :: | ||
- | |||
- | Un bot va ouvrir une conversation sur Matrix pour chaque conversation (active) sur Telegram : | ||
- | {{ :: |
matrix.1559740682.txt.gz · Dernière modification : 2020/08/09 12:59 (modification externe)