Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/wifi-provision
A NodeJS app to allow a rPi 3 or Pi Zero's + IoT pHat WiFi to be configured via BLE
https://github.com/hardillb/wifi-provision
Last synced: 3 months ago
JSON representation
A NodeJS app to allow a rPi 3 or Pi Zero's + IoT pHat WiFi to be configured via BLE
- Host: GitHub
- URL: https://github.com/hardillb/wifi-provision
- Owner: hardillb
- License: apache-2.0
- Created: 2016-09-13T14:16:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T07:32:14.000Z (about 4 years ago)
- Last Synced: 2024-10-13T16:11:34.552Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 28
- Watchers: 3
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
#WiFi-Provision
This is a NodeJS app to configure WiFi on a Raspberry Pi 3 or a
Pi Zero with IoT pHAT via Bluetooth Low Energy and Web Bluetooth.The reasons for this can be found [here](http://www.hardill.me.uk/wordpress/2016/09/13/provisioning-wifi-iot-devices/)
To run clone the code
git clone https://github.com/hardillb/wifi-provision.git
Edit the `namePrefix` in the `static/index.html` to match the host name for the pi then copy it to a public facing http server that supports https and generate a new short URL for this location. Take the short URL and edit the last line of `index.js`
eddystone.advertiseUrl('http://goo.gl/uNGCsy',options);
You can now run this as root
node index.js
It should now broadcast the short URL as a Eddystone beacon, when you follow the link you will get a page that will connect to the
device and allow you to push SSID and password to it. Once connected it will send the device IP address back to the page.