How to use Blockly inside existing ESP8266 firmware

789 views
Skip to first unread message

Bo

unread,
Jun 24, 2018, 12:41:15 PM6/24/18
to Blockly
I have seen several github repos that can convert Blockly code to Arduino C++ etc.
What I'm looking for however is an interpreter that can update and execute a piece of Blockly code on an already running ESP.

I want to connect to the ESP, open a webpage hosting Blockly in which I can create a simply piece of code like: turn led1 on, wait 1 second, turn led1 off.
This blockly code should then be executed as soon as it's saved but without compiling/uploading.

Curious if such an interpreter already exists, even if in a another language.

Thanks

Rachel Fenichel

unread,
Jun 25, 2018, 2:18:56 PM6/25/18
to Blockly
I'm not aware of one, but someone else on the forum may have more information for you.

Cheers,
Rachel

Andrew Stratton

unread,
Jul 2, 2018, 5:49:10 AM7/2/18
to Blockly
If you're looking for ESP8266 interpreters, then Micro Python, Espruino and Lua (NodeMCU) may help.

I have got Micro Python working - on ESP32 - but it should work on ESP8266 as well.

You will have to produce python from your blocks - sorry - I don't have any experience of that - I produce Javascript...

You'll also need to generate the python to a file, and then use ampy to copy the file across (most likely as main.py - so it - at least - hard boots into it).

A fair bit of work and knowledge needed...

Cheers
  Andy

Robert S

unread,
Jul 26, 2018, 5:12:06 PM7/26/18
to Blockly
I'm working on exactly this but for Lua. My last challenge is to route error messages to a server instead of to a console.
Reply all
Reply to author
Forward
0 new messages