2022-09-03 06:36:20 +02:00
|
|
|
|
Telecommande Domotique
|
|
|
|
|
===========================
|
2022-09-03 06:39:13 +02:00
|
|
|
|
<img src="http://xavier.debert.free.fr/telecom/relais.jpg" width="50%"><br>
|
|
|
|
|
<img src="http://xavier.debert.free.fr/telecom/schema_funduino_keyes.jpg" width="50%"><br>
|
|
|
|
|
<img src="http://xavier.debert.free.fr/telecom/funduino_keyes_8_prises.jpg" width="50%"><br>
|
2022-09-03 06:36:20 +02:00
|
|
|
|
## Pre-requis
|
|
|
|
|
|
|
|
|
|
sudo apt-get install rpi.gpio
|
|
|
|
|
|
2022-09-03 06:39:13 +02:00
|
|
|
|
<br>ou en manuel
|
2022-09-03 06:36:20 +02:00
|
|
|
|
|
2022-09-03 06:39:13 +02:00
|
|
|
|
wget https://pypi.python.org/packages/source/R/RPi.GPIO/RPi.GPIO-0.5.11.tar.gz<br>
|
|
|
|
|
tar -xvf RPi.GPIO-0.5.11.tar.gz<br>
|
|
|
|
|
cd RPi.GPIO-0.5.11<br>
|
|
|
|
|
sudo python setup.py install<br>
|
2022-09-03 06:36:20 +02:00
|
|
|
|
|
|
|
|
|
## 1) Installation
|
|
|
|
|
|
2022-09-03 06:39:13 +02:00
|
|
|
|
dans /home/pi<br>
|
2022-09-03 06:36:20 +02:00
|
|
|
|
des fichiers index.html gohttp.py et relay.py et favicon.ico
|
|
|
|
|
|
|
|
|
|
## 2) demarrage auto
|
|
|
|
|
|
2022-09-03 06:39:13 +02:00
|
|
|
|
editer dans /etc<br>
|
|
|
|
|
le rc.local<br>
|
|
|
|
|
ajouter en fin avant exit<br>
|
2022-09-03 06:36:20 +02:00
|
|
|
|
|
2022-09-03 06:39:13 +02:00
|
|
|
|
#gestion Relay a 0<br<>>
|
|
|
|
|
./home/pi/relay.py power 1<br>
|
|
|
|
|
gohttp.sh<br>
|
2022-09-03 06:36:20 +02:00
|
|
|
|
|
|
|
|
|
faire un reboot
|
|
|
|
|
|