Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reteprelleum/webserver
WebServer for Micropython wirh Python executable
https://github.com/reteprelleum/webserver
esp32 micropython python3 webpython webserver
Last synced: 9 days ago
JSON representation
WebServer for Micropython wirh Python executable
- Host: GitHub
- URL: https://github.com/reteprelleum/webserver
- Owner: RetepRelleum
- Created: 2020-01-03T06:14:15.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-06T06:48:21.000Z (almost 4 years ago)
- Last Synced: 2024-10-11T22:46:59.956Z (about 1 month ago)
- Topics: esp32, micropython, python3, webpython, webserver
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WebServer
Web server for Micropython tested an ESP32 and Python 3.7 with support for the execution of Python code
1 the call http://esp32.home/eval?8/4 returns 2.
2 the call http://esp32.home/exec?print('hallo') prints hallo in the stdout.
3 in the called html document the mark is replaced by the return value. xxx is any python expression.
4 in the called html document the mark is replaced by ''''. xxx is any python expression.
## Example:
time related functions
Convert a time expressed in seconds since the Epoch
The number of seconds, as an integer, since the Epoch
$(document).ready(function () {
$("button").click(function () {
$.get("exec?machine.Pin(5,machine.Pin.OUT).value(0)", function (data, status) {
alert("Data: " + data + "\nStatus: " + status);
});
});
});
led on at ESP32 lolin pro