Skip to content

Commit 21f8fab

Browse files
committed
Updated the README with full installation and usage instructions
1 parent b9b1ad6 commit 21f8fab

File tree

1 file changed

+39
-18
lines changed

1 file changed

+39
-18
lines changed

Readme.txt

+39-18
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,51 @@
1-
This code was written to configure a Raspberry Pi device for wireless access when no display is
2-
available (very similar to the way a Chromecast or similar device needs to be configured).
1+
RaspiWiFi
32

4-
For now some of the paths are hard-coded so the project should be run from
5-
/home/pi/Projects/RaspiWifi/ You can, of course change that location but make
6-
sure to update all hard links to that location in the source files before running.
3+
RaspiWiFi is a program to headlessly configure a Raspberry Pi's WiFi connection using using any other WiFi-enabled device (much like the way a Chromecast or similar device can be configured). RaspiWiFi has been tested with the Raspberry Pi B+ (using an Edimax USB WiFi adapter with modified driver as outlined in the "Prerequisites" section on this page http://www.daveconroy.com/turn-your-raspberry-pi-into-a-wifi-hotspot-with-edimax-nano-usb-ew-7811un-rtl8188cus-chipset/) and the Raspberry Pi 3. Although, it should technically work with any Raspberry Pi that has WiFi hardware.
74

8-
Although this app was devleoped for use with the Raspberry Pi and the Edimax EW-7811Un USB WiFi
9-
adapter, the only Raspberry Pi specific code would be the GPIO call to watch for a physical
10-
reset button to be pressed for 10 seconds.
115

126

7+
INSTALLATION INSTRUCTIONS:
138

14-
Software Requirements:
9+
== Update your apt cache:
1510

16-
Ruby on Rails 4.2.0
17-
isc-dhcp-server
18-
hostapd
11+
sudo apt update
1912

13+
== Install dependencies:
2014

15+
sudo apt install bundler libsqlite3-dev isc-dhcp-server hostapd
2116

22-
USAGE
17+
== Change to the "Configuration App" directory and install Rails gems:
2318

24-
Just clone this repository to /home/pi/Projects, install the software listed above using apt-get, and copy the
25-
"aphost" files from the "static_files" directory to their appropriate destinations (listed in static_files/README).
19+
cd Configuration\ App/
20+
sudo gem bundle install
2621

27-
Reboot the Raspberry Pi and it will create its own hotspot named "RaspiWifi-Setup". Once connected navigate to 10.0.0.1
28-
from a web browser and setup to connect to your desired wireless network.
22+
== Change back to RaspiWiFi's root directory and run the initial setup:
2923

30-
Nothing is very optimized at the moment, so booting into the configuration mode can take 2.5 to 3 minutes.
24+
cd ..
25+
sudo python3 initial_setup.py
26+
27+
== At this point your Raspberry Pi will reboot. When it finishes booting it should present itself in "Configuration Mode" as a WiFi access point with the name "RaspiWiFi Setup".
28+
29+
30+
31+
32+
USAGE:
33+
34+
== Connect to the "RaspiWiFi Setup" access point using any other WiFi enabled device.
35+
36+
== Navigate to http://10.0.0.1 using any web browser on the device you connected with.
37+
38+
== Select the WiFi connection you'd like your Raspberry Pi to connect to from the drop down list and enter its wireless password on the page provided. If no encryption is enabled, leave the password box blank.
39+
40+
== Click the "Connect" button.
41+
42+
== At this point your Raspberry Pi will reboot and connect to the access point specified.
43+
44+
45+
46+
47+
RESETTING THE DEVICE:
48+
49+
== If GPIO 18 is pulled HIGH for 10 seconds or more the Raspberry Pi will reset all settings, reboot, and enter "Configuration Mode" again. It's useful to have a simple button wired on GPIO 18 to reset easily if moving to a new location, or if incorrect connection information is ever entered. Just press and hold for 10 seconds or longer.
50+
51+
== You can also reset the device by re-running the initial_setup.py as instructed above.

0 commit comments

Comments
 (0)