1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "bearings": [
12 "6205, C 14.8 kN, C0 7.8 kN, Fr 2 kN, Fa 0.5 kN, 3000 rpm, ISO VG 68 at 70 C, normal cleanliness, 99% reliability, 20000 hours",
13 "deep groove ball bearing, radial load 413 lbf, application factor 1.2, 300 rpm, 30000 hours, 99% reliability",
14 "30206 tapered roller, C 54 kN, C0 63 kN, e 0.37, Y 1.6, Fr 8 kN, Fa 4 kN, 800 rpm, 15000 h",
15 {
16 "title": "Conveyor pulley bearing, duty cycle",
17 "designation": "22212",
18 "c": "204 kN",
19 "c0": "216 kN",
20 "e": 0.28,
21 "y1": 2.4,
22 "y": 3.6,
23 "loads": [
24 {
25 "fr": "30 kN",
26 "fa": "3 kN",
27 "rpm": 120,
28 "share": 70
29 },
30 {
31 "fr": "45 kN",
32 "fa": "5 kN",
33 "rpm": 120,
34 "share": 30
35 }
36 ],
37 "oilGrade": 220,
38 "temperature": 60,
39 "contamination": "typical contamination",
40 "lifeHours": 60000
41 }
42 ]
43};
44
45
46const run = await client.actor("jumblemog/bearing-life-calculator").call(input);
47
48
49console.log('Results from dataset');
50console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
51const { items } = await client.dataset(run.defaultDatasetId).listItems();
52items.forEach((item) => {
53 console.dir(item);
54});
55
56