Skip to content

Commit

Permalink
Merge pull request #190 from Grothesk242/new-gpio-lib
Browse files Browse the repository at this point in the history
Update parsers.json
  • Loading branch information
Garfonso authored Jun 5, 2024
2 parents 5726fad + 07bbc07 commit fb5a7c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/parsers.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ""
}
Expand All @@ -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
},
Expand All @@ -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
}
Expand Down Expand Up @@ -119,12 +119,12 @@
},
"wlan": {
"wifi_received": {
"command": "cat /sys/class/net/wlan0/statistics/rx_bytes",
"command": "cat /sys/class/net/wl*/statistics/rx_bytes",
"regexp": "(.*)",
"post": "$1*-1"
},
"wifi_send": {
"command": "cat /sys/class/net/wlan0/statistics/tx_bytes",
"command": "cat /sys/class/net/wl*/statistics/tx_bytes",
"regexp": "(.*)",
"post": ""
}
Expand Down

0 comments on commit fb5a7c3

Please sign in to comment.