Giới Thiệu · Icon Ping
Many times I end using a computer in places with a poor or erratic wifi connection, so while I'm surfing the web, checking my email, or writing a message on Twitter, if something does not work as expected I'm not sure if the problem is my internet connection or a specific web site.My reaction when this happens is to open the Terminal application in OSX and check with a ping 8.8.8.8 command if everything is working well at least at the basic level, that is, I'm able to reach internet at all?
For all this reasons I spent a few hours creating this small OSX menubar application that continuously pings the 8.8.8.8 address checking if the connection is working, and changing the menubar icon accordingly.
The world icon will change color accordingly to the state of the connection:
- Green if we receive pong packets back from 8.8.8.8. Connection OK.
- Yellow if we receive pong packets, but with a delay that is greater than 300 milliseconds. Connection Slow.
- Red if we don't receive pong packets for three seconds or more. Connetion not working.
The application almost has no user interface at all, if not for a tiny menu used to quit the application or to set it to automatically restart at the next reboot.