diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 000000000..5c055c12e --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,6 @@ +App Loader ChangeLog +==================== + +Changed for individual apps are listed in `apps/appname/ChangeLog` + +* `Remove All Apps` now doesn't perform a reset before erase - fixes inability to update firmware if settings are wrong diff --git a/apps.json b/apps.json index 90d50ccaa..7e1d9dd06 100644 --- a/apps.json +++ b/apps.json @@ -27,7 +27,7 @@ { "id": "daysl", "name": "Days left", "icon": "app.png", - "version":"0.01", + "version":"0.02", "description": "Shows you the days left until a certain date. Date can be set with a settings app and is written to a file.", "tags": "", "allow_emulator":false, @@ -65,7 +65,7 @@ { "id": "locale", "name": "Languages", "icon": "locale.png", - "version":"0.04", + "version":"0.05", "description": "Translations for different countries", "tags": "tool,system,locale,translate", "type": "locale", @@ -334,6 +334,17 @@ {"name":"widbat.wid.js","url":"widget.js"} ] }, + { "id": "widbatpc", + "name": "Battery Level Widget (with percentage)", + "icon": "widget.png", + "version":"0.06", + "description": "Show the current battery level and charging status in the top right of the clock, with charge percentage", + "tags": "widget,battery", + "type":"widget", + "storage": [ + {"name":"widbatpc.wid.js","url":"widget.js"} + ] + }, { "id": "widbt", "name": "Bluetooth Widget", "icon": "widget.png", @@ -881,7 +892,7 @@ { "id": "marioclock", "name": "Mario Clock", "icon": "marioclock.png", - "version":"0.03", + "version":"0.04", "description": "Animated Mario clock, jumps to change the time!", "tags": "clock,mario,retro", "type": "clock", @@ -972,5 +983,16 @@ {"name":"waxing-gibbous.img","url":"waxing-gibbous-icon.js","evaluate":true}, {"name":"waxing-crescent.img","url":"waxing-crescent-icon.js","evaluate":true} ] + }, + { "id": "widhwt", + "name": "Hand Wash Timer", + "icon": "widget.png", + "version":"0.01", + "description": "Swipe your wrist over the watch face to start your personal Bangle.js hand wash timer for 35 sec. Start washing after the short buzz and stop after the long buzz.", + "tags": "widget,tool", + "type":"widget", + "storage": [ + {"name":"widhwt.wid.js","url":"widget.js"} + ] } ] diff --git a/apps/cliock/ChangeLog b/apps/cliock/ChangeLog new file mode 100644 index 000000000..081a638f6 --- /dev/null +++ b/apps/cliock/ChangeLog @@ -0,0 +1 @@ +0.07: Submitted to App Loader diff --git a/apps/daysl/ChangeLog b/apps/daysl/ChangeLog index 4c21f3ace..4e0b8e6cf 100644 --- a/apps/daysl/ChangeLog +++ b/apps/daysl/ChangeLog @@ -1 +1,2 @@ 0.01: New Widget! +0.02: Improved calculation, new image for app diff --git a/apps/daysl/app-icon.js b/apps/daysl/app-icon.js index 485478c58..bdc0da744 100644 --- a/apps/daysl/app-icon.js +++ b/apps/daysl/app-icon.js @@ -1 +1 @@ -require("heatshrink").decompress(atob("mEwwMB//D/4CgwHDFYPDgICBAoQCB/4CKADmAAgcBIARCCAqQAXF/4v24CtDgYFR")) \ No newline at end of file +require("heatshrink").decompress(atob("mEwgmIAH4A/AH4A/AEEAAAgGOC/4XLAgoGIDgYXTwEIBY4JEAw8YCIOAEY4+EAwwTCL44XNO5IX/C6i6LC8YABa5AXOF67vIwA5DAw5GDMhg7HjAXWIwQLFZIoGNC/4XKAH4A/AH4A/ADoA=")) \ No newline at end of file diff --git a/apps/daysl/app.png b/apps/daysl/app.png index 703e5c366..42839ae59 100644 Binary files a/apps/daysl/app.png and b/apps/daysl/app.png differ diff --git a/apps/daysl/widget.js b/apps/daysl/widget.js index 5a3c170c2..6fb755d1e 100644 --- a/apps/daysl/widget.js +++ b/apps/daysl/widget.js @@ -4,12 +4,12 @@ let settings; function updateSettings() { storage.write('daysleft.json', settings); } - + function resetSettings() { settings = { day : 17, month : 6, - year: 1981 + year: 2020 }; updateSettings(); } @@ -17,17 +17,23 @@ function updateSettings() { settings = storage.readJSON('daysleft.json',1); if (!settings) resetSettings(); - var dd = settings.day+1, - mm = settings.month-1, + var dd = settings.day, + mm = settings.month-1, //month is zero-based yy = settings.year; const oneDay = 24 * 60 * 60 * 1000; // hours*minutes*seconds*milliseconds const targetDate = new Date(yy, mm, dd); const today = new Date(); - const diffDays = Math.round(Math.abs((targetDate - today) / oneDay)); + + //create date object with today, but 00:00:00 + const currentYear = today.getFullYear(); + const currentMonth = today.getMonth(); + const currentDay = today.getDate(); + const todayMorning = new Date (currentYear, currentMonth, currentDay, 0, 0, 0); + + const diffDays = (targetDate - todayMorning) / oneDay; WIDGETS["daysl"]={area:"tl",width:40,draw:function(){ - g.setFont("6x8", 1); g.drawString(diffDays,this.x+12,this.y+12); }}; \ No newline at end of file diff --git a/apps/locale/ChangeLog b/apps/locale/ChangeLog index fb461edcc..d46bbaea0 100644 --- a/apps/locale/ChangeLog +++ b/apps/locale/ChangeLog @@ -2,3 +2,5 @@ 0.02: Fix locale.currencySym 0.03: Fix global 'locale' variable 0.04: Add function meridian +0.05: Inline locale details - faster, less memory overhead + Add correct scaling for speed/distance/temperature diff --git a/apps/locale/locale.html b/apps/locale/locale.html index de3500934..5d7882e00 100644 --- a/apps/locale/locale.html +++ b/apps/locale/locale.html @@ -15,6 +15,45 @@