curl --request POST \
--url https://api.eddy.engineer/v1/bim.annual \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"weather": "<string>",
"ground_temperature_c": "<unknown>",
"north_axis_deg": 123,
"run_period": {},
"timesteps_per_hour": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.annual"
payload = {
"key": "<string>",
"weather": "<string>",
"ground_temperature_c": "<unknown>",
"north_axis_deg": 123,
"run_period": {},
"timesteps_per_hour": 123
}
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({
key: '<string>',
weather: '<string>',
ground_temperature_c: '<unknown>',
north_axis_deg: 123,
run_period: {},
timesteps_per_hour: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.annual', 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.annual",
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([
'key' => '<string>',
'weather' => '<string>',
'ground_temperature_c' => '<unknown>',
'north_axis_deg' => 123,
'run_period' => [
],
'timesteps_per_hour' => 123
]),
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.annual"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\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.annual")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.annual")
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 \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\n}"
response = http.request(request)
puts response.read_body{
"building": {},
"conditions": {},
"engine": {},
"gaps": "<array>",
"gaps_total": 123,
"key": "<string>",
"notes": "<array>",
"rooms": "<array>",
"schema": "<string>",
"source": "<string>",
"state": "computed",
"warmup": {},
"weather": {}
}A year on a weather file room by room: heating and cooling energy by month, peak hours, free-float temperatures (`ss.mep.annual/1`, MEP21)
Computed by a BIM worker on the heavy lane by our building energy engine’s run on a weather file (port slices A to D with MEP21’s annual run): the rooms become spaces and zones as the energy model makes them (/v1/bim.energy, MEP16), January 1 is repeated until it converges (warm-up), then each day of the weather file’s year runs in turn, each zone with a setpoint held at it by an ideal system and each zone without one floating. The weather file is a stored blob (POST /v1/blobs, an EPW of one year of hours, January 1 to December 31) named by its key in weather; the site is the file’s own location, as the referee takes it on such a run. Each zone says its year’s and each month’s heating and cooling energy (kWh: the ideal system’s sensible heat to the zone air, the outdoor air it brings in not in it), the year’s peak hourly heating and cooling (the largest hour’s mean rate) with date and hour ending, and the zone air’s highest, lowest and mean hourly temperature with the hours of the extremes (basis says free-floating for a zone with no setpoint); building sums them. Gains are on all year at their entered values; the calendar has no holidays and no daylight saving; the values not entered take the referee’s defaults, each named in conditions.defaults. The engine’s version is in engine; the result is a function of (document, weather, engine, the request). With a gap (a weather file that isn’t one year WEATHER_REFUSED, what stops the energy model, a separation line between rooms, a building past the report’s work budget ANNUAL_TOO_LARGE) state is unevaluable and gaps names each one.
curl --request POST \
--url https://api.eddy.engineer/v1/bim.annual \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"weather": "<string>",
"ground_temperature_c": "<unknown>",
"north_axis_deg": 123,
"run_period": {},
"timesteps_per_hour": 123
}
'import requests
url = "https://api.eddy.engineer/v1/bim.annual"
payload = {
"key": "<string>",
"weather": "<string>",
"ground_temperature_c": "<unknown>",
"north_axis_deg": 123,
"run_period": {},
"timesteps_per_hour": 123
}
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({
key: '<string>',
weather: '<string>',
ground_temperature_c: '<unknown>',
north_axis_deg: 123,
run_period: {},
timesteps_per_hour: 123
})
};
fetch('https://api.eddy.engineer/v1/bim.annual', 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.annual",
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([
'key' => '<string>',
'weather' => '<string>',
'ground_temperature_c' => '<unknown>',
'north_axis_deg' => 123,
'run_period' => [
],
'timesteps_per_hour' => 123
]),
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.annual"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\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.annual")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.annual")
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 \"key\": \"<string>\",\n \"weather\": \"<string>\",\n \"ground_temperature_c\": \"<unknown>\",\n \"north_axis_deg\": 123,\n \"run_period\": {},\n \"timesteps_per_hour\": 123\n}"
response = http.request(request)
puts response.read_body{
"building": {},
"conditions": {},
"engine": {},
"gaps": "<array>",
"gaps_total": 123,
"key": "<string>",
"notes": "<array>",
"rooms": "<array>",
"schema": "<string>",
"source": "<string>",
"state": "computed",
"warmup": {},
"weather": {}
}