[sleeplogalarm] Second try

master
storm64 2023-05-29 23:52:46 +02:00
parent eab0e8c620
commit 68a7047a8c
4 changed files with 4 additions and 4 deletions

View File

@ -2,4 +2,4 @@
0.02: Add "from Consec."-setting 0.02: Add "from Consec."-setting
0.03: Correct how to ignore last triggered alarm 0.03: Correct how to ignore last triggered alarm
0.04: Make "disable alarm" possible on next day; correct alarm filtering; improve settings 0.04: Make "disable alarm" possible on next day; correct alarm filtering; improve settings
0.041: Correct hide function + replace all `var` with `let`. 0.042: Correct hide function + replace all `var` with `let`.

View File

@ -68,7 +68,7 @@ exports = {
if (!this.time) return; if (!this.time) return;
// set widget width if not hidden // set widget width if not hidden
if (!settings.hidden) this.width = 8; if (!settings.wid.hide) this.width = 8;
// insert sleeplogalarm conditions and function // insert sleeplogalarm conditions and function
sleeplog.trigger.sleeplogalarm = { sleeplog.trigger.sleeplogalarm = {

View File

@ -2,7 +2,7 @@
"id":"sleeplogalarm", "id":"sleeplogalarm",
"name":"Sleep Log Alarm", "name":"Sleep Log Alarm",
"shortName": "SleepLogAlarm", "shortName": "SleepLogAlarm",
"version": "0.041", "version": "0.042",
"description": "Enhance your morning and let your alarms wake you up when you are in light sleep.", "description": "Enhance your morning and let your alarms wake you up when you are in light sleep.",
"icon": "app.png", "icon": "app.png",
"type": "widget", "type": "widget",

View File

@ -1,7 +1,7 @@
// check if enabled in settings // check if enabled in settings
if ((require("Storage").readJSON("sleeplogalarm.settings.json", true) || {enabled: true}).enabled) { if ((require("Storage").readJSON("sleeplogalarm.settings.json", true) || {enabled: true}).enabled) {
// read settings // read settings
settings = require("sleeplogalarm").getSettings(); // is undefined if used with var let settings = require("sleeplogalarm").getSettings();
// insert neccessary settings into widget // insert neccessary settings into widget
WIDGETS.sleeplogalarm = { WIDGETS.sleeplogalarm = {