logo

Manually integration

This article is for you when you do not own a Daytopper module, but you have a different source that can provide you with the data.

Step 1

Go to the My inverters page in the App and from this page, we click on the plus button or add inverter button.

Image

Step 2

Now you will see a screen where you can give the inverter a name and specify the purchase price and kWh price.

Image

Step 3

Now we see the created inverter in the list.

Image

Step 5

Click on the three dots on the right of the inverter and click on keys to see the token.

ImageImage

The token is needed to authenticate with our API. Copy the value and use this in the following snippet to send the data to our API

const axios = require('axios');

const {data} = await axios.post('https://api.solar-daytopper.com/device/login', {
  token: 'your-inverter-token'
});

await axios.post('https://api.solar-daytopper.com/solar', {
    total: 9000,
    current: 200,
  }, {
    headers: {
    Authorization: 'Bearer ' + data.token
  }
});