-
-
Basically yes. It tells me that you were in state awake since 7:00 which is why it woke you up at 7:30. If it would wake you up later there is a risk for you falling into a deeper sleep state again.
What confuses me is the long awake phase from approx. midnight to 4:00.
You could do the following test
- Create an alarm at least 45 minutes into the future.
- Start sleepphasealarm and put the watch on a stable surface (table) and do not touch it
- Approx. 10 minutes before the alarm move the watch. The alarm should go off exactly when you move the watch.
- Create an alarm at least 45 minutes into the future.
-
-
-
@tipans You should be able to view the sleep plots in the development app loader:
https://espruino.github.io/BangleApps/?id=sleepphasealarm -
-
Got it, looks like the json format written for dates changed in new firmware:
require("Storage").writeJSON("test.json", new Date()); >require("Storage").readJSON("test.json",1) ={ ms: 1710748136790.38647460937 }
earlier it was saved in a format like this:
>JSON.stringify(new Date()) ="\"2024-03-18T07:51:46.241Z\""
@Gordon Is that intentional? I don't see it in the changelog up to firmware 2v21
-
-
uhm invalid date? Could you share your sleepphasealarm.json please? You can download it from the ide
-
-
-
I see it too on 2v21, but everything seems to work as expected. Maybe @Gordon has an idea where this comes from.
My applications are up to date.
-
-
-
-
-
-
I guess it is not a good idea to update to bleeding edge 2v20.76?
> Uncaught SyntaxError: Got '(' expected ',' at line 4 col 151 in locale ...i,Mi,Do,Fr,Sa".split(',')[d.getDay()+(short?7:0)],month:(d,s... ^ at line 4 col 638 in locale ...istance:(n,dp)=>n<1000?round(n,dp)+"m":round(n/1000,dp)+"km",... ^ at line 4 col 191 in antonclkplus.app.js ...dsWithColon?0:g.stringWidth(":")/2);var dateStr2=(dateOnMain==="ISO8601"... ^ in function "draw" called from line 3 col 3714 in antonclkplus.app.js ...=false;queueMillis=60000;}draw();}else{if(drawTimeout)clearTimeout(d... ^ in function "updateState" called from line 4 col 1582 in antonclkplus.app.js ...gs();g.clear();updateState();Bangle.on("lcdPower",updateStat..
-
Are you sure this is not a widget taking more memory or app bug?
This is fastloading between antonclkplus and taglaunch witch a button press:
process.memory().usage;
=3506
process.memory().usage;
=5217
process.memory().usage;
=3606
process.memory().usage;
=5217
process.memory().usage;
=3606
process.memory().usage;
=5217
process.memory().usage;
=3606
process.memory().usage;
=5217
process.memory().usage;
=3606
process.version
="2v20.69"Note: So far I only have reinstalled antonclkplus and taglaunch with new pretokenization.
Above I only see one increase for antonclkplus from 3506 to 3606 after taglaunch, probably from loading a lib or similar.
-
Might be related: issue #3166
-
-
@Gordon Could we also currently have an issue with backup/restore? I just tried a backup from one Watch and restore on the other and the json files can no longer be read, e.g. sched:
require('Storage').readJSON('sched.json',0)
Uncaught SyntaxError: Got ID:t expected '}'
at line 1 col 3 in sched.json
[{t:53100000,del:false,on:false,rp:false,as:false,dow:127,la... -
Also you might want to check issues#3110 and try the new Util.readStorageJSON() (or replicate what it does after downloading the files from the IDE)
Try nail polish on the contacts. For the display try scratch remover polish. Not sure what to do about the button.