alexkowsik /
react-weather-app
A React.js weather app (5 day forecast) using OpenWeatherMap's API. Deployed via Netlify.
69/100 healthLoading repository data…
nahidulhasan / repository
Node Js Weather App is a simple module for obtaining weather information
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Node Js Weather App is a simple module for obtaining weather information.
You need to have NodeJS installed in your machine.
npm link
Now you can just run the following in terminal:
weather
By default you'll get current weather of Dhaka City.
If you want to get weather of a different city, run:
weather -c CITY_NAME
npm install nodejs-weather-app
This library exposes two methods:
getWeather, which will return a PromiseprintWeather, which will show the output as a readable messageFor example, you can use the library like this:
var nodejsWeatherApp = require('nodejs-weather-app');
nodejsWeatherApp.getWeather().then(val => {
nodejsWeatherApp.printWeather(val);
});
If you don't specify any city and run the code, you will get Dhaka city temperature.
Output :
Current Temperature in Dhaka is 24.6°C
If you want to get specific city temperature, then pass the city name as a parameter of getWeather method:
var nodejsWeatherApp = require('nodejs-weather-app');
nodejsWeatherApp.getWeather('New York').then(val => {
nodejsWeatherApp.printWeather(val);
});
Output :
Current Temperature in New York is 7.82°C
Basically, when the getWeather Promise will be resolved it will give a detailed weather object. So, you can easily modify it if necessary.
Like following:
var nodejsWeatherApp = require('nodejs-weather-app');
nodejsWeatherApp.getWeather().then(val => {
printWeather(val);
});
function printWeather(weather) {
let message = `Temperature in ${weather.name} is ${weather.main.temp}°C`;
console.log(message);
}
If you want to see the full weather object, try this:
function printWeather(weather) {
console.log(weather);
}
Output :
{
"coord": {
"lon": 85.17,
"lat": 26.67
},
"weather": [
{
"id": 803,
"main": "Clouds",
"description": "broken clouds",
"icon": "04n"
}
],
"base": "stations",
"main": {
"temp": 20.73,
"pressure": 1016.99,
"humidity": 92,
"temp_min": 20.73,
"temp_max": 20.73,
"sea_level": 1023.25,
"grnd_level": 1016.99
},
"wind": {
"speed": 4.26,
"deg": 98.5038
},
"clouds": {
"all": 68
},
"dt": 1525197016,
"sys": {
"message": 0.002,
"country": "IN",
"sunrise": 1525131665,
"sunset": 1525179120
},
"id": 1273043,
"name": "Dhaka",
"cod": 200
}
Node Js Weather App is open-sourced software licensed under the MIT license
Selected from shared topics, language and repository description—not editorial ratings.
alexkowsik /
A React.js weather app (5 day forecast) using OpenWeatherMap's API. Deployed via Netlify.
69/100 healthkdubss /
NodeJS Command-Line-Interface weather app, which uses the CLI to fetch the current weather conditions for a geospatial location input. Python Flask server written to fetch/parse JSON data from the Dark Sky API, and, D3 used to visualize weather data. Currently, the browser front end is in development, but the goal is to create the Front-End using React
28/100 healthGrezor /
🔆Creation of a weather application, REST API, Node.JS❄️Openweathermap site for weather api and mapbox locations
23/100 healthApp is live here : https://kh-nishad.herokuapp.com/
30/100 healthabongsjoel /
A weather app built using Node.js and the Express.js server as well as handlebars and it's hosted on Heroku. The site uses data from mapbox.com and darksky.net.
34/100 healthErfiDev /
Weather App Made By NodeJS :)
32/100 health