import axios from "npm:axios@0.21.1";
export default async function main() {
const response = await axios.get(
"https://api.open-meteo.com/v1/forecast?latitude=40.6782&longitude=-73.9442&hourly=temperature_2m¤t_weather=true",
);
const currentTemperature = response.data.current_weather.temperature_2m;
return { temperature: currentTemperature };
}