Source i (link to git-repo or to original if based on someone elses unmodified work):

https://github.com/Davide-sd/ip_address

Original
9
Become a Fan
7.9

Available as/for:
Description:
NOTE
There are two version available:
  • The file v1.1.com.github.davide-sd.ipaddress.pasmoid: this is the old version, IP address only.
  • The file com.github.davide-sd.ipaddress.pasmoid: the new version, IP address + VPN status.

Some people are reporting that the new version (com.github.davide-sd.ipaddress.pasmoid) may causes plasmashell to crash. If that is the case, remove the widget and download v1.1.com.github.davide-sd.ipaddress.pasmoid (IP Address only), and please, please open an issue on the Github page sending error logs, OS version, KDE version so that I can try to debug the problem

Description

Plasma 5 widget for showing information about your public IP address and the status of your VPN (active/inactive). This is useful for informational purposes and to monitor VPN geolocation.

The expanded view shows a map with information requested from ipinfo.io. You can:
  • copy to clipboard the different information by clicking over them;
  • open the map on the browser;
  • update the information by sending another request by clicking the Update button.


By default, the widget update itself every 5 minutes. You can change this behavior in the settings. Please note that ipinfo.io API limits the total amount of requests to 1000 per day: this means that the plugin will update itself at most every 2 minutes.

You can also change the colors of the displayed information in the settings.

This widget uses the excellent flags icon pack by lipis and contributors.

Dependencies

The primary functions of the widget (check IP address) should work correctly even if the following dependencies are not installed. Anyway, to get the best experience you need:

*
libnotify-bin
: this is for showing notifications when clicking links, thus copying the link's content to the clipboard.
sudo apt install libnotify-bin

*
nmcli
: this is part of the
network-manager
package. It'll check the status of the VPN by executing the command
nmcli c show --active
; if a VPN is active, there should be some entries containing the keywords "vpn" or "tun". It should already be installed in Ubuntu. Don't know about other distros (let me know in the comments or by opening an issue).

It may happens that the widget does not load, complaining about something like QtPositioning and QtLocation. If this is the case and you are using Ubuntu (18.04), run this command:

sudo apt-get install libqt5positioning5 libqt5location5 qtlocation5-dev qtpositioning5-dev qml-module-qtlocation qml-module-qtpositioning


In any other distribution, you must look for libraries regarding qt5 positioning and qt5 location, as well the development libraries and the qml bindings.
Last changelog:

Added Feauture

Show IP Address in Compact View


Ratings & Comments

17 Comments

Dexel

Kubuntu 22.04 - ok. Thanks.

mahdif

10 10 the best this is amazing thank u

ianjsaul

10 Love.

akha666

9 I love this widget, I have been using it for a long time. And I wish to "refresh on click" or check for new IP on click Thanks

PeterQuint

Hi, I installed the version with vpn status on Manjaro; it runs without problems, but the "update"-button is not working here. It doesn't show any changes after logging in or out of vpn.

Mirko-Gennari

10 10 the best

mirkogennari

10 10 the best

kdemichl

10 10 the best

psydev

8 8 great, nicely done. Thanks! It would be great to be able to change the font color, on my machine with the breeze dark theme the links in the text are hard to read.

davide-sd

That's strange, since texts are using theme colors. Btw, I'm also using Breeze Dark and I see them clearly. Anyway, I'll add the possibility to chose custom colors. Hang tight.

akwala

8 8 great Very useful. Well designed. Needs on demand refresh, e.g., a Refresh button in the on-click dropdown.

davide-sd

Update button added, thanks for the suggestion! :)

roctheme

9 +

akha666

error installing Ubuntu 18.04.2 kf5.kpackage: No metadata file in the package, expected it at: "/tmp/kpackagetool5-aysRwp/" kf5.kpackage: No metadata file in the package, expected it at: "/tmp/kpackagetool5-353dyW/" Error: Installation of /home/tux/ip_address.plasmoid failed: No metadata file in package: /home/tux/ip_address.plasmoid

roctheme

Same here, but you can fix it. Extract the "contents" folder in this new folder: ~/.local/share/plasma/plasmoids/com.github.davide-sd.ipaddress/ Then create this file: metadata.desktop with this content: [Desktop Entry] Name=Public IP Address Comment=Shows public ip adress Type=Service Icon=find-location-symbolic X-KDE-ServiceTypes=Plasma/Applet X-Plasma-API=declarativeappletscript X-Plasma-MainScript=ui/main.qml X-KDE-PluginInfo-Author=Davide Sandona X-KDE-PluginInfo-Email=sandona.davide@gmail.com X-KDE-PluginInfo-Name=com.github.davide-sd.ipaddress X-KDE-PluginInfo-Version=1.0 X-KDE-PluginInfo-Category=Utilities Then do the following in the terminal: kpackagetool5 --generate-index -t Plasma/Applet Then reloggin

akha666

Perfect, Thank you.

migzulk

9 +Very useful!

Pling
0 Affiliates
Details
license GPLv2 or later
version 1.2.7
updated
added
downloads 24h 4
mediaviews 24h 0
pageviews 24h 11

Other Plasma 5 Applets:

WebView test
kinta
last update date: 10 years ago

Score 5.0

Google Task - web - obsoleted
suli
last update date: 8 years ago

Score 6.1

CodeShip Monitor
Naraku
last update date: 8 years ago

Score 5.0

Media Controller Compact
bkueng
last update date: 6 years ago

Score 7.7

Shaders example plasmoid
mart
last update date: 11 years ago

Score 6.5

Simple RSS reader
aloos
last update date: 9 years ago

Score 7.0