Comments (5)
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.
Original comment by DNelubin
on 24 Oct 2011 at 10:02
- Added labels: Milestone-v0.3
from weather-notification-android.
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.
Original comment by DNelubin
on 27 Dec 2012 at 4:46
from weather-notification-android.
Done.
Original comment by DNelubin
on 27 Dec 2012 at 4:48
- Changed state: Done
from weather-notification-android.
Related Issues (20)
- Updating problem with gprs network connection. HOT 1
- Updating problem with gprs network connection. HOT 1
- Bad look in ICS HOT 1
- Update time in the future
- Display only the number in the status bar, no notification text HOT 2
- Icon for the weather condition HOT 2
- Use openweathermap HOT 1
- temperature icon does not appear in galaxy nexus HOT 2
- Get weather from openweathermap.org HOT 4
- add support for a widget
- add f-droid app entry to External Links HOT 1
- Black skin won't install
- German translation HOT 4
- Add some rows to Italian and Spanish translations HOT 6
- Restart using tags when releasing HOT 1
- Weather update failed: Cannot parse forecast HOT 2
- French translations
- stopped updating weather
- Widget
- m.openweathermap.org URL doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weather-notification-android.