Skip to content

Commit

Permalink
fixed show_clock
Browse files Browse the repository at this point in the history
closed #521
  • Loading branch information
o0shojo0o committed Nov 6, 2023
1 parent 984f277 commit 752cd76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rootDataPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const RootDataPoints = [
role: 'text',
read: true,
write: true,
def: ''
},
native: {},
}
Expand All @@ -26,6 +27,7 @@ const RootDataPoints = [
role: 'json',
read: true,
write: true,
def: '{}'
},
native: {},
}
Expand Down
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ class PixelIt extends utils.Adapter {
let data;

switch (id) {
case `${adapter.namespace}.show_clock`:
data = { clock: {} };
break;
case `${adapter.namespace}.message`:
data = await createSimpleMessage(state.val);
break;
Expand Down

0 comments on commit 752cd76

Please sign in to comment.