Display network statistics on the 16x2 LCD

I'm using my CrowPi2 as a router by adding a second gigabit Ethernet adaptor on one of the USB3 ports. I knocked out this script to display the transmit and receive counters of eth0 and eth1 on the 16x8 LCD display. It illustrates how to easily access the network statistics and how to render the counters on the LCD. I'm doing a little math to convert the raw byte counters to kbps, which reduces the Gbps value to 7 digits that can be displayed in half the width of the display.



Sign In or Register to comment.