add screenshots and tidy up

master
czeppi 2025-04-01 07:27:38 +02:00
parent 82f95e0cef
commit 4957ea9723
12 changed files with 21 additions and 76 deletions

View File

@ -1 +1 @@
0.01: copied from cc_abstract (V0.01)
0.01: First functional release

View File

@ -1,17 +1,10 @@
# Analog Clock With Abstract Face
# Astronomy Clock
## Features
* inspired from the abstract face of the google smartwatch
* second hand (only on unlocked screen)
* date
* battery percentage (showing charge status with color)
* turned off or swipeable widgets (choose in settings)
* shows earth as hour and venus as minute hand
* shows mercury as second hand only on unlocked screen
* you will be enabled, to recognize the time from the planet positions
* if battery is low, the sun will become a red giant
![logo](cc_clock24_screen.png)
## 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
![logo](screenshot1.png)

View File

@ -1,14 +1,5 @@
// ----- 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 = {
"x": g.getWidth()/2,
"y": g.getHeight()/2
@ -18,7 +9,7 @@ const parameters = {
"earthOrbitRadius": 80,
"venusOrbitRadius": 60,
"mercuryOrbitRadius": 40,
"earthRadius": 8,
"earthRadius": 6,
"venusRadius": 6,
"mercuryRadius": 4,
"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
Bangle.on('lcdPower', updateState);
Bangle.on('lock', updateState);

View File

@ -1 +1 @@
require("heatshrink").decompress(atob("mEwgIEBoUAiAKCgUCBQUEColEAYUQhAmKCwgeCAAcCgEDjwEBkEAg8TBocNgYFDh8GAYMDxkPjEA8EAwkHJgIcBAoPfAoYWCBYYFIgfvAoX4FYRJEAp9gAomYNAOAArPwAogAC4AFiRoIFJLgIFJuADCg//Q4U//4FDj4FEAAV4Aoi0CSxBsCA=="))
require("heatshrink").decompress(atob("mEwxH+If4AxlYALFkQOaFqITlDQ5FpJDgZUCY2s1mBeJB5bCI1W64ABDhAyKGB4PHwIvCRSgwNCw4HBwOBqxJVGBguHdrTOSCJLtMGA4QXFgYAFJywuPayIgTUyIwWFzIcPCTBhQAogLFAowuVJqRecEiQKQAAUqv1+qhgSAhQvMqnSAAWoF7iOMFwYABMI1KpQvflQvFvwMEku53MlF/6PVlS/GFwYqVd5heFd6wvNSQQABBQ4vaGBQAIlYkVF7IFiFyCuMFJgwORopMOGDIuHEJkHjkjjkHHpQxIBJBeNisjAAMcLJYnBAArDTAAReBAATsUFykAhwuCirsTFyowCisVCg4xQYZwWRC5jDQDKbpGeJapSLBYqDB5rYaDCQZWIyxHYDaaXMGKjHOFrjtKeRwA/AE4A="))

BIN
apps/cc_astro/app_icon.png Normal file

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

View File

@ -2,16 +2,19 @@
"name": "CC Astro",
"shortName": "CC-Astro",
"version": "0.01",
"description": "astronomy clock face",
"icon": "cc_astro_icon.png",
"description": "A clock with planets as clock hands",
"icon": "app_icon.png",
"type": "clock",
"tags": "clock",
"tags": "clock,astro,planets,earth,venus,mercury,sun",
"supports" : ["BANGLEJS2"],
"screenshots": [{"url":"cc_astro_screen.png"}],
"screenshots": [
{"url":"screenshot1.png"},
{"url":"screenshot2.png"},
{"url":"screenshot3.png"}
],
"readme": "README.md",
"storage": [
{"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}
],
"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

View File

@ -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);
})