Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
api:estimate [2019/12/30 16:22] – [URL parameters] knutkohl | api:estimate [2024/02/15 12:09] (current) – [Example] knutkohl | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Examples here use the '' | ||
- | |||
===== Solar production estimate ===== | ===== Solar production estimate ===== | ||
Line 11: | Line 9: | ||
===== Clear sky solar production ===== | ===== Clear sky solar production ===== | ||
- | If there were no clouds it would be a clear sky. `clearsky` thus calculates the theoretically possible production. | + | If there were no clouds it would be a clear sky. '' |
+ | |||
+ | ===== URL parameters ===== | ||
+ | |||
+ | :!: Please check **always** if your **location and plane parameters are valid** before you go live! You can do this with the [[api: | ||
+ | |||
+ | * **'': | ||
+ | * **'': | ||
+ | * **'': | ||
+ | * **'': | ||
+ | * **'': | ||
+ | * **'': | ||
+ | |||
+ | Please see the examples below. | ||
+ | |||
+ | **'': | ||
+ | * ''< | ||
+ | * ''< | ||
+ | |||
+ | **Azimuth** | ||
+ | |||
+ | :!: Please note that e.g. Home Assistant uses internal a '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | For the lazy ones, if you have an exact '' | ||
+ | |||
+ | You can poke around with the [[http:// | ||
+ | |||
+ | To find your azimuth, please refer to these [[:Find your azimuth|instructions]]. | ||
+ | |||
+ | ====== Account models ====== | ||
+ | |||
+ | (Documentation here use the '' | ||
===== Public ===== | ===== Public ===== | ||
- | * One plane can be accessed by an API call | + | * **1** plane can be accessed by an API call |
* only '' | * only '' | ||
https:// | https:// | ||
- | ===== Personal ===== | + | ===== Personal |
- | * One plane can be accessed by an API call | + | * **1** (Personal) or combined data of **2** (Personal Plus) planes |
* '' | * '' | ||
https:// | https:// | ||
+ | https:// | ||
+ | ===== Professional / Professional Plus ===== | ||
- | ===== Professional ===== | + | |
- | + | ||
- | | + | |
* '' | * '' | ||
Line 35: | Line 66: | ||
https:// | https:// | ||
https:// | https:// | ||
+ | https:// | ||
- | ===== URL parameters | + | ====== Responses ====== |
- | * **'' | + | ===== Watts, Watt hours over day, Watt hours per period, Watt hours per day ===== |
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | * **'' | + | |
- | You can poke around with the [[http:// | + | There are also routes available to query only the watts, watt hours, watt hours per period |
- | ===== Watts, Watt hours, Watt hours day ===== | + | |
- | + | ||
- | There are also routes available to query only the watts, watt hours or watt hours per day. | + | |
https:// | https:// | ||
https:// | https:// | ||
+ | https:// | ||
https:// | https:// | ||
Line 58: | Line 83: | ||
https:// | https:// | ||
https:// | https:// | ||
+ | https:// | ||
https:// | https:// | ||
- | Here you can query with a Professional account also up to 3 planes at once. | + | ===== Content ===== |
- | ===== Example ===== | + | |
+ | The response have in the '' | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | :!: For '' | ||
+ | |||
+ | ====== Example | ||
- | Get solar production estimate per day as [[: | + | Get solar production estimate per day as [[: |
<code bash> | <code bash> | ||
- | curl -H "Accept: text/csv" | + | curl -H 'Accept: text/csv' 'https:// |
</ | </ | ||
Line 83: | Line 119: | ||
<code bash> | <code bash> | ||
- | curl https:// | + | curl https:// |
</ | </ | ||
Line 89: | Line 125: | ||
{ | { | ||
" | " | ||
- | "2016-02-08 07:20:00": | + | "watts": |
- | "2016-02-08 07:38: | + | "2022-10-12 07:29: |
- | "2016-02-08 08:15: | + | "2022-10-12 08:00: |
- | ... | + | ... |
- | "2016-02-08 15:45:00": 3599, | + | "2022-10-12 18: |
- | " | + | "2022-10-12 18:27: |
- | "2016-02-08 17:32: | + | "2022-10-13 07:31:00": 0, |
- | "2016-02-09 07:18:00": 0, | + | "2022-10-13 08: |
- | "2016-02-09 07:36:00": 66, | + | ... |
- | " | + | "2022-10-13 18:00: |
- | ... | + | "2022-10-13 18:24: |
- | "2016-02-09 15:45: | + | }, |
- | "2016-02-09 17:16: | + | "watt_hours": |
- | "2016-02-09 17:34:00": | + | "2022-10-12 07:29:00": 0, |
- | "2016-02-10 07:17:00": 0, | + | "2022-10-12 08:00: |
- | "2016-02-10 07: | + | ... |
- | "2016-02-10 08:15: | + | "2022-10-12 18: |
- | ... | + | "2022-10-12 18:27: |
- | "2016-02-10 15: | + | "2022-10-13 07:31: |
- | "2016-02-10 17:18:00": 8347, | + | "2022-10-13 08:00: |
- | " | + | ... |
- | "2016-02-11 07:15: | + | "2022-10-13 18:00: |
- | "2016-02-11 07:33: | + | "2022-10-13 18:24: |
- | "2016-02-11 08:15: | + | |
- | ... | + | "watt_hours_period": |
- | "2016-02-11 15:45: | + | "2022-10-12 07:29: |
- | "2016-02-11 17:20: | + | "2022-10-12 08:00: |
- | | + | ... |
- | "2016-02-12 07:13:00": | + | "2022-10-12 18: |
- | "2016-02-12 07:31: | + | "2022-10-12 18:27: |
- | "2016-02-12 08:15: | + | "2022-10-13 07:31:00": 0, |
- | ... | + | "2022-10-13 08: |
- | "2016-02-12 15:45:00": 18674, | + | ... |
- | " | + | "2022-10-13 18: |
- | "2016-02-12 17:39: | + | "2022-10-13 18:24:00": 27 |
- | "2016-02-13 07:11:00": 0, | + | |
- | "2016-02-13 07:29:00": 19, | + | "watt_hours_day": |
- | " | + | "2022-10-12": |
- | ... | + | "2022-10-13": |
- | "2016-02-13 15:45:00": 3933, | + | |
- | " | + | |
- | "2016-02-13 17:41:00": 4022, | + | |
- | " | + | |
- | " | + | |
- | | + | |
- | ... | + | |
- | "2016-02-14 15:45:00": | + | |
- | "2016-02-14 17:25:00": | + | |
- | "2016-02-14 17:43:00": | + | |
- | | + | |
- | " | + | |
- | " | + | |
- | ... | + | |
}, | }, | ||
" | " | ||
" | " | ||
" | " | ||
- | " | + | " |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
} | } | ||
} | } | ||
</ | </ | ||
- | The '' | + | The '' |