Developer Journal #3: New Alpha Release #piday #raspberrypi @Raspberry_Pi

We’ve released another version of the WebIDE to the world.  If you’re already running 0.2.0, it should appear as an update.

This release has a couple of major new features.  The first one is a change to the workflow of the editor.  In previous releases, when you would click ‘Run’, the terminal would pop up as an overlay over your code.  You would see the results, and then close the terminal to make more changes.  This would continue on until your mouse button broke.

The new workflow is the following.  You open your file, make a change, and then click ‘Run’.  The terminal slides up from the bottom, and is displayed inline with your code, instead of as an overlay.  The focus remains on the editor, so you can easily make another change, and hit run again.  Another new feature to the workflow, is that when the editor is focused, you can type “Ctrl-Enter”, or “Command-Enter” (OS X), and it will execute your code.

This should make for a more enjoyable, and faster experience.  There will likely be bugs, and edge cases, but if you report them, we’ll fix them as soon as possible.

Another major feature to the editor is an implementation of a scheduler.  Before I go into too many details, I’ll explain a scenario that you may want to use it.  Rather than running a script in a loop, consuming valuable resources, you could have it run, and then exit.  Then, you would schedule it to run however often you would like, down to the minute.  Let’s say you would like to monitor the humidity using your Pi over an indeterminate time period, at a rate of ‘every 10 minutes’.  You could follow that tutorial, and modify the python script to remove the ‘while(True):’ loop (and the time.sleep), and just let the scheduler run it instead.

The scheduler is using an open source module to parse text of time ranges (and execute jobs!), similar to how you would think in terms of cron.  We’ve included some examples to work from, and will add more over time.  For example, you could write “after 1 hour”, and that would continuously run on the hour.  Or, you could write “on tuesday at 11:00 am”, and your script would run at that time each week.  It’s pretty flexible, but there are a few gotchas at this point (for example, “every 1 hour” doesn’t work right yet, but “every 1 hour on the first minute” does work).  Your scheduled jobs are persisted in redis, and are re-initialized when you restart your Raspberry Pi, or the server.

We’ve also fixed a few more issues along the way, and you can now permanently set a port other than 80 either in the /config page, or by using the redis console manually.

Our goal is to keep the editor as clean and simple to use as possible, primarily with the Python language at this point.  Most of our new features will likely focus in that direction as we have limited resources.  If you do think we’re missing something critical to developing with python on the Pi, or something is bugging you, please let us know.  Thank you all again for your feedback!

Also, follow this link to the GitHub repository for the project.


998Each Friday is PiDay here at Adafruit, be sure to check out our posts, tutorials and new Raspberry Pi related products. Have you tried the new “Adafruit Raspberry Pi Educational Linux Distro” ? It’s our tweaked distribution for teaching electronics using the Raspberry Pi. But wait, there’s more! Try our new Raspberry Pi WebIDE! The easiest way to learn programming on a Raspberry Pi.

Want a FREE RASPBERRY PI? All orders over $350 get a FREE Raspberry Pi Model B with 512MB RAM!


Adafruit publishes a wide range of writing and video content, including interviews and reporting on the maker market and the wider technology world. Our standards page is intended as a guide to best practices that Adafruit uses, as well as an outline of the ethical standards Adafruit aspires to. While Adafruit is not an independent journalistic institution, Adafruit strives to be a fair, informative, and positive voice within the community – check it out here: adafruit.com/editorialstandards

Join Adafruit on Mastodon

Adafruit is on Mastodon, join in! adafruit.com/mastodon

Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.

Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7pm ET! To join, head over to YouTube and check out the show’s live chat – we’ll post the link there.

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 36,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


Maker Business — Philips, an electronics giant, has faded from its former glory

Wearables — Capture sounds

Electronics — Audio amplifier advice

Python for Microcontrollers — Python on Microcontrollers Newsletter: MicroPython Pico W Bluetooth, CircuitPython 8.0.4 and much more! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

Adafruit IoT Monthly — Boxing Glove Tracker, Disconnecting Smart Appliances, and more!

Microsoft MakeCode — MakeCode Thank You!

EYE on NPI — Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — #NewProducts 3/15/23 Feat. Adafruit CAN Bus FeatherWing – MCP2515!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !



No Comments

No comments yet.

Sorry, the comment form is closed at this time.