SkillAgentSearch skills...

Twitchinitel

Chat Twitch sur Minitel

Install / Use

/learn @lululombard/Twitchinitel
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Twitchinitel

:warning: Ce projet a été fait en moins d'une heure, je m'attendais pas à avoir autant d'intéressés par mon Tweet sur ce projet, c'est vraiment du quick & dirty, j'utilise la lib pynitel n'importe comment, mais ça fonctionne.

Ce projet utilise principalement les 2 librairies suivantes :

Installation

git clone https://github.com/cquest/pynitel.git
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt -r pynitel/requirements.txt

Connexion du Minitel

Il vous faut un câble série compatible avec le Minitel, personnellement j'ai un simple câble USB série FT232RL vers DIN "Peri-informatique" que j'ai fabriqué moi même. Juste une resistance de 4.7 kOhms sur TX venant du minitel, aucun composant actif contrairement à ce qui est recommandé pour le level shift, mais ça n'a pas cramé (pour l'instant).

Câble

Côté USB FTDI

Côté DIN

Configuration

Si vous comptez envoyer des messages, il faut obtenir un token OAuth Twitch

  1. Allez sur https://twitchapps.com/tmi/
  2. Cliquez sur "Connect".
  3. Connectez vous avec votre compte Twitch
  4. Copiez le token auth, créez un fichier .env et enregistrez votre nom d'utilisateur Twitch et votre token OAuth en suivant ce format :

    NICK=x <br> PASS=y

Fonctionnement

Utilisation : python twitchinitel.py <serial_port> <channel_name>

Exemple : python twitchinitel.py /dev/ttyUSB0 lululombard

Tip : vous pouvez changer le baudrate de votre minitel à 4800 bauds en appuyant sur Fnct + P + 4 et lancer le programme avec l'option baudrate pour une communication plus rapide python twitchinitel.py <serial_port> <channel_name> --baudrate 4800

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated3y ago
Forks0

Languages

Python

Security Score

75/100

Audited on Nov 19, 2022

No findings