Chat about current Lua tools and IDEs

User avatar
By jlauer
#41527 Totally agree with you. Having a near instant edit/upload/execute is amazing. The notion of having to compile and reflash entire firmware is miserable and not the future. That's why I love Lua so much. I've never tried a higher baud rate than 9600, so you're making me jealous. I need to try that. I know you can send a command to NodeMCU after the fact to up the baud rate. I'd have to perhaps make SPJS disconnect and reconnect at the higher rate.

If you are running SPJS on Linux, it does seem to need a restart every now and then because disconnects don't always seem to disconnect. Just click that restart button in the SPJS widget to kill and restart SPJS automatically.

If you're liking the workspace, feel free to fork and add features. One of the key items of ChiliPeppr is how easy it is to fork others code so that workspaces get pimped out by the community. This NodeMCU workspace is in its infancy, so it could use some help to get amazing.

The key thing I like is that all my NodeMCU devices end up having a user interface and thus ChiliPeppr has been great. I have a NodeMCU doing current sensing from an INA219 device and ChiliPeppr will show a real-time oscilloscope view of the data coming back from NodeMCU. So ChiliPeppr allows you to program your device as well as interact with it after the fact with a slick interface.

https://github.com/chilipeppr/widget-ina219
ina219.png
ina219.png (11.52 KiB) Viewed 3286 times
User avatar
By devsaurus
#41548 I'd love to try your IDE but get the same error like Mighty Max when loading http://chilipeppr.com/nodemcu:
Mighty Max wrote:Debugger says (sorry, german language):
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://i2dcui.appspot.com/geturl?url=ht ... how/light/. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).
User avatar
By jlauer
#41560 Any chance you could post a screenshot? I'm curious what part it is dying at and I think a screenshot would help me. Does the homepage of chilipeppr.com load OK? I can't seem to reproduce the error you guys are seeing and the geturl method that your error shows does send Access-Control-Allow-Origin of */* to allow anyone to load it.

devsaurus wrote:I'd love to try your IDE but get the same error like Mighty Max when loading http://chilipeppr.com/nodemcu:
Mighty Max wrote:Debugger says (sorry, german language):
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://i2dcui.appspot.com/geturl?url=ht ... how/light/. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).
User avatar
By jlauer
#41563 Are you guys only seeing this in Firefox? Or Chrome as well?

I checked the source code and I do send back Access-Control-Allow-Origin of *
// Proxy a URL request thru this server
// Solves cross-domain ajax problems
w.Header().Set("Access-Control-Allow-Origin", "*")

I also see this in Chrome proving it's in there.
nodemcu access control.png


So, is it possibly you are running your browser with restricted permissions or something? Keep in mind about 7,000 users use ChiliPeppr each month and I've never heard of this problem before so I'm a bit baffled. That's why I'm wondering if it's just the NodeMCU workspace or even the homepage?

jlauer wrote:Any chance you could post a screenshot? I'm curious what part it is dying at and I think a screenshot would help me. Does the homepage of chilipeppr.com load OK? I can't seem to reproduce the error you guys are seeing and the geturl method that your error shows does send Access-Control-Allow-Origin of */* to allow anyone to load it.

devsaurus wrote:I'd love to try your IDE but get the same error like Mighty Max when loading http://chilipeppr.com/nodemcu:
Mighty Max wrote:Debugger says (sorry, german language):
Quellübergreifende (Cross-Origin) Anfrage blockiert: Die Gleiche-Quelle-Regel verbietet das Lesen der externen Ressource auf http://i2dcui.appspot.com/geturl?url=ht ... how/light/. (Grund: CORS-Kopfzeile 'Access-Control-Allow-Origin' fehlt).