Adjusted README, back out of calendar via button.

master
Stuff-etc 2024-03-23 06:02:30 +01:00
parent e5d806b5eb
commit 53669b0b44
5 changed files with 19 additions and 11 deletions

View File

@ -5,4 +5,5 @@
0.05: Improved colors (connected vs disconnected) 0.05: Improved colors (connected vs disconnected)
0.06: Tell clock widgets to hide. 0.06: Tell clock widgets to hide.
0.07: Convert Yes/No On/Off in settings to checkboxes 0.07: Convert Yes/No On/Off in settings to checkboxes
0.08: Fixed typo in settings.js for DRAGDOWN to make option work 0.08: Fixed typo in settings.js for DRAGDOWN to make option work
0.09: You can now back out of the calendar using the button

View File

@ -7,23 +7,24 @@ I know that it seems redundant because there already **is** a *time&cal*-app, bu
|:--:|:-| |:--:|:-|
|![locked screen](screenshot.png)|locked: triggers only one minimal update/min| |![locked screen](screenshot.png)|locked: triggers only one minimal update/min|
|![unlocked screen](screenshot2.png)|unlocked: smaller clock, but with seconds| |![unlocked screen](screenshot2.png)|unlocked: smaller clock, but with seconds|
|![big calendar](screenshot3.png)|swipe up for big calendar, (up down to scroll, left/right to exit)| |![big calendar](screenshot3.png)|swipe up for big calendar<br>⬆️/⬇️ to scroll<br> ⬅️/➡️ to exit|
## Configurable Features ## Configurable Features
- Number of calendar rows (weeks) - Number of calendar rows (weeks)
- Buzz on connect/disconnect (I know, this should be an extra widget, but for now, it is included) - Buzz on connect/disconnect (feel free to disable and use a widget)
- Clock Mode (24h/12h). (No am/pm indicator) - Clock Mode (24h/12h). (No am/pm indicator)
- First day of the week - First day of the week
- Red Saturday/Sunday - Red Saturday/Sunday
- Swipe/Drag gestures to launch features or apps. - Swipe/Drag gestures to launch features or apps.
## Auto detects your message/music apps: ## Integrated swipe launcher: (Configure in Settings)
- swiping down will search your files for an app with the string "message" in its filename and launch it. (configurable) - ⬇️ (down) will search your files for an app with the string "**message**"
- swiping right will search your files for an app with the string "music" in its filename and launch it. (configurable) - ➡️ (right) will search your files for an app with the string "**music**"
- ⬅️ (left) will search your files for an app with the string "**agenda**"
- ⬆️ (up) will show the **internal full calendar**
## Feedback ## Feedback
The clock works for me in a 24h/MondayFirst/WeekendFree environment but is not well-tested with other settings. If something isn't working, please tell me: https://github.com/Stuff-etc/BangleApps/issues (I moved my github repo)
So if something isn't working, please tell me: https://github.com/foostuff/BangleApps/issues
## Planned features: ## Planned features:
- Internal lightweight music control, because switching apps has a loading time. - Internal lightweight music control, because switching apps has a loading time.

View File

@ -233,6 +233,12 @@ function action(a) {
load(l[0]); load(l[0]);
} else E.showAlert("Message app not found", "Not found").then(drawWatch); } else E.showAlert("Message app not found", "Not found").then(drawWatch);
break; break;
case "[AI:agenda]":
l = require("Storage").list(RegExp("agenda.*app.js"));
if (l.length > 0) {
load(l[0]);
} else E.showAlert("Agenda app not found", "Not found").then(drawWatch);
break;
default: default:
l = require("Storage").list(RegExp(a + ".app.js")); l = require("Storage").list(RegExp(a + ".app.js"));
if (l.length > 0) { if (l.length > 0) {

View File

@ -1,7 +1,7 @@
{ {
"id": "clockcal", "id": "clockcal",
"name": "Clock & Calendar", "name": "Clock & Calendar",
"version": "0.08", "version": "0.09",
"description": "Clock with Calendar", "description": "Clock with Calendar",
"readme":"README.md", "readme":"README.md",
"icon": "app.png", "icon": "app.png",

View File

@ -9,12 +9,12 @@
REDSAT: true, // Use red color for saturday? REDSAT: true, // Use red color for saturday?
DRAGDOWN: "[AI:messg]", DRAGDOWN: "[AI:messg]",
DRAGRIGHT: "[AI:music]", DRAGRIGHT: "[AI:music]",
DRAGLEFT: "[ignore]", DRAGLEFT: "[AI:agenda]",
DRAGUP: "[calend.]" DRAGUP: "[calend.]"
}; };
settings = Object.assign(defaults, require('Storage').readJSON(FILE, true) || {}); settings = Object.assign(defaults, require('Storage').readJSON(FILE, true) || {});
actions = ["[ignore]","[calend.]","[AI:music]","[AI:messg]"]; actions = ["[ignore]","[calend.]","[AI:music]","[AI:messg]","[AI:agenda]"];
require("Storage").list(RegExp(".app.js")).forEach(element => actions.push(element.replace(".app.js",""))); require("Storage").list(RegExp(".app.js")).forEach(element => actions.push(element.replace(".app.js","")));
function writeSettings() { function writeSettings() {