Skip to content

a2ke5e1/OnePlus_Weather_Widget

Repository files navigation

OnePlus Weather Widget Build Status

An attempt to clone OnePlus's Classic Weather Widget with android 12 theme support. It uses OpenWeatherMap's API to get weather data.

Instructions:

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?

  1. First clear data and uninstall the app
  2. Install the app
  3. Give location permission for all the time, Going into the settings.
  4. Open your google maps, then tap on locate button ( I don't know why but it helps gps)
  5. Then add Widget to your home screen.

It should work now.

If any issue prevails, Please send me the logs.

Build:

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.

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages