Code Monkey home page Code Monkey logo

weather's Introduction

weather

Live: weather

Overview

This is a weather application built using the openweathermap api to fetch weather data from cities around the world. On load, the weather data pertaining to your current location via your geolocation ip is displayed. The weather data includes current, low, and high temperatures as well as sunrise and sunset times. Subsequent searches are added to a cities list, thus allowing for switching between cities.

UI

App was designed completely using spectrecss, and although the ui is sparse, the weather data is placed alongside a gif of the current weather condition for fun and immediacy. On the 5-Day tab, a map of the current location is displayed, with a sparkline chart of the 5-Day temperature highs and lows displayed on the chart. Currently this chart is not very readable, essentially missing a legend, data points, axis, etc, but will be most likely be replaced with a better charting library.

Preview

weather app

weather's People

Contributors

cdrani avatar

Stargazers

 avatar

weather's Issues

save entered city names

On page refresh the side menu with the city names are gone. I would suggest storing them in localStorage on first render. On subsequent visits or page reloads, you can then retrieve those cities from storage and just render them accordingly.

multiples of the same city in menu-list

If a user enters the same city multiple times they end up populating the menu-list. To curtail this, perhaps check if city is already in the menu-list. If it is, then just make that as the active city, which would then display that city's weather data.

star a favorite city

Give users the option to star a city. A starred city is always the one displayed on subsequent visits. It would probably be wise to store this is in localStorage as well.

Ref: #2

better chart

Sparkly chart is not informative. I would suggest using either d3 or chartjs to draw the chart with axis and maybe a legend.

render default data from users current location

On initial page load, data should be rendered for user's current location. Currently it's empty, requiring user to input data first. Maybe get the user's current location, probably via geolocation (and in lon and long), retrieve the data, and render it on page load.

Ref: api.openweathermap.org/data/2.5/weather?lat={lat}&lon={lon}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.