Created
October 2, 2013 16:44
-
-
Save aamnah/6796667 to your computer and use it in GitHub Desktop.
Add a WiFi icon to the RPi-Monitor status page. Since I use a WiFi adapter with my raspberry pi and not an ethernet cable, it makes sense to be able to monitor WiFi bandwidth and speed. [sudo nano /etc/rpimonitord.conf.d/default.conf] and add the following at the end of the file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################### | |
# Graph WLAN | |
############################################################### | |
dynamic.17.name=wifi_received | |
dynamic.17.source=/sys/class/net/wlan0/statistics/rx_bytes | |
dynamic.17.regexp=(.*) | |
dynamic.17.postprocess=$1*-1 | |
dynamic.17.rrd=DERIVE | |
dynamic.18.name=wifi_send | |
dynamic.18.source=/sys/class/net/wlan0/statistics/tx_bytes | |
dynamic.18.regexp=(.*) | |
dynamic.18.postprocess= | |
dynamic.18.rrd=DERIVE | |
web.status.1.content.9.name=WiFi | |
web.status.1.content.9.icon=wifi.png | |
web.status.1.content.9.line.1="WiFi Sent: <b>"+KMG(data.wifi_send)+"<i class='icon-arrow-up'></i></b> Received: <b>"+KMG(Math.abs(data.wifi_received)) + "<i class='icon-arrow-down'></i></b>" | |
web.statistics.1.content.9.name=WiFi | |
web.statistics.1.content.9.graph.1=wifi_send | |
web.statistics.1.content.9.graph.2=wifi_received | |
web.statistics.1.content.9.ds_graph_options.net_send.label=Upload bandwidth (bits) | |
web.statistics.1.content.9.ds_graph_options.net_send.lines={ fill: true } | |
web.statistics.1.content.9.ds_graph_options.net_send.color="#FF7777" | |
web.statistics.1.content.9.ds_graph_options.net_received.label=Download bandwidth (bits) | |
web.statistics.1.content.9.ds_graph_options.net_received.lines={ fill: true } | |
web.statistics.1.content.9.ds_graph_options.net_received.color="#77FF77" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment