Chat freely about the open source Javascript projects for ESP8266

User avatar
By cwilt
#39710 I was able to use Espruino on the esp8266 to set the time.

Code: Select allvar timeS;
require("http").get("http://www.timeapi.org/utc/7+hours+ago?\\s", function(res) {
  res.on('data', function(data) {
    console.log("HTTP> "+data);
    timeS=Number(data);
  });
  res.on('close', function(data) {
    console.log("Connection closed");
    setTime(timeS);
  });
});