orangepipc-lcd-bandwidth-monitor
is a CLI software used to display download and upload speed (in KB/s) of a network interface, on a Nokia 5110 LCD display and made specifically for Orange Pi PC. A port of a PCD8544 arduino library is included, ported to work with WiringOP and used to interface with the screen.
Copy executable to /usr/bin and you're good to go. As for how to connect the pins to the screen, a mapping is provided by defines in main.cpp.
A precompiled binary is available in the releases page for usage on Orange Pi PC, or else you can refer to the building instructions below.
Dependencies:
ifstat
,tail
andcolumn
commandsWiringOP
from Xunlong's official repositoryPCD8544.h
included in this repository
$ git clone https://github.com/neeedle/orangepipc-lcd-bandwidth-monitor.git
$ cd orangepipc-lcd-bandwidth-monitor
$ make
$ orangepipc-lcd-bandwidth-monitor -i interface [-d interval] [-b] [-h]
-i
: Interface name (eth0, tun0, etc.)-d
: (Optional) Screen update delay, in milliseconds. Defaults to 1000 (1 second)-b
: (Optional) Turn backlight on if present. Off by default-h
: Print usage.
- GPLv3 for PCD8544 library
- MIT License for main.cpp