Wind Power Projections¶
Returns the projected proportion of wind power on the grid for each hour up to 48 hours into the future.
Being a part of the Fan Club is a way for an Octopus Energy customer to recieve discounted electrcity during times of high wind power generation. These docs are exclusive to the ERCOT region.
Authentication not required
getWindPowerProjections
does not require authentication.
-
Arguments
hoursIntoFuture
: Int. Defaults to 48.
-
Returns
Example¶
import pprint
import requests
# API_URL = "https://api.oeus-kraken.energy/v1/graphql/" # Prod
API_URL = "https://api.oeus-kraken.systems/v1/graphql/" # Test
HEADERS = {}
QUERY = """
query getFanClubWindPowerProjections($hoursIntoFuture:Int){
getFanClubWindPowerProjections(hoursIntoFuture:$hoursIntoFuture){
windPowerProjections {
deliveryDatetime
totalPowerProjection
windPowerProjection
projectedWindPowerPercentage
}
}
}
"""
VARIABLES = {"hoursIntoFuture": 12}
session = requests.Session()
session.headers.update(HEADERS)
response = session.post(
url=API_URL,
json={"query": QUERY, "variables": VARIABLES}
)
pprint.pprint(response.json())
const axios = require("axios")
// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}
const query = `
query getFanClubWindPowerProjections($hoursIntoFuture:Int){
getFanClubWindPowerProjections(hoursIntoFuture:$hoursIntoFuture){
windPowerProjections {
deliveryDatetime
totalPowerProjection
windPowerProjection
projectedWindPowerPercentage
}
}
}
`
const variables = {"hoursIntoFuture": 12}
axios({
url: apiUrl,
method: "post",
data: {
query: query,
variables: variables,
},
headers: headers,
}).then((response) => {
console.log(JSON.stringify(response.data, null, 4));
});
import axios from 'axios';
// const API_URL = "https://api.oeus-kraken.energy/v1/graphql/" // Prod
export const apiUrl = "https://api.oeus-kraken.systems/v1/graphql/" // Test
let headers = {'content-type': 'application/json'}
export const query = `
query getFanClubWindPowerProjections($hoursIntoFuture:Int){
getFanClubWindPowerProjections(hoursIntoFuture:$hoursIntoFuture){
windPowerProjections {
deliveryDatetime
totalPowerProjection
windPowerProjection
projectedWindPowerPercentage
}
}
}
`
export const variables = {"hoursIntoFuture": 12}
axios({
url: apiUrl,
method: "post",
data: {
query: query,
variables: variables,
},
headers: headers,
}).then((response) => {
console.log(JSON.stringify(response.data, null, 4));
});
{
"data": {
"getFanClubWindPowerProjections": {
"windPowerProjections": [
{
"deliveryDatetime": "2023-07-05T06:00:00",
"totalPowerProjection": "55682.18005",
"windPowerProjection": "20210.60000",
"projectedWindPowerPercentage": "0.36"
},
{
"deliveryDatetime": "2023-07-05T07:00:00",
"totalPowerProjection": "53546.22974",
"windPowerProjection": "19472.30000",
"projectedWindPowerPercentage": "0.36"
},
{
"deliveryDatetime": "2023-07-05T08:00:00",
"totalPowerProjection": "51494.86011",
"windPowerProjection": "19536.40000",
"projectedWindPowerPercentage": "0.38"
},
{
"deliveryDatetime": "2023-07-05T09:00:00",
"totalPowerProjection": "50465.31946",
"windPowerProjection": "19923.30000",
"projectedWindPowerPercentage": "0.39"
},
{
"deliveryDatetime": "2023-07-05T10:00:00",
"totalPowerProjection": "49954.50000",
"windPowerProjection": "18650.20000",
"projectedWindPowerPercentage": "0.37"
},
{
"deliveryDatetime": "2023-07-05T11:00:00",
"totalPowerProjection": "50581.95081",
"windPowerProjection": "17208.40000",
"projectedWindPowerPercentage": "0.34"
},
{
"deliveryDatetime": "2023-07-05T12:00:00",
"totalPowerProjection": "51590.05981",
"windPowerProjection": "15325.50000",
"projectedWindPowerPercentage": "0.30"
},
{
"deliveryDatetime": "2023-07-05T13:00:00",
"totalPowerProjection": "51995.96008",
"windPowerProjection": "12763.90000",
"projectedWindPowerPercentage": "0.25"
},
{
"deliveryDatetime": "2023-07-05T14:00:00",
"totalPowerProjection": "54747.06921",
"windPowerProjection": "10438.10000",
"projectedWindPowerPercentage": "0.19"
},
{
"deliveryDatetime": "2023-07-05T15:00:00",
"totalPowerProjection": "59091.64966",
"windPowerProjection": "10229.40000",
"projectedWindPowerPercentage": "0.17"
},
{
"deliveryDatetime": "2023-07-05T16:00:00",
"totalPowerProjection": "63925.77026",
"windPowerProjection": "8638.40000",
"projectedWindPowerPercentage": "0.14"
},
{
"deliveryDatetime": "2023-07-05T17:00:00",
"totalPowerProjection": "67244.49133",
"windPowerProjection": "6877.70000",
"projectedWindPowerPercentage": "0.10"
}
]
}
}
}