• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Forecast api sending incorrect data?

 
Greenhorn
Posts: 18
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Take a look at the json (or my app data) :



Now take a look at the normal data from the offical website:

Temp is rising. Pressure is falling.
Low, 22° at 5AM,
High, 25° at 3PM.
Wind: 3 km/h
Humidity: 91%  // And see this one!
Dew Pt: 22
Visibility: —
Pressure: 1011 mb

My question is I took the recordings at very short instance of time gap but still they differ, why so or this is just some of just my misconceptions ? Any help please, thanks.
 
Saloon Keeper
Posts: 7627
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While it's impossible to know what's going on without knowing the data source (which you didn't tell us), it seems obvious that the JSON uses different units of measurement, like C vs. F for the temperature, and decimal vs. Percent for the humidity. So some conversion may be required. A good API would have documentation that describes in detail what kind of data it returns.
 
Tell me how it all turns out. Here is a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic