You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Great... thanks! The clock module should work pretty well for this. I like the data/json structure too - it's easy to write and use, and in Espruino it's actually about as efficient as a standard integer-indexed array.

    Out of interest, is there a reason why you parsed the JSON string data, rather than just taking it out of the quotes and defining it like:

    var json = {"6/3/14":"g","13/3/14":"b","20/3/14":"g","27/3/14":"b","3/4/14":"g","10/4/14":"b","17/4/14":"g","25/4/14":"b","1/5/14":"g","9/5/14":"b","15/5/14":"g","22/5/14":"b","30/5/14":"g","5/6/14":"b","12/6/14":"g","19/6/14":"b","26/6/14":"g","3/7/14":"b","10/7/14":"g","17/7/14":"b","24/7/14":"g","31/7/14":"b","7/8/14":"g","14/8/14":"b","21/8/14":"g","29/8/14":"b","4/9/14":"g","11/9/14":"b","18/9/14":"g","25/9/14":"b","1/10/14":"g","9/10/14":"b","16/10/14":"g","12/10/14":"b","30/10/14":"g","6/11/14":"b","13/11/14":"g","20/11/14":"b","27/11/14":"g","4/12/14":"b","11/12/14":"g","18/12/14":"b","24/12/14":"g","2/1/15":"s","8/1/15":"g","15/1/15":"b","22/1/15":"g","29/1/15":"b","5/2/15":"g","12/2/15":"b","19/2/15":"g","26/2/15":"b","5/3/15":"g","12/3/15":"b","19/3/15":"g","26/3/15":"b","2/4/15":"g","10/4/15":"b","16/4/15":"g","23/4/15":"b","30/4/15":"g","8/5/15":"b","14/5/15":"g","21/5/15":"b","29/5/15":"g","4/6/15":"b","11/6/15":"g","18/6/15":"b","25/6/15":"g","2/7/15":"b","9/7/15":"g","16/7/15":"b","23/7/15":"g","30/7/15":"b","6/8/15":"g","13/8/15":"b","20/8/15":"g","27/8/15":"b","4/9/15":"g","10/9/15":"b","17/9/15":"g","24/9/15":"b","1/10/15":"g","8/10/15":"b","15/10/15":"g","22/10/15":"b","29/10/15":"g"};
    

    You could use one of the Nokia 5110 LCDs, or maybe even a Sharp Memory LCD - and then it could sit there running off a solar cell :)

    For this it may not be such a big deal, but Espruino's RTC uses the internal RC oscillator, which is only accurate to 1% or so. It's dead easy to solder on a watch crystal though.

About

Avatar for Gordon @Gordon started