Socket
Socket
Sign inDemoInstall

@mdslab/iotronic-lightning-rod

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mdslab/iotronic-lightning-rod - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

mdslab-iotronic-lightning-rod-2.3.3.tgz

23

lightning-rod.js
//############################################################################################
//##
//# Copyright (C) 2014-2018 Dario Bruneo, Francesco Longo, Andrea Rocco Lotronto,
//# Copyright (C) 2014-2018 Dario Bruneo, Francesco Longo, Andrea Rocco Lotronto,
//# Giovanni Merlino, Nicola Peditto

@@ -21,3 +21,2 @@ //##

// LIBRARIES

@@ -108,5 +107,5 @@ var fs = require("fs");

logger.error("[SYSTEM] - Logger configuration expected: \n" + JSON.stringify(log_template, null, "\t"));
process.exit();
}

@@ -116,3 +115,3 @@ else{

// Configuration file is correctly configured... Starting LR...
logger.info('[SYSTEM] - DEVICE: ' + device);

@@ -126,3 +125,3 @@

wampIP = wampUrl.split("//")[1].split(":")[0];
//var wampRealm = nconf.get('config:wamp:realm');

@@ -402,3 +401,3 @@ var wampRealm = realm;

}, check_skt_time * 1000);
}, check_skt_time * 1000);

@@ -418,3 +417,3 @@

function (err) {
// IoTronic is not connected to the realm yet so LR need to try to reconnect later

@@ -441,3 +440,3 @@ logger.error("[SYSTEM] - IoTronic is not online: " + JSON.stringify(err) );

//-------------------------------

@@ -478,3 +477,3 @@ // 4. On WAMP connection close

try{
IoT_Device = require('./device/lyt_'+device);

@@ -507,4 +506,4 @@ lyt_device = new IoT_Device(device);

}
});

@@ -511,0 +510,0 @@

@@ -131,3 +131,3 @@ //############################################################################################

d.resolve(modules[module_name]);
d.resolve(modules[module_name]["enabled"]);

@@ -134,0 +134,0 @@ return d.promise;

@@ -62,3 +62,3 @@ //############################################################################################

process.send({ name: plugin_name, level: "warn" , logmsg: 'Process terminated: putting ' + plugin_name + ' to off'});
process.send({ name: plugin_name, level: "warn" , status: "failed", logmsg: 'Process terminated: putting ' + plugin_name + ' to off'});

@@ -65,0 +65,0 @@ try{

@@ -53,11 +53,8 @@ //############################################################################################

log4js = require('log4js');
var log4js = require('log4js');
log4js.loadAppender('file');
//logfile = nconf.get('config:log:logfile');
//loglevel = nconf.get('config:log:loglevel');
var logfile = '/var/log/iotronic/plugins/'+plugin_name+'.log';
logfile = '/var/log/iotronic/plugins/'+plugin_name+'.log';
log4js.addAppender(log4js.appenders.file(logfile));
log4js.addAppender(log4js.appenders.file(logfile), plugin_name);
var logger = log4js.getLogger(plugin_name);

@@ -64,0 +61,0 @@ logger.setLevel(loglevel);

@@ -62,4 +62,4 @@ //############################################################################################

process.send({ name: plugin_name, level: "warn" , logmsg: 'Process terminated: putting ' + plugin_name + ' to off'});
process.send({ name: plugin_name, level: "warn" , status: "exited", logmsg: 'Process terminated: putting ' + plugin_name + ' to off'});
try{

@@ -66,0 +66,0 @@ //Reading the plugin configuration file

@@ -7,3 +7,3 @@ //pluginjsonschema = {"says": "BlaBlaBla..."}

logger = api.getLogger(plugin_name, 'debug');
var logger = api.getLogger(plugin_name, 'debug');

@@ -10,0 +10,0 @@ logger.info(says);

@@ -7,3 +7,3 @@ //pluginjsonschema = {"name": "IoTronic"}

logger = api.getLogger(plugin_name, 'debug');
var logger = api.getLogger(plugin_name, 'debug');

@@ -17,2 +17,2 @@ logger.info("Hello plugin starting...");

};
};
{
"name": "@mdslab/iotronic-lightning-rod",
"version": "2.3.2",
"version": "2.3.3",
"description": "Implementation of the Lightning-rod, the Stack4Things node-side probe (this version works with the standalone version of IoTronic) http://stack4things.unime.it/",

@@ -5,0 +5,0 @@ "main": "lightning-rod.js",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc