Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joewez/CaptiveWebServer
Simple MicroPython web server for serving a website from a captive portal
https://github.com/joewez/CaptiveWebServer
Last synced: 3 months ago
JSON representation
Simple MicroPython web server for serving a website from a captive portal
- Host: GitHub
- URL: https://github.com/joewez/CaptiveWebServer
- Owner: joewez
- License: mit
- Created: 2018-07-31T04:22:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-10-06T06:10:48.000Z (about 3 years ago)
- Last Synced: 2024-04-22T12:33:45.357Z (7 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-micropython - CaptiveWebServer - Simple MicroPython web server for serving a website from a captive portal. (Libraries / Communications)
README
# Captive Web Server
Simple MicroPython web server for serving a website from a captive portal
(Generally meant for an ESP8266 Device)- Copy the application file _captive_http.py_ to the root of an ESP8266 device running a recent version of MicroPython
- Create a directory on your file system called /wwwroot
- Place the **capture.html** file along with the rest of your content including an **index.html** file
- The script does not setup the AP (Type **help()** at the REPL prompt for information on this)
- The script however assumes that it is acting as an AP
- Make sure the DNS server is set to 192.168.4.1
- See https://github.com/joewez/ESP8266-WiFi-Utilities
- Simply import the script to run the server (or import it in your _main.py_)
>>> import wifi
>>> wifi.access_point('tester', 'password', dns=True)
>>> import captive_http()
DNS Server code culled from:
https://github.com/amora-labs/micropython-captive-portal