add screenshots and tidy up
parent
82f95e0cef
commit
4957ea9723
|
|
@ -1 +1 @@
|
||||||
0.01: copied from cc_abstract (V0.01)
|
0.01: First functional release
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,10 @@
|
||||||
# Analog Clock With Abstract Face
|
# Astronomy Clock
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* inspired from the abstract face of the google smartwatch
|
* shows earth as hour and venus as minute hand
|
||||||
* second hand (only on unlocked screen)
|
* shows mercury as second hand only on unlocked screen
|
||||||
* date
|
* you will be enabled, to recognize the time from the planet positions
|
||||||
* battery percentage (showing charge status with color)
|
* if battery is low, the sun will become a red giant
|
||||||
* turned off or swipeable widgets (choose in settings)
|
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Settings
|
|
||||||
|
|
||||||
* whether to load widgets, or not; if widgets are loaded, they are swipeable from the top; if not, NO ACTIONS of widgets are available
|
|
||||||
* date and battery can be printed both below hands (as if hands were physical) and above (more readable)
|
|
||||||
* hour hand can be made slighly shorter to improve readability when minute hand is behind a number
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,5 @@
|
||||||
// ----- const -----
|
// ----- const -----
|
||||||
|
|
||||||
const defaultSettings = {
|
|
||||||
loadWidgets : false,
|
|
||||||
textAboveHands : false,
|
|
||||||
shortHrHand : false,
|
|
||||||
show24HourMode : false
|
|
||||||
};
|
|
||||||
|
|
||||||
const settings = Object.assign(defaultSettings, require('Storage').readJSON('cc_abstract.json', 1) || {});
|
|
||||||
|
|
||||||
const center = {
|
const center = {
|
||||||
"x": g.getWidth()/2,
|
"x": g.getWidth()/2,
|
||||||
"y": g.getHeight()/2
|
"y": g.getHeight()/2
|
||||||
|
|
@ -18,7 +9,7 @@ const parameters = {
|
||||||
"earthOrbitRadius": 80,
|
"earthOrbitRadius": 80,
|
||||||
"venusOrbitRadius": 60,
|
"venusOrbitRadius": 60,
|
||||||
"mercuryOrbitRadius": 40,
|
"mercuryOrbitRadius": 40,
|
||||||
"earthRadius": 8,
|
"earthRadius": 6,
|
||||||
"venusRadius": 6,
|
"venusRadius": 6,
|
||||||
"mercuryRadius": 4,
|
"mercuryRadius": 4,
|
||||||
"sunRadius": 12,
|
"sunRadius": 12,
|
||||||
|
|
@ -184,15 +175,6 @@ Bangle.setUI({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Load widgets if needed, and make them show swipeable
|
|
||||||
if (settings.loadWidgets) {
|
|
||||||
Bangle.loadWidgets();
|
|
||||||
require("widget_utils").swipeOn();
|
|
||||||
}
|
|
||||||
else if (global.WIDGETS) {
|
|
||||||
require("widget_utils").hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Stop updates when LCD is off, restart when on
|
// Stop updates when LCD is off, restart when on
|
||||||
Bangle.on('lcdPower', updateState);
|
Bangle.on('lcdPower', updateState);
|
||||||
Bangle.on('lock', updateState);
|
Bangle.on('lock', updateState);
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
require("heatshrink").decompress(atob("mEwgIEBoUAiAKCgUCBQUEColEAYUQhAmKCwgeCAAcCgEDjwEBkEAg8TBocNgYFDh8GAYMDxkPjEA8EAwkHJgIcBAoPfAoYWCBYYFIgfvAoX4FYRJEAp9gAomYNAOAArPwAogAC4AFiRoIFJLgIFJuADCg//Q4U//4FDj4FEAAV4Aoi0CSxBsCA=="))
|
require("heatshrink").decompress(atob("mEwxH+If4AxlYALFkQOaFqITlDQ5FpJDgZUCY2s1mBeJB5bCI1W64ABDhAyKGB4PHwIvCRSgwNCw4HBwOBqxJVGBguHdrTOSCJLtMGA4QXFgYAFJywuPayIgTUyIwWFzIcPCTBhQAogLFAowuVJqRecEiQKQAAUqv1+qhgSAhQvMqnSAAWoF7iOMFwYABMI1KpQvflQvFvwMEku53MlF/6PVlS/GFwYqVd5heFd6wvNSQQABBQ4vaGBQAIlYkVF7IFiFyCuMFJgwORopMOGDIuHEJkHjkjjkHHpQxIBJBeNisjAAMcLJYnBAArDTAAReBAATsUFykAhwuCirsTFyowCisVCg4xQYZwWRC5jDQDKbpGeJapSLBYqDB5rYaDCQZWIyxHYDaaXMGKjHOFrjtKeRwA/AE4A="))
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 3.6 KiB |
|
|
@ -1,18 +1,21 @@
|
||||||
{ "id": "cc_astro",
|
{ "id": "cc_astro",
|
||||||
"name": "CC Astro",
|
"name": "CC Astro",
|
||||||
"shortName":"CC-Astro",
|
"shortName": "CC-Astro",
|
||||||
"version":"0.01",
|
"version": "0.01",
|
||||||
"description": "astronomy clock face",
|
"description": "A clock with planets as clock hands",
|
||||||
"icon": "cc_astro_icon.png",
|
"icon": "app_icon.png",
|
||||||
"type": "clock",
|
"type": "clock",
|
||||||
"tags": "clock",
|
"tags": "clock,astro,planets,earth,venus,mercury,sun",
|
||||||
"supports" : ["BANGLEJS2"],
|
"supports" : ["BANGLEJS2"],
|
||||||
"screenshots": [{"url":"cc_astro_screen.png"}],
|
"screenshots": [
|
||||||
|
{"url":"screenshot1.png"},
|
||||||
|
{"url":"screenshot2.png"},
|
||||||
|
{"url":"screenshot3.png"}
|
||||||
|
],
|
||||||
"readme": "README.md",
|
"readme": "README.md",
|
||||||
"storage": [
|
"storage": [
|
||||||
{"name":"cc_astro.app.js","url":"app.js"},
|
{"name": "cc_astro.app.js", "url": "app.js"},
|
||||||
{"name":"cc_astro.settings.js","url":"settings.js"},
|
{"name": "cc_astro.img", "url": "app_icon.js", "evaluate":true}
|
||||||
{"name":"cc_astro.img","url":"app_icon.js","evaluate":true}
|
|
||||||
],
|
],
|
||||||
"data": [{"name":"cc_astro.json"}]
|
"data": [{"name":"cc_astro.json"}]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.8 KiB |
|
|
@ -1,33 +0,0 @@
|
||||||
(function(back) {
|
|
||||||
const defaultSettings = {
|
|
||||||
loadWidgets : false,
|
|
||||||
textAboveHands : false,
|
|
||||||
shortHrHand : false,
|
|
||||||
show24HourMode : false
|
|
||||||
}
|
|
||||||
let settings = Object.assign(defaultSettings, require('Storage').readJSON('cc_clock24.json',1) || {});
|
|
||||||
|
|
||||||
const save = () => require('Storage').write('cc_clock24.json', settings);
|
|
||||||
|
|
||||||
const appMenu = {
|
|
||||||
'': {title: 'cc_clock24'}, '< Back': back,
|
|
||||||
/*LANG*/'Load widgets': {
|
|
||||||
value : !!settings.loadWidgets,
|
|
||||||
onchange : v => { settings.loadWidgets=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Text above hands': {
|
|
||||||
value : !!settings.textAboveHands,
|
|
||||||
onchange : v => { settings.textAboveHands=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Short hour hand': {
|
|
||||||
value : !!settings.shortHrHand,
|
|
||||||
onchange : v => { settings.shortHrHand=v; save();}
|
|
||||||
},
|
|
||||||
/*LANG*/'Show 24 hour mode': {
|
|
||||||
value : !!settings.show24HourMode,
|
|
||||||
onchange : v => { settings.show24HourMode=v; save();}
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
E.showMenu(appMenu);
|
|
||||||
})
|
|
||||||
Loading…
Reference in New Issue