Retrieve open data from SMHI api.
Project description
pysmhi
python module for communicating with SMHI
Supported applications
- Daily weather forecast
- Hourly weather forecast
- Bi-daily weather forecast
- Daily fire risk
- Hourly fire risk
Code examples
Get daily forecast
Retrieves the daily forecast for the specified location
from pysmhi import SMHIForecast, SMHIPointForecast
async with aiohttp.ClientSession(loop=loop) as session:
client = SMHIPointForecast("16.15035", "58.570784", session)
daily_forecast = await client.async_get_daily_forecast()
print(daily_forecast)
Credits to @helto4real for making the original smhi api package used for Home Assistant to connect to SMHI weather services which this is based upon.
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
pysmhi-2.0.0.tar.gz
(12.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysmhi-2.0.0.tar.gz.
File metadata
- Download URL: pysmhi-2.0.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c50b741f7ac1bc27e213017f00746cc2f1e44219533ba6ef78f94e8b3053bee4
|
|
| MD5 |
5d77d36439ec5e4fbd09be867a778cff
|
|
| BLAKE2b-256 |
6b783ed5a9d4e3426d62c2d3516830cd510e3d53b83b83fe2aae64f0a49294fe
|
File details
Details for the file pysmhi-2.0.0-py3-none-any.whl.
File metadata
- Download URL: pysmhi-2.0.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.3 CPython/3.12.3 Linux/6.17.0-1008-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40fb30b41a6a1379805bfbd31cd08534a571e6d2fff285d07a5101cfa8ed8311
|
|
| MD5 |
de2710d0c3192c135671cae7c29071cb
|
|
| BLAKE2b-256 |
d717b9a5b61e060450255855ed337ec5789d03703191487befd6980944172bc8
|