An attempt to clone OnePlus's Classic Weather Widget with android 12 theme support. It uses OpenWeatherMap's API to get weather data.
Before installing read these instructions:
- Allow location access at all times and add the Weather Widget to your home screen, else the weather will not update and "Loading..." will continue to appear.
- After allowing location access, it will take some time to load when booted for the first time. Be patient.
Still Not Working?
- First clear data and uninstall the app
- Install the app
- Give location permission for all the time, Going into the settings.
- Open your google maps, then tap on locate button ( I don't know why but it helps gps)
- Then add Widget to your home screen.
It should work now.
If any issue prevails, Please send me the logs.
In order to test and build the widget on your own, you will require an API key from OpenWeatherMap.
After obtaining API key, After obtaining API key, if building locally, put your API key in environment variable as:
API_KEY : "YOUR_API_KEY"
If you are using github actions, Go to:
Fork's settings > Secrets > Actions > Click on New repository secert > under Name put API_KEY
> under Secret YOUR_API_KEY
> then click Add Secret
You are ready to use github actions to compile your android app.