GithubHelp home page GithubHelp logo

karolinalbinsson / project-weather-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from technigo/project-weather-app

0.0 0.0 0.0 1007 KB

Weather Web App

HTML 17.49% JavaScript 51.81% CSS 30.70%

project-weather-app's Introduction

Weather App

This weeks project was to build a weather site fetching data from Open Weather Maps. The focus was to get familiar with using APIs.

The problem

I started with the fetch functions, making sure all the data was retrieved and printed it in the console. When I had my data in place i put it to display in the html.

When I had everything in place for a specified city, I changed the code into using geo-location.

The big problem for me was to display the local time for each location without any GMT converstions done by string methods or Date objects. I made it work after several hours of trial and error by creating a UTC-date and applied some string methods, but I'm not sure whether it is a good solution.

I also don't know what to do with potential errors thrown by the fetch. For now I log the error message but I maybe need to remove this.

For this weeks project I have tried to focus on structure and readable code and I aimed for black level.

View it live

https://karro-weather.netlify.app/

project-weather-app's People

Contributors

karolinalbinsson avatar hannapettersson avatar jenniedalgren avatar idlefingers 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.