@opengeoweb/spaceweather
v9.33.0
Published
GeoWeb Spaceweather library for the opengeoweb project
Downloads
573
Keywords
Readme
Spaceweather
React component library with Spaceweather components for the opengeoweb project. This library was generated with Nx.
Installation
npm install @opengeoweb/spaceweather
Use
The front-end uses the axios library to fetch data from the api. Importing components from the Space Weather repository should be wrapped by the ApiProvider component with a specified baseURL. Example:
import { ApiProvider } from '@opengeoweb/api';
import { TimeSeries } from '@opengeoweb/spaceweather';
const Component = () =>
<ApiProvider
baseURL="http://test.com"
appURL="http://app.com"
auth={auth}
onSetAuth={onSetAuth}
createApi={createApi}
authTokenURL="url/tokenrefresh"
>
<TimeSeries />
</ApiProvider>
Documentation
https://opengeoweb.gitlab.io/opengeoweb/docs/spaceweather/
API
Documentation of the API can be found on Swagger (make sure you're connected to the KNMI network). There are three controllers: