WebIDE Settings in query string

Posted on
  • I want to be able to share a URL to people to update their pixl with my latest build via the web app, I found the ?codeurl= param which is great for getting the code into their IDE but I also need to set a couple of options, namley Direct to Flash and Modules uploaded as functions is it possible to set these from url params as well? that way I can give someone a URL to open where they just click connect then send to esprunio?

  • It's not well documented but the implementation is here: https://github.com/espruino/EspruinoWebI­DE/blob/gh-pages/js/plugins/urlHandler.j­s

    You should be able to do ?settings={"MODULE_AS_FUNCTION":true,"SA­VE_ON_SEND":1}

    You can get a list of configs from the CLI with espruino --listconfigs as well if you need to add anything else :)

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

WebIDE Settings in query string

Posted by Avatar for sammachin @sammachin

Actions