Skip to content

lowchuenleik/thewearapp

Repository files navigation

weatherapp

Requirements:

APIs

What it does:

  • fetches hourly data from weatherbit.io
  • stores hourly data into JSONObject fullJSON and also truncates it into a List truncatedData (including on important weather stats)
  • when truncating data, checks if the lastFetched time for getting the hourly data from weatherbit.io was over 1 hour ago. retrieves the data from weatherbit.io if so

Issues/To-improve:

  • modularity (draw UML diagrams)
  • include daily forecast
  • Duration.between(now, lastFetched).getSeconds() may overflow? if used 20 years from now. potential solution: initialise lastFetched as week before when the object was first created
  • fetch daily data

Miscellaneous

For reference

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published