1.0.2 • Published 9 months ago
Router management with Padavan firmware
Install
npm install node-red-contrib-padavan
Nodes
Configuration
Input
credentials | Description |
---|
repo | Repository where firmware builds are hosted |
branch | Branch for the device |
token | Access token for GitHub |
host | Router IP address |
username | Username for router access |
password | Password for router access |
SpeedTest
Measure download and upload speeds
Output
outputs | Description |
---|
result | Result |
history | Result with date and timestamp |
progress | Test start and end |
result.msg | type | Value |
---|
topic | string | NetworkControl |
payload | object |
payload | Description |
---|
networkDownloadSpeedMbps | Download speed |
networkUploadSpeedMbps | Upload speed |
Devices
Get the list of connected devices
Output
msg | type |
---|
payload | array |
numConnectedDevices | integer |
History
Retrieve traffic history
Output
msg | type |
---|
payload | object |
networkUsage | string |
networkUsageMB | integer |
payload | type | Description |
---|
daily_history | array | Daily |
monthly_history | array | Monthly |
*_history | Description |
---|
0 | Year, month, day |
1 | Download |
2 | Upload |
Updates
Manage firmware updates
Input
topic | Description |
---|
build | Build firmware |
changelog | List of changes |
upgrade | Install firmware |
Output
msg | type | Value |
---|
topic | string | changelog |
error | string |
payload | object |
payload | Description |
---|
from_id | Current firmware |
to_id | Built firmware |
data | Array of changes |
Status
Retrieve and manage router status
Input
topic | Description |
---|
status | Get current status |
log | Get logs |
reboot | Reboot |
Output
msg | type | Value |
---|
topic | string | status |
payload | object |
payload | Description |
---|
lavg | System load average over the last 1, 5, and 15 minutes |
uptime | Router uptime |
ram | RAM usage information |
swap | Swap memory status |
cpu | CPU load information |
wifi2 | Wi-Fi status on the 2.4 GHz band |
wifi5 | Wi-Fi status on the 5 GHz band |
logmt | Timestamp of the last log modification |
ram | Description |
---|
total | Total RAM (in KB) |
used | Used RAM |
free | Free RAM |
buffers | RAM used for buffers |
cached | RAM used for cache |
cpu | Description |
---|
busy | Total time the CPU has been busy |
user | Time spent on user processes |
nice | Time spent on processes with modified priority |
system | Time spent on system processes |
idle | Idle time when the CPU was not busy |
iowait | Time spent waiting for I/O operations |
irq | Time spent on hardware interrupt handling |
sirq | Time spent on software interrupt handling |
total | Total units of time since the system started |
wifi* | Description |
---|
state | Network state |
guest | Guest network state |
Parameters
Retrieve and modify parameters
Input
msg | type |
---|
payload | object |
topic | string |
topic | Description |
---|
list | Retrieve all parameters |
get | Retrieve specific parameters |
set | Modify parameters |
payload |
---|
sid_list |
action_mode |
Output
msg | type |
---|
topic | string |
payload | object |
Details
If sid_list
is specified, changes will be sent via the web panel.
If action_mode
is not specified, it will be sent as Apply
.