Page 1 of 1

MicroPython live

Posted: Mon Feb 02, 2015 10:26 am
by Damien
In order to let people play with a pyboard and see how it works, I have connected a pyboard to the internet, attached some motors and lights, pointed a webcam at it, and made an interface where one can write and execute code from the browser:

http://micropython.org/live

Multiple people can use it at once and you can watch what other people do. There is a queue for code if more than one person submits a job at the same time.

Let me know if you have any suggestions for improvements! Or if you find bugs :)

Note that you have 10 seconds maximum job time and the board is hard-reset between jobs. The filesystems are also read-only.

Re: MicroPython live

Posted: Mon Feb 02, 2015 1:05 pm
by stijn
This is really neat!
Video doesn't come through properly though (for me a tlast, tried with FF and IE): Image

Re: MicroPython live

Posted: Mon Feb 02, 2015 5:10 pm
by kfricke
Cool site and nice environment to show strangers how easy to use Micro Python (|MicroPython|microPython|uPy) really is.

Maybe you should add a note the Micro Python is usually intended to run scripts longer than 10 seconds. Never underestimate that inattentive press agent who tells that this is a toy-project for short-term tasks only.

btw, the video is borked here as well. Earlier today it was shiny tho.

Posted: Mon Feb 02, 2015 7:29 pm
by Damien
Fixed the video, should be working again.

There are still some bugs to iron out :)

Re: MicroPython live

Posted: Tue Feb 03, 2015 7:27 am
by JennaSys
That's really cool!

What do you have hosting the web server/camera stream? I'm curious about the setup as it looks like it could be used for many other practical applications.

Re: MicroPython live

Posted: Tue Feb 03, 2015 8:49 am
by Damien
The video streaming is done using https://github.com/phoboslab/jsmpeg, which is a very nice MPEG decoder written in pure Javascript, so the webpage requires no Flash player or the likes.

My backend server with the pyboard and webcam uploads the stream using ffmpeg.

Re: MicroPython live

Posted: Tue Feb 03, 2015 5:59 pm
by pythoncoder
That is superb :D

Re: MicroPython live

Posted: Thu Feb 05, 2015 8:00 pm
by polygontwist
Very interesting! :o
how you have connected the board with the Internet?

Re: MicroPython live

Posted: Thu Feb 05, 2015 10:03 pm
by Damien
The pyboard is connected through UART to another pyboard, which is connected via USB to a PC, which is connected to the internet and talks to the website, which coordinates the jobs from clients.