/thewearapp

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

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