Skip to content

Commit 665bd1b

Browse files
committed
add status to scene-controller
1 parent 0b54304 commit 665bd1b

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

src/sacn/scene-controller.js

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sacn/scene-controller.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts/sacn/scene-controller.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ const nodeInit: NodeInitializer = (RED): void => {
289289
payload: payload,
290290
universe: universe,
291291
} as NodeMessageOut);
292+
293+
this.status({
294+
fill: "green",
295+
shape: "dot",
296+
text: message.topic ?? `Scene ${message.scene}`,
297+
});
292298
};
293299

294300
const handleReset: Executor = (message: NodeMessageIn) => {
@@ -298,6 +304,12 @@ const nodeInit: NodeInitializer = (RED): void => {
298304

299305
if (this.context().get("playingScene") === scene) {
300306
this.context().set("playingScene", null);
307+
308+
this.status({
309+
fill: "green",
310+
shape: "ring",
311+
text: "Standby",
312+
});
301313
}
302314
};
303315

0 commit comments

Comments
 (0)