From 9e4d58d2151795b83ee09effd10f2cad6eded415 Mon Sep 17 00:00:00 2001 From: Gabriele Monaco Date: Fri, 3 Jun 2022 08:44:13 +0200 Subject: [PATCH] Added simpler calendar management (all in single packet) --- apps/android/boot.js | 5 +++++ apps/android/metadata.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/android/boot.js b/apps/android/boot.js index 72c5bc386..191db3838 100644 --- a/apps/android/boot.js +++ b/apps/android/boot.js @@ -91,6 +91,11 @@ sched.reload(); }, //TODO perhaps move those in a library (like messages), used also for viewing events? + //simple package with events all together + "calendarevents" : function() { + require("Storage").writeJSON("android.calendar.json", event.events); + }, + //add and remove events based on activity on phone (pebble-like) "calendar" : function() { var cal = require("Storage").readJSON("android.calendar.json",true); if (!cal || !Array.isArray(cal)) cal = []; diff --git a/apps/android/metadata.json b/apps/android/metadata.json index 6458087e8..7e4b275c5 100644 --- a/apps/android/metadata.json +++ b/apps/android/metadata.json @@ -2,7 +2,7 @@ "id": "android", "name": "Android Integration", "shortName": "Android", - "version": "4.01", + "version": "4.02", "description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.", "icon": "app.png", "tags": "tool,system,messages,notifications,gadgetbridge",