Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
api [2019/12/30 16:22] – [URL] knutkohlapi [2021/12/09 15:32] – [Content type] knutkohl
Line 11: Line 11:
 There is also a [[http://swagger.forecast.solar/?url=https://api.forecast.solar/swagger.yaml|Swagger Editor]] to inspect for proper request URLs. There is also a [[http://swagger.forecast.solar/?url=https://api.forecast.solar/swagger.yaml|Swagger Editor]] to inspect for proper request URLs.
  
-==== Parameters ====+==== Query parameters ====
  
 === time === === time ===
Line 19: Line 19:
   https://api.forecast.solar/...?time=...   https://api.forecast.solar/...?time=...
  
-If not given, a simple date time format is used: ''2017-09-18 01:00:00''+If not given, a simple parsable date time format is used: ''2017-09-18 01:00:00''
  
 ^ Parameter value  ^ Result format                    ^ ^ Parameter value  ^ Result format                    ^
Line 34: Line 34:
  
 See this [[Damping|further explanations]]. See this [[Damping|further explanations]].
 +
 +=== inverter ===
 +
 +With this parameter you can Forecast.Solar tell what is the maximal power of your inverter in Watts or kVA.
 +
 +  https://api.forecast.solar/...?inverter=...
 +
 +If your inverter is (very) undersized, the maximum prediction power will be limited to this value.
 ===== Response ===== ===== Response =====
 ==== Content type ==== ==== Content type ====
Line 51: Line 59:
   CSV  : text/csv   CSV  : text/csv
  
 +If you have a limited device which can only do simple GETs, you can define the response content types other than JSON as file extension like this:
 +
 +  https://api.forecast.solar/.../1.xml
 +  https://api.forecast.solar/.../1.csv
 +
 +But the "Accept" header is prefered ...
 ==== Headers ==== ==== Headers ====