forked from FOSS/BangleApps
commit
1ee2d42133
|
@ -6,3 +6,4 @@
|
||||||
0.24: Added previews to the customizer.
|
0.24: Added previews to the customizer.
|
||||||
0.25: Fixed a bug that would let widgets change the color of the clock.
|
0.25: Fixed a bug that would let widgets change the color of the clock.
|
||||||
0.26: Time formatted to locale
|
0.26: Time formatted to locale
|
||||||
|
0.27: Fixed the timing code, which sometimes did not update for one minute
|
||||||
|
|
|
@ -7,6 +7,13 @@ if (settings.fontIndex==undefined) {
|
||||||
require('Storage').writeJSON("myapp.json", settings);
|
require('Storage').writeJSON("myapp.json", settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function queueDraw() {
|
||||||
|
setTimeout(function() {
|
||||||
|
draw();
|
||||||
|
queueDraw();
|
||||||
|
}, 60000 - (Date.now() % 60000));
|
||||||
|
}
|
||||||
|
|
||||||
function draw() {
|
function draw() {
|
||||||
var date = new Date();
|
var date = new Date();
|
||||||
// Draw day of the week
|
// Draw day of the week
|
||||||
|
@ -24,7 +31,5 @@ Bangle.setUI("clock");
|
||||||
g.clear();
|
g.clear();
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
Bangle.drawWidgets();
|
Bangle.drawWidgets();
|
||||||
|
queueDraw();
|
||||||
draw();
|
draw();
|
||||||
setTimeout(function() {
|
|
||||||
setInterval(draw,60000);
|
|
||||||
}, 60000 - Date.now() % 60000);
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ "id": "contourclock",
|
{ "id": "contourclock",
|
||||||
"name": "Contour Clock",
|
"name": "Contour Clock",
|
||||||
"shortName" : "Contour Clock",
|
"shortName" : "Contour Clock",
|
||||||
"version":"0.26",
|
"version":"0.27",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"description": "A Minimalist clockface with large Digits. Now with more fonts!",
|
"description": "A Minimalist clockface with large Digits. Now with more fonts!",
|
||||||
"screenshots" : [{"url":"cc-screenshot-1.png"},{"url":"cc-screenshot-2.png"}],
|
"screenshots" : [{"url":"cc-screenshot-1.png"},{"url":"cc-screenshot-2.png"}],
|
||||||
|
|
Loading…
Reference in New Issue