forked from espruino/BangleApps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7efd4f
commit 6268679
Showing
8 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.01: New App! |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
(function() { | ||
return { | ||
name: "Bangle", | ||
items: [ | ||
{ name : "Clock", | ||
get : () => { | ||
return { | ||
text : require("locale").time(new Date(),1), | ||
img : atob("FhaBAAAAAAPwAD/wA8DwHADgYMGDAwMMDAxgMBmAwGYDAZgOBmAcGYA4YwBjDAAMGABgcAOA8DwA/8AA/AAAAAA=") | ||
}; | ||
}, | ||
show : function() { | ||
this.interval = setTimeout(()=>{ | ||
this.emit("redraw"); | ||
this.interval = setInterval(()=>{ | ||
this.emit("redraw"); | ||
}, 60000); | ||
}, 60000 - (Date.now() % 60000)); | ||
}, | ||
hide : function() { | ||
clearInterval(this.interval); | ||
this.interval = undefined; | ||
} | ||
} | ||
] | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ "id": "clkinfoclk", | ||
"name": "Clockinfo Clock", | ||
"version":"0.01", | ||
"description": "This displays a clock *inside* a ClockInfo. This can be really handy for the [Clock Info Widget](https://banglejs.com/apps/?id=widclkinfo) where you might want the option to show a clock in the top bar of a non-clock app.", | ||
"icon": "app.png", | ||
"screenshots": [{"url":"screenshot.png"}], | ||
"type": "clkinfo", | ||
"tags": "clkinfo", | ||
"supports" : ["BANGLEJS2"], | ||
"storage": [ | ||
{"name":"clkinfoclk.clkinfo.js","url":"clkinfo.js"} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
0.01: New Widget! | ||
0.02: Now use an app ID (to avoid conflicts with clocks that also use ClockInfo) | ||
0.03: Fix widget clearing too far down | ||
0.03: Fix widget clearing too far down | ||
0.04: If a small font is needed, use 6x8 but twice as high |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters