Skip to main content

prometheus_solcast_exporter

A very quick and dirty unofficial Prometheus exporter for Solcast's free home solar forecast API. (So dirty it doesn't even have any tests!)

Usage

$ prometheus_solcast_exporter RESOURCE_ID --api-key=API_KEY

[!TIP]

The RESOURCE_ID is the ID used to identify a particular array and usually has the form XXXX-XXXX-XXXX-XXXX.

By default will run an Prometheus exporter on port 9534. See --help for further options.

Metrics

Produces two sets of metrics:

  • solcast_up{resource_id="..."}: 1 when the most recent Solcast API request succeeded, 0 otherwise.
  • solcast_forecast_watts{resource_id="...", time_offset="NNN", centile="..."}: The forecast solar power in Watts. The time_offset label gives the number of minutes into the future the forecast is for. The centile label is either empty (for the main estimate), 10 (for the 10th percentile estimate) or 90 (for the 90th percentile estimate).

Forecast data is fetched at an interval configured by the --max-age argument, defaulting to 180 minutes to avoid hitting the 10 requests per day API rate limit. The most recently fetched data (appropriately time shifted) is returned between requests.

Historic estimated values are not captured.

Metadata

Release files for prometheus-solcast-exporter 0.0.1

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

Source distribution (sdist)

Source distribution for prometheus-solcast-exporter 0.0.1
File Size Uploaded
prometheus_solcast_exporter-0.0.1.tar.gz 41.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prometheus-solcast-exporter 0.0.1
File Interpreter ABI Platform
prometheus_solcast_exporter-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 70.6 kB

Release files / prometheus_solcast_exporter-0.0.1.tar.gz

Download URL prometheus_solcast_exporter-0.0.1.tar.gz
Size 41.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e60b63a10b2c477c1dca9e89e1d449492dd2e8335c2375c585c4e772a08b32f1
BLAKE2b-256 checksum
How to use checksums
16b4ea74d6e1c4188f68de1ae94363d7f42e8fbcf9a5d0a085d18d48de96d0bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / prometheus_solcast_exporter-0.0.1-py3-none-any.whl

Download URL prometheus_solcast_exporter-0.0.1-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
911a73d4aa2a31e0bdc8b51d6405132827e0b077ecec38a2d4e43d51caf4af7d
BLAKE2b-256 checksum
How to use checksums
db4c7598a2b200635fb02334095f821922d6685acab452e79641774024332f90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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