This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
app-notes:set-up-snmp [2025/01/23 14:29] – [4. Setting up an LXC container and then implementing Node RED] gray | app-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:// | * NetModule manual 4.8.0.103 [[https:// | ||
+ | |||
+ | ---- | ||
===== - 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 | ||
</ | </ | ||
+ | |||
+ | ---- | ||
===== - 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: | ||
</ | </ | ||
+ | ---- | ||
===== - 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:// | ||
The script command for this: | The script command for this: | ||
Line 225: | 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 |
- | | + | |
Remove old version of Node-RED | Remove old version of Node-RED | ||
+ | Remove old version of Node.js | ||
+ | Install Node 18.20.6-1nodesource1 | ||
+ | Clean npm cache | ||
+ | Install Node-RED core | ||
+ | Move global nodes to local - | ||
+ | Npm rebuild existing nodes \u2714 | ||
+ | Install extra Pi nodes - | ||
+ | Add shortcut commands | ||
+ | Update systemd script | ||
+ | | ||
+ | Any errors will be logged to / | ||
+ | All done. | ||
</ | </ | ||
+ | |||
+ | If you want to test the whole thing first, you can start the Node-RED server manually by entering the command ''" | ||
+ | |||
+ | < | ||
+ | root@LXCNAME:/# | ||
+ | Start Node-RED | ||
+ | 23 Jan 14:41:17 - [info] | ||
+ | Welcome to Node-RED | ||
+ | =================== | ||
+ | </ | ||
+ | |||
+ | If you want this to happen automatically when you start the LXC container, you have to set it up with the command ''" | ||
+ | |||
+ | < | ||
+ | root@LXCNAME:/# | ||
+ | Created symlink / | ||
+ | root@LXCNAME:/# | ||
+ | </ | ||
+ | |||
+ | 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. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | |||
+ | ===== - Installing further app-nodes via palette management ===== | ||
+ | |||
+ | For Node-RED, further ''" | ||