Pass complete status to Status node and filter to editor

This commit is contained in:
Nick O'Leary
2019-03-04 10:23:10 +00:00
parent 8f61a0d258
commit 8fb6bc059e
4 changed files with 21 additions and 13 deletions

View File

@@ -38,7 +38,12 @@ function handleCommsEvent(event) {
publish(event.topic,event.data,event.retain);
}
function handleStatusEvent(event) {
publish("status/"+event.id,event.status,true);
var status = {
text: event.status.text,
fill: event.status.fill,
shape: event.status.shape
};
publish("status/"+event.id,status,true);
}
function handleRuntimeEvent(event) {
runtime.log.trace("runtime event: "+JSON.stringify(event));