curl --request GET \
--url https://api.eddy.engineer/v1/bim.circuits/{key} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/bim.circuits/{key}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/bim.circuits/{key}', 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.circuits/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/bim.circuits/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/bim.circuits/{key}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.circuits/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"basis": "<string>",
"boards": [
{}
],
"circuits": [
{}
],
"commands": [
{}
],
"complete": true,
"finding_count": 123,
"finding_counts": {},
"findings": [
{}
],
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"loads": [
{}
],
"parameters": [
{}
],
"schema": "<string>",
"work": 123
}The document's boards, circuits, phases and sources as a tree, its loads, phase balance and typed findings (MEP12)
Derived from the model and never stored. A board is a component whose project parameter Board names it; it is fed by one circuit of another board (Supplied by, <board>/<way>) or is an origin fed by a Source, with the source’s entered Source loop impedance; its Distribution system names one of the project’s (a board without one takes its supplying board’s). A load is a component whose family has a power connector; it joins a circuit through Circuit (<board>/<way>), a wire through its system. A circuit’s data (Phase, Protection, Conductor, Cable length…) may be entered on any member and must agree. Phases are entered or follow the board’s pole numbering (way n starts on phase ((n - 1) mod 3) + 1), the basis always stated. Each board’s balance gives the VA on each phase, how far the largest is above the average, the VA of loads whose phase is not known, and a verdict against an entered Phase imbalance limit. Findings: LOAD_WITHOUT_CIRCUIT, LOAD_UNEVALUABLE, LOAD_VOLTAGE_MISMATCH, CIRCUIT_NAME, CIRCUIT_BOARD_UNKNOWN, CIRCUIT_DATA_CONFLICT, CIRCUIT_PHASE_UNKNOWN, CIRCUIT_PHASE_INVALID, PHASE_POLES_MISMATCH, BOARD_NAME_REPEATED, BOARD_WITHOUT_SUPPLY, BOARD_SYSTEM_MISSING, BOARD_SYSTEM_UNKNOWN, SUPPLY_PHASES_MISMATCH, SUPPLY_VOLTAGE_MISMATCH, BOARD_ON_CIRCUIT, PHASE_IMBALANCE, ELECTRICAL_VALUE_INVALID, ELECTRICAL_PARAMETER_WRONG_KIND; a circuit or board with any on it, on a member or below it (a value not read included) is not complete; a project parameter of the wrong kind leaves every one incomplete. Circuit names are compared with board and way trimmed and a numbered way without leading zeros. parameters lists every parameter with its unit and commands the parameter runs that add them. The project’s seeded wire tables are not read. The first 1,000 findings are listed; finding_count counts them all.
curl --request GET \
--url https://api.eddy.engineer/v1/bim.circuits/{key} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.eddy.engineer/v1/bim.circuits/{key}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.eddy.engineer/v1/bim.circuits/{key}', 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.circuits/{key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/bim.circuits/{key}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eddy.engineer/v1/bim.circuits/{key}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/bim.circuits/{key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"basis": "<string>",
"boards": [
{}
],
"circuits": [
{}
],
"commands": [
{}
],
"complete": true,
"finding_count": 123,
"finding_counts": {},
"findings": [
{}
],
"issue_count": 123,
"issues": [
{}
],
"issues_by_class": {},
"key": "<string>",
"loads": [
{}
],
"parameters": [
{}
],
"schema": "<string>",
"work": 123
}Response
OK
R1 of the rules plan: the answer's findings as ss.issue/1 (at most 500, in the answer's own order), beside its own fields, which are unchanged: {id (stable), domain, code (the domain's own), kind, outcome, cause {class: model | method | brief | undetermined, also?, why, by? (the evidence a split reads), read? (whether it was read), census}, subjects, at?, measure?, threshold?, unit?, margin?, message, ladder? (R3: {ladder, tried [{rung, params {key: {value, source: ours | brief}}, result: cleared | improved | no_change | refused, why}], next?, stopped: cleared | question | exhausted | budget}), question? (the id of the typed question it raised)}.