Micropython Web IDE

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Micropython Web IDE

Post by yllumi » Sat Apr 11, 2015 8:55 am

I am interested in Espruino web IDE (https://github.com/espruino/EspruinoWebIDE), especially because it has blockly integrated. I am currently working my thesis about robotic education and I will use micropython to teach basic robotics in junior high school. It is very challeging because junior high school here do not learn programming or at least basic alghoritm knowledge. I think by using visual programming like blockly I can introduce basic algorithm and robotics programming an easy and fun way.

I just want to hear if anyone here that has begin to build the same project that we can collaborate or then I will start to build this.

pfalcon
Posts: 1155
Joined: Fri Feb 28, 2014 2:05 pm

Re: Micropython Web IDE

Post by pfalcon » Sat Apr 11, 2015 10:36 am

Nope. That's certainly an interesting project, useful for some share of community, but it's still waiting someone who *really* need, up to actually working on it. It seems that's you ;-). And +1 for the idea to look at adapting EspruinoIDE - I'd look in that direction myself.

Also see http://forum.micropython.org/viewtopic.php?f=3&t=629
Awesome MicroPython list
Pycopy - A better MicroPython https://github.com/pfalcon/micropython
MicroPython standard library for all ports and forks - https://github.com/pfalcon/micropython-lib
More up to date docs - http://pycopy.readthedocs.io/

User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Re: Micropython Web IDE

Post by yllumi » Sat Apr 18, 2015 11:46 am

I has began this project, and you can check the codes in this repo https://github.com/yllumi/micropythonIDE.
Firstly I am willing to use node-webkit but I get problem by nodejs programming. So then I decided to use Chrome App as it has provided serial API to connect to serial.

Damien
Site Admin
Posts: 647
Joined: Mon Dec 09, 2013 5:02 pm

Re: Micropython Web IDE

Post by Damien » Sun Apr 26, 2015 12:22 pm

This is interesting and worth working on. I tried your code but on (Linux) Chrome there is no "chrome.Event" class so the serial interface did not work.

I think both this avenue and the IPython one are worth further exploration.

User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Re: Micropython Web IDE

Post by yllumi » Mon Apr 27, 2015 8:36 am

Thanks Damien. This app is Chrome App because we need serial API provided by Chrome API to access serial port.
I do not submit it yet to Chrome Webstore because it is still under development. But if you want to try it, you can install the Chrome Apps Developer Tools (https://chrome.google.com/webstore/deta ... e-ntp-icon) and use it to run the unpacked app. Simply click the "Load Unpacked.." button and choose the micropythonWebIDE folder.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: Micropython Web IDE

Post by dhylands » Sun May 24, 2015 5:17 pm

Another approach to accessing serial ports is to do something like what ChiliPeppr http://chilipeppr.com/ has done (this is a CNC control program).

It uses a small helper app called serial-port-json server which actually connects to the serial port. There are currently Mac, Windows, and Linux variants of the serial port JSON server.

The serial port JSON server is here: https://github.com/johnlauer/serial-port-json-server
If you scroll down the README file there are links to precompiled binaries for various platforms.

User avatar
yllumi
Posts: 37
Joined: Tue Aug 19, 2014 8:41 am
Location: Bandung, West Java, Indonesia
Contact:

Re: Micropython Web IDE

Post by yllumi » Mon May 25, 2015 7:22 am

Wow, nice information. I first thought that the only way we can connect the board from web is using Wifi.
I will try it to this project. Thanks, Dave! :D

Post Reply