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.
MicroPython live
Re: MicroPython live
This is really neat!
Video doesn't come through properly though (for me a tlast, tried with FF and IE):
Video doesn't come through properly though (for me a tlast, tried with FF and IE):
Re: MicroPython live
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.
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.
Re: MicroPython live
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.
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.
John Sheehan
Re: MicroPython live
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.
My backend server with the pyboard and webcam uploads the stream using ffmpeg.
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
- polygontwist
- Posts: 36
- Joined: Sat Jun 28, 2014 4:54 pm
- Location: Germany, Rostock
- Contact:
Re: MicroPython live
Very interesting!
how you have connected the board with the Internet?
how you have connected the board with the Internet?
Re: MicroPython live
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.