Testpanel with new thermometer komponent

This commit is contained in:
rasta5man 2024-12-02 18:35:11 +01:00
parent 31b5dbba5c
commit ba4a11a99a
39 changed files with 6415 additions and 2952 deletions

View file

@ -4,12 +4,11 @@ exports.group = 'Worksys';
exports.color = '#888600';
exports.version = '1.0.2';
exports.icon = 'sign-out';
exports.input = 7;
exports.input = 5;
exports.output = 1;
const { exec } = require('child_process');
exports.install = function(instance) {
exports.install = async function(instance) {
instance.on("0", _ => {
instance.send(0, FLOW.GLOBALS.settings);
@ -26,18 +25,6 @@ exports.install = function(instance) {
instance.on("4", _ => {
instance.send(0, {rpcSwitchOffLine, rpcSetNodeDimming, rpcLineProfile, rpcNodeProfile, sunCalcExample, dataFromTerminalBroadcast})
})
instance.on("5", _ => {
exec("sudo tail -n 25 monitor.txt" , (err, stdout, stderr) => {
if (err || stderr) instance.send(0,{err, stderr});
else instance.send(0,stdout);
})
})
instance.on("6", _ => {
exec("sudo tail -n 25 err.txt" , (err, stdout, stderr) => {
if (err || stderr) instance.send(0,{err, stderr});
else instance.send(0,stdout);
})
})
};