How to change the city in the weather on Xiaomi: all the ways of 2026

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.

๐Ÿ“Š How often do you check the weather on your smartphone?
Every day.
Several times a week
Just before the trip.
Rarely or never

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:

  1. Press and hold your finger on the weather widget on the home screen.
  2. In the menu that appears, select the widget settings (or Change, depending on the version).
  3. Slip on the current name of the city - the search bar will open.
  4. Enter the name of the city you want (in English or Russian), and the system will offer you options, and choose the right one.
  5. 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:

  1. Open the Weather app (if it is not on the home screen, search by systems).
  2. Scroll down to the Other Cities block or click on the + (plus) icon in the upper right corner.
  3. In the search box, enter the name of the city. For accuracy, specify the country (for example, "Moscow, Russia").
  4. Select the city you want from the list. It'll be added to the list of tracked locations.
  5. 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:

  1. Slip the name of the city on the list.
  2. In the window that opens, press three points. โ‹ฎ โ†’ Make it a major.
What if the city is not in search?
If the search does not give the desired city, try: 1. Enter the name in English (for example, "Saint Petersburg" instead of "St. Petersburg"). 2. Specify the nearest major city - the weather will be adjusted for distance. 3. Use coordinates: some firmware allows you to enter latitude and longitude manually (for example, 55.7558, 37.6173 for Moscow).

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.

  1. Go to Settings โ†’ Applications โ†’ Application Management.
  2. Find the weather list (or Mi Weather) and tap it.
  3. Select Warehouse โ†’ Clear cache and Clear data.
  4. Reboot your smartphone.
  5. 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:

AnnexAdvantagesDeficienciesReference
AccuWeatherAccurate forecast, widgets for the main screen, weather notificationsAdvertising in the free version, high battery consumptionGoogle Play
Yandex.Weather.Adapted for Russia, minimalist design, low energy consumptionFewer functions than foreign analoguesGoogle Play
Weather & RadarRadar rainfall in real time, forecast by the clockPaid functions (premium subscription)Google Play

To install the third-party app widget on the main screen:

  1. Press and hold the empty space on the main screen.
  2. Select Widgets from the bottom menu.
  3. Find the widget of the installed weather app (e.g. AccuWeather 4ร—2).
  4. 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:

  1. Install a file manager with root access (such as Root Explorer or Solid Explorer).
  2. Cross the path: /data/data/com.miui.weather2/shared_prefs/ Look for the file. miui_weather_preferences.xml or.
  3. Open the file in the text editor and find the lines with city_id location.
  4. Replace the value with the city ID (you can find it on sites like OpenWeatherMap).
  5. 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.

Can I add a few cities to Xiaomiโ€™s weather widget?
Yes, but there will only be one (main) screen on the home screen to switch between cities: Open the Weather app. Scroll down to the list of Other cities. Slip through the right city to see a detailed forecast. Some firmware (e.g. HyperOS) can add a scroll city widget to do this by pressing the blank space on the home screen โ†’ Widgets โ†’ select Weather (extended).
Why is the weather updated every few hours instead of in real time?
That's a limitation. MIUI/HyperOS To update more frequently: Go to Settings โ†’ Battery โ†’ Select apps. Find the Weather and select Unlimited. Enable Auto Update in the settings of the weather app itself. Also check if Saving Traffic is active in the settings. SIM-map.
How to return a standard weather widget if it is missing after resetting?
The widget may have been hidden because of a launcher failure. To get it back: Go to Settings โ†’ Apps โ†’ Application Management. Find the Launcher (or Mi Launcher), open the Storage and press Clear Data. Reboot the smartphone. Once turned on, pinch the empty space on the home screen โ†’ Widgets โ†’ Find the Weather and add it back. If the widget never came, try updating the launcher through the Mi App Store.
Does this method work on Xiaomi with Google firmware (Android One)?
On Xiaomi smartphones with pure Android One (e.g. Mi) A3) Google's standard weather app doesn't have a manual city selection feature, in which case: Use third-party apps (see Method 4). Install an alternative launcher (like Action Launcher) that supports weather widgets. If you want a Xiaomi widget, install it. APK-Application file Weather from MIUI manually (you can find it on forums like this) 4PDA).
Can you change the weather without the internet?
No, you need to connect to the network to change the city, because: The app downloads the list of cities from Xiaomi or AccuWeather servers. Without the Internet, the widget will show the latest stored data (if any). If you are often offline, add the desired cities in advance or use offline weather maps (for example, in the Yandex application.Weather you can save the forecast for viewing without the Internet).