The System driver provides real-time monitoring and control of the Weble gateway hardware and software. It automatically exposes system metrics (CPU, memory, disk, temperature, network), running processes (gateways and logic modules), and gateway configuration parameters as routable addresses.
The System driver is useful for:
All System addresses are auto-generated — no manual address creation is needed.
Create a new gateway and select the System driver. The configuration is minimal — only a Name and optional Description.
Once started, the driver automatically creates all system addresses and begins refreshing them every 5 seconds.
Note: The System driver is not available on Windows.
After startup, the following address categories are automatically created:
| Address | Description |
|---|---|
#cpu |
CPU usage in percent (average across all cores). |
#mem |
RAM usage in percent (0-100). |
#disk |
Disk usage in percent (0-100). |
#temp |
CPU temperature in °C (0 when the hardware has no readable sensor). |
#uptime |
System uptime in seconds. |
#date |
Current system date and time. |
#open_files |
Number of currently open files (lsof count), recounted about once per hour. |
#open_files_max |
Maximum allowed open files (system limit), read once at start-up. |
#processes |
Total number of running processes. |
#reboot |
Write 1 to this address to reboot the gateway. |
#network |
Names of the network interfaces, joined with _. |
#network/<iface> |
Detailed network information per interface (IP, MAC, RX/TX bytes, errors). |
#network/<iface>/<field> |
One address per field of the interface, for example #network/eth0/inet_addr, #network/eth0/link_hwaddr, #network/eth0/rx_bytes, #network/eth0/tx_bytes, #network/eth0/rx_errors. |
#config |
All gateway configuration parameters as a JSON object. |
#config/<key> |
Individual configuration parameters (see section 3). |
#process/... |
Gateways, logic modules and other processes with CPU/memory usage (see section 4). |
#device |
Hardware model of the gateway (only when the model is known). |
#tinc |
VPN status as a JSON object. |
#tinc/connected |
0 when the VPN is down, 1 or more (number of VPN servers reached) when it is up. |
#tinc/id, #tinc/subnet |
VPN identifier and VPN subnet of the gateway. |
#tinc/servers/... |
Details of the VPN servers the gateway is connected to. |
#release/version |
Installed software version. |
#release/revision, #release/revision-date |
Installed revision number and its date. |
#release/last-release |
Latest revision published by Weble (requires Internet access). |
#release/update-available |
1 when a newer release is available, 0 when the gateway is up to date, DEV_MODE when the installed revision is newer than the published one or when the release list could not be fetched. |
#modem, #modem/... |
Cellular modem status, one address per field (for example #modem/internet, #modem/simState, #modem/signal/quality). Only on gateways with a cellular modem, when the modem is enabled. |
| Label | JSON Key | Description |
|---|---|---|
| Name | name | A descriptive name for this System gateway instance. |
| Description | description | Optional description. |
No additional configuration is needed. The driver runs in-process (no separate process) to save memory.
The #config address exposes the gateway's system configuration. Individual parameters are available as sub-addresses:
| Address | Description | Writable |
|---|---|---|
#config/SUPERVISION_ID |
Unique gateway identifier. | No |
#config/SUPERVISION_NAME |
Gateway display name. | No |
#config/MODEM_ENABLE |
Enable/disable the cellular modem (0 or 1). |
Yes |
#config/TINC_ENABLE |
Enable/disable the VPN (Tinc) connection (0 or 1). |
Yes |
#config/HTTPS_ENABLE |
Enable/disable the HTTPS web server (0 or 1). |
Yes |
#config/HTTP_ENABLE |
Enable/disable the HTTP web server (0 or 1). |
Yes |
#config/... |
Other configuration keys (read-only). | No |
Some keys are not exposed: OEM, the REDUNDANCY…, DATE… and TOKEN… keys, HTTPS_CUSTOM_CERTIFICATES and TINC_SERVER.
Writing to a writable config address immediately applies the change to the system. The value written is converted to 0 or 1.
Warning: these writes take effect at once and can cut your own access.
HTTP_ENABLE/HTTPS_ENABLE: the web server restarts and open sessions are dropped. At least one of the two must stay enabled, otherwise the write is refused (At least one web server must be activated.).TINC_ENABLE=0: the VPN stops. If you reach the gateway through the VPN you lose the connection and need local access to turn it back on.MODEM_ENABLE=0: the cellular connection stops.#reboot: writing1(or any other truthy value, including a non-empty text) restarts the whole gateway (operating system included). All drivers stop and the gateway is unavailable for the duration of the boot.
The System driver mirrors the process tree of the gateway. Every gateway and every logic module has its own node, whether it is currently running or not:
| Address | Description |
|---|---|
#process/pm2/supervision/gateway_<name> |
Summary object of the gateway <name> (CPU, memory, uptime, state, cluster). |
.../gateway_<name>/#cpu |
CPU used by the driver process, in % of the total CPU. |
.../gateway_<name>/#mem |
Memory used by the driver process, in % of the RAM. |
.../gateway_<name>/#uptime |
Elapsed running time of the driver process. |
.../gateway_<name>/#state |
Driver state as shown in the gateway list (for example connected). |
.../gateway_<name>/#cluster |
Cluster ID of the gateway (0 = own process). |
.../gateway_<name>/#active |
1 = enabled, 0 = disabled. Writable: write 1 to activate the gateway, 0 to deactivate it. |
#process/pm2/supervision/logic_<name> and /#cpu, /#mem, /#uptime, /#state, /#cluster, /#active |
Same addresses for a logic module. |
The /#active addresses are writable — this allows routes or the API to start and stop gateways and logic modules programmatically. For example, a Cron schedule could deactivate a gateway at night and reactivate it in the morning.
The other processes of the gateway (web server, network, VPN, ...) appear in the same tree with /#cpu, /#mem and /#uptime. Gateways that have no process of their own keep /#cpu and /#mem at 0: Internal and System (they run inside the supervision process) and the gateways grouped in a cluster (Cluster ID other than 0).
Tip: do not type these addresses by hand. Open the System gateway, expand
#processin the address tree and copy the exact name.
CPU, memory and uptime are refreshed about every 60 seconds; /#state and /#active are updated as soon as they change. When a process disappears its addresses are kept and their status becomes !deleted.
The #network/<interface> addresses provide detailed information for each network interface:
These values can be routed and logged to monitor network health over time.
Route #temp to an SMTP or SMS address with a routing function that only forwards values above a threshold:
function(value) {
if (value > 70) return "Gateway temperature alert: " + value + "°C";
}
Create a Cron address 0 3 * * 0 (every Sunday at 3 AM) and route it to #reboot to perform a weekly maintenance reboot.
Use the Cron driver to write 1 or 0 to a #process/pm2/supervision/gateway_<name>/#active address at specific times:
0 7 * * 1-5 with value 1 → route to #process/pm2/supervision/gateway_ModbusMaster/#active (activate on weekday mornings)0 22 * * * with value 0 → route to #process/pm2/supervision/gateway_ModbusMaster/#active (deactivate every night)Route #tinc/connected to an SMS or e-mail address with a function that only forwards the value 0:
function(value) {
if (value == 0) return "VPN connection lost";
}
| Property | Value |
|---|---|
| Readable | Yes (for most addresses) |
| Writable | Only #reboot, the /#active addresses and #config/MODEM_ENABLE, #config/TINC_ENABLE, #config/HTTPS_ENABLE, #config/HTTP_ENABLE. Writes to any other address are refused with read only. |
| Routable | Yes |
| Loggable | Yes |
| Auto-creation | Yes — all addresses are automatically created and managed |
| Refresh rate | ~5 s: #cpu, #date, #uptime, #mem · ~60 s: processes, #temp, #network · ~2 min: #disk · ~1 h: #open_files · on change: #config, #tinc, #modem, /#state, /#active |
Logging: an address only publishes a value when it differs from the previous one. With Log set to
always, a stable address (for example#diskor#config/...) produces no periodic record. To record a point at a fixed interval, set Log to a duration (for example60000for one point per minute).