Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forecast.solar: fill empty, enforce hourly #18802

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Forecast.solar: fill empty, enforce hourly #18802

merged 2 commits into from
Feb 14, 2025

Conversation

naltatis
Copy link
Member

fixes #18773
replaces #18788

@naltatis naltatis added enhancement New feature or request devices Specific device support labels Feb 14, 2025
@naltatis naltatis requested a review from andig February 14, 2025 13:33
@naltatis naltatis mentioned this pull request Feb 14, 2025
5 tasks
@andig
Copy link
Member

andig commented Feb 14, 2025

Ahhh, das hatten wir auf Discord diskutiert- super dass das jetzt geht!

@andig andig merged commit f46ef19 into master Feb 14, 2025
6 checks passed
@andig andig deleted the fix/forecast_solar branch February 14, 2025 13:49
@andig
Copy link
Member

andig commented Feb 16, 2025

Doesn't seem to work:

curl https://api.forecast.solar/estimate/52/9/45/0/6.9\?time\=utc\&full\=1\&resolution\=60 | jq
{
  "result": {
    "watts": {
      "2025-02-16T07:00:00+00:00": 122,
      "2025-02-16T08:00:00+00:00": 289,
      "2025-02-16T09:00:00+00:00": 485,
      "2025-02-16T10:00:00+00:00": 908,
      "2025-02-16T11:00:00+00:00": 1278,
      "2025-02-16T12:00:00+00:00": 1023,
      "2025-02-16T13:00:00+00:00": 687,
      "2025-02-16T14:00:00+00:00": 442,
      "2025-02-16T15:00:00+00:00": 287,
      "2025-02-16T16:00:00+00:00": 152,
      "2025-02-17T07:00:00+00:00": 402,
      "2025-02-17T08:00:00+00:00": 1200,
      "2025-02-17T09:00:00+00:00": 2180,
      "2025-02-17T10:00:00+00:00": 2818,
      "2025-02-17T11:00:00+00:00": 3068,
      "2025-02-17T12:00:00+00:00": 2974,
      "2025-02-17T13:00:00+00:00": 2682,
      "2025-02-17T14:00:00+00:00": 2056,
      "2025-02-17T15:00:00+00:00": 1223,
      "2025-02-17T16:00:00+00:00": 591
    },
    "watt_hours_period": {
      "2025-02-16T07:00:00+00:00": 0,
      "2025-02-16T08:00:00+00:00": 206,
      "2025-02-16T09:00:00+00:00": 387,
      "2025-02-16T10:00:00+00:00": 697,
      "2025-02-16T11:00:00+00:00": 1093,
      "2025-02-16T12:00:00+00:00": 1151,
      "2025-02-16T13:00:00+00:00": 855,
      "2025-02-16T14:00:00+00:00": 565,
      "2025-02-16T15:00:00+00:00": 365,
      "2025-02-16T16:00:00+00:00": 220,
      "2025-02-17T07:00:00+00:00": 0,
      "2025-02-17T08:00:00+00:00": 801,
      "2025-02-17T09:00:00+00:00": 1690,
      "2025-02-17T10:00:00+00:00": 2499,
      "2025-02-17T11:00:00+00:00": 2943,
      "2025-02-17T12:00:00+00:00": 3021,
      "2025-02-17T13:00:00+00:00": 2828,
      "2025-02-17T14:00:00+00:00": 2369,
      "2025-02-17T15:00:00+00:00": 1640,
      "2025-02-17T16:00:00+00:00": 907
    },
    "watt_hours": {
      "2025-02-16T07:00:00+00:00": 0,
      "2025-02-16T08:00:00+00:00": 206,
      "2025-02-16T09:00:00+00:00": 593,
      "2025-02-16T10:00:00+00:00": 1290,
      "2025-02-16T11:00:00+00:00": 2383,
      "2025-02-16T12:00:00+00:00": 3534,
      "2025-02-16T13:00:00+00:00": 4389,
      "2025-02-16T14:00:00+00:00": 4954,
      "2025-02-16T15:00:00+00:00": 5319,
      "2025-02-16T16:00:00+00:00": 5539,
      "2025-02-17T07:00:00+00:00": 0,
      "2025-02-17T08:00:00+00:00": 801,
      "2025-02-17T09:00:00+00:00": 2491,
      "2025-02-17T10:00:00+00:00": 4990,
      "2025-02-17T11:00:00+00:00": 7933,
      "2025-02-17T12:00:00+00:00": 10954,
      "2025-02-17T13:00:00+00:00": 13782,
      "2025-02-17T14:00:00+00:00": 16151,
      "2025-02-17T15:00:00+00:00": 17791,
      "2025-02-17T16:00:00+00:00": 18698
    },
    "watt_hours_day": {
      "2025-02-16": 5539,
      "2025-02-17": 18698
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devices Specific device support enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure custom tariff datapoints cover every hour
2 participants