vascomfnunes / tmux-clima

A tmux weather statusbar plugin.
MIT License
13 stars 3 forks source link

[Feature request] Using IPinfo.io for IP information (IP Geolocation + ASN) #14

Open abdullahdevrel opened 2 months ago

abdullahdevrel commented 2 months ago

I would like to recommend ipinfo.io for IP data.

Usage example:

curl https://ipinfo.io/8.8.8.8
{
    "ip": "8.8.8.8",
    "hostname": "dns.google",
    "anycast": true,
    "city": "Mountain View",
    "region": "California",
    "country": "US",
    "loc": "37.4056,-122.0775",
    "org": "AS15169 Google LLC",
    "postal": "94043",
    "timezone": "America/Los_Angeles"
}

Documentation: https://ipinfo.io/developers

Free IP databases: https://ipinfo.io/products/free-ip-database


Consider including IPinfo in the project for accurate data and generous free access. Please let me know what you think. Thank you very much.

vascomfnunes commented 1 month ago

Not planned but would consider if someone implements a solution to support multiple providers.