Skip to main content
Module

x/dyr/mod.ts>getForecast

Access Yr's weather API and Nominatim's API with Deno
Go to Latest
function getForecast
import { getForecast } from "https://deno.land/x/dyr@v2.0.1/mod.ts";

Get forcasted weather.

Parameters

locationName: string

Name of the location, can be village, city etc.

optional
interval = [UNSUPPORTED]

Number of hours ahead of current time.

Returns

Promise<Forecast>

Forecasted weather