From 8469803c6e4babf70e5284e534eba8b9e1f4977f Mon Sep 17 00:00:00 2001 From: Ranlvor Date: Sun, 2 Sep 2018 11:35:43 +0200 Subject: [PATCH] printer 3d remaining: set default text --- config/rzl/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/rzl/index.js b/config/rzl/index.js index a8c4ecb..f693f3e 100644 --- a/config/rzl/index.js +++ b/config/rzl/index.js @@ -151,14 +151,14 @@ const config: Config = { type: (msg) => { const json = JSON.parse(msg.toString()); if(!json || !json["time_elapsed"] || !json["time_total"]) { - return ""; + return "unavailable"; } else { const secondsLeft = json["time_total"] - json["time_elapsed"]; return new Date(secondsLeft * 1000).toISOString().substr(11, 8); } } }, - defaultValue: "" + defaultValue: "unavailable" }, nebenraumPowerStatus: { state: {