GithubHelp home page GithubHelp logo

samwelkinuthia / weatherman Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.93 MB

Ionic mobile weather app utilizing the underground weather API.

TypeScript 48.41% HTML 35.64% CSS 9.98% JavaScript 5.96%
ionic3 angular4 angular-cli weather native

weatherman's Introduction

Weatherman Build Status

forthebadge

An Ionic web application that gives you weather conditions for any input town in kenya.

How to use

The homepage displays default weather conditions for Nairobi. This includes the temprature, cloud conditions etc.

homepage

To find the conditions for another town, The user navigates to the settings page via clicking the settings icon.

At the settings page, A form is present for the town input. The field is already populated with the default value "Nairobi"

form

You can then add the town you want to view.

input

And on saving, You will be redirected to the homepage with the updated weather conditions.

output

Make It Your Own

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Ensure you have the following installed in your machine.

Installing

Once you have installed these do the following:

  • Clone this repository by clicking the clone/download button.

  • Navigate to the directory via your terminal. Something like cd /path/Weatherman/

  • Run npm install to install node dependencies.

  • Navigate to the providers folder.

$ cd/Your_download_path/Weatherman/src/providers/weather
  • Create an environment.ts file in this weather directory.
$ touch environment.ts
  • Obtain an api key from Underground Weather to make the api calls.

  • Add the following to the environment.ts file

import { Injectable } from "@angular/core";

@Injectable()

export class EnvironmentProvider{
  key = 'INSERT YOUR API KEY HERE';
  constructor(){
  }
  provideKey(){
    return this.key
  }
}

Technologies Used

  • Ionic framework
  • Angular 4
  • HTML
  • SASS
  • Underground Weather api

Happy Coding!

Author

Kinuthia Samwel

Acknowledgment

@bradtraversy for initial youtube tutorial.

weatherman's People

Contributors

samwelkinuthia 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.