Store a load, generation or weather profile (`ss.power.profile/1`): whole, from a CSV file, or from Ausgrid's solar home layout
curl --request POST \
--url https://api.eddy.engineer/v1/power.profile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ausgrid": "<string>",
"csv": "<string>",
"include_values": true,
"options": {},
"profile": {}
}
'import requests
url = "https://api.eddy.engineer/v1/power.profile"
payload = {
"ausgrid": "<string>",
"csv": "<string>",
"include_values": True,
"options": {},
"profile": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ausgrid: '<string>',
csv: '<string>',
include_values: true,
options: {},
profile: {}
})
};
fetch('https://api.eddy.engineer/v1/power.profile', 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.eddy.engineer/v1/power.profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ausgrid' => '<string>',
'csv' => '<string>',
'include_values' => true,
'options' => [
],
'profile' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/power.profile"
payload := strings.NewReader("{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/power.profile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Power Systems
Store a load, generation or weather profile (`ss.power.profile/1`): whole, from a CSV file, or from Ausgrid's solar home layout
A profile is one time series with its time stated, never assumed: `time` is `{"base": "relative"}` (value k is k steps after the start of whatever run uses it, as an OpenDSS load shape) or `{"base": "calendar", "start": "2025-07-01T00:00:00", "utc_offset_min": 600, "zone": "AEST"}` (a fixed offset; there is no default zone and no daylight saving). It is stored under the BLAKE3 of its canonical bytes; a network binds it by that key (`profiles` of `ss.power.network/1`), so many loads share one. Give exactly one of: `profile` (the document: `schema`, `name`, `kind` (load, generation, irradiance, temperature, price, dispatch, charging, multiplier), `unit` (per_unit, w, var, celsius, w_per_m2, per_wh), `time`, `step_s` or `times_s`, `values`, `hold` (step | linear), `repeats`, `source`, `licence`); `csv` (a file's text) with `options` {`name`, `kind`, `unit`, `time`, `step_s`, `time_column` (header name or position; timestamps `YYYY-MM-DD HH:MM[:SS]` in the stated zone), `value_column`, `header`, `scale` (1000 for kW read as W), `hold`, `repeats`, `source`, `licence`}: a gap, a repeated or shifted timestamp, a missing value is refused naming the row; or `ausgrid` (Ausgrid's solar home electricity file's text, UD17) with `options` {`customer`, `channel`, `utc_offset_min` (stated: the file's clock), `zone`, `unit`, `first_date`, `last_date`, `snapshot`}. Refused: `POWER_PROFILE_INVALID` (400: the document or the file does not read, by name), `POWER_CAP` (413), `POWER_REQUEST` (400), `POWER_SETTINGS` (400: `options`), `AU_AUSGRID_LAYOUT` (422).
POST
/
v1
/
power.profile
Store a load, generation or weather profile (`ss.power.profile/1`): whole, from a CSV file, or from Ausgrid's solar home layout
curl --request POST \
--url https://api.eddy.engineer/v1/power.profile \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"ausgrid": "<string>",
"csv": "<string>",
"include_values": true,
"options": {},
"profile": {}
}
'import requests
url = "https://api.eddy.engineer/v1/power.profile"
payload = {
"ausgrid": "<string>",
"csv": "<string>",
"include_values": True,
"options": {},
"profile": {}
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ausgrid: '<string>',
csv: '<string>',
include_values: true,
options: {},
profile: {}
})
};
fetch('https://api.eddy.engineer/v1/power.profile', 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.eddy.engineer/v1/power.profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ausgrid' => '<string>',
'csv' => '<string>',
'include_values' => true,
'options' => [
],
'profile' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/power.profile"
payload := strings.NewReader("{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/power.profile")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/power.profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ausgrid\": \"<string>\",\n \"csv\": \"<string>\",\n \"include_values\": true,\n \"options\": {},\n \"profile\": {}\n}"
response = http.request(request)
puts response.read_body{}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
application/json
Response
key (b3:<hex>; the network's binding names the hex), blob_uri, schema, name, kind, unit, time, step_s, values (the count), duration_s, repeats, hold, min, max, mean, source, licence, ausgrid (what the Ausgrid reader took), document where asked
The response is of type object.