producers
Get v3producers contracts plant data
Returns the plant data for the given contract from the producer
GET
/
v3
/
producers
/
{userID}
/
contracts
/
{contractID}
/
plant_data
/
cURL
curl --request GET \
--url https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/import requests
url = "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"date_of_commissioning": "2022-05-15",
"plant_size": 100,
"capacity": 5000,
"serial_number": "SN12345678",
"meter_id": "METER1234",
"status": "feed",
"production_type": "solar",
"longitude": 13.405,
"latitude": 52.52,
"errors": [],
"minimal_feed_power": 10.5,
"load_gradient_min_to_max": 0.5,
"load_gradient_max_to_min": 0.2,
"time_to_power_off_from_minimal_feed_power": 120,
"technical_resources": [
"TR-001",
"TR-002"
],
"control_resource": {
"SR-ID": "SR-001"
},
"consumption_by_owner": 30.5
}{
"detail": "<string>"
}Response
load- loadfeed- feedunload- unloadsupply- supplyenergy_transfer- energy_transfer
Available options:
load, feed, unload, supply, energy_transfer solar- solarwind- windwater- watergas- gas
Available options:
solar, wind, water, gas Show child attributes
Show child attributes
⌘I
cURL
curl --request GET \
--url https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/import requests
url = "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lumenaza.de/v3/producers/{userID}/contracts/{contractID}/plant_data/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"date_of_commissioning": "2022-05-15",
"plant_size": 100,
"capacity": 5000,
"serial_number": "SN12345678",
"meter_id": "METER1234",
"status": "feed",
"production_type": "solar",
"longitude": 13.405,
"latitude": 52.52,
"errors": [],
"minimal_feed_power": 10.5,
"load_gradient_min_to_max": 0.5,
"load_gradient_max_to_min": 0.2,
"time_to_power_off_from_minimal_feed_power": 120,
"technical_resources": [
"TR-001",
"TR-002"
],
"control_resource": {
"SR-ID": "SR-001"
},
"consumption_by_owner": 30.5
}{
"detail": "<string>"
}
