The Xiaomi weather widget is one of the most popular tools, but it doesnโt always show you the right information for your current location. The reasons may be different: Automatic detection doesnโt work correctly, youโve moved to another city, or you just want to track the weather in multiple locations at once. In this article, weโll look at all the current ways to change location in the MIUI and HyperOS weather app, including hidden settings and workarounds for older versions of firmware.
It's important to understand that the algorithm of a weather widget depends on the version of the operating system and the model of the smartphone. 13 HyperOS Pro process may be different from Redmi Note 10 on MIUI 12.5. We've taken these nuances into account and prepared universal instructions that will work for most devices. If your smartphone behaves outside the box, check the firmware version in Settings. โ The phone. โ Version. MIUI/HyperOS.
Why Xiaomiโs weather shows the wrong city
Before you change your location manually, itโs worth figuring out why your smartphone is not detecting it correctly.
- ๐ Unplugged. GPS geolocation: without satellite access, the phone uses data from mobile towers, which may be inaccurate.
- ๐ Incorrect network settings: if you are connected to VPN or using a proxy, the weather server may receive data from another country.
- ๐ Weather app cache: Outdated data in cache leads to failures in location determination.
- ๐ฑ Limitations MIUI/HyperOS: In some regions (e.g. China), the weather widget is artificially limited.
- ๐ง Google Services Failure: If the phone doesnโt have Google Play Services or if itโs outdated, the automatic detection may not work.
If the problem arises after a firmware update, the new location algorithms are likely to be to blame, in which case manual city change is the most reliable option, and itโs also worth checking if the phone has GPS swapping apps (like Fake GPS Location) that may conflict with the weather widget.
Method 1: Changing the city through the weather widget on the home screen
The easiest method is to edit the location right in the widget. It works on most Xiaomi, Redmi and POCO smartphones with MIUI 11 and later, as well as on HyperOS:
- Press and hold your finger on the weather widget on the home screen.
- In the menu that appears, select the widget settings (or Change, depending on the version).
- Slip on the current name of the city - the search bar will open.
- Enter the name of the city you want (in English or Russian), and the system will offer you options, and choose the right one.
- Save the changes by clicking Ready or ticking in the upper right corner.
If the widget doesn't respond to a long press, try another way: swipe down the home screen to open the search bar, and type "Weather." The app will launch, where the icon will be in the upper right corner. โ๏ธ or โฎ โ Click on it and select City Management.
Turn off VPN or proxy
Turn on GPS in the settings
Update the weather app in Google Play/Mi App Store
Reboot your smartphone-->
Method 2: Manual addition of the city through the app โWeatherโ
If the widget on the home screen doesnโt show up or allows you to change the location, use the Weather app itself (the sun and cloud icon), which is suitable for all versions of MIUI and HyperOS, including older models like Redmi 5 or Mi A2:
- Open the Weather app (if it is not on the home screen, search by systems).
- Scroll down to the Other Cities block or click on the + (plus) icon in the upper right corner.
- In the search box, enter the name of the city. For accuracy, specify the country (for example, "Moscow, Russia").
- Select the city you want from the list. It'll be added to the list of tracked locations.
- To make it a major, click and keep the city on the list, then drag it to the first position.
On some firmware (e.g. MIUI for the global market), after adding a city, you need to confirm it as "main" to do this:
- Slip the name of the city on the list.
- In the window that opens, press three points. โฎ โ Make it a major.
What if the city is not in search?
Method 3: Resetting the weather application settings
If the city changes but resets again after a while, the problem may be in the cache or the app settings.
- Go to Settings โ Applications โ Application Management.
- Find the weather list (or Mi Weather) and tap it.
- Select Warehouse โ Clear cache and Clear data.
- Reboot your smartphone.
- After turning on, re-add the desired city through the Weather app (see Method 2).
Important: After cleaning the data, all the saved cities will be deleted, and the widget settings will be reset to factory ones, and if the problem recurs, check if the antivirus (such as Mi Security) blocks the weather app's access to the Internet or geolocation.
๐ก
If the weather app stopped updating after reset, check the permissions: Settings โ Apps โ Weather โ Permits. Make sure Location, Internet and Auto Run are enabled.
Method 4: Using third-party weather applications
If the standard Xiaomi widget stubbornly does not want to keep the right city, the alternative will be third-party applications. They not only specify the location, but also offer advanced functionality (for example, forecasting for the future). 14 Days or maps of rainfall.-3 tested:
| Annex | Advantages | Deficiencies | Reference |
|---|---|---|---|
| AccuWeather | Accurate forecast, widgets for the main screen, weather notifications | Advertising in the free version, high battery consumption | Google Play |
| Yandex.Weather. | Adapted for Russia, minimalist design, low energy consumption | Fewer functions than foreign analogues | Google Play |
| Weather & Radar | Radar rainfall in real time, forecast by the clock | Paid functions (premium subscription) | Google Play |
To install the third-party app widget on the main screen:
- Press and hold the empty space on the main screen.
- Select Widgets from the bottom menu.
- Find the widget of the installed weather app (e.g. AccuWeather 4ร2).
- Drag it on the screen and set up the city displayed.
The standard Xiaomi widget can be turned off: press it on the home screen โ Delete or Hide.
๐ก
The side of the app often defines the weather more accurately, but consumes more battery. If energy efficiency is more important, use the standard Xiaomi widget with manual city settings.
Method 5: Configuration file editing (for advanced users)
If none of the above methods worked, you can try changing the city manually through system files, which is suitable for users with unlocked bootloader and root rights (for example, on firmware Xiaomi.eu or LineageOS).
Instructions:
- Install a file manager with root access (such as Root Explorer or Solid Explorer).
- Cross the path: /data/data/com.miui.weather2/shared_prefs/ Look for the file. miui_weather_preferences.xml or.
- Open the file in the text editor and find the lines with city_id location.
- Replace the value with the city ID (you can find it on sites like OpenWeatherMap).
- Save the changes, restart the smartphone.
Example of file content (before and after editing):
<string name="city_id">524901</string>
<string name="city_id">498817</string>โ ๏ธ Warning: improper editing of system files can cause firmware malfunctions.Before changes, back up the file!
Frequent mistakes and their solutions
Even after a city change, the weather widget may not work properly in the settings, and here are the typical problems and ways to fix them:
- ๐ City resets after reboot: check if permissions for the Weather app are disabled in Settings โ Annexes โ Permits. Also make sure that the battery settings (Settings) โ Battery โ Application selection) for weather application no restriction Restrict background activity.
- ๐ต Weather is not updated: turn off traffic saving for the app (Settings) โ Connections โ Use of data โ Weather and check your internet connection. If you use dual apps (cloning), make sure the weather widget is linked to your main account.
- ๐ Wrong city despite manual settings: this may be due to geolocation priority. GPS (Settings โ Location โ Regime. โ Device only) or add city manually through the app (see Method 2).
- โ ๏ธ Widget disappeared after the update: reset the launcher settings (Settings) โ Annexes โ Launcher โ Warehouse โ Clear the data. The widget will appear in the list available after the reboot.
If the problem persists, try upgrading to the latest version or installing an alternative launcher (like Nova Launcher) that supports weather widgets from third-party developers.