curl --request POST \
--url https://api.eddy.engineer/v1/bim.packaged \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"design": {},
"key": "<string>",
"concentration_table": "<string>",
"on": "<string>",
"state": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.packaged"
payload = {
"design": {},
"key": "<string>",
"concentration_table": "<string>",
"on": "<string>",
"state": "<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({
design: {},
key: '<string>',
concentration_table: '<string>',
on: '<string>',
state: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.packaged', 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.packaged",
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([
'design' => [
],
'key' => '<string>',
'concentration_table' => '<string>',
'on' => '<string>',
'state' => '<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.packaged"
payload := strings.NewReader("{\n \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\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.packaged")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.packaged")
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 \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"basis": [
"<string>"
],
"key": "<string>",
"loads": {},
"notes": [
"<string>"
],
"proposals": [
{}
],
"schema": "<string>",
"systems": [
{}
],
"unknown_records": [
"<string>"
],
"verdict": "<string>"
}Packaged, split and VRF systems: each unit's candidate records checked against the load report and the first that meets selected, the refrigerant tree's lengths, heights and sizes against the record's or the maker's limits, charge and room concentration (MEP25)
A BIM worker on the light lane designs each system design.systems names (packaged: one unit; split: an outdoor and an indoor unit; vrf: an outdoor unit and its indoor units on one refrigerant tree) against design.loads, an ss.mep.loads/1 load report (MEP20’s, with sizing.profiles: true for the coincident peak) or loads entered by a person. Each unit is held to the zones it serves (else the room it stands in); a VRF outdoor unit to its system’s sum (the default) or coincident peak (outdoor_basis). Each candidate record (MEP6 keys, resolved here for the caller; unknown_records lists those that name nothing readable) is checked: rated capacity corrected to the design conditions only by the record’s own curves or curves entered for the unit (dx_cooling_capacity_ft, dx_heating_capacity_ft; for a VRF outdoor unit also the combination-ratio correction and the piping correction factor, as EnergyPlus’s system-curve VRF model takes them); with none, the verdict is meets_at_rating or short_at_rating, never meets. Sensible loads are compared with the corrected total times the sensible heat ratio (the record’s, else entered). Every choice says what its data is (generic, entered by hand and from what, registered Energy Rating data with its day and snapshot) and carries its licence. The refrigerant tree (MEP3’s graph, the line set drawn as one run per segment) gives total, longest actual and equivalent lengths, first branch to farthest, heights and each segment’s size from the maker’s entered table; every limit is the outdoor unit’s record’s or entered in limits, never built in; a breach is a named finding (PIPE_LENGTH_TOTAL_EXCEEDED, HEIGHT_BETWEEN_INDOOR_EXCEEDED, COMBINATION_RATIO_OUT_OF_RANGE, REFRIGERANT_CONCENTRATION_EXCEEDED, …), a missing limit a gap (LIMIT_NOT_GIVEN). The room concentration’s limit is read only from an adopted value table (concentration_table, MEP8, entry refrigerant:<name> in kg/m3, resolved for state on on). Each system’s verdict is meets, incomplete (something not known, named in gaps) or fails (a named finding, or a unit every candidate of which is short). proposals are the engine’s own commands (parameter, modify setting each unit’s Equipment to its selected record); a pipe drawn at another size than the maker’s table gives is named (REFRIGERANT_PIPE_SIZE_DIFFERS), not resized, since resizing alone leaves size steps with no reducer; nothing is changed. Refusals: PACKAGED_BAD_INPUT, PACKAGED_TOO_LARGE, the graph’s SYSTEMS_*, each 400; EQUIPMENT_TOO_MANY_RECORDS 422.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.packaged \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"design": {},
"key": "<string>",
"concentration_table": "<string>",
"on": "<string>",
"state": "<string>"
}
'import requests
url = "https://api.eddy.engineer/v1/bim.packaged"
payload = {
"design": {},
"key": "<string>",
"concentration_table": "<string>",
"on": "<string>",
"state": "<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({
design: {},
key: '<string>',
concentration_table: '<string>',
on: '<string>',
state: '<string>'
})
};
fetch('https://api.eddy.engineer/v1/bim.packaged', 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.packaged",
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([
'design' => [
],
'key' => '<string>',
'concentration_table' => '<string>',
'on' => '<string>',
'state' => '<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.packaged"
payload := strings.NewReader("{\n \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\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.packaged")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.packaged")
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 \"design\": {},\n \"key\": \"<string>\",\n \"concentration_table\": \"<string>\",\n \"on\": \"<string>\",\n \"state\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"basis": [
"<string>"
],
"key": "<string>",
"loads": {},
"notes": [
"<string>"
],
"proposals": [
{}
],
"schema": "<string>",
"systems": [
{}
],
"unknown_records": [
"<string>"
],
"verdict": "<string>"
}Body
systems [{name, kind (packaged | split | vrf), outdoor {component, candidates?, serves?, sensible_heat_ratio?, curves?}, indoor? [same], outdoor_basis? (sum | coincident), heating? (default true), design_conditions? {indoor_wet_bulb_c?, outdoor_dry_bulb_c?, heating_indoor_dry_bulb_c?, heating_outdoor_dry_bulb_c?}, limits? {the maker's values by the record's quantity names}, piping? {drawn_as? (pair | gas | liquid), bend_equivalent_m?, branch_equivalent_m?, sizes? [{up_to_w, liquid_od_mm, gas_od_mm}], additional_charge? [{liquid_od_mm, kg_per_m}], factory_charge_kg?, source?}, refrigerant?}], loads (ss.mep.loads/1)