1.4 KiB
1.4 KiB
IoTronic Lightning-rod installation guide for Raspberry Pi 2/3
We tested this procedure on a Raspberry Pi 2/3 board (Raspbian).
Requirements
- OS requirement
apt install python3 python3-setuptools python3-pip gdb lsof
- NodeJS
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs
npm install -g npm
echo "NODE_PATH=/usr/lib/node_modules" | tee -a /etc/environment
source /etc/environment > /dev/null
- WSTUN:
npm install -g --unsafe @mdslab/wstun
- NGINX:
apt install -y nginx
sed -i 's/# server_names_hash_bucket_size 64;/server_names_hash_bucket_size 64;/g' /etc/nginx/nginx.conf
- Certbot
apt-get install python-certbot-nginx
Install Lightning-rod
pip3 install iotronic-lightningrod
Iotronic deployment
lr_install
Iotronic setup
lr_configure
- Arguments required:
-
- <REGISTRATION-TOKEN> , token released by IoTronic registration procedure
- <WAMP-REG-AGENT-URL> , IoTronic Crossbar server WAMP URL:
ws(s)://<IOTRONIC-CROSSBAR-IP>:<IOTRONIC-CROSSBAR-PORT>/
e.g. :
lr_configure <REGISTRATION-TOKEN> <WAMP-REG-AGENT-URL>
Execution:
systemctl start lightning-rod.service
tail -f /var/log/iotronic/lightning-rod.log