Gestion_Relay/README.md

32 lines
771 B
Markdown
Raw Normal View History

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