/scrollhatpingmeter

Small utility to use Pimoroni's Scroll HAT or Scroll pHAT as a ping meter

Primary LanguagePython

Scroll(P)HatPingMeter

Small utility to use Pimoroni's Scroll HAT or Scroll pHAT as a ping meter.

Usage

Install required python libraries:

pip3 install -r requirements.txt

Make the script executeable:

chmod +x ./scrollhatpingmeter.py

Execute the script:

./scrollhatpingmeter.py

Configuration

Some options can be set via additional flags:

./scrollhatpingmeter.py --help

usage: scrollhatpingmeter.py [-h] [--disabledisplay] [-H HOST] [-t TIMER] [-b BRIGHTNESS] [-v] [--version]

optional arguments:
  -h, --help            show this help message and exit
  --disabledisplay      Add flag to disable display output
  -H HOST, --host HOST  Host to ping. Default: 8.8.8.8
  -t TIMER, --timer TIMER
                        Time in seconds between pings. Default: 10
  -b BRIGHTNESS, --brightness BRIGHTNESS
                        Sets brightness of display. Use range between 0.1 and 1.0. Default: 1.0
  -v, --verbose         Verbosity (-v, -vv, etc)
  --version             show program's version number and exit