CorvetteCole / PixelWatchFace

A minimalistic and open-source watchface for WearOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace watch weather API

CorvetteCole opened this issue · comments

  • Remove OpenWeatherMap weather API

  • Create overall weather api class to allow for future usage of multiple weather APIs

  • get worldwide METAR data and see if that is accurate enough (see here https://www.aviationweather.gov/help/webservice?page=metarjson)

  • attempt to get the current weather using weather.gov api

  • if it fails, fall back to using the other APIs and

    • hold one location fix per day in memory/storage, check if new location is over a threshold to detect major travel (use distanceTo). if so, set a flag and attempt to use weather.gov
  • Get the weather forecast for as close to the current time as possible using https://api.met.no/ and passing in our coordinates, including altitude

  • Switch to using the icons from met.no, dynamically retrieving them as needed and saving them once they have been retrieved so they don't have to be in the future (will reduce install size a ton too).

METAR parsing support from the Aviation Weather Center is now complete.

API falling back etc is complete.

New icons is complete.

Remaining APIs need to be implemented (easy) and this will be considered done