Building a Location Aware Weather Reporting Widget

By Samuel Oloruntoba

In the past, we looked at adding an extra security layer to our applications by using actionable data from the users IP address.

Today, we’ll build a demo of a simple widget that we can place on our website(s). This widget detects the users location and gives accurate weather data.

We’ll be building our demo in Node.js, but know that you can use any programming language of your choice as we won’t be doing anything that can’t be done in a programming language.

Before we get started, head over to Ipstack and WeatherStack and sign up to get their API keys. WeatherStack, previously known as Apixu will help us collect meteorological data that we can use to get useful information on a particular location.

Getting Started

First, we want to create a project on our machine. To do that, ensure yo