Coder Social home page Coder Social logo

weather-project's Introduction

weather-project

This project uses the OpenWeather API for weather information, and the Google Maps API to find the state from lat/lon since OpenWeather does not provide it.

Notes: After adding "default location" and "find my location" functions, I had to make them both rely 100% on coordinates. But they work together now! Find your location, set it as default, then refresh and viola!

Currently only accepts a city name as input, state cannot be specified. Use a ZIP if you get the wrong state.

Hardcoded to US only. OpenWeather provides a city code lookup table which could be used for international cities.

Hardcoded to imperial units. This could be toggled to metric.

The weather forecast is for ~-18-21hrs from the time of the request, then every 24hrs -- not the day's high. This could be updated to add a lo/hi feature, calculated from all the forecasts.

Sometimes the Google Maps city/state lookup adds a ZIP which is a bit ugly. That's an inconsistency with Google's pre-formatted data, could be fixed by manually parsing out the city and state only.

The background changes color based on the weather icon -- grey for cloudy or rainy, yellow for clear daytime, and dark grey for clear nighttime.

weather-project's People

Contributors

paulnstanley avatar amhayslip avatar

Watchers

James Cloos avatar

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.