Skip to main content

i3geoweather

This blocklet provides temperature information for the i3blocks status bar often used in the i3 window manager. It attempts to determine your location based on your IP address using the ipinfo.io API. Based on the location it retrieves weather information from the free openweathermap.org API.

docs/i3geoweather.jpg

i3geoweather is a pure Python 3 program. No attempt to make it compatible with Python 2 has been or will be made. It is time to switch!

Installation

The easiest way to install i3geoweather is to use pip:

$ pip install i3geoweather

Depending on your system you may need to call pip3 instead of pip

Dependencies

i3geoweather depends on the Python requests library. i3geoweather output uses FontAwesome for its output. You should download the free FontAwesome zip file and copy fontawesome-webfont.ttf to your ~/.fonts/ directory.

Usage

i3geoweather runs a daemon process in the background (if started with the -d option) and periodically updates weather information by writing to ~/.i3geoweather/i3geoweather.txt.

Start i3geoweather from your i3 configuration file:

exec_always i3geoweather -d

You may need to use the full path to i3geoweather, e.g., for an installation with pip install –user …:

exec_always ~/.local/bin/i3geoweather -d

A typical i3blocks.conf entry may look like this:

[weather]
interval=repeat
command=inotifywait -qq -e delete_self ~/.i3geoweather/i3geoweather.txt && cat ~/.i3geoweather/i3geoweather.txt

Command line options:

  • -d or –daemon run as background process

  • -l or –location force a location by specifying a comma separated latitude/longitude pair, e.g., -l “50.0126, 7.996”. North and east are positive.

  • -r or –restart restart background process

  • -s or –stop stop running background process

  • -v increase verbosity of logging to ~/.i3geoweather/i3geoweather.log. Can be used up to three times. Using -v twice logs informational messages. Debugging output is produced when -v is used three times.

Author

Jörg Dietrich joerg@joergdietrich.com

Contributing

Development takes place on GitHub. Please report any bugs as an issue in the GitHub issue tracker.

License

i3geoweather is released under an MIT license. See LICENCE.txt

Metadata

Release files for i3geoweather 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i3geoweather 1.1.2
File Size Uploaded
i3geoweather-1.1.2.tar.gz 8.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for i3geoweather 1.1.2
File Interpreter ABI Platform
i3geoweather-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 kB

Release files / i3geoweather-1.1.2.tar.gz

Download URL i3geoweather-1.1.2.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
63055e392e691b72524e13c571fb5a5c81aa4d5e03dd82194d670bc31e13dfc7
BLAKE2b-256 checksum
How to use checksums
b17bd497f77e09167a07e95aad912224492371b860ea7803ca4d5c6eb4206e58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.3

Release files / i3geoweather-1.1.2-py3-none-any.whl

Download URL i3geoweather-1.1.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c73233b58d5431ce69f267bb308e1cd9404a53b64d973fd0d20eff5a78f29d55
BLAKE2b-256 checksum
How to use checksums
13b3018d72a94c9b8b5c17bb262796e71baedc4105468cef3d5252c242668eaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.1.2

2 release files

0.1.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page