Installation manual Node-RED (use at your own risk)
-
Dear community,
I get a lot of questions how to install Node-RED in the Unipi Axon. Because I'm grateful for this product of Unipi I am happy to share some knowledge:
Put the latest Unipi Axon Open Source image on a 16GB using FAT32. Flash Axon.
sudo su
apt-get update
apt-get upgrade
rebootsudo su
apt-get install evok
systemctl enable evok
rebootsudo su
apt-get install build-essential
apt-get install curl software-properties-common
rebootInstall NodeJS and Node-RED. !!Answer Yes to all except for installing standard Raspberry Pi nodes!!
sudo su
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
systemctl enable nodered.service
rebootDon't mind the errors of installing node-red-admin:
sudo su
apt-get install nano
npm install -g node-red-admin
rebootSecuring Node-RED: https://nodered.org/docs/user-guide/runtime/securing-node-red
Hash, copy and paste password:sudo su
node-red-admin hash-pw
cd .node-red
nano /root/.node-red/settings.js
rebootCopy the following:
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.101
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1and paste into file eth0:
sudo su
nano /etc/network/interfaces.d/eth0reboot
Change password Unipi:
sudo su
passwd unipi
rebootsudo dpkg-reconfigure tzdata
I hope this helps you to get more out of your Unipi Axon!
Beste regards,
Wesley -
Hello @WesleyFranken,
we have dedicated Node-RED images for all our PLCs. They also contain example program with Dashboard UI: https://kb.unipi.technology/en:sw:03-3rd-party:nodered -
@Martin-Kudláček From today that is ;-)
Thanks!
-
Well @WesleyFranken, for Axon and Neuron, we have the image for a few weeks;) It just wasn't presented to the public, only as a download on the said page. From yesterday, we have the image for all three platforms.
-
No need to defend yourself, you are doing a good job 😉
-
Hello I have istalled the Node red image on Unipi 1.1 but no desktop...only command line. How to RU or install the PI desktop please??
-
Hello @FabioIT,
the Node-RED image is defacto a Raspberry Pi OS. You can proceed with any general tutorial for adding the desktop environment, which you can find on the offical Raspberry Pi OS webpage.