# weather-arg

> A Package to consult the weather in Argentina

Latest version **1.0.2** (published 2021-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install weather-arg
pnpm add weather-arg
yarn add weather-arg
bun add weather-arg
```

## 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.0.2 |
| Published | 2021-09-11 |
| First published | 2020-07-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 11.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Gastón Pereyra |
| Maintainers | gaston.pereyra |
| Keywords | weather, argentina |

## Links

- npm: https://www.npmjs.com/package/weather-arg
- Repository: https://github.com/gastonpereyra/weather-arg
- Homepage: https://github.com/gastonpereyra/weather-arg#readme
- Issues: https://github.com/gastonpereyra/weather-arg/issues
- npm.io page: https://npm.io/package/weather-arg

## Dependencies (1)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.2

## Recent versions

- 1.0.2 (latest) — 2021-09-11
- 1.0.1 — 2020-07-27
- 1.0.0 — 2020-07-27

## README

# :cloud: Weather-arg

## :ok_hand: Code Quality Status
![Tests](https://github.com/gastonpereyra/weather-arg/workflows/Tests/badge.svg)
[![Coverage Status](https://img.shields.io/coveralls/github/gastonpereyra/weather-arg/master.svg)](https://coveralls.io/r/gastonpereyra/weather-arg?branch=master)

## :eyes: Description
A Package to consult the weather in Argentina

## Installation

```
npm i weather-arg
```

## Usage

```js
const WeatherArg = require('weather-arg');

// Get all substation Weather

const substationWeathers = await WeatherArg.getWeathers();

/*
output: [
    {
        id: 9949,
        name: 'Cutral Co',
        province: 'Neuquén',
        lastUpdate: 2020-07-26T22:00:00.000Z,
        humidity: 62,
        pressure: 982.1,
        st: 5.2,
        visibility: 15,
        windSpeed: 14,
        weatherId: 0,
        description: 'Despejado',
        temperature: 7.8,
        windDirection: 'Oeste',
        temperatureDescription: '7.8ºC'
    },
    ...180 more
]
*/

// Get substation Weather by Province

const substationWeathers = await WeatherArg.getWeathersByProvince('Neuquén');

/*
output: [
    {
        id: 9949,
        name: 'Cutral Co',
        province: 'Neuquén',
        lastUpdate: 2020-07-26T22:00:00.000Z,
        humidity: 62,
        pressure: 982.1,
        st: 5.2,
        visibility: 15,
        windSpeed: 14,
        weatherId: 0,
        description: 'Despejado',
        temperature: 7.8,
        windDirection: 'Oeste',
        temperatureDescription: '7.8ºC'
    },
    ...10 more
]
*/

// Get substation Weather by Name

const substationWeathers = await WeatherArg.getWeathersByName('Cutral Co');

/*
output: [
    {
        id: 9949,
        name: 'Cutral Co',
        province: 'Neuquén',
        lastUpdate: 2020-07-26T22:00:00.000Z,
        humidity: 62,
        pressure: 982.1,
        st: 5.2,
        visibility: 15,
        windSpeed: 14,
        weatherId: 0,
        description: 'Despejado',
        temperature: 7.8,
        windDirection: 'Oeste',
        temperatureDescription: '7.8ºC'
    }
]
*/

// Get substation Weather by ID

const substationWeather = await WeatherArg.getWeatherById(9949);

/*
output: {
    id: 9949,
    name: 'Cutral Co',
    province: 'Neuquén',
    lastUpdate: 2020-07-26T22:00:00.000Z,
    humidity: 62,
    pressure: 982.1,
    st: 5.2,
    visibility: 15,
    windSpeed: 14,
    weatherId: 0,
    description: 'Despejado',
    temperature: 7.8,
    windDirection: 'Oeste',
    temperatureDescription: '7.8ºC'
}
*/

// Get substation Weather by Coordinates

const substationWeather = await WeatherArg.getWeatherByCoordinates('-38.93712236','-69.22969054');

/*
output: {
    id: 9949,
    name: 'Cutral Co',
    province: 'Neuquén',
    lastUpdate: 2020-07-26T22:00:00.000Z,
    humidity: 62,
    pressure: 982.1,
    st: 5.2,
    visibility: 15,
    windSpeed: 14,
    weatherId: 0,
    description: 'Despejado',
    temperature: 7.8,
    windDirection: 'Oeste',
    temperatureDescription: '7.8ºC'
}
*/
```

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