server_alive.py
get a popup once your ping gets through
Requirements:
-
Python 2.7 ~~ comes with Linux
win users will have to install:
https://www.python.org/download/releases/2.7 -
fping ~~ it's easy enough to install in Linux.
sudo apt-get install fping
Win users can find a link to download a compiled binary for windows here:
https://universallp.wordpress.com/2017/02/22/fping-on-windows -
gtk+ ~~ again, easy to install in Linux.
## sudo apt-get install libgtk-3-dev python-gi-cairo
win users might have to jump through a couple hoops:
https://pygobject.readthedocs.io/en/latest/getting_started.html
the server and time between pings is hardcoded in the script,
because I wrote it to serve a single purpose.
if you wish to change these, just modify these two lines in the script:
server = 'hometownserver.com'
minutes_between_ping = 30
