Restful API for Solar plant production and Weather forecast data

User Tools

Site Tools

Solar production estimate chart

(Professional account only)

You can direct draw forecast estimate charts via API calls.

The logic for the chart drawing URL is a bit different. In other calls you have to use your API key for calls. But the needed code snippet here is placed into a HTML page and the API key should not be visible for the public ;-)

So the process of drawing a chart consists of 3 parts:

  1. Request a unique token for your plane(s), combine up to 3 (You can build the URL with the helper page and get the script tag directly with the Test button.)
  2. Init JavaScript chart functions, once per page
  3. Draw concrete chart by placing the JavaScript snippet exact at the place, where the chart should be shown.

1. Request a unique token

Result will be something like this:

    "result": {
        "token": "pDvJw75F",
        "url": "",
        "tag": "<script defer src=''></script>"
    "message": {
        "code": 0,
        "type": "success",
        "text": ""

2. Code

Chart URL for today

The offset of 0 is optional and this will work the same way:

Chart URL for tomorrow

You can draw the chart up to 6 days in advance!

<-- ----------------------------------------------------------------------
 -- Init chart functions, required only once per page
 -- ------------------------------------------------------------------ -->
<script src=""></script>

<div style="text-align:center">

    <-- ------------------------------------------------------------------
     -- Custom header
     -- -------------------------------------------------------------- -->
    <h3>Production estimate South</h3>

    <-- ------------------------------------------------------------------
     -- Wrap script with a DIV with dimensions to define chart size
     -- The chart works perfect with deferred loading!
     -- -------------------------------------------------------------- -->
    <div style="width:400px;height:200px;margin:auto">
        <script defer src=""></script>


3. Result