gueejla
weather
Trying out val town functionality, code from https://docs.val.town/quickstarts/first-cron/
Cron
charmaine
runGetWeather
In the following example code, we are using getWeather from stevekrouse/getWeather . It uses the free wttr.in service to get weather data. Add these lines to your code Replace Brooklyn, NY with your location Click Run Now View the output in the val’s logs import { getWeather } from "https://esm.town/v/stevekrouse/getWeather";
let weather = await getWeather("Brooklyn, NY");
console.log(weather.current_condition[0].FeelsLikeF)
Cron
Updated: May 9, 2024