Gestion_Relay/README.md

34 lines
835 B
Markdown
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Telecommande Domotique
===========================
<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>
## Pre-requis
sudo apt-get install rpi.gpio
<br>ou en manuel
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>
## 1) Installation
dans /home/pi<br>
des fichiers index.html gohttp.py et relay.py et favicon.ico
## 2) demarrage auto
editer dans /etc<br>
le rc.local<br>
ajouter en fin avant exit<br>
#gestion Relay a 0<br<>>
./home/pi/relay.py power 1<br>
gohttp.sh<br>
faire un reboot