• Using Espruino standard or Pico to run a Web server over ESP8266 for 'shiny UIs' is not why Espruino supports http(s) and ESP8266 Wifi...

    Just let the sensor data run up this stack and let the browser that will display the few data in a shiny way pull from a server the masses of html5/css3/js to for that shine!

    This post shows how (on the example of dojo gauges...). Replace the function in lines 16..21 with sensor reading via an ajax call.

    The shown solution has though still challenges: with many 'clients' pulling this data, Espruino/ESP8266 will not be able to keep up. Therefore, choose a strong midtier - for example node.js on a linux box so you can stick with Javascript - on which something UI less runs to pull the data and hold it in mid tier's memory, and all consumers go just for that last information. Such a solution allows also to log the data...

About

Avatar for allObjects @allObjects started