Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
inpe-weather-api
Advanced tools
A unofficial NodeJS interface to brazillian INPE's Weather Forecast Webservice.
This service informs the climatic conditions in any city of Brazil.
$ npm install --save inpe-weather-api
//commonJS require
const InpeForecast = require('inpe-weather-api')
//ES2015 style
import * as InpeForecast from 'inpe-weather-api'
getCities(cityOrPrefix*)
getAirportStatus(airportCode*)
{
"codigo": "SBBQ",
"atualizacao": "26/01/2018 14:00:00",
"pressao": "1018",
"temperatura": "21",
"tempo": "c",
"tempo_desc": "Chuvas periódicas",
"umidade": "83",
"vento_dir": "130",
"vento_int": "9",
"visibilidade": "6000"
}
getCapitalsForecast()
getForecast(cityCode*,nextSevenDays,isLatLongPrev, isExtended)
//City code
return getForecast('244',true)
.then(response => /*...*/)
//With lat,long
return getForecast('-22.90/-47.06',true,true)
.then(response => /*...*/)
{
"nome": "São Paulo",
"uf": "SP",
"atualizacao": "2018-04-14",
"previsao": [
{
"dia": "2018-04-14",
"tempo": "pt",
"maxima": "26",
"minima": "18",
"iuv": "9.0"
},
{
"dia": "2018-04-15",
"tempo": "ci",
"maxima": "21",
"minima": "17",
"iuv": "9.0"
},
{
"dia": "2018-04-16",
"tempo": "ci",
"maxima": "22",
"minima": "17",
"iuv": "10.0"
},
{
"dia": "2018-04-17",
"tempo": "n",
"maxima": "24",
"minima": "16",
"iuv": "10.0"
},
{
"dia": "2018-04-18",
"tempo": "pn",
"maxima": "25",
"minima": "15",
"iuv": "9.0"
},
{
"dia": "2018-04-19",
"tempo": "pn",
"maxima": "26",
"minima": "16",
"iuv": "9.0"
},
{
"dia": "2018-04-20",
"tempo": "vn",
"maxima": "26",
"minima": "16",
"iuv": "9.0"
}
]
}
getUVIncidence(cityCode*)
{
"nome": "São Paulo",
"uf": "SP",
"data": "14/04/2018",
"hora": "12h45",
"iuv": "4"
}
getWavesForecast(cityCode*, day)
Feel confortable to make some donations to maintain and improve the project development. Any donations are very welcome!
Bitcoin: bc1qvulnqxftrscmtn073wwx66szlen30tarnuhqlc
Ethereum: 0xB98D8452002Ef3a6Ca949daAE5846535B174EBcA
Lunes: 37s3C6u5BNnwU7xtrbYPAwKB9juHskmgbxd
FAQs
NodeJS interface to INPE Weather Forecast API
The npm package inpe-weather-api receives a total of 0 weekly downloads. As such, inpe-weather-api popularity was classified as not popular.
We found that inpe-weather-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.