Giter Site home page Giter Site logo

reknih / insa-planning-generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from embraser01/insa-planning-generator

0.0 1.0 0.0 433 KB

Générateur de planning (ICS) depuis l'emploi du temps INSA Lyon - Dept IF

Home Page: https://calendar.insa.finch4.xyz

License: GNU General Public License v3.0

JavaScript 31.85% HTML 68.15%

insa-planning-generator's Introduction

Générateur d'emplois du temps - INSA Lyon

license David David Travis Codecov branch

Presentation

Serveur NodeJS qui génère les emplois du temps du département INFO de l'INSA Lyon sous la forme de fichier .ics, compatible avec la majorité des calendriers.

L'application actualise l'ensemble des emplois du temps toutes les heures.

Serveur de demo

Un serveur est actuellement en route sur cete adresse : https://calendar.insa.finch4.xyz/. Il n'y a aucune garantie que le serveur fonctionne en permanence !

Utilisation avec Google calendar

L'application est totalement compatible avec Google calendar (mis à jour tous les jours). Pour avoir le calendrier sur Google :

N.B. : Si le serveur est éteint, l'emploi du temps restera visible mais ne sera plus mis à jour.

Example

Donc par exemple pour récupérer l'emplois du temps du groupe 2 des 3IF il suffit de rajouter ce lien là : https://calendar.insa.finch4.xyz/export/3/2

Flux RSS

Un flux rss est disponible sur cette URL https://calendar.example.com/rss/:année/:groupe. Il détecte les différents changements d'emplois du temps à 3 semaines:

  • Ajout d'un cours
  • Suppression d'un cours
  • Remplacement d'un cours
  • Modification d'un cours (enseignants, durée, salle)

Mise en ligne

Dépendance

Téléchargement et installation des dépendances

Cloner le repo avec Git :

git clone https://github.com/Embraser01/INSA-Planning-generator.git

Installer les dépendances

cd INSA-Planning-generator/
yarn #npm install

Configuration

  • Pour configurer le serveur :
yarn run build #npm run build

Le fichier de configuration ressemble à ceci :

  • ENCRYPTION_KEY: (String) Encryption key used to crypt the password (aes-256-cbc with IV), must be a 32 characters string
  • WEB: (Object) Contains the configuration of the web part :
    • ssl: (Boolean) Activate the HTTPS server.
    • sslCert: (String) Path to the SSL certificate file.
    • sslKey: (String) Path to the SSL key file.
  • UPDATER: (Object) Contains the configuration of the updater part (it's where the magic happens):
    • password: (String) Password used to access plannings (encrypted).
    • login: (String) Login name used to access plannings.
    • interval: (Number) Time between intervals (in hours)

Lancer le serveur

yarn start #npm start

Pour le lancer avec screen :

#!/bin/bash
echo "(Re)démarrage du serveur calendrier INSA"
if screen -list | grep -q "calendrier_insa"; then
  screen -S calendrier_insa -X quit
fi
cd /path/to/INSA-Planning-generator
screen -dmS calendrier_insa npm start

Licence

Copyright (C) 2017 Marc-Antoine FERNANDES

insa-planning-generator's People

Contributors

embraser01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.