crazy-toads.github.io/script/README.md

36 lines
992 B
Markdown
Raw Normal View History

2019-06-09 13:08:42 +00:00
# installation
2019-06-02 19:11:24 +00:00
## pre-requis
Il faut Python 3 & pip car le code est fait en python.
## Installation
Il faut lancer la commande pour avoir les dependences nécessaires :
2019-06-05 07:57:38 +00:00
pip install -r ./requirements.txt
2019-06-02 19:11:24 +00:00
Il faut créer un fichier dev_config.py avec ses infos de connection au Rocket.chat
rocket = {
'user' : 'username',
'password': 'pwd'
}
2019-06-09 13:08:42 +00:00
# Get Channels
Permet de générer les infos pour la page
https://crapaud-fou.org/channelslist/
## Lancer
2019-06-02 19:11:24 +00:00
python getchannels.py
2019-06-09 13:08:42 +00:00
## Commit
Des fichiers seront créé
* [../public/data/channelslist.json](../public/data/channelslist.json)
* [../public/data/cohortescolor.json](../public/data/cohortescolor.json)
* [../public/data/cohorteslist.json](../public/data/cohorteslist.json)
# Get Stats
Permet de générer les infos pour la page
https://crapaud-fou.org/channelsstats/
## Lancer
python getstats.py
## Commit
Un fichier sera créé
* [../public/data/channelsstat.json](../public/data/channelsstat.json)