Skip to content

Commit 86a5d09

Browse files
FlurinFlurin
Flurin
authored and
Flurin
committed
logs
1 parent 561dc3b commit 86a5d09

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

soemi-woeb/src/App.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ function App() {
88
const handleRestCall = async () => {
99
const temp = await getTemp();
1010
const imgRes = await fetch(`http://sömi-weather.ch/api/get-the-star-wars-planets-mapping-for-the-current-temperature-completely-and-utterly-accurate?temp=${temp}`)
11+
console.log(imgRes);
1112
const imgJson = await imgRes.json();
12-
13+
console.log(imgJson);
1314
setPlanet(imgJson);
1415
};
1516

@@ -28,17 +29,23 @@ function App() {
2829
}
2930
)
3031
});
32+
console.log(res);
3133
const json = await res.json();
34+
console.log(json);
3235
const id = await json.id;
36+
console.log(id);
3337

3438
for(let i = 0; i < 10; i++)
3539
{
3640
await delay(500);
3741
try
3842
{
3943
const varRes = await fetch(`http://xn--smi-weather-rfb.ch/moen/engine-rest/history/variable-instance?processInstanceId=${id}&variableName=temp`)
44+
console.log(varRes);
4045
const varJson = await varRes.json();
46+
console.log(varJson);
4147
const temp = varJson.value;
48+
console.log(temp);
4249

4350
return temp;
4451
}

0 commit comments

Comments
 (0)