Outils pour utilisateurs

Outils du site


matrix

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
Prochaine révisionLes deux révisions suivantes
matrix [2017/10/17 08:50] – [Riot.im] simonmatrix [2019/06/05 10:38] simon
Ligne 6: Ligne 6:
 Client ([[https://riot.im/|Site Riot.im]]) Client ([[https://riot.im/|Site Riot.im]])
  
-=== Installation sur Debian (Stretch) ===+=== Installation sur Debian (Stretch ou Testing ) === 
 +On ajoute les dépôts de Riot :
 <code bash> <code bash>
 simon@laptop:~$ wget https://riot.im/packages/debian/repo-key.asc simon@laptop:~$ wget https://riot.im/packages/debian/repo-key.asc
Ligne 32: Ligne 33:
 deb https://riot.im/packages/debian/ stretch main deb https://riot.im/packages/debian/ stretch main
 deb-src https://riot.im/packages/debian/ stretch main deb-src https://riot.im/packages/debian/ stretch main
 +</code>
  
 +Mise à jour des dépôts et recherche :
 +<code bash>
 root@laptop:/home/simon# apt update root@laptop:/home/simon# apt update
  
-root@laptop:/home/simon# apt search riot+root@laptop:/home/simon# apt search ^riot
 En train de trier... Fait En train de trier... Fait
 Recherche en texte intégral... Fait Recherche en texte intégral... Fait
-aisleriot/stable 1:3.22.1-1 amd64 +riot-web/testing 0.13.amd64
-  collection de jeux de carte de solitaire pour GNOME +
- +
-barrnap/stable 0.7+dfsg-2 all +
-  prédiction ribosomale rapide d'ARN +
- +
-fonts-noto-unhinted/stable 20161116-1 all +
-  "No Tofu" font families with large Unicode coverage (unhinted) +
- +
-libcss-minifier-perl/stable 0.01-1 all +
-  extension Perl de réduction de CSS +
- +
-libunistring-dev/stable 0.9.6+really0.9.3-0.1 amd64 +
-  bibliothèque C de chaînes de caractères Unicode –⋅fichiers de développement +
- +
-libunistring0/stable,now 0.9.6+really0.9.3-0.1 amd64  [installé] +
-  bibliothèque C de chaîne de caractères Unicode +
- +
-python-stdnum/stable 1.5-1 all +
-  Python module to handle standardized numbers and codes +
- +
-python3-stdnum/stable 1.5-1 all +
-  Python module to handle standardized numbers and codes (Python3 version) +
- +
-riot-web/testing 0.12.amd64+
   A feature-rich client for Matrix.org   A feature-rich client for Matrix.org
 +</code>
  
-ruby-riot/stable 0.12.7-1 all +Installation 
-  fast, expressive, and context-driven unit-testing framework for Ruby +<code bash>
- +
-superiotool/stable 0.0+r6637-1+b2 amd64 +
-  Super I/O detection tool +
- +
-texlive-music/stable 2016.20170123-5 all +
-  TeX LiveMusic packages +
- +
-tofrodos/stable 1.7.13+ds-2 amd64 +
-  conversion DOS <UNIX de fichiers texte, alias tofromdos +
 root@laptop:/home/simon# apt install riot-web  root@laptop:/home/simon# apt install riot-web 
 Lecture des listes de paquets... Fait Lecture des listes de paquets... Fait
Ligne 89: Ligne 60:
 Après cette opération, 181 Mo d'espace disque supplémentaires seront utilisés. Après cette opération, 181 Mo d'espace disque supplémentaires seront utilisés.
 Souhaitez-vous continuer ? [O/n]  Souhaitez-vous continuer ? [O/n] 
 +</code>
 +===== 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#issuecomment-435947716|issue Github]] qui en parle et qui propose d'utiliser [[https://t2bot.io/webhooks/|t2bot.io]].
  
 +On invite le bot "@_webhook:t2bot.io" :
 +
 +{{ :20190506-matrix-webhook-bot.png?400 |}}
 +
 +{{ :capture_du_2019-06-05_12-26-31-webhook-matrix.png?400 |}}
 +
 +Quand on envoie "!webhook" au bot, il répond : 
 +<code>
 +Here's your webhook url for !igamGYevYexvuPZNhX:duniter.be: https://webhooks.t2bot.io/api/v1/matrix/hook/hjyErSrz7NxvRM71U5PGfojarGNLZcNQmO5Tj2NM9yszoRd9trk7TQObfhUgMARD
 +To send a message, POST the following JSON to that URL:
 +{
 +    "text": "Hello world!",
 +    "format": "plain",
 +    "displayName": "My Cool Webhook",
 +    "avatarUrl": "http://i.imgur.com/IDOBtEJ.png"
 +}
 </code> </code>
-==== Quaternion ==== + 
-Client en QT/QML ([[https://matrix.org/docs/projects/client/quaternion.html|Page sur matrix.org]]).+On peut utiliser [[curl]] pour envoyer un texte sur l'adresse donnée : 
 + 
 +<code bash> 
 +$ curl -d '{"text": "Webhook in Matrix from Terminal", "format": "plain", "displayName": "Bot", "avatarUrl": "http://i.imgur.com/IDOBtEJ.png"}' -H "Content-Type: application/json" -X POST https://webhooks.t2bot.io/api/v1/matrix/hook/hjyErSrz7NxvRM71U5PGfojarGNLZcNQmO5Tj2NM9yszoRd9trk7TQObfhUgMARD 
 +{"success":true,"queued":true} 
 +</code> 
 + 
 +Résultat : 
 + 
 +{{ :capture_du_2019-06-05_12-29-27-webhook-matrix.png?400 |}}