With the release of
chronometer2, there's not a whole lot you need to do for this anymore. Simply load up your screen (it can be just about any LCD screen nowadays) or SSH session, and then run
Below are the original instructions specific to the Raspberry Pi, but are only here for documentation's sake for anyone that needs it.
Want to monitor your Pi-hole's ad-blocking performance? Using a 2.8" Adafruit screen, you can display beautiful statistics in real-time to see how much of your Internet traffic is advertisements.
Use The Adafruit Version Of Raspbian
Instead of installing the official version of Rasbpian, flash your SD card with Adafruit's build; it comes pre-configured with everything you need for the LCD display.
Set the LCD to display the console (not the GUI)
If you used the easy image from Adafruit, you should be able to skip this step as it will already be enabled. If you installed plain old Raspbian or DietPi, you will want to follow the instructions to display the console on the touch screen.
Stop The LCD From Going Blank After 10 Minutes
/boot/cmdline.txtto contain one line shown below:
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait fbcon=map:10 fbcon=font:VGA12x6 consoleblank=0
The text preventing the display from sleeping is
Enable the Pi user to log in automatically
This can easily be done via
But if you want, there are manual instructions to enable the pi user to log in automatically.
Append this line to the end of
this will tell your Pi to execute the script as soon as you log in. Log out/in or restart your Pi. You should see real-time stats!
Adjust Font Size
You will probably need to adjust the font size so the text fills up the screen. Enter this command:
sudo dpkg-reconfigure console-setup
Then choose the following options:
- Guess optimal character set
- 10x20 (others will work, but this seems to fit the best)