Skip to main content

size_badge version_badge download_badge GitHub Repo stars GitHub Issues or Pull Requests GitHub License

Made for Home Assistant

Sponsor me Discord

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.

Metadata

Release files for pysmhi 2.1.0

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

Source distribution (sdist)

Source distribution for pysmhi 2.1.0
File Size Uploaded Provenance Actions
pysmhi-2.1.0.tar.gz 13.6 kB Without provenance Details for pysmhi-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 23.8 kB

Release files / pysmhi-2.1.0.tar.gz

Download URL pysmhi-2.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
212814663bf1b8f134c8d5f45ae307a80bde0eb2b4448a58b6d3a31f6d2c045a
BLAKE2b-256 checksum
How to use checksums
2430bc7940421287f559342cd89b967e78f33d8fd3931b805c32214a15e89944
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/6.17.0-1022-azure

Release files / pysmhi-2.1.0-py3-none-any.whl

Download URL pysmhi-2.1.0-py3-none-any.whl
Size 10.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66188ccb3e3ea4dc1bdacbc0f8e9cec5cd6af8b0d02cdd9360e1d704f33f0b1a
BLAKE2b-256 checksum
How to use checksums
56879c2f8d7c042a5f14d10551ed4444ff517759fc60d82b7c18594b3a3185a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.12.3 Linux/6.17.0-1022-azure

Security for pysmhi 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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