LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-31-2011, 09:23 PM   #1
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547
Blog Entries: 7

Rep: Reputation: 55
ConkyWeather Question


Just wondering how can I add the Hi/Lo and the current day information like wind, humidity, etc... to my conkyrc.

Right now here is what I have,


Code:
Location: ${execi 3600 conkyForecast -i --location=USTX0617 --datatype=CN}
Conditions: ${execi 3600 conkyForecast -i --location=USTX0617 --datatype=CC}
${font ConkyWeather:size=36}${execi 3600 conkyForecast -i --location=USTX0617 --datatype=WF}${font}
Temp: ${execi 3600 conkyForecast -i --location=USTX0617 --datatype=HT}
Extended Forecast
${font ConkyWeather:size=39}${execi 3600 conkyForecast -i --startday=1 --endday=4 --location=USTX0617 --datatype=WF}${font}
${execi 3600 conkyForecast -i --location=USTX0617 --startday=1 --endday=4 --spaces=13 --datatype=HT}
${execi 3600 conkyForecast -i --location=USTX0617 --startday=1 --endday=4 --spaces=5 --datatype=DW}
TIA!
 
Old 02-01-2011, 05:30 AM   #2
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
bump
 
Old 02-01-2011, 09:32 AM   #3
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Rep: Reputation: 8
I'm using separate conky for weather.

It looks like this:

http://img716.imageshack.us/img716/2...sktoprt.th.jpg

conkyrc:
Code:
background yes
own_window yes
own_window_type normal # normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #
undecorated,below,skip_taskbar,skip_pager
own_window_colour black
double_buffer yes
use_spacer left
override_utf8_locale yes
use_xft yes
font DejaVu Sans Mono:size=10
xftfont sans:size=10
xftalpha 0.8
update_interval 5.0
uppercase no  # set to yes if you want all text to be in uppercase
stippled_borders 2
border_width 1
minimum_size 385
default_outline_color black
default_shade_color black
draw_borders no
draw_outline no  # amplifies text if yes
draw_shades no  # shadecolor black
default_color white
color0 cyan
color1 white
color2 00ddff
color3 00ddff
color4 wheat
color5 salmon
color6 red
color7 lightblue
color8 yellow
color9 red
alignment tm  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x -10
gap_y 18
text_buffer_size 6076 # large buffer needed
no_buffers yes  # Subtract file system buffers from used memory?
short_units yes
pad_percents 2
imlib_cache_size 0

TEXT
${execpi 1800 /usr/bin/conkyForecast --locale=en --location=SRXX0005 --template=/home/user/.conky/forecast/weather.template}
weather template used in conkyrc:
Code:
${image [--datatype=WI] -p 12,0 -s 90x90}${image [--datatype=MI] -p 12,80 -s 50x50}
${voffset 120}${goto 25}${color1}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3]
${goto 220}${voffset -130}[--datatype=CT]
${goto 120}Station: [--datatype=OB]
${goto 120}Wind Speed: [--datatype=WS]
${goto 120}UV: [--datatype=UI] - [--datatype=UT]
${goto 120}${color2}${font zekton:size=10}Humidity: ${color1}${font}[--datatype=HM]
# ${goto 120}${color2}${font zekton:size=10}Dew Point: ${color1}${font}[--datatype=DP]
${goto 120}${color2}${font zekton:size=10}Sunrise/Set: ${color1}${font}[--datatype=SR] / [--datatype=SS]
${goto 120}${color2}${font zekton:size=10}Bar: ${color1}${font}[--datatype=BR] - [--datatype=BD]
${goto 120}${color2}${font zekton:size=10}Moon: ${color1}${font}[--datatype=MP]
# ${color2}${font Bitstream Vera Sans Mono:size=7}${alignr 20}Last Update: [--datatype=LU]${font}

${color0}${font zekton:size=10}${voffset -10}${goto -35}[--datatype=DW --startday=1 --shortweekday]${goto 135}[--datatype=DW --startday=2 --shortweekday]${goto 235}[--datatype=DW --startday=3 --shortweekday]${goto 335}[--datatype=DW --startday=4 --shortweekday] 
${image [--datatype=WI --startday=1] -p 17,210 -s 50x50}${image [--datatype=WI --startday=2] -p 117,210 -s 50x50}${image [--datatype=WI --startday=3] -p 217,210 -s 50x50}${image [--datatype=WI --startday=4] -p 317,210 -s 50x50} 
${voffset 40}${font}${goto 25}${color1}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 125}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 225}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 325}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
Maybe you can use something like this...
Attached Thumbnails
Click image for larger version

Name:	desktop.jpg
Views:	80
Size:	148.2 KB
ID:	6030  
 
Old 02-01-2011, 04:45 PM   #4
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
cool!

Thanks for help.

How did you get the logos up in the top of your conky?
 
Old 02-01-2011, 05:07 PM   #5
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
cool. The example took me to the correct direction. I know setup a template.

Thanks!
 
Old 02-02-2011, 07:50 AM   #6
diwljina
Member
 
Registered: Jun 2009
Distribution: Slackware, Debian
Posts: 111

Rep: Reputation: 8
Quote:
Originally Posted by SeRi@lDiE View Post
cool!

Thanks for help.

How did you get the logos up in the top of your conky?
I copied openlogos.ttf into ~/.fonts and used it in conkyrc:

Code:
${font openlogos:size=50}${color #00ddff}t${voffset -20}${font openlogos:size=70}${offset 40}q${font openlogos:size=50}${offset 20}U
 
Old 02-02-2011, 10:09 AM   #7
SeRi@lDiE
Member
 
Registered: Jun 2006
Location: /dev/null
Distribution: Slackware 13.1, Slackware 13.37, aptosid, rhel
Posts: 547

Original Poster
Blog Entries: 7

Rep: Reputation: 55
Thanks!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
basic html question - download link to files on my webpage question Davno Linux - Server 5 12-25-2009 07:24 AM
linux distro question & mysql install question natalie.aloi Linux - Newbie 5 07-19-2009 08:28 PM
Question, Apples Contribution to Open Source + MacOs file structure question Higgy3k Other *NIX 5 07-25-2005 04:23 AM
Not your regular GRUB question - just a short question for a fried MBR!! ziphem Linux - General 3 01-31-2005 01:51 PM
login prompt question & kde scheme question JustinCoyan Slackware 2 06-09-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:15 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