Skip to main content

A weather lookup plugin for Sopel IRC bots

Project description

sopel-weather

A weather lookup plugin for Sopel IRC bots.

Note: This package was previously published as sopel-modules.weather. Please update your dependencies to use sopel-weather instead.

Installation

pip install sopel-weather

Configuration

You can automatically configure this plugin using sopel configure --plugins.

Or configure manually in ~/.sopel/default.cfg:

[weather]
geocoords_provider = locationiq_us
geocoords_api_key = YOUR_LOCATIONIQ_API_KEY
weather_provider = openmeteo
weather_api_key = dummy

Usage

Current Weather

.weather              # Uses your saved location
.weather seattle, us
.weather london

Example output:

Paris, Ile-de-France, FR: 6°C (42°F), Clear, Humidity: 83%, UV Index: 0, Gentle breeze 4.0m/s (↗)

Forecast

.forecast              # Uses your saved location
.forecast seattle, us
.forecast london

Set Your Location

.setlocation london    # Set by city name
.setlocation 98101     # Set by US zip code

API Keys Required

GeoCoords Provider

Weather Providers

Requirements

  • Sopel 8.0+
  • Python 3.8+

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel_weather-2.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_weather-2.0.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file sopel_weather-2.0.0.tar.gz.

File metadata

  • Download URL: sopel_weather-2.0.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sopel_weather-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0241d40f2a87b64c6f6cc5b10446ee6ee5eeae713b2d83c165a4e5ea4b5383b3
MD5 d50ddf75631961a582c2439bf8a3de3a
BLAKE2b-256 102d98160a76f114534fed25c9533092b0f4cf4f9294cd9bd497946498f9ec92

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_weather-2.0.0.tar.gz:

Publisher: python-publish.yml on sopel-irc/sopel-weather

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sopel_weather-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sopel_weather-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sopel_weather-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf794caef7bf8261d7448656f4f12128c73516cca65999a24a7d568369439f61
MD5 c0417b2ab2ca9e460ae8e061f797b8ed
BLAKE2b-256 3af13ef56c147c9611da247e018beb491f8b9f916b18fe5e1daeee433a443ef7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_weather-2.0.0-py3-none-any.whl:

Publisher: python-publish.yml on sopel-irc/sopel-weather

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page