bovender / indicator-ip

Ubuntu indicator that displays local and external IP addresses.
34 stars 5 forks source link

Add an auto refresh option #5

Closed adamdry closed 7 years ago

adamdry commented 7 years ago

Would it be possible to add an option whereby the ip address is auto refreshed every x seconds (60 seconds for example)? Thanks!

bovender commented 7 years ago

The IP is refreshed automatically whenever the network connection status changes. Does it not do that on your system? It has been working perfectly over here for almost 2 years now.

adamdry commented 7 years ago

Apologies, this works fine! Thanks for creating it btw, it's very helpful for me!

cjohnston1158 commented 7 years ago

I've setup my router to use an external VPN, so my hope was that if the VPN got disconnected, causing my external IP to change, that this indicator would be able to notify me visually. I don't believe this would cause any status changes on the local machine though, triggering the .refresh()

bovender commented 7 years ago

Ah, ok, got it. It does work well with VPNs created from within the operating system (that's my everyday use case).

I'm really not a Python programmer, and this was only a side project. So let's see if I can figure out how to set up a timer in Python...