import * as dyr from "https://deno.land/x/dyr@v2.1.0/mod.ts";
Access Yr's weather API for getting weather forecast about a specific location.
Example for current weather
import { getCurrent } from 'https://deno.land/x/dyr/mod.ts';
const currentWeather = getCurrent('Bergen');
// do what you need to do with the weather data.
Example for forecasted weather
import { getForecast } from 'https://deno.land/x/dyr/mod.ts';
const location = 'Bergen';
const hoursAhead = 5;
const currentWeather = getForecast(location, hoursAhead);
Functions
Get current weather. | |
Get forcasted weather. |