

<?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://www.wikidebrouillard.org/wiki/Special:URIResolver/'>
	<!ENTITY category 'http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://www.wikidebrouillard.org/wiki/'>
]>

<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://www.wikidebrouillard.org/wiki/Special:ExportRDF/POCL_Parapluie_-2D_ESP32_Micropython">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-30T19:35:38+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/POCL_Parapluie_-2D_ESP32_Micropython">
		<rdf:type rdf:resource="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3ATutorials"/>
		<rdf:type rdf:resource="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique"/>
		<rdfs:label>POCL Parapluie - ESP32 Micropython</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://www.wikidebrouillard.org/wiki/Special:ExportRDF/POCL_Parapluie_-2D_ESP32_Micropython"/>
		<swivt:page rdf:resource="https://www.wikidebrouillard.org/wiki/POCL_Parapluie_-2D_ESP32_Micropython"/>
		<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:Complete rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Draft</property:Complete>
		<property:Description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Tutoriel pour apprendre à créer son POCL parapluie connecté à la météo.</property:Description>
		<property:Difficulty rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Easy</property:Difficulty>
		<property:Disciplines_scientifiques rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Computing</property:Disciplines_scientifiques>
		<property:Disciplines_scientifiques rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Physics</property:Disciplines_scientifiques>
		<property:Duration rdf:datatype="http://www.w3.org/2001/XMLSchema#double">30</property:Duration>
		<property:Duration-2Dtype rdf:datatype="http://www.w3.org/2001/XMLSchema#string">minute(s)</property:Duration-2Dtype>
		<property:Introduction rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Ce tutoriel a pour objectif la création d'un petit parapluie connecté à la météo. Quand il pleut à un endroit donné dans le monde, le parapluie s'ouvre automatiquement et se referme une fois la pluie passée.</property:Introduction>
		<property:Licences rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Attribution (CC-BY)</property:Licences>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Rendez-vous sur dblocadata 

⚠️ Ouvre cette page depuis Google Chrome ou Microsoft Edge. 

[https://dblocadata.debrouillonet.org/~test/BIPES/ui/?idw=78 https://dblocadata.debrouillonet.org/BIPES/ui/]

⚠️ Attention, ton ESP32 doit avoir été flashé avec micropython !

Tutoriel pour le faire : [[Installation de micropython]]


Et si tu veux en savoir plus sur la plateforme :

[[Group:Formation DBLOCADATA]]





&lt;br/&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Connecte ton microcontrôleur à DBLOCADATA. Pour cela branche ton ESP32 à ton ordinateur, puis clique sur le bouton ''prise'' en haut à gauche ( comme sur la photo ). 

Ensuite sélectionne ta carte dans le menu qui apparait. 


Dans le menu à droite, va dans la section '''Exemples''' et sélectionne '''POCL Parapluie'''.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Il y a 3 variables à éditer dans le programme :


'''api_key''' : Ta clé d'API OpenWeatherMap (tu dois te créer un compte sur openweathermap.org)

'''lat''' : La latitude du lieu à observer.

'''long''' : La longitude  du lieu à observer.


Tu peux trouver les coordonnées d'une ville sur ce site : https://www.latlong.net/

Ensuite, dans le menu de droite, va dans '''Actionneurs -&gt; Servo Moteur''' et clique sur '''Install Servo library.'''

&lt;br/&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">&lt;nowiki&gt;Dans l'onglet '''Fichiers''', actualise les fichiers du microcontrôleur en appuyant sur l'icon ( comme indiqué sur la photo ), puis va dans le fichier '''boot.py'''.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Insère le code suivant en remplaçant les informations par ton réseau wifi.&lt;br /&gt;Sauvegarde le fichier (en haut a gauche '''Save)'''&lt;br/&gt;&lt;div class="mw-highlight mw-content-ltr" dir="ltr"&gt;&lt;pre&gt;import network&lt;br /&gt;import time&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;sta_if = network.WLAN(network.STA_IF); sta_if.active(True)&lt;br /&gt;sta_if.scan()&lt;br /&gt;sta_if.connect('Nom_wifi','MDP_wifi')&lt;br /&gt;print("Waiting for Wifi connection")&lt;br /&gt;while not sta_if.isconnected(): time.sleep(1)&lt;br /&gt;print("Connected")&lt;/pre&gt;&lt;/div&gt;&lt;br/&gt;&lt;/nowiki&gt;</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Le servo possède 3 fils.


'''Rouge''' : Le + (VIN sur la carte)

'''Marron''' : La masse ( GND sur la carte)

'''Orange''' : Le pin d'information; Il y a plusieurs placements possibles, ici nous prenons le pin 26.</property:Step_Content>
		<property:Step_Content rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Appuyes sur le bouton 'Play' en haut à gauche.


Tu peux regarder le résultat de la requête depuis la console ( dans le menu de navigation )</property:Step_Content>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DBLOCADATA</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Trouver le programme dans BIPES</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Renseigner le programme</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Connecter l'ESP à internet</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Brancher le servo-moteur à l'ESP</property:Step_Title>
		<property:Step_Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Exécuter le programme</property:Step_Title>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">esp32</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">micropython</property:Tags>
		<property:Tags rdf:datatype="http://www.w3.org/2001/XMLSchema#string">dblocadata</property:Tags>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-10-03T15:37:06Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460221.1507639</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">POCL Parapluie - ESP32 Micropython</swivt:wikiPageSortKey>
		<property:Comments rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Comments>
		<property:Page_creator rdf:resource="&wiki;Utilisateur-3AAndréa_Bardinet"/>
		<property:I_did_it rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:I_did_it>
		<property:Favorites rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Favorites>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:Class rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3ATutorials" />
	<owl:Class rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Category-3APages_avec_des_erreurs_de_coloration_syntaxique" />
	<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:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AComplete" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADescription" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADifficulty" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADisciplines_scientifiques" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADuration" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ADuration-2Dtype" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AIntroduction" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ALicences" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AStep_Content" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AStep_Title" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3ATags" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AComments" />
	<owl:ObjectProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3APage_creator" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AI_did_it" />
	<owl:DatatypeProperty rdf:about="http://https://www.wikidebrouillard.org/wiki/Special:URIResolver/Property-3AFavorites" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>