This is a simple python script to ping a destination and graph the returned timing results in real-time.
This is still under development and is missing some stuff.
There's a settings.json
file that stores the runtime configuration.
- Python 3
- matplotlib (available through pip)
pacman -S --needed python pacman -S --needed --asdeps python-matplotlib tk
This script will happily run through the Python 3 interpreter, given all the dependencies are met.
The best way to install these is with your package manager, though the easiest way to install these is using pip
.
For example, running either pacman -S python-matplotlib
or pip install --user matplotlib
will install the matplotlib
module.
I've set up a build system for native distribution.
Note: I haven't tried this with anything other than windows.
- pyinstaller (available through pip)
- make (optional)
If you've got make
installed, just run make
. make clean
will clean the build. Otherwise:
Simply running pyinstaller pingGraph.py
will do the business for your machine, though adding --onefile
is necessary to end up with a single, distributable binary.
Additionally, you'll need to copy settings.json
to the same directory as the binary.
The commands I've used in the makefile
(and that plays nicely with the .gitignore
is:
pyinstaller --onefile --specpath build --distpath bin pingGraph.py