elahtrebor / udesktop

Javascript/Micro Python Remote Desktop for ESP/RPI microcontrollers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udesktop

Javascript/Micro Python Remote Desktop for ESP/RPI microcontrollers

This is a remote desktop capable of spawning mutiple Terminal shells, File Browser, and Editor.
using an HTML/Javascript front end and a micro python back end server.
The windows support drag and drop, minimize, resize. 

udesktop.PNG

This works by letting Javascript and HTML peform the heavy lifting 
in your web browser while making low levels calls to the python server to
handle the file system manipulation. For instance when a terminal is spawned,
javascript basically clones a DIV with a textarea that has callbacks 
to listen for keypresses. When the enter key is detected it sends the current
line of text to the python script listening on port 80 using ajax.
The python script parses a set of commands and returns results.


Caveats:
 The windows respond to triple click currently.
 Interface is a little jumpy.

Tested on ESP32/ ESP8266 and RPI Pico W.

Installation:
 Ensure your microcontroller already has micropython and has an IP address. 
 Copy udesktop.py to your microcontroller. 
 Then start the script by "import udesktop" or defining as main.py
 Copy the udesktop.html to your computer, launch in web browser 
 Select the settings from the Dropdown Menu and data fill the
  ip address of your microcontroller.
  
  Work in progress but works well in tandem with webrepl.
  
 

About

Javascript/Micro Python Remote Desktop for ESP/RPI microcontrollers


Languages

Language:HTML 67.9%Language:Python 32.1%