Gestion via relais du 220v
Go to file
2022-09-03 14:19:31 +02:00
img first commit 2022-09-03 06:36:20 +02:00
favicon.ico first commit 2022-09-03 06:36:20 +02:00
gohttp.py first commit 2022-09-03 06:36:20 +02:00
index.html Mise à jour de 'index.html' 2022-09-03 14:19:31 +02:00
README.md Mise à jour de 'README.md' 2022-09-03 12:09:51 +02:00
relay.py first commit 2022-09-03 06:36:20 +02:00

Telecommande Domotique






Pre-requis

sudo apt-get install rpi.gpio git


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 J'ai utilisé un onduleur HS, comme boitier et gestion de 8 prises 220V
ayant 4 relais, j ai utilisé 2 prises par canal.
Pour installer ce script, aller dans /home/pi

copier index.html gohttp.py et relay.py et favicon.ico
par

git clone http://in4matik.port0.org:3000/magnum88/Gestion_Relay

2) Pour un démarrage auto

éditer dans /etc/rc.local
sudo nano /ettc/rc.local
ajouter en fin avant exit

#gestion Relay a 0
./home/pi/relay.py power 1
gohttp.sh

faire un reboot