Web server with HTML and CSS

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
Posts: 3
Joined: Sat Jan 18, 2020 2:30 am

Web server with HTML and CSS

Post by Marzandee » Sat Jan 18, 2020 2:37 am

Hello everyone I am trying to get my head around micropython. I have a webpage created using HTML and CSS that I want to put on the NodeMCU I have, But I cant seem to find a good tutorial on how to do it. I can find plenty of tutorials on how to blink a LED, but nothing in depth using HTML/CSS. Can anyone point me in the right direction?

User avatar
Posts: 4466
Joined: Fri Jul 18, 2014 8:01 am
Location: UK

Re: Web server with HTML and CSS

Post by pythoncoder » Sat Jan 18, 2020 6:08 am

A search on "web framework" in this forum will reap dividends.
Peter Hinch

Posts: 131
Joined: Thu Sep 15, 2016 4:09 pm
Location: Spring, Texas

Re: Web server with HTML and CSS

Post by bitninja » Mon Feb 10, 2020 3:28 am

I haven't had a chance to look at what's available recently... but I have been upgrading to uasyncio 2.0 and did have a script that may help...

First you have to install some dependencies... when you get to a REPL prompt and the ESP8266 device is connected to the Internet...

Code: Select all

import upip
It will install the code to the /lib folder of the flash file system.

Then try importing the attached script (after putting some content in /wwwroot)...

It's a pretty basic script... I'm sure someone has a much better take on the problem. Try searching github... :D
(1.09 KiB) Downloaded 77 times

Post Reply