Giter Site home page Giter Site logo

vistaus / ip_address Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davide-sd/ip_address

0.0 2.0 0.0 1.39 MB

Plasma 5 widget to quickly show the public IP address and related informations.

License: GNU General Public License v2.0

CMake 1.45% QML 77.72% JavaScript 4.84% Shell 15.99%

ip_address's Introduction

Public IP Address widget for KDE 5

Description

Plasma 5 widget for showing informations 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 informations requested from ipinfo.com: you can copy to clipboard the different informations by clicking over them. You can also open the map on the browser, and update the informations by sending another request.

By default, the widget update itself every 5 minutes. You can change this behaviour in the settings. Please note that ipinfo.com 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 change the colors of the displayed informations in the settings.

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

tooltip screenshot expanded screenshot

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).

Installation

From openDesktop.org

  1. Go to Open Desktop
  2. Click on the Files tab
  3. Click the Install button

From within the Plasma workspace

  1. If your widgets are locked, right-click the desktop and select Unlock Widgets
  2. Right-click the desktop and select Add Widgets...
  3. Click the Get new widgets button in the Widget Explorer that just opened
  4. Type Public IP Address into the search field
  5. Click the Install button next to Public IP Address

FAQ

The widget is not working. There are errors about QtPositioning and QtLocation. What can I do?

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.

Can you add an option to use a different map provider other than OpenStreetMap?

No, because most other map providers require an API key, whereas OSM does not need it. This means everyone should be able to view the map.

ip_address's People

Contributors

danaholt avatar davide-sd avatar victorhck avatar vistaus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.