LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-15-2016, 09:00 AM   #1
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,048
Blog Entries: 21

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
wttr console/terminal weather and moon phase shown using curl


Just terminal porn for geeksters . It probably can be incorporated into a ~./conkyrc file <those in the know, know what I mean> since curl works for me in conky for my simple ~/.weather.sh file.

I found the info and all credit goes to

http://www.jointux.com/get-weather-c...le-using-wttr/

to be fair. I was directed to the above site from

http://forum.mepiscommunity.org/view...p?f=80&t=40410

Here is a screenshot of my terminal with wttr invoked in terminal



I searched the forum first for wttr. Got no hits back. So I think this is a first here. Enjoy.

Last edited by rokytnji; 09-15-2016 at 09:47 AM.
 
Old 09-15-2016, 09:33 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
That's pretty cool. "Console" is a bit misleading - it works in terminal sessions like PuTTY as well.

Also found the "weather" script installed on my RHEL system by default. It says it checks the University of Michigan. The output isn't as cool as the wttr.in output though.
 
1 members found this post helpful.
Old 09-15-2016, 09:48 AM   #3
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,048

Original Poster
Blog Entries: 21

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
Originally Posted by MensaWater View Post
That's pretty cool. "Console" is a bit misleading - it works in terminal sessions like PuTTY as well.

Also found the "weather" script installed on my RHEL system by default. It says it checks the University of Michigan. The output isn't as cool as the wttr.in output though.
Thanks. I edited the title. I did not think of that.
 
Old 09-15-2016, 12:43 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by rokytnji View Post
Here is a screenshot of my terminal with wttr invoked in terminal


why aren't you using a monospaced font in your terminal? the spacing is off.

in any case, i think the wttr output could benefit hugely from a suitable font.
 
Old 09-15-2016, 01:39 PM   #5
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,048

Original Poster
Blog Entries: 21

Rep: Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470Reputation: 3470
Quote:
why aren't you using a monospaced font in your terminal? the spacing is off.
Because I am not anal and I like it that way. There are probably a list of things I like that irk you and others. Yawn.

Edit. So hold on. I'll get right on that.

There. Better?


Last edited by rokytnji; 09-15-2016 at 01:49 PM.
 
Old 09-15-2016, 03:17 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
The "haters" can look outside.

I'm just goofin' on ya, ondoho. Please don't take it personally.

Last edited by Habitual; 09-15-2016 at 03:20 PM.
 
Old 09-15-2016, 04:29 PM   #7
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by rokytnji View Post
Because I am not anal and I like it that way. There are probably a list of things I like that irk you and others. Yawn.
Ha!

I used to have a co-worker that whenever I started going into the way things "ought" to be done would go into a long dissertation about why he preferred number 2 pencils. It was an effective way of explaining the difference between absolute facts and opinions.
 
Old 09-16-2016, 02:09 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
rokytnji:
of course you can do whatever you like.
so can i.
i just thought it prudent to point out that a variable-width font will look messed up in a terminal. that's what monospaced fonts are there for.

and as for your 2nd screenshot, i think the weather "icons" are much easier to recognize there.
but i liked the colors in the 1st screenshot :-(


hmmm, that looks nice:


Code:
urxvt -g 125x41 -T 'wttr.in' -fn '-*-fixed-bold-r-*-*-13-*-*-*-*-70-iso10646-*' -e dash -c 'wget -qO - wttr.in/Moscow;read x'

Last edited by ondoho; 09-16-2016 at 11:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] getty process is not shown using ps if connected using serial console ? Vilius Linux - Software 1 05-21-2010 04:34 AM
Mechanism behind key pressed on keyboard which shown on console aravinda78 Linux - General 0 12-12-2008 08:02 AM
console tty problem: huge fonts shown like ascii art TheHighwayman Linux - Software 11 11-14-2007 02:40 AM
Weather data on the console MS3FGX Linux - Software 3 07-02-2004 04:43 PM
Moon Phase im Mandrake 8.1 Michael Jones Linux - Newbie 4 07-08-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration