An (unofficial!) wrapper around the kachelmannwetter.com API.
📚 Detailed information about the API can be found in the official Documentation.
npm install kachelmann-api
Import the module and initialize a new KachelmannAPI instance with your API-Key.
import KachelmannAPI from "kachelmann-api";
const API = new KachelmannAPI("YOUR_API_KEY");
With your authenticated KachelmannAPI instance, you can make these requests.
As described above, some endpoints might not be implemented in this module yet, check their official Documentation for more information.
Used to access the current weather for a given location. Expects argument of type ReqParameters.
const data = await API.getCurrentWeather({
lat: "50.123",
lon: "10.123",
units: "metric",
});
Response: View in official Documentation
Used to access the current weather for a given location. Expects argument of type ReqParameters.
const data = await API.get3DayForecast({
lat: "50.123",
lon: "10.123",
units: "metric",
});
Response: View in official Documentation
Used to access the current weather for a given location. Expects argument of type ReqParameters.
const data = await API.get14DayTrend({
lat: "50.123",
lon: "10.123",
units: "metric",
});
Response: View in official Documentation
Used to access the current weather for a given location. Expects argument of type ReqParameters.
const data = await API.getWeatherSymbol("thunderstorm");
Response: View in official Documentation
type ReqParameters = {
lat: string; // latitude
lon: string; // longitude
units: string; // metric OR imperial
};
- Implement Standard Parameters and Advanced Parameters endpoints
Feel free to open Pull Requests or Issues to fix bugs or propose new features.