Here's what I got (hope I did it right):
>alarms =[ { on: true, hr: 13, last: 14, rp: true } ] >require("Storage").readJSON("alarm.json") =[ { on: true, hr: 13, last: 14, rp: true } ] >require("Storage").write("alarm.json",JSON.stringify([ : { on: true, hr: 12, last: 14, rp: true }, : { on: true, hr: 13, last: 14, rp: true } : ])); =true >require("Storage").readJSON("alarm.json") =[ { on: true, hr: 13, last: 14, rp: true } ] >
As you can see, at this point I have an alarm at 13:00 that I cannot delete.
@Old_account started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Here's what I got (hope I did it right):
As you can see, at this point I have an alarm at 13:00 that I cannot delete.