mirror of https://github.com/espruino/BangleApps
Added simpler calendar management (all in single packet)
parent
e057270d01
commit
9e4d58d215
|
@ -91,6 +91,11 @@
|
||||||
sched.reload();
|
sched.reload();
|
||||||
},
|
},
|
||||||
//TODO perhaps move those in a library (like messages), used also for viewing events?
|
//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() {
|
"calendar" : function() {
|
||||||
var cal = require("Storage").readJSON("android.calendar.json",true);
|
var cal = require("Storage").readJSON("android.calendar.json",true);
|
||||||
if (!cal || !Array.isArray(cal)) cal = [];
|
if (!cal || !Array.isArray(cal)) cal = [];
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "android",
|
"id": "android",
|
||||||
"name": "Android Integration",
|
"name": "Android Integration",
|
||||||
"shortName": "Android",
|
"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.",
|
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"tags": "tool,system,messages,notifications,gadgetbridge",
|
"tags": "tool,system,messages,notifications,gadgetbridge",
|
||||||
|
|
Loading…
Reference in New Issue