On Windows 10 users have various options to view the weather forecast for their area. In addition to using weather forecast apps for Windows 10 computers or using the weather forecast widget on Windows 10, users now have a new option that is to use PowerShell. To learn how to view the weather on Windows 10 using PowerShell, readers can refer to the article below of Taimienphi.vn.
On Windows 10, there are very few PowerShell commands that allow you to view the weather forecast. However, by using these commands you can see “severe” changes in the weather in your area, such as storms, rain, changes in temperature during the day, etc. You can also use PowerShell to view the moon phase and get PNG images of the weather forecast.
Use Powershell commands to view the weather on Windows 10
Step 1: Open PowerShell by entering keywords in the Search box on the Start Menu or Search Cortana pane, on the list of search results click to open PowerShell (Desktop app).
Step 2: If the User Account Control (UAC) window appears on the screen, click Yes to continue.
You can also pin PowerShell to the taskbar for ease of use.
Using PowerShell
Step 3: On the PowerShell window, type the following command line into (or you can copy and paste it into PowerShell):
(curl http://wttr.in/?Q0 -UserAgent “curl” ). Contents
Note: in the above command change ? Q0 equals the location, where you want to see the weather forecast.
Such as enter the command below to view the weather forecast in Kolkata:
(curl http://wttr.in/Kolkata -UserAgent “curl” ). Contents
Now you will see detailed weather forecasts for the region you searched for.
Step 4: You can also add the country name after the city name to see the specific weather forecast for that location.
(curl http://wttr.in/”Kolkata,India” -UserAgent “curl” ). Contents
Note that you need to use the correct commands to avoid errors.
Step 5 : To view the weather on Windows 10 using the current Powershell of a certain location you use the command:
(curl wttr.in/Kolkata?0 -UserAgent “curl” ). Contents
In the above command replace Kolkata with the location where you want to see the weather.
Step 6 : To see a “shortened” version of the weather forecast, use the command below to view the weather forecast for the afternoon and evening:
(curl wttr.in/Kolkata?n -UserAgent “curl” ). Contents
Step 7 : To get the weather forecast service on the web browser, enter the below line into the web browser address bar:
wttr.inX/
Note: replace X with the location where you want to see the weather.
Get PNG images weather forecast
Step 8: Here is an image .png the weather forecast as you enter data in the browser address bar. You can also set different parameters for .png photos.
wttr.inX/.png
Replace X with the place or location where you want to see the weather.
For various parameters on the .png image, this command will be useful:
wttr.in/Location_parameters.png
Step 9: Not only English, this weather service also supports many different languages. To change the language you use syntax:
(curl wttr.in/Berlin?lang=de -UserAgent “curl” ). Contents
The languages that the service supports will be displayed.
az bg ca cs cy da de el eo es fi fr hi hr hu is it ja ko mk ml nn pt pl ro ru sk sl sr sr-lat sv tr uk uz vi zh et hy jv ka kk ky lt lv sw th zu bs be
Use PowerShell to view the Moon Phase (lunar calendar)
Step 10: There is also another PowerShell command to display the current moon phase. You use the command below:
(curl wttr.in/Moon -UserAgent “curl” ). Contents
Viewing the weather on Windows 10 using Powershell is one of the useful features on the Windows 10 operating system. You can see the details of how the temperature rises and falls during the day and see it in the language of your choice. You can also view the moon phase at your location.
In previous articles, we also showed how to use PowerShell to trim SSD on Windows 10, check SSD hard drive on your computer, if interested, please refer to how to use PowerShell trim SSD on Windows 10 here.
https://thuthuat.taimienphi.vn/cach-xem-thoi-tiet-tren-windows-10-su-dung-powershell-25092n.aspx
Windows Defender is a program that helps protect computers, prevent dangers from outside, however, sometimes it brings discomfort to users, if you want you can turn off Windows Defender, how to