1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "requests": [
12 "2000 sq ft house, 2 stories, 8 ft ceilings, R-13 walls, R-38 attic, double-pane windows, climate zone 5",
13 "room 12 x 14 ft, 8 ft ceiling, 2 exterior walls facing south and west, 40 sq ft window on the west, R-13 walls, zone 3, R-30 attic",
14 "1500 sq ft ranch in climate zone 2B, slab, R-19 attic, 200 sq ft of windows, leaky, ducts in the attic",
15 "3000 sq ft two story home, humid, 98°F summer, 30°F winter, low-e windows, ducts in attic",
16 "120 m2 apartment, 2.5 m ceilings, -5°C winter, 32°C summer, apartment above, triple pane",
17 {
18 "floorArea": 1800,
19 "climateZone": "6A",
20 "wallR": 21,
21 "ceilingR": 49,
22 "windowType": "lowe",
23 "ach50": 3,
24 "ventilation": true,
25 "recovery": "hrv",
26 "floorType": "basement",
27 "ducts": "conditioned"
28 }
29 ]
30};
31
32
33const run = await client.actor("jumblemog/hvac-load-calculator").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43