curl --request POST \
--url https://api.eddy.engineer/v1/bim.design_basis \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"building_class": "<string>",
"climate_zone": 4,
"date": "<string>",
"edition": "<string>",
"glazing_fraction": 123,
"key": "<string>",
"rooms": "<array>",
"site": {},
"state": "<string>",
"uses": [
"<string>"
],
"weather": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/bim.design_basis"
payload = {
"building_class": "<string>",
"climate_zone": 4,
"date": "<string>",
"edition": "<string>",
"glazing_fraction": 123,
"key": "<string>",
"rooms": "<array>",
"site": {},
"state": "<string>",
"uses": ["<string>"],
"weather": ["<string>"]
}
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({
building_class: '<string>',
climate_zone: 4,
date: '<string>',
edition: '<string>',
glazing_fraction: 123,
key: '<string>',
rooms: '<array>',
site: {},
state: '<string>',
uses: ['<string>'],
weather: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/bim.design_basis', 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/bim.design_basis",
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([
'building_class' => '<string>',
'climate_zone' => 4,
'date' => '<string>',
'edition' => '<string>',
'glazing_fraction' => 123,
'key' => '<string>',
'rooms' => '<array>',
'site' => [
],
'state' => '<string>',
'uses' => [
'<string>'
],
'weather' => [
'<string>'
]
]),
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/bim.design_basis"
payload := strings.NewReader("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\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/bim.design_basis")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.design_basis")
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 \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"apply": {},
"building_class": {},
"climate_zone": {},
"constructions": {},
"design_conditions": {},
"design_days": "<array>",
"edition": {},
"gaps": "<array>",
"ground_temperature_c": {},
"jurisdiction": {},
"key": "<string>",
"licence": "<string>",
"loads_settings": {},
"model": {},
"notes": "<array>",
"room_uses": "<array>",
"rooms": "<array>",
"schema": "<string>",
"site": {},
"sources": "<array>",
"state": "proposed",
"weather": {}
}A starting design basis the person confirms: design days from stored weather, the NCC's constructions and room-use values, each with its source (`ss.mep.basis/1`, HV2)
Made by a BIM worker on the heavy lane. Every value is {value, unit, source, confirm: true}: source names the publication, edition and clause or table it was read from, or says “Eddy starting value, not from a standard”; a value with nothing to source it is null with its gap code, listed in gaps. Never a silent default: nothing enters the model until apply.commands is run with /v1/bim.run.batch. Design days (design_days, MEP20’s settings.design_days shape, wrapped field by field) come from the hourly ss.gp.weather/1 documents named in weather (stored with /v1/gp.weather.snapshot; the basis reads them by key and never fetches: fetching needs the network, ERA5 the operator’s CDS key): the 0.4 % (or 1 %, 2 %) cooling dry bulb by nearest rank over the hours, the mean wet bulb and wind of the hours within 0.5 K of it, the hottest month’s mean daily range, and the 99.6 % (or 99 %) heating dry bulb, each source naming the series, its years and the percentile (design_conditions holds every percentile and the method; this engine’s statistics, not a published design table). With no weather there are no design days (BASIS_WEATHER_NOT_GIVEN). The edition: NCC 2025 or NCC 2022 Volume One, as entered (edition), else the one the ABCB’s adoption table puts in force in state on date (NSW, Queensland, South Australia and Tasmania stay on NCC 2022 until 1 May 2027), else NCC 2025, each said so in edition.source; in NSW, NSW’s variations are applied where they bear on a value (NSW Table D2D18, NSW J7D3(2), and in NCC 2022 NSW J4D6’s tables). Constructions from that edition’s Part J4 deemed-to-satisfy values for the entered climate zone and class (J4D4(1), J4D6 and its tables, Table J4D7), Specification 36’s air films and Specification 37’s area-weighted U-value and solar admittance, giving the glazing’s U and SHGC at the facade’s glazing fraction (the model’s, entered, or a starting value). Room uses: occupancy (Table D2D18), heat per person (Table S35C2n), lighting (Table J7D3a), equipment (Table S35C2l), setpoints (S34C2(e)) and infiltration (S34C2(f)); with key, each room’s use is read from its name unless rooms gives it. Outdoor air is not proposed (BASIS_OUTDOOR_AIR_NOT_SOURCED: no Australian Standard’s table is encoded). loads_settings is /v1/bim.loads’s settings once whole (else null). apply.commands are the engine’s own material, type, parameter and modify commands: stand-in resistance layers on the outdoor and ground types that fall short, ratings on the project’s window types, the room parameters made where missing and each room’s values; a value the model already holds is kept (apply.kept). Uses: office, meeting, lobby, corridor, toilet, staff_room, kitchen, storage, plant, retail, restaurant, cafe, classroom, laboratory, library, auditorium, stair, carpark, bedroom, ward, gym, computer_room. Gaps: BASIS_SITE_NOT_LOCATED (no geocoder: give coordinates), BASIS_WEATHER_NOT_GIVEN, BASIS_WEATHER_FAR, BASIS_WEATHER_INCOMPLETE, BASIS_CLIMATE_ZONE_NOT_GIVEN, BASIS_CLASS_NOT_COVERED, BASIS_ROOM_USE_NOT_GIVEN, BASIS_USE_NOT_IN_TABLE, BASIS_OUTDOOR_AIR_NOT_SOURCED, BASIS_GLAZING_CANNOT_MEET, BASIS_SHGC_UNCONSTRAINED, BASIS_CONSTRUCTION_UNREAD, BASIS_PER_ROOM_GAIN_NEEDS_AREA, BASIS_PARAMETER_UNUSABLE, BASIS_BATCH_TOO_LARGE. Refusals: BASIS_BAD_INPUT and BASIS_WEATHER_UNUSABLE (400), INPUT (an unknown field, 422), an unknown key (404).
curl --request POST \
--url https://api.eddy.engineer/v1/bim.design_basis \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"building_class": "<string>",
"climate_zone": 4,
"date": "<string>",
"edition": "<string>",
"glazing_fraction": 123,
"key": "<string>",
"rooms": "<array>",
"site": {},
"state": "<string>",
"uses": [
"<string>"
],
"weather": [
"<string>"
]
}
'import requests
url = "https://api.eddy.engineer/v1/bim.design_basis"
payload = {
"building_class": "<string>",
"climate_zone": 4,
"date": "<string>",
"edition": "<string>",
"glazing_fraction": 123,
"key": "<string>",
"rooms": "<array>",
"site": {},
"state": "<string>",
"uses": ["<string>"],
"weather": ["<string>"]
}
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({
building_class: '<string>',
climate_zone: 4,
date: '<string>',
edition: '<string>',
glazing_fraction: 123,
key: '<string>',
rooms: '<array>',
site: {},
state: '<string>',
uses: ['<string>'],
weather: ['<string>']
})
};
fetch('https://api.eddy.engineer/v1/bim.design_basis', 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/bim.design_basis",
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([
'building_class' => '<string>',
'climate_zone' => 4,
'date' => '<string>',
'edition' => '<string>',
'glazing_fraction' => 123,
'key' => '<string>',
'rooms' => '<array>',
'site' => [
],
'state' => '<string>',
'uses' => [
'<string>'
],
'weather' => [
'<string>'
]
]),
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/bim.design_basis"
payload := strings.NewReader("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\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/bim.design_basis")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.design_basis")
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 \"building_class\": \"<string>\",\n \"climate_zone\": 4,\n \"date\": \"<string>\",\n \"edition\": \"<string>\",\n \"glazing_fraction\": 123,\n \"key\": \"<string>\",\n \"rooms\": \"<array>\",\n \"site\": {},\n \"state\": \"<string>\",\n \"uses\": [\n \"<string>\"\n ],\n \"weather\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"apply": {},
"building_class": {},
"climate_zone": {},
"constructions": {},
"design_conditions": {},
"design_days": "<array>",
"edition": {},
"gaps": "<array>",
"ground_temperature_c": {},
"jurisdiction": {},
"key": "<string>",
"licence": "<string>",
"loads_settings": {},
"model": {},
"notes": "<array>",
"room_uses": "<array>",
"rooms": "<array>",
"schema": "<string>",
"site": {},
"sources": "<array>",
"state": "proposed",
"weather": {}
}Body
Response
OK
[{use, label, rooms, values: {area_per_person_m2, sensible_per_person_w, latent_per_person_w, activity_per_person_w, people_sensible_fraction, lighting_w_m2, equipment_w_m2, heating_setpoint_c, cooling_setpoint_c, infiltration_ach, outdoor_air_per_person_l_s, outdoor_air_per_area_l_s_m2}}]