UNPKG

@strato-automation/node-red-contrib-strato-automation

Version:
1 lines 3.12 kB
const a18_0x3dd4f8=a18_0x12ca;function a18_0x12ca(_0x5c1710,_0x5d74b7){const _0x50758c=a18_0x5075();return a18_0x12ca=function(_0x12caf5,_0x55de2d){_0x12caf5=_0x12caf5-0x105;let _0x12971d=_0x50758c[_0x12caf5];return _0x12971d;},a18_0x12ca(_0x5c1710,_0x5d74b7);}(function(_0xbe209a,_0x22a718){const _0x310916=a18_0x12ca,_0x361953=_0xbe209a();while(!![]){try{const _0x3fd2b6=-parseInt(_0x310916(0x11d))/0x1+-parseInt(_0x310916(0x119))/0x2+-parseInt(_0x310916(0x113))/0x3+parseInt(_0x310916(0x118))/0x4*(-parseInt(_0x310916(0x106))/0x5)+-parseInt(_0x310916(0x116))/0x6+parseInt(_0x310916(0x112))/0x7+parseInt(_0x310916(0x107))/0x8*(parseInt(_0x310916(0x114))/0x9);if(_0x3fd2b6===_0x22a718)break;else _0x361953['push'](_0x361953['shift']());}catch(_0x53a235){_0x361953['push'](_0x361953['shift']());}}}(a18_0x5075,0xaf25c),module[a18_0x3dd4f8(0x11e)]=function(_0x5aa10f){const _0x488bfc=a18_0x3dd4f8,_0xce4d81=require(_0x488bfc(0x10d))[_0x488bfc(0x109)];function _0x26d814(_0x5cb28b){const _0x58009e=_0x488bfc;_0x5aa10f[_0x58009e(0x11a)][_0x58009e(0x10c)](this,_0x5cb28b);var _0x267fcd=this;_0x267fcd['option']=_0x5cb28b[_0x58009e(0x120)],_0x267fcd[_0x58009e(0x122)]=NaN,_0x267fcd[_0x58009e(0x105)]=NaN,_0x267fcd['on'](_0x58009e(0x10f),function(_0x574c5d){const _0x55fe46=_0x58009e,_0x160f29=_0x574c5d[_0x55fe46(0x111)];if(_0x574c5d[_0x55fe46(0x117)]===_0x55fe46(0x121))_0x267fcd['__temp']=_0x160f29;else _0x574c5d['topic']==='in2'&&(_0x267fcd[_0x55fe46(0x105)]=_0x160f29);if(isNaN(_0x267fcd[_0x55fe46(0x122)])||isNaN(_0x267fcd[_0x55fe46(0x105)])){_0x267fcd[_0x55fe46(0x11b)]({'fill':_0x55fe46(0x124),'shape':_0x55fe46(0x123),'text':_0x55fe46(0x10e)+_0x267fcd[_0x55fe46(0x122)]+_0x55fe46(0x126)+_0x267fcd[_0x55fe46(0x105)]+_0x55fe46(0x108)});return;}const _0x1bb92b=_0xce4d81(_0x267fcd['__temp'],_0x267fcd[_0x55fe46(0x105)],_0x267fcd[_0x55fe46(0x120)]);_0x267fcd['send'](_0x1bb92b[_0x55fe46(0x125)](_0xf2d92c=>{const _0x1c0889=_0x55fe46;return{'payload':_0xf2d92c,'__srcid':_0x267fcd['id'],'topic':_0x574c5d[_0x1c0889(0x117)],'__srcid':_0x267fcd['id']};}));if(_0x1bb92b[_0x55fe46(0x110)]===0x5)_0x267fcd[_0x55fe46(0x11b)]({'fill':_0x55fe46(0x10b),'shape':_0x55fe46(0x123),'text':'T:\x20'+_0x267fcd['__temp'][_0x55fe46(0x115)](0x1)+'\x20H:\x20'+_0x267fcd['__hum'][_0x55fe46(0x115)](0x1)+_0x55fe46(0x10a)+_0x1bb92b[0x0]['toFixed'](0x1)+_0x55fe46(0x11f)+_0x1bb92b[0x1][_0x55fe46(0x115)](0x1)+'\x20S:'+_0x1bb92b[0x2][_0x55fe46(0x115)](0x1)+'\x20V:'+_0x1bb92b[0x3][_0x55fe46(0x115)](0x1)+'\x20W:'+_0x1bb92b[0x4][_0x55fe46(0x115)](0x1)});});}_0x5aa10f['nodes'][_0x488bfc(0x11c)]('psychrometric-calculator',_0x26d814);});function a18_0x5075(){const _0x391075=['6214971OXOxCk','513861pKOEMK','14499HyBKfk','toFixed','4019400vsgcFS','topic','418556gSBTYd','795834UCrhjl','nodes','status','registerType','839529ltOlQW','exports','\x20E:','option','in1','__temp','dot','yellow','map','\x20H:\x20','__hum','50DhzoMM','14672utHCGQ','\x20OUT:\x20None','computePsychrometrics','\x20D:\x20','grey','createNode','../lib/psychrometric.js','T:\x20','input','length','payload'];a18_0x5075=function(){return _0x391075;};return a18_0x5075();}