Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
infoclimat
Advanced tools
Readme
Get weather data from infoclimat.fr API using NodeJS or your browser.
In-browser example : https://www.webpackbin.com/bins/-KflnHus6k5S01VMYcmO
npm i -S infoclimat
var infoclimat = require('infoclimat')
infoclimat.getNextWeatherInFrench("48.856578,2.351828").then(data => {
// Aujourd'hui à Paris, la température sera de 8 degrés environ. Ca va pluvioter un peu. Vous ne verrez pas le ciel de la journée.
})
Return raw API data
infoclimat.getWeather("48.856578,2.351828").then(data => {
console.log(data);
})
result :
{
request_state: 200,
request_key: 'fd543c77e33d6c8a5e218e948a19e487',
message: 'OK',
model_run: '07',
source: 'internal:GFS:1',
'2017-03-21 10:00:00':
{
temperature: { '2m': 281.9, sol: 281.4, '500hPa': -0.1, '850hPa': -0.1 },
pression: { niveau_de_la_mer: 101240 },
pluie: 0.1,
pluie_convective: 0,
humidite: { '2m': 80.5 },
vent_moyen: { '10m': 18.8 },
vent_rafales: { '10m': 26.6 },
vent_direction: { '10m': 292 },
iso_zero: 1128,
risque_neige: 'non',
cape: 0,
nebulosite: { haute: 94, moyenne: 98, basse: 4, totale: 100 }
},
}
see explanations for this values on infoclimat.fr API
Compute average values for today values
infoclimat.getNextWeather("48.856578,2.351828").then(data => {
console.log(data);
})
result
{
temperature: 8.1,
pluie: 0.1,
nuages: 93.75,
vent: 14.075
}
Create readable French 🇫🇷 text descripting today weather
infoclimat.getNextWeatherInFrench("48.856578,2.351828").then(data => {
console.log(data);
})
result
Aujourd'hui à Paris, la température sera de 8 degrés environ. Ca va pluvioter un peu. Vous ne verrez pas le ciel de la journée.
MIT
FAQs
Query infoclimat.fr API
The npm package infoclimat receives a total of 1 weekly downloads. As such, infoclimat popularity was classified as not popular.
We found that infoclimat 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.