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.
PeterQuint
5 months ago
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.
Report
Mirko-Gennari
7 months ago
Report
mirkogennari
7 months ago
Report
kdemichl
8 months ago
Report
psydev
8 months ago
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.
Report
davide-sd
8 months ago
Report
akwala
1 year ago
Report
davide-sd
8 months ago
Report
roctheme
1 year ago
Report
akha666
1 year ago
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
Report
roctheme
1 year ago
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
[email protected]
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
Report
akha666
1 year ago
Report
migzulk
1 year ago
Report