[sleeplogalarm] Second try

pull/2785/head
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.03: Correct how to ignore last triggered alarm
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;
// set widget width if not hidden
if (!settings.hidden) this.width = 8;
if (!settings.wid.hide) this.width = 8;
// insert sleeplogalarm conditions and function
sleeplog.trigger.sleeplogalarm = {

View File

@ -2,7 +2,7 @@
"id":"sleeplogalarm",
"name":"Sleep Log Alarm",
"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.",
"icon": "app.png",
"type": "widget",

View File

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