meteo_1ere_seance
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
meteo_1ere_seance [2025/04/10 09:46] – [Installation de la bibliothèque Adafruit_DHT sur le Raspberry Pi] admin | meteo_1ere_seance [2025/04/25 11:39] (Version actuelle) – [Installation de la bibliothèque Adafruit_DHT sur le Raspberry Pi] admin | ||
---|---|---|---|
Ligne 151: | Ligne 151: | ||
Pour pouvoir installer la bibliothèque, | Pour pouvoir installer la bibliothèque, | ||
+ | {{ raspberry: | ||
< | < | ||
source meteo/ | source meteo/ | ||
Ligne 160: | Ligne 160: | ||
< | < | ||
pip3 install Adafruit_DHT | pip3 install Adafruit_DHT | ||
+ | </ | ||
+ | |||
+ | En cas d' | ||
+ | |||
+ | < | ||
+ | pip3 install Adafruit_DHT --config-settings=" | ||
+ | </ | ||
+ | |||
+ | Pour quitter un environnement virtuel, taper la commande suivante : | ||
+ | |||
+ | < | ||
+ | deactivate | ||
</ | </ | ||
===== Lecture et affichage des données ===== | ===== Lecture et affichage des données ===== | ||
+ | |||
+ | Démarrer le mode interactif de Python : | ||
+ | |||
+ | < | ||
+ | python3 | ||
+ | </ | ||
__Importer la bibliothèque Adafruit_DHT afin d’interagir avec la sonde DHT22__ : | __Importer la bibliothèque Adafruit_DHT afin d’interagir avec la sonde DHT22__ : | ||
Ligne 199: | Ligne 217: | ||
{{ raspberry: | {{ raspberry: | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | Suite vers la [[meteo_2eme_seance|2ème séance]] |
meteo_1ere_seance.1744278399.txt.gz · Dernière modification : de admin