curl --request POST \
--url https://api.eddy.engineer/v1/bim.section_j \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"building_class": "<string>",
"climate_zone": 123,
"key": "<string>",
"reference": {},
"services": {},
"state": "<string>",
"accepted_reference": "<string>",
"emissions": {},
"emissions_table": "<string>",
"on": "<string>",
"pv_export_credited": true,
"pv_loss_fraction": 123,
"run": {},
"transitory_rooms": [
"<string>"
],
"weather": "<string>",
"weather_record": {}
}
'import requests
url = "https://api.eddy.engineer/v1/bim.section_j"
payload = {
"building_class": "<string>",
"climate_zone": 123,
"key": "<string>",
"reference": {},
"services": {},
"state": "<string>",
"accepted_reference": "<string>",
"emissions": {},
"emissions_table": "<string>",
"on": "<string>",
"pv_export_credited": True,
"pv_loss_fraction": 123,
"run": {},
"transitory_rooms": ["<string>"],
"weather": "<string>",
"weather_record": {}
}
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: 123,
key: '<string>',
reference: {},
services: {},
state: '<string>',
accepted_reference: '<string>',
emissions: {},
emissions_table: '<string>',
on: '<string>',
pv_export_credited: true,
pv_loss_fraction: 123,
run: {},
transitory_rooms: ['<string>'],
weather: '<string>',
weather_record: {}
})
};
fetch('https://api.eddy.engineer/v1/bim.section_j', 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.section_j",
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' => 123,
'key' => '<string>',
'reference' => [
],
'services' => [
],
'state' => '<string>',
'accepted_reference' => '<string>',
'emissions' => [
],
'emissions_table' => '<string>',
'on' => '<string>',
'pv_export_credited' => true,
'pv_loss_fraction' => 123,
'run' => [
],
'transitory_rooms' => [
'<string>'
],
'weather' => '<string>',
'weather_record' => [
]
]),
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.section_j"
payload := strings.NewReader("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\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.section_j")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.section_j")
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\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\n}"
response = http.request(request)
puts response.read_body{
"changes": "<array>",
"digest": "<string>",
"emissions_factors": {},
"engine": {},
"gaps": "<array>",
"gaps_total": 123,
"kept_as_proposed": "<array>",
"key": "<string>",
"method": "<array>",
"ncc_acceptance": {},
"notes": "<array>",
"pv": {},
"reference": {},
"result": "<string>",
"runs": {},
"schema": "<string>",
"source": "<string>",
"state": "proposed",
"tests": {},
"weather": {}
}The Section J report (NCC J1V3): annual greenhouse gas emissions against a reference building, and the reference proposed for review first (`ss.mep.section_j/1`, MEP26). Never a claim of NCC acceptance
Two modes on one document. mode: propose builds the reference building of NCC J1V3 (Specification 34, S34C2) from the document’s own energy model and the person’s pack of DTS values (reference: walls’, roofs’ and floors’ R-values of their layers, glazing U and SHGC, Part J7 lighting, Part F6 outdoor air, the PV method), and lists every change with its clause and the source of its value; the NCC’s own values (walls’ solar absorptance 0.6, infiltration 0.35 or 0.7 ACH, the thermostat ranges, Tables J9D5a and J9D5b, 225 W/m²) are built in, CC BY 4.0. It answers ss.mep.section_j.reference/1 with a digest. mode: report (the default) runs only on an accepted digest (accepted_reference) and a weather_record (file, version, year, scenario: NCC 2025 refuses anything but year 2050 under RCP8.5, S34C3(1)(d)): three years on the stored weather file (weather, POST /v1/blobs) through the annual engine (MEP21) in a worker on the heavy lane, the proposed building, the reference, and the proposed building with the reference’s services; each year’s zone loads and outdoor air become fuel by the entered seasonal efficiencies (services.proposed, services.reference), PV is generated from the file’s global horizontal irradiance, and fuel becomes emissions by Table S34C3 for the edition and state (built in, every state but the ACT), entered factors (emissions) or an adopted value table (emissions_table, its id, resolved here for state on on). It answers each run’s end uses, fuels and emissions, the emissions test (97 % of the reference for NCC 2025, 100 % for 2022), the services test, the comfort test asked for (comfort: dry_bulb or zone_loads per Specification 48 are computed; pmv is refused by name), and ncc_acceptance.claimed: false with every reason. A gap (no weather record, a stale or missing digest REFERENCE_NOT_ACCEPTED, the ACT without factors, a building past the work budget SECTION_J_TOO_LARGE, what stops the energy model) is state: unevaluable with gaps naming each one.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.section_j \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"building_class": "<string>",
"climate_zone": 123,
"key": "<string>",
"reference": {},
"services": {},
"state": "<string>",
"accepted_reference": "<string>",
"emissions": {},
"emissions_table": "<string>",
"on": "<string>",
"pv_export_credited": true,
"pv_loss_fraction": 123,
"run": {},
"transitory_rooms": [
"<string>"
],
"weather": "<string>",
"weather_record": {}
}
'import requests
url = "https://api.eddy.engineer/v1/bim.section_j"
payload = {
"building_class": "<string>",
"climate_zone": 123,
"key": "<string>",
"reference": {},
"services": {},
"state": "<string>",
"accepted_reference": "<string>",
"emissions": {},
"emissions_table": "<string>",
"on": "<string>",
"pv_export_credited": True,
"pv_loss_fraction": 123,
"run": {},
"transitory_rooms": ["<string>"],
"weather": "<string>",
"weather_record": {}
}
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: 123,
key: '<string>',
reference: {},
services: {},
state: '<string>',
accepted_reference: '<string>',
emissions: {},
emissions_table: '<string>',
on: '<string>',
pv_export_credited: true,
pv_loss_fraction: 123,
run: {},
transitory_rooms: ['<string>'],
weather: '<string>',
weather_record: {}
})
};
fetch('https://api.eddy.engineer/v1/bim.section_j', 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.section_j",
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' => 123,
'key' => '<string>',
'reference' => [
],
'services' => [
],
'state' => '<string>',
'accepted_reference' => '<string>',
'emissions' => [
],
'emissions_table' => '<string>',
'on' => '<string>',
'pv_export_credited' => true,
'pv_loss_fraction' => 123,
'run' => [
],
'transitory_rooms' => [
'<string>'
],
'weather' => '<string>',
'weather_record' => [
]
]),
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.section_j"
payload := strings.NewReader("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\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.section_j")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"building_class\": \"<string>\",\n \"climate_zone\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.section_j")
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\": 123,\n \"key\": \"<string>\",\n \"reference\": {},\n \"services\": {},\n \"state\": \"<string>\",\n \"accepted_reference\": \"<string>\",\n \"emissions\": {},\n \"emissions_table\": \"<string>\",\n \"on\": \"<string>\",\n \"pv_export_credited\": true,\n \"pv_loss_fraction\": 123,\n \"run\": {},\n \"transitory_rooms\": [\n \"<string>\"\n ],\n \"weather\": \"<string>\",\n \"weather_record\": {}\n}"
response = http.request(request)
puts response.read_body{
"changes": "<array>",
"digest": "<string>",
"emissions_factors": {},
"engine": {},
"gaps": "<array>",
"gaps_total": 123,
"kept_as_proposed": "<array>",
"key": "<string>",
"method": "<array>",
"ncc_acceptance": {},
"notes": "<array>",
"pv": {},
"reference": {},
"result": "<string>",
"runs": {},
"schema": "<string>",
"source": "<string>",
"state": "proposed",
"tests": {},
"weather": {}
}Body
The pack: source, wall_r_m2k_w?, roof_r_m2k_w?, floor_r_m2k_w? (layers only, films excluded), glazing? {u_value, shgc}, lighting_w_m2, lighting_by_room?, outdoor_air_l_s_person?, outdoor_air_l_s_m2?, pv? {method: conditioned_area | roof_area, effective_roof_area_m2?} (NCC 2025 only)
Response
OK