https://github.com/novagen/smhi-thunder
SMHI Open data thunder API client.
https://github.com/novagen/smhi-thunder
smhi thunder
Last synced: about 1 year ago
JSON representation
SMHI Open data thunder API client.
- Host: GitHub
- URL: https://github.com/novagen/smhi-thunder
- Owner: novagen
- License: mit
- Created: 2022-08-20T09:16:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T18:49:54.000Z (over 2 years ago)
- Last Synced: 2025-03-14T22:39:20.280Z (over 1 year ago)
- Topics: smhi, thunder
- Language: TypeScript
- Homepage:
- Size: 142 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thunder
[](https://codecov.io/gh/novagen/smhi-thunder)
[](https://app.deepsource.com/gh/novagen/smhi-thunder/)
A client for the [SMHI Open Data API](https://opendata.smhi.se/apidocs/pls/index.html) for lightning strikes
## Installation
```bash
npm install @novagen/smhi-thunder
```
## Usage
```js
import { Client, Events } from '@novagen/smhi-thunder';
const client = new Client('my-username', 'my-password');
client.on(Events.STRIKE, (s) => { console.log(s); });
client.start();
```