bmaroti9 / Overmorrow

minimalist colorful weather app
GNU General Public License v3.0
131 stars 5 forks source link

Api keys #5

Closed andersfalt closed 3 months ago

andersfalt commented 3 months ago

How would you configure your api_key.dart file?

andersfalt commented 3 months ago

What api keys are needed for this project?

bmaroti9 commented 3 months ago

Hi! Overmorrow has 2 weather providers: open-meteo and weatherapi. Accessing the open-meteo data doesn't require an api key, but for weatherapi you need a key. I store that key in a file called api_key.dart. For obvious reasons this file hasn't been backed up into github. If you want to configure the file, you just have to create a file called api_key.dart in the lib folder and add this line to it: const String wapi_Key = "your-api-key"
And then the app will use that for api calls.

Hope this answers your question!

bmaroti9 commented 3 months ago

I have added an api key example file in the lib folder that shows instructions on how to use your on api key.