ClearWeather API
Learn more about the ClearWeather API.
Getting Started
Installation
npm
npm install clearweather-api
yarn
yarn add clearweather-api
Usage
const current = await fetchCurrentWeather({
userId: "2mbhxnu4p6l11f67nx",
openWeatherApiKey: "86f96bf40e937f815c815836aa7bc224",
coords: {
latitude: "43.53",
longitude: "-22.9",
},
cacheTime: 3600,
fetchEnv: "browser",
});
Options
const options = {
userId: "";
openWeatherApiKey: "<openweathermap-api-key>";
coords: {
latitude: string,
longitude: string,
};
cacheTime: number
};