2021-10-06 09:05:15 +00:00
|
|
|
WIDGETS["alarm"]={area:"tl",width:0,draw:function() {
|
|
|
|
if (this.width) g.reset().drawImage(atob("GBgBAAAAAAAAABgADhhwDDwwGP8YGf+YMf+MM//MM//MA//AA//AA//AA//AA//AA//AB//gD//wD//wAAAAADwAABgAAAAAAAAA"),this.x,this.y);
|
|
|
|
},reload:function() {
|
2022-03-31 14:32:26 +00:00
|
|
|
// don't include library here as we're trying to use as little RAM as possible
|
2022-04-04 14:49:45 +00:00
|
|
|
WIDGETS["alarm"].width = (require('Storage').readJSON('sched.json',1)||[]).some(alarm=>alarm.on&&(alarm.hidden!==false)) ? 24 : 0;
|
2021-10-06 09:05:15 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
WIDGETS["alarm"].reload();
|