Giter Site home page Giter Site logo

alecgmcnamara / micropython-esp32-webserver-with-sockets Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 40 KB

Micropython Webserver with web socket connection to update data in background

Python 95.71% CSS 0.36% JavaScript 2.59% HTML 1.34%
esp32 javascript microdot micropython webserver websockets

micropython-esp32-webserver-with-sockets's Introduction

Write Up

ESP32 Micropython Webserver project

Stripped down version from.... https://www.donskytech.com/using-websocket-in-micropython-a-practical-example/
.... Thanks for sharing :-)

Serves simple page from ESP32 and then makes socket connection to send and receive 10 variables in the background. Ideal template for fast development of IOT devices. Added JSON objects to easily add variables and IO to messages between ESP32 and browser.

Just edit 'main.py' to define the variables to send to the browser, edit 'index.js' to edit the variables sent back to the ESP32.

Requires latest MicroPython firmware on ESP32, programmed and uploaded with 'Thonny'

To use:

Clone repository to local folder eg: documents\thonny\WebserMinumum

Open folder in Thonny

Change WiFi settings in Boot.py to your network

Upload to ESP32 with Thonny

Click small red stop ICON to restart Micropython running on ESP

Note ESP IP address from Thonny log

Open Browser (Chrome works best) go to IP address port 5000 eg 192.168.0.68:5000

micropython-esp32-webserver-with-sockets's People

Contributors

alecgmcnamara avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.