Git Product home page Git Product logo

angular-weather's Introduction

blip-weather

DEMO

https://jsfiddle.net/rguedes/y9o84ot3/22/

Prerequisites

You need git to clone the blip-weather repository. You must have node.js and its package manager (npm) installed.

Clone blip-weather

Clone the blip-weather repository using [git][git]:

git clone https://github.com/rguedes/blip-weather.git
cd blip-weather

Install Dependencies

run:

npm install

Run the Application

start server:

npm start

Now browse to the app at http://localhost:8000/.

Testing

  • the configuration is found at e2e-tests/protractor-conf.js
  • the end-to-end tests are found in e2e-tests/scenarios.js

Run server:

npm start

In another console run:

npm run protractor

angular-weather's People

Contributors

rguedes avatar

Watchers

 avatar

angular-weather's Issues

Research Yahoo API

Weather

Search Query URL:
https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text='Porto, pt') and u='c'&format=json

Output:
{"query":{"count":1,"created":"2016-05-18T12:40:55Z","lang":"en-US","results":{"channel":{"units":{"distance":"mi","pressure":"in","speed":"mph","temperature":"F"},"title":"Yahoo! Weather - Porto, Porto, PT","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-746203/","description":"Yahoo! Weather for Porto, Porto, PT","language":"en-us","lastBuildDate":"Wed, 18 May 2016 01:40 PM WEST","ttl":"60","location":{"city":"Porto","country":"Portugal","region":" Porto"},"wind":{"chill":"66","direction":"320","speed":"22"},"atmosphere":{"humidity":"62","pressure":"1010.0","rising":"0","visibility":"16.1"},"astronomy":{"sunrise":"6:12 am","sunset":"8:50 pm"},"image":{"title":"Yahoo! Weather","width":"142","height":"18","link":"http://weather.yahoo.com","url":"http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif"},"item":{"title":"Conditions for Porto, Porto, PT at 12:00 PM WEST","lat":"41.14938","long":"-8.61034","link":"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-746203/","pubDate":"Wed, 18 May 2016 12:00 PM WEST","condition":{"code":"34","date":"Wed, 18 May 2016 12:00 PM WEST","temp":"67","text":"Mostly Sunny"},"forecast":[{"code":"30","date":"18 May 2016","day":"Wed","high":"68","low":"53","text":"Partly Cloudy"},{"code":"30","date":"19 May 2016","day":"Thu","high":"70","low":"53","text":"Partly Cloudy"},{"code":"30","date":"20 May 2016","day":"Fri","high":"71","low":"55","text":"Partly Cloudy"},{"code":"39","date":"21 May 2016","day":"Sat","high":"64","low":"55","text":"Scattered Showers"},{"code":"12","date":"22 May 2016","day":"Sun","high":"63","low":"54","text":"Rain"},{"code":"30","date":"23 May 2016","day":"Mon","high":"67","low":"53","text":"Partly Cloudy"},{"code":"12","date":"24 May 2016","day":"Tue","high":"65","low":"58","text":"Rain"},{"code":"39","date":"25 May 2016","day":"Wed","high":"65","low":"57","text":"Scattered Showers"},{"code":"30","date":"26 May 2016","day":"Thu","high":"66","low":"56","text":"Partly Cloudy"},{"code":"30","date":"27 May 2016","day":"Fri","high":"67","low":"55","text":"Partly Cloudy"}],"description":"<![CDATA[<img src=\"http://l.yimg.com/a/i/us/we/52/34.gif\"/>\n<BR />\n<b>Current Conditions:</b>\n<BR />Mostly Sunny\n<BR />\n<BR />\n<b>Forecast:</b>\n<BR /> Wed - Partly Cloudy. High: 68Low: 53\n<BR /> Thu - Partly Cloudy. High: 70Low: 53\n<BR /> Fri - Partly Cloudy. High: 71Low: 55\n<BR /> Sat - Scattered Showers. High: 64Low: 55\n<BR /> Sun - Rain. High: 63Low: 54\n<BR />\n<BR />\n<a href=\"http://us.rd.yahoo.com/dailynews/rss/weather/Country__Country/*https://weather.yahoo.com/country/state/city-746203/\">Full Forecast at Yahoo! Weather</a>\n<BR />\n<BR />\n(provided by <a href=\"http://www.weather.com\" >The Weather Channel</a>)\n<BR />\n]]>","guid":{"isPermaLink":"false"}}}}}}

Places

https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20geo.places%20where%20text%20=%20%27Porto*%27&format=json

Technologies

Client Framework: AngularJS (v1)
Server Framework: ????
Unit Test: protractortest.org

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.