GithubHelp home page GithubHelp logo

isabella232 / iot-raspiwifi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rusefi/iot-raspiwifi

1.0 0.0 0.0 687 KB

IoT-RaspiWiFi is a program to headlessly configure a Raspberry Pi's WiFi connection 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+, Raspberry Pi 3, and Raspberry Pi Zero W.

License: Other

Shell 6.98% JavaScript 1.35% Ruby 57.73% Python 16.11% CoffeeScript 0.43% CSS 4.08% HTML 13.33%

iot-raspiwifi's Introduction

Headless WiFi Setup for Raspberry Pi : IoT Type Projects

RaspiWiFi: From Guided WiFi configuration software for the Raspberry Pi, Copyright (C) 2015 Jason Burgett [email protected] with modifications from Makomo and this release [email protected].

RaspiWiFi is a program to headlessly configure a Raspberry Pi's WiFi connection 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+, Raspberry Pi 3, and Raspberry Pi Zero W.

Raspbian Headless WiFi ย  Raspbian Stretch

  • This version has been updated for use in Raspbian Stretch (as of June 2018 release).
  • This version no longer affects /etc/network/interfaces. It now configures via /etc/dhcpcd.conf and runs dnsmasq for DNS server instead of isc-dhcp-server.

INSTALLATION INSTRUCTIONS:

To install:

git clone https://github.com/marvmex/IoT-RaspiWiFi.git
cd IoT-RaspiWiFi
sudo sh start.sh

This script will install all necessary prerequisites, copy configuration files, and reboot. When it finishes booting it should present itself in "Configuration Mode" as a WiFi access point with the SSID pi-IoT.

OBSERVATIONS:

  • If you run a non-stock /etc/rc.local, modify rc.local.apclient and rc.local.apclient.template in /usr/share/configure_wifi/Reset_Device/static_files/
  • /etc/rc.local will be overwritten everytime the system configured to act as a wifi access point for setting up a new network.
  • If you happen to need a non-stock rc.local during the short time when the system is in the "Configure WiFi" configuration, modify rc.local.aphost and rc.local.aphost.template.
  • su -c "cd /usr/share/configure_wifi/Configuration_App/ && rails s -b 10.0.0.1 -e production -p 10 -d" & if you need to start the rails web server on IP and port.

USAGE:

  • Connect to the pi-IoT SSID Open Access Point using any other WiFi enabled device.
  • Navigate to http://10.0.0.1:10 (Port:10 IP:10.0.0.1) using any web browser on the device you connected with. It may take several seconds (or a minute) before the server is ready to accept requests.
  • If you're connected to the RasPi via WiFi, it will give you an IP in its network but the web page is timing out (web server still not loaded), then just wait a couple seconds till it appears (patiently)...
  • Select the WiFi SSID 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.
  • Click the Connect button.
  • At this point your Raspberry Pi will reboot and connect to the access point specified.

The files for this process are stored in /usr/share/configure_wifi

RESETTING THE DEVICE:

  • If GPIO 4 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 4 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.
  • You can also reset the device by running: sudo python3 /usr/share/configure_wifi/Reset_Device/manual-reset.py

Enjoy!

iot-raspiwifi's People

Contributors

bottleworks avatar jasbur avatar makomo avatar tiito78 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.