# today_weather

> Check climate in a specific city with city name and geographical coordinates. Using api of the website https://openweathermap.org

Latest version **1.1.10** (published 2017-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install today_weather
pnpm add today_weather
yarn add today_weather
bun add today_weather
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.10 |
| Published | 2017-11-12 |
| First published | 2017-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Carlos Marin |
| Maintainers | carlosmarin |
| Keywords | weather, city, geography, coordinates, json |

## Links

- npm: https://www.npmjs.com/package/today_weather
- npm.io page: https://npm.io/package/today_weather

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.1.10 (latest) — 2017-11-12
- 1.1.9 — 2017-11-12
- 1.1.8 — 2017-11-12
- 1.1.6 — 2017-11-12
- 1.0.4 — 2017-11-12

## README

# DOCUMENTATION today_weather

## DESCRIPTION

* Check climate in a specific city with city name and geographical coordinates. 
* Using api of the website https://openweathermap.org

### INSTALLATION
 
 * GLOBAL `npm i today_weather --global`
 * LOCAL `npm i today_weather --save`

### GET API

 * You must create an account at https://openweathermap.org/
 * Subscribe to Current weather data in https://openweathermap.org/api
 Get your Api Key

### USAGE

*Import package

```[javascript]
const today_weather = require('today_weather');
```

*You put your api key

```[javascript]
today_weather.NewOpenWeather('API_KEY');
```

 * PARAMETERS: 
 * 1.- String value : city name.
 * 2.- Number value : geographic coordinate latitude.
 * 3.- Number value : geographic coordinate longitude.

 * You can try only with the city name.
 * To test only with geofraphic coordinates the first parameter must be null.
 
 * THIS FUNCTION RETURNS A PROMISE OBJECT

```[javascript]
var result = today_weather.OpenWeather(param1, param2, param3);
```

### VIEW RESULT

```[javascript]
result.then((result)=> {
   console.log(result);
}).catch((reason) => {
   console.log(reason);
})
```

### LICENSE

MIT

### TEST MOCHA

![Screenshot](./image_test.png?raw=true "TEST")

### CONTACT

**cmaring1994@gmail.com**

---
_Source: https://npm.io/package/today_weather · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
