Giter Club home page Giter Club logo

solar-forecast-api's Introduction

License: GPL v3 Build & deploy to Azure Web App Build & deploy Azure Web App - Dev

solar-forecast-api

Solar - Forecast

OC:

  1. Intro
  2. Concept
  3. Architecture

1. Intro

Goal: Calculating the power production of your solar installation and predicting your solar energy for the next 7 days, also available as an API for integration with a HEMS (Home Energy Management System) like Home Assistant or others.

Calculating:

  • clear sky Power (Watt) for any given time of day
  • clear sky Energy(kWh) for any given day
  • Typical real Energy (kWh) per month and Totalper year

Predicting:

  • Power Prediction (Watt) for any given time for the next 7 days (or 48h)
  • Energy Prediction (kWh) for the next 7 days (or 48h)
  • Typical Prediction (kWh) per month and Totalper year

2. Concept

There are 2 parts:

API:

api.solar-forecast.org is the main part, typically used as a service for a HEMS (Home Energy Management System). The API gets the installation data in the body of a POST request and provides a response for the clear sky or prediction. You can optionaly specify a "weather provider" (open-meteo or openweathermap) by adding a "query" parameter provider in the POST request.

See details or perform tests in the swagger documentation.

Example:

curl -X 'POST' \
  'https://api.solar-forecast.org/forecast?provider=openmeteo' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "date": "21-01-2023",
  "location": {
    "lat": 51,
    "lng": 3.11
  },
  "altitude": 70,
  "tilt": 44,
  "azimuth": 170,
  "totalWattPeak": 7400,
  "wattInvertor": 5040,
  "timezone": "Europe/Brussels"
}'

UI - User Inreface:

This is a web application www.solar-forecast.org for visualizing the prediction or as aid for calculating your PV installation or exploring different orientations, dimensions, tilts or seasonal influences like winter and summer.

2. Architecture

CI/CD

Devop guidlines

solar-forecast-api's People

Contributors

tribp avatar

Watchers

 avatar

solar-forecast-api's Issues

Timestamps coming through with a 1 hour offset

Hi,

I'm doing some testing at the moment, and am making some calls to api.solar-forecast.org

I've noticed that forecast timestamps all seem to be coming through as UTC+1, rather than UTC, which is what I'd expect.

I know that you're based in Belgium, so are UTC+1 in winter and UTC+2 in summer, so I was wondering if you were just subtracting 1 hour from local time to get UTC.

I've only just started requesting data in the last day or so, so I don't know if the timestamps were correct before daylight saving time kicked in.

Thanks

Hugh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.