diff --git a/README.md b/README.md index 7f56f67..9bcc3d9 100644 --- a/README.md +++ b/README.md @@ -196,7 +196,7 @@ pi@RIP2:~ $ sudo a2ensite 001-RIP-webApp.conf pi@RIP2:~ $ sudo apachectl configtest pi@RIP2:~ $ sudo systemctl reload apache2.service pi@RIP2:~ $ sudo cp ./php.ini /etc/php/[php-version]/apache2/php.ini -pi@RIP2:~ $ sudo cp ./010_rip-reboot /etc/sudoers.d/010_rip-reboot +pi@RIP2:~ $ sudo cp ./010_rip-reboot /etc/sudoers.d/010_rip-rebootc pi@RIP2:~ $ sudo reboot ``` diff --git a/RIP_AP/Fixe 1.jpg b/RIP_AP/Fixe 1.jpg new file mode 100644 index 0000000..fe9b9fe --- /dev/null +++ b/RIP_AP/Fixe 1.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eea4676d5381d13d75e7639840755cb6a5a010d94f9e38fc1faab73ba268f08d +size 475595 diff --git a/RIP_AP/Fixe3.jpg b/RIP_AP/Fixe3.jpg new file mode 100644 index 0000000..e711167 --- /dev/null +++ b/RIP_AP/Fixe3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70f3c74b9a69943b6a11e80aba94f37ea36576f9772999460bc701b2089af514 +size 449288 diff --git a/RIP_AP/RIP.img b/RIP_AP/RIP.img new file mode 100644 index 0000000..1d70342 --- /dev/null +++ b/RIP_AP/RIP.img @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1780f446e64f5933f9e013c9bfc176b816ba629511fca5cb26ff290c65b7af51 +size 15931539456 diff --git a/RIP_AP/fixe2.jpg b/RIP_AP/fixe2.jpg new file mode 100644 index 0000000..fea2079 --- /dev/null +++ b/RIP_AP/fixe2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a7efad9f03e11fa368d9d6565d8e24064ffbd077e363f38d40aa1ee4da7e04d +size 730285 diff --git a/RIP_AP/hostapd.conf b/RIP_AP/hostapd.conf new file mode 100644 index 0000000..c0d4f68 --- /dev/null +++ b/RIP_AP/hostapd.conf @@ -0,0 +1,29 @@ +##### hostapd configuration file ############################################## +# location /etc/hostapd/hostapd.conf +##### + +interface=wlan0 +driver=nl80211 +hw_mode=g + +##### channel selection here +channel=6 +##### + +wmm_enabled=0 +macaddr_acl=0 +auth_algs=1 +ignore_broadcast_ssid=0 +wpa=2 +wpa_key_mgmt=WPA-PSK +wpa_pairwise=TKIP +rsn_pairwise=CCMP + +##### uncomment the good RIP SSID +ssid=RIP_1 +#ssid=RIP_2 +#ssid=RIP_3 +#ssid=RIP_4 +##### + +wpa_passphrase=azertMAX diff --git a/gpioTest.py b/gpioTest.py new file mode 100644 index 0000000..907a00e --- /dev/null +++ b/gpioTest.py @@ -0,0 +1,18 @@ +#!/usr/bin/env python3 + +import RPi.GPIO as GPIO +import time + +def click(self): + print('event detected') + +in_pin = 4 +GPIO.setmode(GPIO.BCM) +GPIO.setup(in_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) +GPIO.add_event_detect(in_pin, GPIO.FALLING, callback=click, + bouncetime=100) + +while True: + time.sleep(0.2) + +