Search found 7 matches

by ChrisB
Mon Mar 16, 2020 8:28 am
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Re: Display image on a html page from main.py

Thanks a lot.
I'll try and let you know.

Chris
by ChrisB
Wed Mar 11, 2020 7:02 am
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Re: Display image on a html page from main.py

No "light" web server to suggest?

Thanks

Chris
by ChrisB
Mon Mar 09, 2020 5:56 am
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Re: Display image on a html page from main.py

I tried MicroWebSrv2.
I could not load any pages with it, too heavy...
I was told to freeze it but I was never able to do it.
Thanks

Chris
by ChrisB
Fri Mar 06, 2020 4:28 pm
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Re: Display image on a html page from main.py

why? I can display an html page but I cannot attached an image to it without a web server ? Quite strange... I tried to use a web server but they are too heavy, you need to freeze them within the module folder inside the esp32 port and flash the firmware. I could not achieve to do it using my iMac ....
by ChrisB
Fri Mar 06, 2020 10:53 am
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Re: Display image on a html page from main.py

Hi Jimmo, I don't use a web server just html code see below : html = """ <!DOCTYPE html> <html> <head> <title>Phlox Web Server</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" href="data:,"> <style>html{font-family: Helvetica; display:inline-block; margin...
by ChrisB
Fri Mar 06, 2020 9:50 am
Forum: ESP32 boards
Topic: Display image on a html page from main.py
Replies: 10
Views: 7761

Display image on a html page from main.py

Hi, I am trying to display a logo on a html page. The code is on main.py <h1>PHLOX Web Server</h1> <img src="logo.jpg" alt="logo Phlox"> <li><a href="#Res">RESEAU</a> ;</li> <br> I loaded the image with main.py and boot.py I guess the image is not at the right place or I should add a path to find it...
by ChrisB
Wed Mar 04, 2020 3:00 pm
Forum: Programs, Libraries and Tools
Topic: MicroWebSrv2, new asynchronous Web server for MicroPython (+Routes +WebSockets +Template engine).
Replies: 24
Views: 53555

Re: MicroWebSrv2, new asynchronous Web server for MicroPython (+Routes +WebSockets +Template engine).

Hi, I am new to µPython and ESP32. I tried to use MicroWebSrv2 but I get this error : File "main.py", line 145, in <module> File "MicroWebSrv2/microWebSrv2.py", line 136, in LoadModule MicroWebSrv2Exception: Cannot load module "PyhtmlTemplate". I am using uPyCraft and I can see the file in the mods ...