From e17e9d3d50702153c431039aaf287d4ea9a5b658 Mon Sep 17 00:00:00 2001 From: sparks-alec Date: Mon, 14 Feb 2022 03:39:05 -0500 Subject: [PATCH] add info field to templates to help users connect their devices --- src/plugins.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins.js b/src/plugins.js index d9542f3..41de709 100644 --- a/src/plugins.js +++ b/src/plugins.js @@ -34,6 +34,13 @@ module.exports.init = function (callback) { ) ); + p.info = _.template( + fs.readFileSync( + `${__dirname}/../plugins/${plugin}/info.html`, + 'utf8' + ) + ); + if (p.heartbeatTimeout == undefined || p.heartbeatTimeout < 50) { if(p.heartbeatInterval){