They might be closer to you and more accurate than the city in general. If you’re familiar with the three letter airport codes in your area, you can use those too. You can also specify cities the way they’re written in Unix timezones.ĭon’t use spaces unless you like strange and inaccurate results. Now, if you would like the weather in a different city, you can specify that with a slash at the end of wttr.in. It’s reasonably accurate, unless you’re using a VPN, of course. wttr.in will automatically try to detect your location based on your IP address. It’s really simple to grab your local weather. By using cURL, you can access, you can get your results directly in the terminal. is a website that allows you to search for weather forecasts anywhere in the world, and it displays he results in ASCII characters. It’s be convenient to be able to retrieve the latest weather forecast right from your terminal without opening up a web browser, wouldn’t it? What about scripting it or setting a cron job? Well, you can. $ – requires given linux commands to be executed as a regular non-privileged user.# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command.RequirementsĪ working Linux install with an Internet connection. This will work on any Linux distribution. Display the current weather forecast in the Linux command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |