A working re-implementation of the weather module for Sopel
Project description
Introduction
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
Current Weather
.weather # Only works if setlocation has been previously run
.weather seattle, us
.weather london
Paris, Ile-de-France, FR: 6°C (42°F), Clear, Humidity: 83%, UV Index: 0, Gentle breeze 4.0m/s (↗)
24h Forecast
.forecast # Only works if setlocation has been previously run
.forecast seattle, us
.forecast london
Forecast: Paris, Ile-de-France, FR: Light rain tomorrow through next Saturday, High: 15°C (59°F), Low: 11°C (52°F), UV Index: 2
Customize User Location
.setlocation london # Sets location by city name
.setlocation 98101 # Sets location by US zip code
I now have you at Paris, Ile-de-France, FR
Requirements
Modern weather APIs require Latitude & Longitude as inputs to their APIs, so we need to leverage a GeoCoords API to convert location searches to coordinates.
API Keys
LocationIQ
https://locationiq.com/
Dark Sky
https://darksky.net/
OpenWeatherMap
https://openweathermap.org/
Python Requirements
requests
sopel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for sopel_modules.weather-1.2.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cdb84f0e7ee2e71e489a34864f76e06f0a72a0870c38a595590a7f37561acd5 |
|
MD5 | 52a48d1c03ed1a31a11770c700a23775 |
|
BLAKE2b-256 | b0a0371a7a1c04c9a8a37638bf0903d286dba9e5ad01450d1bd9fd446d15d87a |