
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
sensor-net-middleware
Advanced tools
This repository contains the middleware for the Sensor Net project.
The middleware can be installed as an npm package.
apt install git libzmq-dev cmake -y
npm i -g sensor-net-middleware
You may need to add the option "--unsafe-perm".
The middleware package contains two binaries called "rawdatad" and "ingresd".
The Raw Data Daemon received the messages from the serial interface, decrypts and reformats them, and publishes them on a zeromq queue. It expects the Sensor Net decryption key to be supplied as the environment variable "SENSOR_NET_KEY".
SENSOR_NET_KEY=<secret key> ZEROMQ_SOCKET=tcp://127.0.0.1:3000 rawdatad
The Ingress Daemon subscribes to the zeromq queue and forwards the messages to the database. To be able to use the Sensor Net back end API, it gets an access token from Auth0. It gets new tokens as required. The Ingress Daemon expects the following environment variables to be set:
I found the node packages that ship with Raspbian to have problems. Therefore, I uninstalled them.
apt remove nodejs npm
Binary distributions packages for armv6 are available for version 10 from nodejs.org. They can be installed in the following way.
wget https://nodejs.org/dist/latest-v10.x/node-v10.20.0-linux-armv6l.tar.gz
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xvf node-v10.20.0-linux-armv6l.tar.gz -C /usr/local/lib/nodejs
chown -R root /usr/local/lib/nodejs
chgrp -R root /usr/local/lib/nodejs
Then add the path to the profile.
export PATH="/usr/local/lib/nodejs/node-v10.20.0-linux-armv6l/bin:$PATH"
FAQs
Middleware for the Sensor-Net project.
We found that sensor-net-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.