1
0
Fork 0

add sun image on watch face

master
Giles Booth 2022-08-14 13:43:23 +01:00 committed by GitHub
parent 8a636b15ad
commit 3927ca4888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,7 @@ const yposLon = xyCenter*1.9;
//const yposTide3 = xyCenter*1.8;
//const yposTide4 = xyCenter*1.9;
var sunImg = require("heatshrink").decompress(atob("j0ewIIFhgDCmADC4ACBgYCBjEMg0AuEAnEA8EB4EBx/GB4N/wAVB/4GBj/+AYP//gKC+EH5//5+fn//nwOGgEH/4hBh4KBEIPggEGn8YHIVwHII9Bg0DgIWBLJoADA=="));
// Check settings for what type our clock should be
@ -105,6 +106,8 @@ function draw() {
g.setFont(font, dateFontSize);
g.drawString(date, xyCenter, yposDate, true);
g.drawImage(sunImg, xyCenter-15, xyCenter+12);
// recalc sunrise / sunset every hour - needs putting in correct place
// if (drawCount % 60 == 0)