faint-architect-61419
08/25/2023, 2:23 AMhttps://api.open-meteo.com/v1/forecast?latitude=${lat}&longitude=${lon}¤t_weather=true&hourly=weathercode
async function fetchData(url) {
  const response = await axios.get(url)
  const weatherData = response.data.current_weather
  console.log('---->weather', JSON.stringify(weatherData, null, 2));
  const weatherCode = weatherData.weathercode
  const weatherDescription = weatherCode;
  
  workflow.weatherDescription = weatherDescription;
  console.log('---->session weather description', workflow.weatherDescription);
  // return weatherData
}
console.log(fetchData(url));
https://cdn.discordapp.com/attachments/1144456970443694100/1144456970686976010/CleanShot_2023-08-24_at_22.20.052x.png▾