Skip to main content

A working re-implementation of the weather module for Sopel

Project description

PyPI version Build Status Coverage Status

sopel-weather

sopel-weather is an weather lookup module for Sopel.

Since Yahoo deprecated their weather API on January 3, 2019, a reimplementation of the weather module was necessary

Usage

# Allows the user to set their current location
.setlocation london # Sets location by city name
.setlocation w2643743 # Sets location by WOEID (We are prepending w in front of WOEIDs because they collide with zips)
.setlocation 98101 # Sets location by zip code

# Gets a 24h forecast
.forecast # Only works if setlocation has been previously run
.forecast seattle, us
.forecast london

# Gets the current weather
.weather # Only works if setlocation has been previously run
.weather seattle, us
.weather london

Requirements

API Key

https://openweathermap.org/api

Python Requirements

requests
sopel

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_modules.weather-0.0.7.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file sopel_modules.weather-0.0.7.tar.gz.

File metadata

  • Download URL: sopel_modules.weather-0.0.7.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.6

File hashes

Hashes for sopel_modules.weather-0.0.7.tar.gz
Algorithm Hash digest
SHA256 e00c9052d6fab1744f3a57d8c6c05a2ab4347880f3469cb35da2271d710218f6
MD5 8bed419def4c93db348d802ff0ffaffa
BLAKE2b-256 b4e01ae70e42f86c8ff15bb79b43a12d4c10cbe49692435abfb05fdc259bd13c

See more details on using hashes here.

Supported by

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