Weather in Terminal

Write tutorials here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
Post Reply
gary.zw
Level 4
Level 4
Posts: 249
Joined: Thu Sep 13, 2012 4:10 pm

Weather in Terminal

Post by gary.zw » Thu Apr 14, 2016 11:03 am

If you have curl installed put the following command in terminal to get the Weather works best when terminal is full screen

Code: Select all

curl wttr.in/your zip code here
Attachments
weather.jpg
Linux Mint 18.1 Cinnamon Edition 64-bit.
Intel Core i5-3570K CPU Clock Speeds: 1: 1645.679 MHz 2: 2296.992 MHz 3: 1642.093 MHz 4: 1604.375 MHz
Graphics: Card: NVIDIA GK104 GeForce GTX 660 Ti

User avatar
Pjotr
Level 21
Level 21
Posts: 12875
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: Weather in Terminal

Post by Pjotr » Thu Apr 14, 2016 1:15 pm

Cool! This is an alternative:

Code: Select all

inxi -wxxx
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

User avatar
administrollaattori
Level 15
Level 15
Posts: 5877
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Weather in Terminal

Post by administrollaattori » Thu Apr 14, 2016 2:08 pm

From where to get the "zip code" ?

User avatar
cholq
Level 3
Level 3
Posts: 113
Joined: Tue Jul 08, 2014 9:27 pm
Location: New Jersey, USA

Re: Weather in Terminal

Post by cholq » Thu Apr 14, 2016 2:16 pm

Code: Select all

Sorry, we are runnig out of queries to the weather service at the moment.
Here is the weather report for the default city 
Just to show you, how it works
We will get new queries as soon as possible
you can follow https://twitter.com/igor_chubin for the updates

Looks like your little weather app got a little too popular :)

gary.zw
Level 4
Level 4
Posts: 249
Joined: Thu Sep 13, 2012 4:10 pm

Re: Weather in Terminal

Post by gary.zw » Thu Apr 14, 2016 7:57 pm

administrollaattori wrote:From where to get the "zip code" ?
I guess since you are from Finland you might try your cities name?
Linux Mint 18.1 Cinnamon Edition 64-bit.
Intel Core i5-3570K CPU Clock Speeds: 1: 1645.679 MHz 2: 2296.992 MHz 3: 1642.093 MHz 4: 1604.375 MHz
Graphics: Card: NVIDIA GK104 GeForce GTX 660 Ti

gary.zw
Level 4
Level 4
Posts: 249
Joined: Thu Sep 13, 2012 4:10 pm

Re: Weather in Terminal

Post by gary.zw » Thu Apr 14, 2016 7:58 pm

cholq wrote:

Code: Select all

Sorry, we are runnig out of queries to the weather service at the moment.
Here is the weather report for the default city 
Just to show you, how it works
We will get new queries as soon as possible
you can follow https://twitter.com/igor_chubin for the updates

Looks like your little weather app got a little too popular :)

I'm getting that too now :)
Linux Mint 18.1 Cinnamon Edition 64-bit.
Intel Core i5-3570K CPU Clock Speeds: 1: 1645.679 MHz 2: 2296.992 MHz 3: 1642.093 MHz 4: 1604.375 MHz
Graphics: Card: NVIDIA GK104 GeForce GTX 660 Ti

gary.zw
Level 4
Level 4
Posts: 249
Joined: Thu Sep 13, 2012 4:10 pm

Re: Weather in Terminal

Post by gary.zw » Thu Apr 14, 2016 7:58 pm

Pjotr wrote:Cool! This is an alternative:

Code: Select all

inxi -wxxx

that works too :)
Linux Mint 18.1 Cinnamon Edition 64-bit.
Intel Core i5-3570K CPU Clock Speeds: 1: 1645.679 MHz 2: 2296.992 MHz 3: 1642.093 MHz 4: 1604.375 MHz
Graphics: Card: NVIDIA GK104 GeForce GTX 660 Ti

User avatar
administrollaattori
Level 15
Level 15
Posts: 5877
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

Re: Weather in Terminal

Post by administrollaattori » Fri Apr 15, 2016 2:07 am

gary.zw wrote:
administrollaattori wrote:From where to get the "zip code" ?
I guess since you are from Finland you might try your cities name?
That worked. :D

Code: Select all

curl wttr.in/cityname_here

Post Reply

Return to “Tutorials”