Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dyr/mod.ts

Access Yr's weather API and Nominatim's API with Deno
Go to Latest
import * as dyr from "https://deno.land/x/dyr@v1.3.4/mod.ts";

Access Yr's weather API and Nominatim's names API for getting weather details about a specific location.

Example for current weather

import { getCurrentWeather } from 'https://deno.land/x/dyr/mod.ts';

const currentWeather = getCurrentWeather('Bergen');
// do what you need to do with the weather data.

Example for forecasted weather

import { getForecastedWeather } from 'https://deno.land/x/dyr/mod.ts';

const location = 'Bergen';
const hoursAhead = 5;
const verboseLevel = 3;
const currentWeather = getForecastedWeather(location, hoursAhead, verboseLevel);
// do what you need to do with the weather data.

Functions

Get current weather.

Get forcasted weather.