| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | measurements/live (working stable) | parameters/search (in development ;-) ) | ||||||||||||||||||||||||
2 | Curl (FHEM) | Node-RED | Curl (FHEM) | Node-RED | ||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | curl -i -s -k -X 'POST' | if (EVChargingActive == true) { | curl -i -s -k -X 'POST' | if (EVChargingActive == true) { | ||||||||||||||||||||||
5 | ||||||||||||||||||||||||||
6 | msg.method = "post"; | msg.method = "post"; | ||||||||||||||||||||||||
7 | msg.url = "https://192.168.178.62/api/v1/measurements/live/"; | msg.url = "https://192.168.178.62/api/v1/parameters/search/"; | ||||||||||||||||||||||||
8 | msg.payload = `[{"componentId":"IGULD:SELF"}]`; | msg.payload = `[{"queryItems":[{"componentId":"IGULD:SELF"}]}]`; | ||||||||||||||||||||||||
9 | msg.headers = { | msg.headers = { | ||||||||||||||||||||||||
10 | -H 'Host: 192.168.178.62' | "Host": "192.168.178.62", | -H 'Host: 192.168.178.62' | "Host": "192.168.178.62", | ||||||||||||||||||||||
11 | -H 'Connection: close' | "Connection": "close", | -H 'Connection: close' | "Connection": "close", | ||||||||||||||||||||||
12 | -H 'Accept: application/json, text/plain, */*' | "Accept": "application/json, text/plain, */*", | -H 'Accept: application/json, text/plain, */*' | "Accept": "application/json, text/plain, */*", | ||||||||||||||||||||||
13 | -H 'User-Agent: okhttp/3.10.0' | "User-Agent": "okhttp/3.10.0", | -H 'User-Agent: okhttp/3.10.0' | "User-Agent": "okhttp/3.10.0", | ||||||||||||||||||||||
14 | -H 'Sec-Fetch-Site: same-origin' | "Sec-Fetch-Site": "same-origin", | -H 'Sec-Fetch-Site: same-origin' | "Sec-Fetch-Site": "same-origin", | ||||||||||||||||||||||
15 | -H 'Sec-Fetch-Mode: cors' | "Sec-Fetch-Mode": "cors", | -H 'Sec-Fetch-Mode: cors' | "Sec-Fetch-Mode": "cors", | ||||||||||||||||||||||
16 | -H 'Sec-Fetch-Dest: empty' | "Sec-Fetch-Dest": "empty", | -H 'Sec-Fetch-Dest: empty' | "Sec-Fetch-Dest": "empty", | ||||||||||||||||||||||
17 | -H 'Accept-Encoding: gzip, deflate' | "Accept-Encoding": "gzip, deflate", | -H 'Accept-Encoding: gzip, deflate' | "Accept-Encoding": "gzip, deflate", | ||||||||||||||||||||||
18 | -H 'Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' | "Accept-Language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7", | -H 'Accept-Language: de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7' | "Accept-Language": "de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7", | ||||||||||||||||||||||
19 | -H 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' | "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", | -H 'Content-Type: application/json' | "Content-Type": "application/json", | ||||||||||||||||||||||
20 | -H 'Content-Length: 30' | "Content-Length": "30", | -H 'Content-Length: 45' | "Content-Length": "45", | ||||||||||||||||||||||
21 | -H 'Referer: https://192.168.178.62/webui/login' | "Referer": "https://192.168.178.62/webui/login", | -H 'Referer: https://192.168.178.62/webui/Plant:1,IGULD:SELF/configuration/view-parameters' | "Referer": "https://192.168.178.62/webui/Plant:1,IGULD:SELF/configuration/view-parameters", | ||||||||||||||||||||||
22 | -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTA2MTk5OTEsInN1YiI6IldCQWRtaW4iLCJ1aWQiOiIzY2RkYTc1NS04N2E5LTQ3NzItODBmOC0zODY2NzU4ZTc0YzIiLCJleHAiOjE2NTA2MjM1OTF9.47QNbwxoZONkzbxel1K6JQY4XJg5Ai3WfsbklOHRdWs' -b 'node0neukabkiaw6z1cnfbfy1fhohb37.node0' --data-binary '[{"componentId":"IGULD:SELF"}]' https://192.168.178.62/api/v1/measurements/live/ | "Authorization": `Bearer ${token}` | -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2NTA2MTk5OTEsInN1YiI6IldCQWRtaW4iLCJ1aWQiOiIzY2RkYTc1NS04N2E5LTQ3NzItODBmOC0zODY2NzU4ZTc0YzIiLCJleHAiOjE2NTA2MjM1OTF9.47QNbwxoZONkzbxel1K6JQY4XJg5Ai3WfsbklOHRdWs' -b 'node0neukabkiaw6z1cnfbfy1fhohb37.node0' --data-binary '{"queryItems":[{"componentId":"IGULD:SELF"}]}' https://192.168.178.62/api/v1/parameters/search/ | "Authorization": `Bearer ${token}` | ||||||||||||||||||||||
23 | }; | }; | ||||||||||||||||||||||||
24 | ||||||||||||||||||||||||||
25 | msg.cookies = {}; | msg.cookies = {}; | ||||||||||||||||||||||||
26 | msg.rejectUnauthorized = false; | msg.rejectUnauthorized = false; | ||||||||||||||||||||||||
27 | ||||||||||||||||||||||||||
28 | return msg; | return msg; | ||||||||||||||||||||||||
29 | ||||||||||||||||||||||||||
30 | } | } | ||||||||||||||||||||||||
31 | ||||||||||||||||||||||||||
32 | debug | debug | ||||||||||||||||||||||||
33 | 22.4.2022, 13:14:02node: 818d01636a73c62d msg : Object object payload: array[25] topic: "" timestamp: 1650626047481 _msgid: "b0acb56df3bd68fc" method: "post" url: "https://192.168.178.62/api/v1/measurements/live/" headers: object connection: "close" date: "Fri, 22 Apr 2022 11:14:07 GMT" cache-control: "no-cache,no-store,must-revalidate" content-type: "application/json" x-node-red-request-node: "29f96838" cookies: object empty rejectUnauthorized: false statusCode: 200 responseUrl: "https://192.168.178.62/api/v1/measurements/live/" redirectList: array[0] retry: 0 | 22.4.2022, 13:14:04node: 0faa33d44135350f msg : Object object payload: "" topic: "" timestamp: 1650626047481 _msgid: "b0acb56df3bd68fc" method: "post" url: "https://192.168.178.62/api/v1/parameters/search/" headers: object connection: "close" date: "Fri, 22 Apr 2022 11:14:09 GMT" cache-control: "no-cache,no-store,must-revalidate" x-node-red-request-node: "da8506e0" cookies: object empty rejectUnauthorized: false statusCode: 500 responseUrl: "https://192.168.178.62/api/v1/parameters/search/" redirectList: array[0] retry: 0 | ||||||||||||||||||||||||
34 | ||||||||||||||||||||||||||
35 | ||||||||||||||||||||||||||
36 | ||||||||||||||||||||||||||
37 | ||||||||||||||||||||||||||
38 | ||||||||||||||||||||||||||
39 | ||||||||||||||||||||||||||
40 | ||||||||||||||||||||||||||
41 | ||||||||||||||||||||||||||
42 | ||||||||||||||||||||||||||
43 | ||||||||||||||||||||||||||
44 | ||||||||||||||||||||||||||
45 | ||||||||||||||||||||||||||
46 | ||||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | ||||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | ||||||||||||||||||||||||||
53 | ||||||||||||||||||||||||||
54 | ||||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | ||||||||||||||||||||||||||
57 | ||||||||||||||||||||||||||
58 | ||||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | ||||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | ||||||||||||||||||||||||||
65 | ||||||||||||||||||||||||||
66 | ||||||||||||||||||||||||||
67 | ||||||||||||||||||||||||||
68 | ||||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | ||||||||||||||||||||||||||
71 | ||||||||||||||||||||||||||
72 | ||||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | ||||||||||||||||||||||||||
75 | ||||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | ||||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | ||||||||||||||||||||||||||
80 | ||||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 |