Add a progress bar

This commit is contained in:
uwap 2018-01-21 11:26:45 +01:00
parent 2701eb9076
commit 334cf002fa
4 changed files with 51 additions and 1 deletions

View file

@ -146,6 +146,13 @@ const config : Config = {
return msg.toString()
}
}
},
printer_3d_progress: {
state: "/service/ultimaker/job",
command: "",
defaultValue: "",
values: {},
parseState: msg => JSON.parse(msg.toString()).progress || 0
}
},
utils.esper_topics("afba40", "flyfry"),
@ -451,6 +458,18 @@ const config : Config = {
type: "link",
link: "http://ultimaker.rzl/",
text: "Open Webinterface"
},
{
type: "section",
text: "Current Job"
},
{
type: "progress",
icon: "rotate-right",
min: 0,
max: 1,
text: "Printing Progress",
topic: "printer_3d_progress"
}
]
},