Skip to content

Script to get the current weather based on your public IP Address

License

Notifications You must be signed in to change notification settings

vcgtz/weather_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather App

This script show you the current temperature based on the location of your public IP address.

How to install this project?

Clone this repo:

git clone git@github.com:vcgtz/weather_app.git

Install dependencies:

cd weather_app

npm install

Then you need to generate a .env file:

cp .env.example .env

This project uses the following APIs:

So, before run this app, you need to get an API KEY from Open Weather and IPStack and set them in your .env file.

How to run this project?

Just run this command:

node index.js

And you'll see something like this: image

Notes

The location is not exact, it is based on your public IP address. If you're using a proxy or VPN, you'll see a different location than where you are.

About

Script to get the current weather based on your public IP Address

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published