GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Metabolix/MicroPython-WebMain: MicroPython main loop with a small web server.

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
Example.py
Example.py
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SimpleNTPClient.py
SimpleNTPClient.py
 
 
SimplePing.py
SimplePing.py
 
 
SimpleWLAN.py
SimpleWLAN.py
 
 
Timeout.py
Timeout.py
 
 
WebFileManager.html
WebFileManager.html
 
 
WebFileManager.py
WebFileManager.py
 
 
WebMain.py
WebMain.py
 
 

Repository files navigation

WebMain for MicroPython

This is a main loop with a small web server, written in MicroPython (originally for Raspberry Pi Pico W). It provides remote administration (file manager), multiplexing (multiple projects on one device) and a simple interface for handling HTTP requests. It's not meant for time-critical applications, because a blocking HTTP request or activity in another module will inevitably cause delays.

Features

  • WLAN configuration as access point or client.
  • PING client and WLAN automatic reconnection.
  • NTP client to synchronize real-time clock.
  • HTTP server with simple request handling.
  • Module system for adding own web pages.
  • Periodic callbacks to implement background tasks.
  • File manager.

Usage

  • Copy all provided files (.py and .html) on your device.
  • Create wlan.conf: {"ssid": "MyNet", "key": "my-secrets", "ap": false}.
  • Run Example.py and browse to http://ip/WebMain.
  • Write your own projects as callable functions or classes.
  • Write a main class to load your modules and start the server.

Expected result:

WLAN connecting, ssid MyNet
WLAN ready, IP 192.168.0.123, gateway 192.168.0.1
Starting HTTP server http://192.168.0.123/
NTP synced: 2022-09-18T23:45:30Z

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. See LICENSE for more details.

About

MicroPython main loop with a small web server.

Resources

Readme
AGPL-3.0 license
Activity

Stars

5 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.