<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://https://wikifab.hatlab.fr/Special:URIResolver/'>
	<!ENTITY category 'http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://wikifab.hatlab.fr/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://wikifab.hatlab.fr/Special:ExportRDF/SQYLAB_Cahier_de_pr-C3-A9sence_-C3-A9lectronique">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-28T15:34:03+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/SQYLAB_Cahier_de_pr-C3-A9sence_-C3-A9lectronique">
		<rdf:type rdf:resource="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels"/>
		<rdfs:label>SQYLAB Cahier de présence électronique</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://wikifab.hatlab.fr/Special:ExportRDF/SQYLAB_Cahier_de_pr-C3-A9sence_-C3-A9lectronique"/>
		<swivt:page rdf:resource="https://wikifab.hatlab.fr/SQYLAB_Cahier_de_pr-C3-A9sence_-C3-A9lectronique"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">0</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">fr</swivt:wikiPageContentLanguage>
		<property:Area rdf:resource="&wiki;-C3-89lectronique"/>
		<property:Cost rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Cost>
		<property:Currency rdf:datatype="http://www.w3.org/2001/XMLSchema#string">EUR (€)</property:Currency>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Projet pour remplacer le cahier de présence du sqylab electroniquement et avec un systeme de badge</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Facile</property:Difficulty>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minute(s)</property:Duration-2Dtype>
		<property:Material rdf:datatype="http://www.w3.org/2001/XMLSchema#string">*Un raspberry
*Un capteur rfid 522</property:Material>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Pour que le site fonctionne, il faut que votre base de donnée soit un fichier csv avec en colonne : 
* 2ème colonne : Nom
* 3ème colonne : Prenom
* 5ème colonne : Date d'adhésion
*6ème colonne : Numero ID pour le badge
Bien sur vous pouvez changer les numeros de colonne, mais il faudra modifier dans les programmes certaines choses.

Maintenant que vous avez votre base de donnée en bonne et due forme, placer là dans le fichier RFID-RC522/Documents

Explication des différents onglets du site : 
*Accueil : Permet de voir les entrées du jour au SQYLAB
*Historique : Permet de voir les entrées au SQYLAB de jours précédents
*Espace sans badge : Permet de simuler un badge (pas besoin qu'un badge soit associé au nom) ou d'enregistrer un visiteur
*Admin : Permet d'associer ou de retirer un badge à un adhérent dans la base de donnée</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">S'assurer que les packages suivants sont installés (sudo aptitude install ...):
*python3-dev
*python3-bcrypt</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Installation du capteur rfid 522 :
Suivre les 4 premières étapes de ce tutoriel [http://espace-raspberry-francais.fr/Composants/Module-RFID-RC522-Raspberry-Francais/ Cliquer ici ]

Telecharger les fichiers sur [https://github.com/ClementBerle/Projet-RFID Cliquer ici] et placer ces fichiers dans le dossier RFID-RC522 que vous avez créer avec l'installation du capteur (Si vous avez un orange Pi, télécharger les fichiers depuis la branche "orangepi" sur github)

Installation des bibliotèques du site :  Entrer dans la console : 
*cd /RFID-RC522
*pip install virtualenv
*virtualenv -p /usr/bin/python3 flaskenv
*source flaskenv/bin/activate
*pip install -r requirements.txt


Activation du site  : Entrer dans la console
*cd /RFID-RC522
*source flaskenv/bin/activate
*export FLASK_APP=Web_app.py
*export FLASK_DEBUG=1
*flask run --host=0.0.0.0

Entrer dans une autre console : 
*cd /RFID-RC522
*sudo python Badge.py</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Installation</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Fonctionnement du site</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Prérequis:</property:Step_Title>
		<property:Type rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Technique</property:Type>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2018-08-04T14:15:40Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2458335.094213</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">SQYLAB Cahier de présence électronique</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Category-3ATutoriels" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:ObjectProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AArea" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACost" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ACurrency" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AMaterial" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AType" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://wikifab.hatlab.fr/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>