Met Office Fetch
A simple package to fetch data from the uk met office API library.
installation
Just do
npm install metoffice-fetch
or
yarn add metoffice-fetch
Example
; const fetchData = async { try const result = await ; console; catch error console; };
References
Function | Return Type | Description |
---|---|---|
FetchHourlyData(params, headers) | Promise<MetOfficeResponse> | Fetches the hourly data |
FetchThreeHourlyData(params, headers) | Promise<MetOfficeResponse> | Fetches the Three Hourly data |
FetchDailyData(params, headers) | Promise<MetOfficeResponse> | Fetches the Daily Data |
The inputs param for all these functions are the same:
params: excludeParameterMetadata?: boolean; includeLocationName?: boolean; latitude: number; longitude: number; headers: clientId: string; clientSecret: string;
Authors
Ali Rezaee nlndipi@hotmail.com