Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/novagen/smhi-thunder
SMHI Open data thunder API client.
https://github.com/novagen/smhi-thunder
smhi thunder
Last synced: about 6 hours 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-13T18:49:54.000Z (about 1 year ago)
- Last Synced: 2024-12-03T20:46:11.496Z (19 days 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
[![codecov](https://codecov.io/gh/novagen/smhi-thunder/branch/main/graph/badge.svg?token=R3O89HGZ9A)](https://codecov.io/gh/novagen/smhi-thunder)
[![DeepSource](https://app.deepsource.com/gh/novagen/smhi-thunder.svg/?label=active+issues&show_trend=false&token=YBKIW0IJEWcZRWmIKoAqrR4d)](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();
```