@mdslab/iotronic-lightning-rod
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -16,3 +16,3 @@ # Arduino YUN/Linino ONE installation guide | ||
opkg update | ||
opkg install logrotate ntpdate nano git unzip socat ip dsniff fuse-utils node-autobahn node-jsonfile node-nconf node-ideino-linino-lib node-fuse-bindings node-mknod node-statvfs gdb | ||
opkg install logrotate ntpdate nano git unzip socat ip dsniff fuse-utils node-autobahn node-jsonfile node-nconf node-ideino-linino-lib node-fuse-bindings node-mknod node-statvfs gdb lsof | ||
opkg install kmod-gre kmod-ip6-tunnel kmod-iptunnel4 kmod-iptunnel6 kmod-ipv6 kmod-tun | ||
@@ -61,3 +61,3 @@ ``` | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example.json /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/settings.example.json /var/lib/iotronic/settings.json | ||
@@ -64,0 +64,0 @@ cp $NODE_PATH/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json |
@@ -26,7 +26,10 @@ # Installation on Docker | ||
sudo wget https://raw.githubusercontent.com/MDSLab/s4t-lightning-rod/master/utils/templates/settings.example.json -O settings.json | ||
sudo wget https://raw.githubusercontent.com/MDSLab/s4t-lightning-rod/master/utils/templates/authentication.example -O authentication.json | ||
sudo wget https://raw.githubusercontent.com/MDSLab/s4t-lightning-rod/master/utils/templates/authentication.example.json -O authentication.json | ||
``` | ||
* Edit settings.json | ||
* Edit configuration files | ||
``` | ||
sudo sed -i "s|\"bin\":.*|\"bin\": \"/usr/local/lib/node_modules/@mdslab/wstun/bin/wstun.js\"|g" /etc/iotronic/authentication.json | ||
cd /tmp/ | ||
@@ -33,0 +36,0 @@ |
@@ -12,3 +12,3 @@ # Raspberry Pi 2 installation guide | ||
``` | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential gdb | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential lsof gdb | ||
``` | ||
@@ -88,3 +88,3 @@ | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example.json /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/settings.example.json /var/lib/iotronic/settings.json | ||
@@ -91,0 +91,0 @@ cp $NODE_PATH/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json |
@@ -12,3 +12,3 @@ # Raspberry Pi 3 installation guide | ||
``` | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential gdb | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential lsof gdb | ||
``` | ||
@@ -88,3 +88,3 @@ | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example.json /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/settings.example.json /var/lib/iotronic/settings.json | ||
@@ -91,0 +91,0 @@ cp $NODE_PATH/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json |
@@ -8,3 +8,3 @@ # IoTronic Lightning-rod installation guide for Ubuntu 14.04 | ||
``` | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential gdb | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential lsof gdb | ||
``` | ||
@@ -85,3 +85,3 @@ | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example.json /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/settings.example.json /var/lib/iotronic/settings.json | ||
@@ -88,0 +88,0 @@ cp $NODE_PATH/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json |
@@ -10,3 +10,3 @@ # IoTronic Lightning-rod installation guide for Ubuntu 16.04 | ||
``` | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential gdb | ||
apt -y install unzip socat dsniff fuse libfuse-dev pkg-config python git ntpdate build-essential lsof gdb | ||
``` | ||
@@ -86,3 +86,3 @@ | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/authentication.example.json /etc/iotronic/authentication.json | ||
cp $NODE_PATH/@mdslab/iotronic-lightning-rod/utils/templates/settings.example.json /var/lib/iotronic/settings.json | ||
@@ -89,0 +89,0 @@ cp $NODE_PATH/@mdslab/iotronic-lightning-rod/modules/plugins-manager/plugins.example.json /var/lib/iotronic/plugins/plugins.json |
@@ -34,2 +34,16 @@ //############################################################################################ | ||
try{ | ||
AUTH_CONF = '/etc/iotronic/authentication.json'; | ||
nconf.file ('auth', {file: AUTH_CONF}); | ||
} | ||
catch (err) { | ||
console.log("[SYSTEM] - Error parsing authentication file: "+JSON.stringify(err)); | ||
} | ||
var Q = require("q"); | ||
@@ -90,4 +104,4 @@ | ||
exports.getBoardId = function (){ | ||
var boardID = nconf.get('config:board:code'); | ||
var boardID = nconf.get('auth:board:code'); | ||
return boardID; | ||
@@ -94,0 +108,0 @@ |
{ | ||
"name": "@mdslab/iotronic-lightning-rod", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Implementation of the Lightning-rod, the Stack4Things node-side probe (this version works with the standalone version of IoTronic) http://stack4things.unime.it/", | ||
@@ -15,4 +15,4 @@ "main": "lightning-rod.js", | ||
"dependencies": { | ||
"autobahn": "18.10.2", | ||
"ws":"6.1.0", | ||
"autobahn": "<=18.10.2", | ||
"ws":"<=6.1.0", | ||
"connection-tester": "0.2.0", | ||
@@ -19,0 +19,0 @@ "fs-access": "1.0.1", |
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 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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
380379
84
6806
Updatedautobahn@<=18.10.2
Updatedws@<=6.1.0