Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
app-notes:set-up-snmp [2025/01/23 14:07] – [4. Setting up an LXC container and then implementing Node RED] grayapp-notes:set-up-snmp [2025/01/24 06:44] (current) – [4. Setting up an LXC container and then implementing Node RED] gray
Line 55: Line 55:
  
   * NetModule manual 4.8.0.103 [[https://share.netmodule.com/public/system-software/4.8/4.8.0.103/NB2800_Manual_4.8.0.103.pdf| Manual PDF]]    * NetModule manual 4.8.0.103 [[https://share.netmodule.com/public/system-software/4.8/4.8.0.103/NB2800_Manual_4.8.0.103.pdf| Manual PDF]] 
 +
 +----
  
 ===== - Setting up the SNMP client side for the query ===== ===== - Setting up the SNMP client side for the query =====
Line 125: Line 127:
 VENDOR-MIB.txt VENDOR-MIB.txt
 </konsole> </konsole>
 +
 +----
  
 ===== - Run some SNMP queries for testing and to see which queries are possible ===== ===== - Run some SNMP queries for testing and to see which queries are possible =====
Line 171: Line 175:
 </konsole> </konsole>
  
 +----
  
 ===== - Setting up an LXC container and then implementing Node RED ===== ===== - Setting up an LXC container and then implementing Node RED =====
Line 203: Line 207:
  
 Next, the Node-RED program is installed via a script file. Next, the Node-RED program is installed via a script file.
 +
 +Further information on the installation script can be found at this link.
 +
 + * Node-RED script information [[https://github.com/node-red/linux-installers| github link]] 
  
 The script command for this: The script command for this:
-''„bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20"''+''„bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18"''
  
 <konsole> <konsole>
-root@LXCNAME:/# bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node20+root@LXCNAME:/# bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered) --node18
  
-The first question is whether the installation should be carried out under the "root" user. We only have the "root" user in the container, so the answer is ''yes''.+The first question is whether the installation should be carried out under  
 +the "root" user. We only have the "root" user in the container, so  
 +the answer is ''yes''.
  
 Are you really sure you want to install as root ? (y/N) ? ''y'' Are you really sure you want to install as root ? (y/N) ? ''y''
Line 223: Line 233:
  
 Running Node-RED update for user root at /root on debian Running Node-RED update for user root at /root on debian
-This can take 20-30 minutes on the slower Pi versions - please wait. +Stop Node-RED                       \u2714
-  Stop Node-RED                       \u2714+
   Remove old version of Node-RED      \u2714   Remove old version of Node-RED      \u2714
 +  Remove old version of Node.js       \u2714   20.18.2-1nodesource1
 +  Install Node 18.20.6-1nodesource1   \u2714   v18.20.6   Npm 10.8.2
 +  Clean npm cache                     \u2714
 +  Install Node-RED core               \u2714   4.0.8
 +  Move global nodes to local          -
 +  Npm rebuild existing nodes          \u2714
 +  Install extra Pi nodes              -
 +  Add shortcut commands               \u2714
 +  Update systemd script               \u2714
 +                                      
 +Any errors will be logged to   /var/log/nodered-install.log
 +All done.
 </konsole> </konsole>
 +
 +If you want to test the whole thing first, you can start the Node-RED server manually by entering the command ''"node-red-start"''
 +
 +<konsole>
 +root@LXCNAME:/# node-red-start
 +Start Node-RED
 +23 Jan 14:41:17 - [info]
 +Welcome to Node-RED
 +===================
 +</konsole>
 +
 +If you want this to happen automatically when you start the LXC container, you have to set it up with the command ''"sudo systemctl enable nodered.service"''.
 +
 +<konsole>
 +root@LXCNAME:/# sudo systemctl enable nodered.service
 +Created symlink /etc/systemd/system/multi-user.target.wants/nodered.service → /lib/systemd/system/nodered.service.
 +root@LXCNAME:/#
 +</konsole>
 +
 +Once you have stored the systemctl for Node-RED, you still have to restart the container for the service to start.
 +
 +You can access the Node-RED interface via a web browser. Simply enter the IP address of the container and port 1880.
 +
 +The Node-RED interface will then be displayed.
 +
 +{{:pictures:node-red.png?800|}}
 +
 +----
 +
 +
 +===== - Installing further app-nodes via palette management =====
 +
 +For Node-RED, further ''"app nodes"'' need to be installed.