GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
The problem:
Google Weather API doesn't provide the numeric wind and humidity values. All 
that we have is the following:
<humidity data="Humidity: 48%"/>
<wind_condition data="Wind: NE at 9 mph"/>
The text differs for different languages. We need to parse it to numeric values.

Workflow:
- Add methods to interface: 
http://code.google.com/p/weather-notification-android/source/browse/src/ru/gelin
/android/weather/WeatherCondition.java - to get wind speed and direction, and 
humidity value. The backward compatibility with existed clients shouldn't be 
broken. The wind speed should be returned in three units: mph, km/h, m/s.
- Add implementation to 
http://code.google.com/p/weather-notification-android/source/browse/src/ru/gelin
/android/weather/google/GoogleWeather.java. Need to ask weather for English and 
system locale (better to use single HTTP connection for both).
- Add unit tests to: 
http://code.google.com/p/weather-notification-android/source/browse/test/ru/geli
n/android/weather/google/GoogleWeatherTest.java - to be sure that everything 
works.

You can download weather information in all available languages by running this 
script: 
http://code.google.com/p/weather-notification-android/source/browse/misc/fetch_s
amples.py. And see all the wind and humidity values by running this: 
http://code.google.com/p/weather-notification-android/source/browse/misc/analyze
_samples.py

Original comment by DNelubin on 2 Aug 2011 at 5:30

  • Changed state: Started

from weather-notification-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024

Original comment by DNelubin on 24 Oct 2011 at 10:02

  • Added labels: Milestone-v0.3

from weather-notification-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Wojciech Zygmunt Porczyk:

there is simple method to get SI unit (km/h): just add &hl=en-gb to
google api query:

http://www.google.com/ig/api?weather=warsaw&hl=en-gb
http://www.google.com/ig/api?weather=warsaw&hl=en

Aallows to display more correct values because of avoiding of conversion

Original comment by DNelubin on 5 May 2012 at 8:22

from weather-notification-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024

Original comment by DNelubin on 27 Dec 2012 at 4:46

from weather-notification-android.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Done.

Original comment by DNelubin on 27 Dec 2012 at 4:48

  • Changed state: Done

from weather-notification-android.

Related Issues (20)

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.