From 1e107edf17136441379e35595ff1cb0eeff08c0d Mon Sep 17 00:00:00 2001 From: Grothesk242 <57298681+Grothesk242@users.noreply.github.com> Date: Sun, 2 Jun 2024 20:48:56 +0200 Subject: [PATCH] Update parsers.json Some commands adopted to recent versions of Raspberry OS --- lib/parsers.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/parsers.json b/lib/parsers.json index 9eb23ec..b309196 100644 --- a/lib/parsers.json +++ b/lib/parsers.json @@ -53,12 +53,12 @@ }, "network": { "net_received": { - "command": "cat /sys/class/net/eth0/statistics/rx_bytes", + "command": "cat /sys/class/net/e*/statistics/rx_bytes", "regexp": "(.*)", "post": "$1*-1" }, "net_send": { - "command": "cat /sys/class/net/eth0/statistics/tx_bytes", + "command": "cat /sys/class/net/e*/statistics/tx_bytes", "regexp": "(.*)", "post": "" } @@ -71,8 +71,8 @@ "multiline": true }, "sdcard_boot_total": { - "command": "df /boot", - "regexp": "\\S+\\s+(\\d+).*\\/boot$", + "command": "df /boot/*", + "regexp": "\\S+\\s+(\\d+).*\\/boot", "post": "$1/1024", "multiline": true }, @@ -83,8 +83,8 @@ "multiline": true }, "sdcard_boot_used": { - "command": "df /boot", - "regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/boot$", + "command": "df /boot/*", + "regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/boot", "post": "$1/1024", "multiline": true }