Skip to content

Repository for the perfect sunset web app. Powered by React 16+ Firebase.

Notifications You must be signed in to change notification settings

shottah/perfect-sunset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perfect Sunset

  1. Overview
  2. Technologies
    1. ReactJs
    2. OpenWeatherMap API
  3. Reasoning
    1. Wind Speed
    2. Cloud Coverage
  4. Environment Setup
  5. Commands

This pet project was inspired by the need for social-minded individuals to maximize the potential of beautiful sunsets in images on Instagram, Facebook, or interpersonal sharing.

Overview

This SPA allows a user to search for a location by City and Country name. Doing so accesses OpenWeatherMap API to retrieve the current weather for the location.

Technologies

React Js

This web app is written in ReactJs using the standard Javascript flavor.

OpenWeatherMap API

This web app uses the OpenWeatherMap API to retrieve the current weather for a given location.

Visit API Docs

Reasoning

The evaluation of the quality of a Sunset is highly opinioned and in this implementation, considers the following factors: wind speed, cloud coverage, air pollution, rainfall, and other factors.

Wind Speed

The wind speed is one of more higher weighted factors that is effect the evaluation of the quality of a Sunset. The Beaufort scale is used to categorize the wind speed. A photographer may need to take many photos, and the wind's speed can drastically change the landscape

Read about the Beaufort Scale

Cloud Coverage

The cloud coverage is another important factor, since it adds variety and activity to the image. Here is where a measurable degree of opinionated evaluation is needed, for this reason, cloud coverage ranges where 0.45 < x < 0.65 are preferred.

Environment Setup

secret.json is a file that contains the API key for the OpenWeatherMap API

export const API_KEY = "<your-api-key>";

Commands

yarn install # install dependencies
yarn start # start the app

About

Repository for the perfect sunset web app. Powered by React 16+ Firebase.

Resources

Stars

Watchers

Forks

Packages

No packages published