From 361ab38258878ebce928e8b36e5cdf8118cf4675 Mon Sep 17 00:00:00 2001 From: Xavier Date: Fri, 31 Mar 2023 10:31:52 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 6896f60..d478de3 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Telecommande Domotique =========================== -
+

@@ -11,14 +11,14 @@
## Pre-requis -sudo apt-get install rpi.gpio git +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
+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
@@ -28,25 +28,26 @@ 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 +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
+sudo nano /ettc/rc.local
ajouter en fin avant exit
#gestion Relay a 0
-./home/pi/relay.py power 1
-gohttp.sh
+./home/pi/relay.py power 1
+gohttp.sh
puis de faire un fichier executable
gohttp.sh dans /usr/local/sbin contenant:
- -#!/bin/bash
-cd /home/pi
-./gohttp.py
-exit 0
+``` +#!/bin/bash +cd /home/pi +./gohttp.py +exit 0 +``` faire un reboot