-
• #2
Same here! I've been troubleshooting for hours. Nothing happens when I try to send var dht = require("DHT22"); from the right-hand side.
-
• #3
http://www.espruino.com/modules/
The modules can be seen using a browser.
I'm wondering if the latest Windows update changed something that blocks Web IDE from fetching the modules when the send to Espruino button is clicked. -
• #4
Temporary work around
In the Web IDE click on the settings (gear icon) and go to project.
Create a sandbox directory. Mine is called EP.
Another button appears under the send to Espruino button.
With Explorer copy your program into EP/Projects.
Now for the modules. With a browser go to
http://espruino.com/modules/
Click on the module you need, and it will fill the screen.
Select all and copy into Notepad and save with the same name in
EP/modules.
You might look to see if your module requires other modules. If so, copy and save them as well.In Web IDE load your program into the right side from EP/Projects/
Now try the send to Espruino.
With any luck your program will load.I used the following to test this method. The ESP8266 module requires the AT module as well.
console.log("aaa"); require("ESP8266WiFi_0v25"); console.log("bbb");
-
• #5
Argh, sorry about this. I'l looking into it now
-
• #6
It's some recent contributed changes that were supposed to improve the 'sandbox' code, but it looks like they broke everything else.
Really sorry about that - I'm trying to fix it ASAP.
-
• #7
Ok, fixed now... it'll take maybe an hour to update.
-
• #8
Great. Works fine now.
It was working but now it doesn't.
Simple programs on the right side get sent to Espruino just fine.
Module URL
http://www.espruino.com/modules
Module Extensions
.min.js|.js