SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2011-12-31 23:57:41

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,442

The New Monster Conky Thread

The monster conky thread purpose:

  • seek help with conky, and

  • show your conky and the files that created them

-----------------------------------------------------------
And in accordance with the screenshot thread:

Please continue to use thumbnails (please try to avoid the large thumbnail imgur.com code) linking to the larger image to help those of us with slow connections. An example of the code needed is below. Most image hosting sites will automatically generate this for you as well. I've been using postimage.org lately which does a nice job.

[url=http://link.to.your.fullsized.image][img]http://link.to.your.thumbnail.image[/img][/url]

Last edited by pvsage (2012-01-10 06:02:41)


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

Be excellent to each other!

#2 2012-01-01 11:32:39

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

Yeah! I'm the first (second?) post of the New Year!

@pvsavsage - Did you take this over from sector11 ?

I have a simple problem, it's more annoying then anything.  My if_existing statements are kinda working.  They show properly in conky but in a terminal I get an error about them. 

These are for removeable/external drives.  My thought is the lines would be skipped if they are not mounted.

${goto 60}${if_existing /media/Linux}Linux:  ${fs_size /media/Linux} ${alignr 5}${fs_free /media/Linux} free${else}Linux:  Not Mounted${endif}
${goto 60}${if_existing /media/Stuff}Stuff:  ${fs_size /media/Stuff} ${alignr 5}${fs_free /media/Stuff} free${else}Stuff:   Not mounted${endif}

In a terminal I get..

Conky: statfs '/media/Stuff': No such file or directory
Conky: statfs '/media/Linux': No such file or directory

Last edited by ackernan (2012-01-01 11:56:11)

Offline

#3 2012-01-01 14:45:46

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

Happy New Year everyone!!!! here's my new project I have been working on.
[http://s7.postimage.org/732tiw4fb/new_conky.jpg]

Last edited by Dodge ram (2012-01-01 16:51:09)

Offline

#4 2012-01-01 15:33:14

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

I have a problem. I am trying to show my hard drive temp. This is what I come up with.
temps.jpg

${font Sans:size=8:weight=bold}${color4}TEMPS ${hr 2}$color
${font}${color2}${exec sensors | grep "Core 0:"}
${exec sensors | grep "Core 1:"}
${exec sensors | grep "fan1:" | sed 's/fan1/CPU Fan/'}
${exec sensors | grep "fan2:" | sed 's/fan2/Case Fan/'}
Drive Temp: ${execi 10 hddtemp /dev/sda1 |cut -c36-40}

I would like to show the Core temps and hdd temp in imperial. Anyone have any idea how I can do that? When I call the hdd temp up in the terminal it shows:

/dev/sda: WDC WD6400AAKS-65A7B2: 37 C

Thanks

Offline

#5 2012-01-01 16:22:38

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

Dodge ram wrote:

I have a problem. I am trying to show my hard drive temp. This is what I come up with.
temps.jpg

${font Sans:size=8:weight=bold}${color4}TEMPS ${hr 2}$color
${font}${color2}${exec sensors | grep "Core 0:"}
${exec sensors | grep "Core 1:"}
${exec sensors | grep "fan1:" | sed 's/fan1/CPU Fan/'}
${exec sensors | grep "fan2:" | sed 's/fan2/Case Fan/'}
Drive Temp: ${execi 10 hddtemp /dev/sda1 |cut -c36-40}

I would like to show the Core temps and hdd temp in imperial. Anyone have any idea how I can do that? When I call the hdd temp up in the terminal it shows:

/dev/sda: WDC WD6400AAKS-65A7B2: 37 C

Thanks

Your conky looks good, but you might want to blur out the public ip.

Displaying the hddtemp as imperial is easy, just add '-u f' to your hddtemp command.

Drive Temp: ${execi 10 hddtemp -u f /dev/sda1 |cut -c36-40}

For your other temps add 'temperature_unit fahrenheit' to your conky config section and use hwmon to display the core temps.  The info can be found in /sys/class/hwmon/hwmon?/device.  I use the following to display my coretemps from /sys/class/hwmon/hwmon1/device/temp2 & /sys/class/hwmon/hwmon1/device/temp4.

${goto 60}Core 1 Temp: ${color 88ECE0}${hwmon 1 temp 2}° F${color}
${goto 60}Core 2 Temp: ${color 88ECE0}${hwmon 1 temp 4}° F${color}

If you don't want to do this you can just add '-f' to your sensors command.

Last edited by ackernan (2012-01-01 16:29:11)

Offline

#6 2012-01-01 16:54:24

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

Ok, thanks and thanks. I'll try that in a little while.
The conky is a modified version from mrpeachy from VinDSL. Once I get done with it I am going to post my code. Thanks mrpeachy.

Offline

#7 2012-01-01 20:23:04

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,442

Re: The New Monster Conky Thread

ackernan wrote:

@pvsavsage - Did you take this over from sector11 ?

Well, since the thread needed to be stickied anyway, and it was only a few minutes to midnight UTC...

Besides, so far the results of the poll are showing an overwhelming trend toward a single monster Conky thread, so who started it will soon become academic.


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#8 2012-01-01 21:06:03

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

c3c979167526255.jpg
Yea, it's a conky, be it ever so humble:

xftfont woodbadge:size=160
TEXT
${color 6A471D}${alignc}happy


${alignc}everyone${color}

It's the message that counts!

Offline

#9 2012-01-01 22:43:59

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

Good job! Happy New Year to you

Offline

#10 2012-01-01 23:13:27

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

Sector11, I am soon going to get the weather conky going. I would like to still use the one that you gave me. Is that possible with the new weather feed? If it is what way is it best to do it. I have seen there are 3 different ways to access it. Thanks

Offline

#11 2012-01-01 23:45:51

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

Dodge ram wrote:

Sector11, I am soon going to get the weather conky going. I would like to still use the one that you gave me. Is that possible with the new weather feed? If it is what way is it best to do it. I have seen there are 3 different ways to access it. Thanks

I do not remember which way I gave you.  If it is conkyForecast. There are many ways to get weather but three that are more active right now:

I have fallen behind on all of them and I am not using the current version of any of them.  But I will help you get weather.

Please post the conky you have for weather and a template if you have one.

EDIT:  edited links - and as of 24 Apr 2012 I'm current with mepeachy's v9000 and Teo's scripts.

Last edited by Sector11 (2012-04-24 17:39:38)

Offline

#12 2012-01-02 03:15:51

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

ackernan wrote:

Yeah! I'm the first (second?) post of the New Year!

@pvsavsage - Did you take this over from sector11 ?

I have a simple problem, it's more annoying then anything.  My if_existing statements are kinda working.  They show properly in conky but in a terminal I get an error about them. 

These are for removeable/external drives.  My thought is the lines would be skipped if they are not mounted.

${goto 60}${if_existing /media/Linux}Linux:  ${fs_size /media/Linux} ${alignr 5}${fs_free /media/Linux} free${else}Linux:  Not Mounted${endif}
${goto 60}${if_existing /media/Stuff}Stuff:  ${fs_size /media/Stuff} ${alignr 5}${fs_free /media/Stuff} free${else}Stuff:   Not mounted${endif}

In a terminal I get..

Conky: statfs '/media/Stuff': No such file or directory
Conky: statfs '/media/Linux': No such file or directory

Any ideas or this considered normal?

Offline

#13 2012-01-02 03:35:22

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,442

Re: The New Monster Conky Thread

I know this doesn't help much (at all?), but I had a similar issue when I was insanely obsessed with the temperatures on my desktop PC.  ($if_existing errored out if the wrong hardware sensor was detected first at boot and a particular virtual file didn't exist.)  In my case, the error killed my Conky rather than just throwing errors.


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#14 2012-01-02 03:54:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

ackernan wrote:

In a terminal I get..

Conky: statfs '/media/Stuff': No such file or directory
Conky: statfs '/media/Linux': No such file or directory

Any ideas or this considered normal?

Totally missed this... sorry!
Try:

if_mounted
     (mountpoint)
     if MOUNTPOINT is mounted, display everything between $if_mounted and the matching $endif

instead of if_existing

Lets see how that works.

Last edited by Sector11 (2012-01-02 03:55:39)

Offline

#15 2012-01-02 06:05:25

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

#! Point Release Sid
Xfce 4.8
3 Tint2 Panels
Top Conky - System Info/Status
Gmail/Google Reader Conky
GmusicBrowser Playing Pink Floyd - The Final Cut
SlicknesS Gtk2 theme
A wall I tweaked

screenshot-01012012-115904pm.php


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#16 2012-01-02 11:40:30

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

Sector11 wrote:

Totally missed this... sorry!
Try:

if_mounted
     (mountpoint)
     if MOUNTPOINT is mounted, display everything between $if_mounted and the matching $endif

instead of if_existing

Lets see how that works.

That worked, I missed if_mounted when looking at the variables.

You really are a wise one!  A wiseguy? lol

Looks good Vastone.

Last edited by ackernan (2012-01-02 11:41:41)

Offline

#17 2012-01-02 13:19:13

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

ackernan wrote:
Sector11 wrote:
if_mounted

That worked, I missed if_mounted when looking at the variables.

You really are a wise one!  A wiseguy? lol

Looks good Vastone.

Martha, gimme that rotten tuna, I gotta smack somebody in the slats!

@ VO! - nice shot - 3 Tint2 Panels???????

Last edited by Sector11 (2012-01-02 13:22:57)

Offline

#18 2012-01-02 14:32:28

Dodge ram
#! CrunchBanger
Registered: 2011-04-26
Posts: 140

Re: The New Monster Conky Thread

Sector11, when I posted that message I forgot to include the pic. I like to attribute it to male menopause.
Screenshot_1.jpg
http://dl.dropbox.com/u/30953293/wea%20con.tar.gz

ackernan, I got the cores to read right. On the hard drive temp is reading 6 F. Do I need to play around withthe numbers in |cut -c36-40}? If anyone else has a answer the full line is in post #4. Thanks

Last edited by Dodge ram (2012-01-02 15:22:27)

Offline

#19 2012-01-02 16:26:35

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

Dodge ram wrote:

ackernan, I got the cores to read right. On the hard drive temp is reading 6 F. Do I need to play around withthe numbers in |cut -c36-40}? If anyone else has a answer the full line is in post #4. Thanks

Yea, you'll have to play with the cut.  Here's what I have...

${goto 60}Disk temp: ${color 88ECE0}${execpi 300 hddtemp -u f /dev/sda | cut -c 35-40}${color}

Here's my conky scripts and screenshot.  I copied the weather below TEXT from Sector11.

Screenshot_at_2012_01_02_11_47_43.jpg

conkyrc-main (on the right)

######################
# - Conky settings - #
######################
background yes
update_interval 1
 
cpu_avg_samples 2
net_avg_samples 2
 
override_utf8_locale yes
 
double_buffer yes
no_buffers yes
 
text_buffer_size 1280
imlib_cache_size 0
 
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 255
 
border_inner_margin 0
border_outer_margin 0
 
minimum_size 290 0
maximum_width 500
 
alignment tr
gap_x 10
gap_y 10
 
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
 
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Santana:size=9:style=bold
xftalpha 0.8
 
uppercase no
 
default_color FFFFFF

temperature_unit fahrenheit
if_up_strictness address


####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/.conky/draw_bg.lua
lua_draw_hook_pre draw_bg


TEXT

#${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}
#${lua conky_draw_bg}
#
# System info
#
${image ~/.conky/images/tux_graduate.png -p 5,5 -s 48x48}
${voffset -35}${goto 60} ${nodename}
${goto 60} ${sysname} ${kernel} on ${machine}
${goto 60} Uptime:  ${uptime}
${goto 60} ${execpi 300 lsb_release -d | cut -c 14-50}
#
# Time
#
${voffset -15}${goto 60}${font FFF Tusj:size=50}${time %H:}${font}
#${voffset -50}${goto 200}${font FFF Tusj:size=20}${color DFEC88}${time %S}${font}${color}
${voffset -35}${goto 140}${font FFF Tusj:size=50}${time %M}${font}
#
# Date
#
${voffset 10}${font LCDMono:bold:size=10}${color B2B9C1}${alignc}${time %A}${color}
${voffset 5}${goto 67}${execpi 3600 ~/.conky/week.sh}
${voffset 5}${font LCDMono:bold:size=10}${color B2B9C1}${alignc}${time %b %Y}${color}${font}
#
# Processor info
#
${image ~/.conky/images/processor.png -p 5,215 -s 48x48}
${voffset -10}${goto 60}CPU 1 ${color DFEC88}${cpu cpu1}${color}% ${goto 220} CPU 3 ${color DFEC88}${cpu cpu3}${color}%
${goto 60}CPU 2 ${color DFEC88}${cpu cpu2}${color}% ${goto 220} CPU 4 ${color DFEC88}${cpu cpu4}${color}%
#${goto 60}CPU Temp: ${color 88ECE0}${acpitemp}° F${color}
${goto 60}Core 1 Temp: ${color 88ECE0}${hwmon 1 temp 2}° F${color}
${goto 60}Core 2 Temp: ${color 88ECE0}${hwmon 1 temp 4}° F${color}
#
# Memory info
#
${image ~/.conky/images/memory.png -p 5,260 -s 48x48}
${voffset -10}${goto 60}RAM:   ${color B2B9C1}${membar 11,190}${color}${color} ${color ffffff}${voffset -1}${goto 195}${memperc}%${color}
${voffset -14}${goto 98}${color 7095BB}${cpubar cpu5 11,190}${color}
${goto 60}Swap: ${color B2B9C1}${swapbar 11,190}${color}${color ffffff}${voffset -1}${goto 195} ${swapperc}%
${voffset -14}${goto 98}${color 7095BB}${cpubar cpu5 11,190}${color}
#
# Disk info
#
${image ~/.conky/images/hdd.png -p 5,315 -s 48x48}
${voffset -10}${goto 60}Root:   ${fs_size /} ${alignr 5}${fs_free /} free
${goto 60}Home:  ${fs_size /home} ${alignr 5}${fs_free /home} free
${goto 60}${if_mounted /media/Linux}Linux:  ${fs_size /media/Linux} ${alignr 5}${fs_free /media/Linux} free${else}Linux:  Not Mounted${endif}
${goto 60}${if_mounted /media/Stuff}Stuff:  ${fs_size /media/Stuff} ${alignr 5}${fs_free /media/Stuff} free${else}Stuff:   Not mounted${endif}
${goto 60}Disk temp: ${color 88ECE0}${execpi 300 hddtemp -u f /dev/sda | cut -c 35-40}${color}
#
# Network info
#
# If you're wireless
#
${if_up eth2}${image ~/.conky/images/radiotray.png -p 5,400 -s 48x48}
${voffset -10}${goto 60}${font size=12}Wireless${font}
${goto 60}Internal IP: ${addr eth2}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${goto 60}${color 000000}${downspeedgraph eth2 25,112 110000 520000 -t} ${upspeedgraph eth2 25,112 001100 005200 -t}${color}
${voffset -38}${goto 125}${downspeed eth2}${alignr 5}${upspeed eth2}
${goto 125}${totaldown eth2}${alignr 5}${totalup eth2}
${voffset -28}${goto 60}${font PizzaDude Bullets:size=20}U${goto 175}O${font}
#
# Google calendar
#
${voffset 20}${goto 50}${font FFF Tusj:size=20}${color DFEC88}Google calendar:${color}${font}
${voffset  5}${goto 5}${execpi 600 conkyGoogleCalendar -u ackernan -p xxxxxxxx -f "%a %m/%d" -F "%H:%M %P" -n}
#
# If you're on ethernet
#
${else}${if_up eth0}${image ~/.conky/images/gnome-dev-ethernet.png -p 5,400 -s 48x48}
${voffset -10}${goto 60}${font size=12}Ethernet${font}
${goto 60}Internal IP: ${addr eth0}
${goto 60}External IP: ${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}
${goto 60}${downspeedgraph eth0 25,112 110000 520000 -t} ${upspeedgraph eth0 25,112 001100 005200 -t}
${voffset -40}${goto 125}${downspeed eth2}${alignr 5}${upspeed eth2}
${goto 125}${totaldown eth2}${alignr 5}${totalup eth2}
${voffset -25}${goto 60}${font PizzaDude Bullets:size=20}U${goto 175}O${font}
#
# Google calendar
#
${alignc}${font FFF Tusj:size=20}${color DFEC88}Google calendar:${color}${font}
${voffset  5}${goto 5}${execpi 600 conkyGoogleCalendar -u ackernan -p xxxxxxxx -f "%a %m/%d" -F "%H:%M %P" -n}
#
# This is if you have no network interace up
#
${else}${voffset 35}${image ~/.conky/images/network-error-2.png -p 5,400 -s 48x48}
${goto 60}${voffset -25}${font size=12}No Network Connection${font}${endif}${endif}

conky-weather (on the left)

######################
# - Conky settings - #
######################
background yes
update_interval 1
 
cpu_avg_samples 2
net_avg_samples 2
 
override_utf8_locale yes
 
double_buffer yes
no_buffers yes
 
text_buffer_size 1280
imlib_cache_size 0
 
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 255
 
border_inner_margin 0
border_outer_margin 0
 
minimum_size 500 0
#maximum_width 500
 
alignment tl
gap_x 10
gap_y 10
 
#########################
# - Graphics settings - #
#########################
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
 
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Santana:size=8.5:style=bold
xftalpha 0.8
 
uppercase no
 
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 778899 #LightSlateGrey
color2 7095BB #Light Blue
color3 C6FF8E #Light Green
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

temperature_unit fahrenheit

####
## Set the path to your script here.
#
lua_load ~/.conky/forecast.lua
lua_draw_hook_pre weatherdata #starts the lua weather data gathering function, call once at top of conkyrc
lua_load ~/.conky/draw-bg.lua


TEXT
${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}${goto 125}Current: ${lua weather now.con}${lua_parse weather image.now 10 10 80 80}
${goto 125}Now: ${lua weather now.tmp}°  FL: ${lua weather now.flk}°
${goto 125}Hum: ${lua weather now.hum}%  DP: ${lua weather now.dpt}°
${goto 125}WC: ${lua weather now.wch}° HI: ${lua weather now.hid}°
${goto 125}Ceiling: ${lua weather now.cel} Vis: ${lua weather now.vis}
${goto 125}Wind: ${lua weather now.wsp} mph @ ${lua weather now.wdg}° (${lua weather now.wdi})
${goto 125}Barometer: ${lua weather now.prs} Gusts: ${lua weather now.wgs}

${lua weather day1.day}${goto 250}${lua weather day2.day}${lua_parse weather image.day1 165 140 50 50}${lua_parse weather image.day2 405 140 50 50}
${lua weather day1.con}${goto 250}${lua weather day2.con}
H: ${lua weather day1.hih}°  L: ${lua weather day1.low}°${goto 250}H: ${lua weather day2.hih}°  L: ${lua weather day2.low}°
Rain: ${lua weather day1.ppt}% Cloud: ${lua weather day1.cld}%${goto 250}Rain: ${lua weather day2.ppt}% Cloud: ${lua weather day2.cld}%
UVI: ${lua weather day1.uvn} (${lua weather day1.uvt})${goto 250}UVI: ${lua weather day2.uvn} (${lua weather day2.uvt})
Sun: ${lua weather day1.sri} ${lua weather day1.sst}${goto 250}Sun: ${lua weather day2.sri} ${lua weather day2.sst}
Moon: ${lua weather day1.mri} ${lua weather day1.mst}${goto 250}Moon: ${lua weather day2.mri} ${lua weather day2.mst}
Moon Phase: ${lua weather day1.mph}${goto 250}Moon Phase: ${lua weather day2.mph}

${lua weather day3.day}${goto 250}${lua weather day4.day}${lua_parse weather image.day3 165 260 50 50}${lua_parse weather image.day4 405 260 50 50}
${lua weather day3.con}${goto 250}${lua weather day4.con}
H: ${lua weather day3.hih}°  L: ${lua weather day3.low}°${goto 250}H: ${lua weather day4.hih}°  L: ${lua weather day4.low}°
Rain: ${lua weather day3.ppt}% Cloud: ${lua weather day3.cld}%${goto 250}Rain: ${lua weather day4.ppt}% Cloud: ${lua weather day4.cld}%
UVI: ${lua weather day3.uvn} (${lua weather day3.uvt})${goto 250}UVI: ${lua weather day4.uvn} (${lua weather day4.uvt})
Sun: ${lua weather day3.sri} ${lua weather day3.sst}${goto 250}Sun: ${lua weather day4.sri} ${lua weather day4.sst}
Moon: ${lua weather day3.mri} ${lua weather day3.mst}${goto 250}Moon: ${lua weather day4.mri} ${lua weather day4.mst}
Moon Phase: ${lua weather day3.mph}${goto 250}Moon Phase: ${lua weather day4.mph}

${lua weather day5.day}${goto 250}${lua weather day6.day}${lua_parse weather image.day5 165 385 50 50}${lua_parse weather image.day6 405 385 50 50}
${lua weather day5.con}${goto 250}${lua weather day6.con}
H: ${lua weather day5.hih}°  L: ${lua weather day5.low}°${goto 250}H: ${lua weather day6.hih}°  L: ${lua weather day6.low}°
Rain: ${lua weather day5.ppt}% Cloud: ${lua weather day5.cld}%${goto 250}Rain: ${lua weather day6.ppt}% Cloud: ${lua weather day6.cld}%
UVI: ${lua weather day5.uvn} (${lua weather day5.uvt})${goto 250}UVI: ${lua weather day6.uvn} (${lua weather day6.uvt})
Sun: ${lua weather day5.sri} ${lua weather day5.sst}${goto 250}Sun: ${lua weather day6.sri} ${lua weather day6.sst}
Moon: ${lua weather day5.mri} ${lua weather day5.mst}${goto 250}Moon: ${lua weather day6.mri} ${lua weather day6.mst}
Moon Phase: ${lua weather day5.mph}${goto 250}Moon Phase: ${lua weather day6.mph}

${lua weather day7.day}${goto 250}${lua weather day8.day}${lua_parse weather image.day7 165 515 50 50}${lua_parse weather image.day8 405 515 50 50}
${lua weather day7.con}${goto 250}${lua weather day8.con}
H: ${lua weather day7.hih}°  L: ${lua weather day7.low}°${goto 250}H: ${lua weather day8.hih}°  L: ${lua weather day8.low}°
Rain: ${lua weather day7.ppt}% Cloud: ${lua weather day7.cld}%${goto 250}Rain: ${lua weather day8.ppt}% Cloud: ${lua weather day8.cld}%
UVI: ${lua weather day7.uvn} (${lua weather day7.uvt})${goto 250}UVI: ${lua weather day8.uvn} (${lua weather day8.uvt})
Sun: ${lua weather day7.sri} ${lua weather day7.sst}${goto 250}Sun: ${lua weather day8.sri} ${lua weather day8.sst}
Moon: ${lua weather day7.mri} ${lua weather day7.mst}${goto 250}Moon: ${lua weather day8.mri} ${lua weather day8.mst}
Moon Phase: ${lua weather day7.mph}${goto 250}Moon Phase: ${lua weather day8.mph}

${lua weather day9.day}${goto 250}${lua weather day10.day}${lua_parse weather image.day9 165 645 50 50}${lua_parse weather image.day10 405 645 50 50}
${lua weather day9.con}${goto 250}${lua weather day10.con}
H: ${lua weather day9.hih}°  L: ${lua weather day9.low}°${goto 250}H: ${lua weather day10.hih}°  L: ${lua weather day10.low}°
Rain: ${lua weather day9.ppt}% Cloud: ${lua weather day9.cld}%${goto 250}Rain: ${lua weather day10.ppt}% Cloud: ${lua weather day10.cld}%
UVI: ${lua weather day9.uvn} (${lua weather day9.uvt})${goto 250}UVI: ${lua weather day10.uvn} (${lua weather day10.uvt})
Sun: ${lua weather day9.sri} ${lua weather day9.sst}${goto 250}Sun: ${lua weather day10.sri} ${lua weather day10.sst}
Moon: ${lua weather day9.mri} ${lua weather day9.mst}${goto 250}Moon: ${lua weather day10.mri} ${lua weather day10.mst}
Moon Phase: ${lua weather day9.mph}${goto 250}Moon Phase: ${lua weather day10.mph}

forecast.lua from mrpeachy

--[[weather display by mrpeachy nov 2011
version 7
call data via conkyrc
ability to display weather images

killall conky && conky -c ~/Conky/Forecast_v7.conky &
]]
--#########################################################################################################
--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP--SETUP
secs=1800--set update interval
web="http://www.intellicast.com/Local/Forecast.aspx?location=USKY1079"--insert unit=C& after? for C
--get web address by going to the intellicast site and entering your location in the box
--for version 3 you must get click on "Extended Forecast" to get the necessary address
units="F"
--set location where weather data txt will be saved
location="/home/tony/.conky/intelli-weather.txt"
--set location of weather images
weathericons="/home/tony/.conky/weathericons/"
--location of intellicast icons #not currently supported
-- intellicast_icons="/home/sector11/Conky/images/weathericons/intelli"
--#########################################################################################################
require 'imlib2'
require 'cairo'
------------------------------------------------------------------------------
function string:split(delimiter)
local result = { }
local from  = 1
local delim_from, delim_to = string.find( self, delimiter, from  )
while delim_from do
table.insert( result, string.sub( self, from , delim_from-1 ) )
from  = delim_to + 1
delim_from, delim_to = string.find( self, delimiter, from  )
end
table.insert( result, string.sub( self, from  ) )
return result
end
--------------------------------------------------------------------------------
--###################################
function conky_weatherdata()--#######
--###################################
--catch circling variables and set them to nil
now={}
day1={}
day2={}
day3={}
day4={}
day5={}
day6={}
day7={}
day8={}
day9={}
day10={}
image={}
font={}
windfont={}
moonfont={}
xpos=nil
ypos=nil
scale1=nil
scale2=nil
conkydata=nil
--###################
--table to convert intellicast images to icons and fonts
wimage={
wx_65="32,a",wx_66="30,c",
wx_67="26,f",
wx_68="32,a",
wx_69="28,d",
wx_70="20,0",
wx_71="32,a",
wx_72="21,9",
wx_73="36,5",
wx_74="14,p",
wx_75="28,d",
wx_76="18,w",
wx_77="14,p",
wx_78="23,6",
wx_79="05,x",
wx_80="15,8",
wx_81="15,8",
wx_82="11,h",
wx_83="16,q",
wx_84="00,m",
wx_85="32,a",
wx_86="25,-",
wx_87="09,h",
wx_88="05,x",
wx_89="18,w",
wx_90="18,w",
wx_91="39,g",
wx_92="39,g",
wx_93="39,g",
wx_94="39,g",
wx_95="37,k",
wx_96="37,k",
wx_97="31,A",
wx_98="29,C",
wx_99="27,D",
wx_100="47,K",
wx_101="47,K",
wx_102="33,B",
wx_103="26,f",
wx_104="20,0",
wx_105="45,G",
wx_106="45,G",
wx_107="11,h",
wx_108="46,O",
wx_109="46,O",
wx_110="06,x",
wx_111="18,w",
wx_112="06,x",
wx_113="46,O",
wx_114="46,O",
wx_115="31,A",
wx_116="47,K",
}--end table
--table to convert wind direction to font
windfontt={S="9",SSW=":",SW=";",WSW="<",W="=",WNW=">",NW="?",NNW="@",N="1",NNE="2",NE="3",ENE="4",E="5",ESE="6",SE="7",SSE="8"}
--table to convert moonphase to font
moonfontt={New="=",Full="@",FirstQuarter="G",LastQuarter="T",WaningGibbous="R",WaningCrescent="V",WaxingCrescent="E",WaxingGibbous="I"}
days={
Monday="Mon",
Tuesday="Tue",
Wednesday="Wed",
Thursday="Thu",
Friday="Fri",
Saturday="Sat",
Sunday="Sun",
}
--##################################################
--######data gatering and initial processing########
--##################################################
local updates=tonumber(conky_parse('${updates}'))
local timer=(updates %secs)+1
if timer==secs or updates==0 then
--gets current data
local f=io.popen("curl '"..web.."' | grep -A62 'As of ' | gawk -F'>' -v RS='</' 'RT{print $NF}' | sed -e 's/^[ \t]*//' -e '/^$/d' -e 's/&deg;//g' -e 's/%//g' -e 's/  / /g' -e 's/Thunderstorms/T.Storms/g'")
data1=f:read("*a")
f:close()
data=string.split(data1,"\n")
--gets forecast data
local f=io.popen("curl '"..web.."' | grep -A554 'View the Calendar Forecast' | gawk -F'>' -v RS='<' 'RT{print $NF}' | sed -e 's/^[ \t]*//' -e 's/&deg;//g' -e 's/  / /g' -e 's/%//g' -e 's/&deg//g' -e 's/Thunderstorms/T.Storms/g'")
fdata1=f:read("*a")
f:close()
fdata=string.split(fdata1,"\n")
fdata2={}
for i,v in pairs(fdata) do
if string.find(v,"[%a%d]")~=nil then
table.insert(fdata2,fdata[i])
end
end
--gets weather image codes
local f=io.popen("curl '"..web.."' | gawk -F'App_Images' -v RS='.png' 'RT{print $NF}'")
icondata1=f:read("*a")
f:close()
icondata=string.split(icondata1,"\n")
icondata2={}
for i,v in pairs(icondata) do
if string.find(v,"32_white")==nil then
table.insert(icondata2,icondata[i])
end
end
--##################################################
--######data processing#############################
--##################################################
--current conditions
if string.find(data[3],"/")~=nil then
cdn=string.split(data[3],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(data[3],"[\r\n]","")
cd2=""
end
wdr=string.split(data[32]," ")
now={con=con,tmp=string.gsub(data[5],units,""),flk=string.gsub(data[7],"Feels Like: ",""),wch=data[11],cel=data[14],hid=data[17],vis=string.gsub(data[20],"[ %a]",""),dpt=data[23],wsp=string.gsub(data[26],"[ %a]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),wgs=string.gsub(data[38],"[ mph]",""),hum=data[29],prs=string.gsub(data[35],"\"",""),cd2=cd2}
--forecast days
if string.find(fdata2[3],"/")~=nil then
cdn=string.split(fdata2[3],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[3],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[2],",")
local uvi=string.split(fdata2[20]," ")
local wsp=string.split(fdata2[32]," ")
local wdr=string.split(fdata2[34]," ")
day1={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[4],low=fdata2[5],sri=fdata2[8],sst=fdata2[10],mri=fdata2[12],mst=fdata2[14],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[22],ppt=fdata2[24],snw=fdata2[26],cld=fdata2[28],mph=fdata2[30],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day2
if string.find(fdata2[36],"/")~=nil then
cdn=string.split(fdata2[36],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[36],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[35],",")
local uvi=string.split(fdata2[53]," ")
local wsp=string.split(fdata2[65]," ")
local wdr=string.split(fdata2[67]," ")
day2={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[37],low=fdata2[38],sri=fdata2[41],sst=fdata2[43],mri=fdata2[45],mst=fdata2[47],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[55],ppt=fdata2[57],snw=fdata2[59],cld=fdata2[61],mph=fdata2[63],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day3
local start=68
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day3={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day4
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day4={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day5
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day5={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day6
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day6={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day7
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day7={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day8
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day8={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day9
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day9={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--day10
local start=start+29
if string.find(fdata2[start+1],"/")~=nil then
cdn=string.split(fdata2[start+1],"/")
con=cdn[1]
cd2="/"..string.gsub(cdn[2],"[\r\n]","")
else
con=string.gsub(fdata2[start+1],"[\r\n]","")
cd2=""
end
local dyt=string.split(fdata2[start],",")
local uvi=string.split(fdata2[start+14]," ")
local wsp=string.split(fdata2[start+26]," ")
local wdr=string.split(fdata2[start+28]," ")
day10={day=dyt[1],dat=string.gsub(dyt[2],"^.",""),con=con,hih=fdata2[start+2],low=fdata2[start+3],sri=fdata2[start+5],sst=fdata2[start+7],mri=fdata2[start+9],mst=fdata2[start+11],uvn=uvi[1],uvt=string.gsub(uvi[2],"[%(%)]",""),hum=fdata2[start+16],ppt=fdata2[start+18],snw=fdata2[start+20],cld=fdata2[start+22],mph=fdata2[start+24],wmh=string.gsub(wsp[1],"[%a]",""),wkm=string.gsub(wsp[2],"[%a%(,]",""),wkt=string.gsub(wsp[3],"[%a%)]",""),wdg=wdr[1],wdi=string.gsub(wdr[2],"[%(%)\n\r]",""),cd2=cd2,das=(loadstring("return ".."days."..dyt[1])())}
--##################################################
--######font and image processing###################
--##################################################
nowif=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[1],"/40_white/",""))()),",")
day1if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[2],"/40_white/",""))()),",")
day2if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[3],"/40_white/",""))()),",")
day3if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[4],"/40_white/",""))()),",")
day4if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[5],"/40_white/",""))()),",")
day5if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[6],"/40_white/",""))()),",")
day6if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[7],"/40_white/",""))()),",")
day7if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[8],"/40_white/",""))()),",")
day8if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[9],"/40_white/",""))()),",")
day9if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[10],"/40_white/",""))()),",")
day10if=string.split((loadstring("return ".."wimage."..string.gsub(icondata2[11],"/40_white/",""))()),",")
---------------------------------------------------
image={
now=nowif[1],
day1=day1if[1],
day2=day2if[1],
day3=day3if[1],
day4=day4if[1],
day5=day5if[1],
day6=day6if[1],
day7=day7if[1],
day8=day8if[1],
day9=day9if[1],
day10=day10if[1]
}
---------------------------------------------------
font={
now=nowif[2],
day1=day1if[2],
day2=day2if[2],
day3=day3if[2],
day4=day4if[2],
day5=day5if[2],
day6=day6if[2],
day7=day7if[2],
day8=day8if[2],
day9=day9if[2],
day10=day10if[2]
}
--wind font-----------------------------------------
windfont={
now=(loadstring("return ".."windfontt."..now.wdi)()),
day1=(loadstring("return ".."windfontt."..day1.wdi)()),
day2=(loadstring("return ".."windfontt."..day2.wdi)()),
day3=(loadstring("return ".."windfontt."..day3.wdi)()),
day4=(loadstring("return ".."windfontt."..day4.wdi)()),
day5=(loadstring("return ".."windfontt."..day5.wdi)()),
day6=(loadstring("return ".."windfontt."..day6.wdi)()),
day7=(loadstring("return ".."windfontt."..day7.wdi)()),
day8=(loadstring("return ".."windfontt."..day8.wdi)()),
day9=(loadstring("return ".."windfontt."..day9.wdi)()),
day10=(loadstring("return ".."windfontt."..day10.wdi)()),
}
--moon font-----------------------------------------
moonfont={
day1=(loadstring("return ".."moonfontt."..string.gsub(day1.mph," ",""))()),
day2=(loadstring("return ".."moonfontt."..string.gsub(day2.mph," ",""))()),
day3=(loadstring("return ".."moonfontt."..string.gsub(day3.mph," ",""))()),
day4=(loadstring("return ".."moonfontt."..string.gsub(day4.mph," ",""))()),
day5=(loadstring("return ".."moonfontt."..string.gsub(day5.mph," ",""))()),
day6=(loadstring("return ".."moonfontt."..string.gsub(day6.mph," ",""))()),
day7=(loadstring("return ".."moonfontt."..string.gsub(day7.mph," ",""))()),
day8=(loadstring("return ".."moonfontt."..string.gsub(day8.mph," ",""))()),
day9=(loadstring("return ".."moonfontt."..string.gsub(day9.mph," ",""))()),
day10=(loadstring("return ".."moonfontt."..string.gsub(day10.mph," ",""))()),
}
--##################################################
--##writing data to file for conkyrc restart########
--##################################################
local datastringnow=now.con.."|"..now.tmp.."|"..now.flk.."|"..now.wch.."|"..now.cel.."|"..now.hid.."|"..now.vis.."|"..now.dpt.."|"..now.wsp.."|"..now.wdg.."|"..now.wdi.."|"..now.wgs.."|"..now.hum.."|"..now.prs.."|"..now.cd2
local datastringday1=day1.day.."|"..day1.dat.."|"..day1.con.."|"..day1.hih.."|"..day1.low.."|"..day1.sri.."|"..day1.sst.."|"..day1.mri.."|"..day1.mst.."|"..day1.uvn.."|"..day1.uvt.."|"..day1.hum.."|"..day1.ppt.."|"..day1.snw.."|"..day1.cld.."|"..day1.mph.."|"..day1.wmh.."|"..day1.wkm.."|"..day1.wkt.."|"..day1.wdg.."|"..day1.wdi.."|"..day1.cd2.."|"..day1.das
local datastringday2=day2.day.."|"..day2.dat.."|"..day2.con.."|"..day2.hih.."|"..day2.low.."|"..day2.sri.."|"..day2.sst.."|"..day2.mri.."|"..day2.mst.."|"..day2.uvn.."|"..day2.uvt.."|"..day2.hum.."|"..day2.ppt.."|"..day2.snw.."|"..day2.cld.."|"..day2.mph.."|"..day2.wmh.."|"..day2.wkm.."|"..day2.wkt.."|"..day2.wdg.."|"..day2.wdi.."|"..day2.cd2.."|"..day2.das
local datastringday3=day3.day.."|"..day3.dat.."|"..day3.con.."|"..day3.hih.."|"..day3.low.."|"..day3.sri.."|"..day3.sst.."|"..day3.mri.."|"..day3.mst.."|"..day3.uvn.."|"..day3.uvt.."|"..day3.hum.."|"..day3.ppt.."|"..day3.snw.."|"..day3.cld.."|"..day3.mph.."|"..day3.wmh.."|"..day3.wkm.."|"..day3.wkt.."|"..day3.wdg.."|"..day3.wdi.."|"..day3.cd2.."|"..day3.das
local datastringday4=day4.day.."|"..day4.dat.."|"..day4.con.."|"..day4.hih.."|"..day4.low.."|"..day4.sri.."|"..day4.sst.."|"..day4.mri.."|"..day4.mst.."|"..day4.uvn.."|"..day4.uvt.."|"..day4.hum.."|"..day4.ppt.."|"..day4.snw.."|"..day4.cld.."|"..day4.mph.."|"..day4.wmh.."|"..day4.wkm.."|"..day4.wkt.."|"..day4.wdg.."|"..day4.wdi.."|"..day4.cd2.."|"..day4.das
local datastringday5=day5.day.."|"..day5.dat.."|"..day5.con.."|"..day5.hih.."|"..day5.low.."|"..day5.sri.."|"..day5.sst.."|"..day5.mri.."|"..day5.mst.."|"..day5.uvn.."|"..day5.uvt.."|"..day5.hum.."|"..day5.ppt.."|"..day5.snw.."|"..day5.cld.."|"..day5.mph.."|"..day5.wmh.."|"..day5.wkm.."|"..day5.wkt.."|"..day5.wdg.."|"..day5.wdi.."|"..day5.cd2.."|"..day5.das
local datastringday6=day6.day.."|"..day6.dat.."|"..day6.con.."|"..day6.hih.."|"..day6.low.."|"..day6.sri.."|"..day6.sst.."|"..day6.mri.."|"..day6.mst.."|"..day6.uvn.."|"..day6.uvt.."|"..day6.hum.."|"..day6.ppt.."|"..day6.snw.."|"..day6.cld.."|"..day6.mph.."|"..day6.wmh.."|"..day6.wkm.."|"..day6.wkt.."|"..day6.wdg.."|"..day6.wdi.."|"..day6.cd2.."|"..day6.das
local datastringday7=day7.day.."|"..day7.dat.."|"..day7.con.."|"..day7.hih.."|"..day7.low.."|"..day7.sri.."|"..day7.sst.."|"..day7.mri.."|"..day7.mst.."|"..day7.uvn.."|"..day7.uvt.."|"..day7.hum.."|"..day7.ppt.."|"..day7.snw.."|"..day7.cld.."|"..day7.mph.."|"..day7.wmh.."|"..day7.wkm.."|"..day7.wkt.."|"..day7.wdg.."|"..day7.wdi.."|"..day7.cd2.."|"..day7.das
local datastringday8=day8.day.."|"..day8.dat.."|"..day8.con.."|"..day8.hih.."|"..day8.low.."|"..day8.sri.."|"..day8.sst.."|"..day8.mri.."|"..day8.mst.."|"..day8.uvn.."|"..day8.uvt.."|"..day8.hum.."|"..day8.ppt.."|"..day8.snw.."|"..day8.cld.."|"..day8.mph.."|"..day8.wmh.."|"..day8.wkm.."|"..day8.wkt.."|"..day8.wdg.."|"..day8.wdi.."|"..day8.cd2.."|"..day8.das
local datastringday9=day9.day.."|"..day9.dat.."|"..day9.con.."|"..day9.hih.."|"..day9.low.."|"..day9.sri.."|"..day9.sst.."|"..day9.mri.."|"..day9.mst.."|"..day9.uvn.."|"..day9.uvt.."|"..day9.hum.."|"..day9.ppt.."|"..day9.snw.."|"..day9.cld.."|"..day9.mph.."|"..day9.wmh.."|"..day9.wkm.."|"..day9.wkt.."|"..day9.wdg.."|"..day9.wdi.."|"..day9.cd2.."|"..day9.das
local datastringday10=day10.day.."|"..day10.dat.."|"..day10.con.."|"..day10.hih.."|"..day10.low.."|"..day10.sri.."|"..day10.sst.."|"..day10.mri.."|"..day10.mst.."|"..day10.uvn.."|"..day10.uvt.."|"..day10.hum.."|"..day10.ppt.."|"..day10.snw.."|"..day10.cld.."|"..day10.mph.."|"..day10.wmh.."|"..day10.wkm.."|"..day10.wkt.."|"..day10.wdg.."|"..day10.wdi.."|"..day10.cd2.."|"..day10.das
local datastringfont=font.now.."|"..font.day1.."|"..font.day2.."|"..font.day3.."|"..font.day4.."|"..font.day5.."|"..font.day6.."|"..font.day7.."|"..font.day8.."|"..font.day9.."|"..font.day10
local datastringimage=image.now.."|"..image.day1.."|"..image.day2.."|"..image.day3.."|"..image.day4.."|"..image.day5.."|"..image.day6.."|"..image.day7.."|"..image.day8.."|"..image.day9.."|"..image.day10
local datastringwindfont=windfont.now.."|"..windfont.day1.."|"..windfont.day2.."|"..windfont.day3.."|"..windfont.day4.."|"..windfont.day5.."|"..windfont.day6.."|"..windfont.day7.."|"..windfont.day8.."|"..windfont.day9.."|"..windfont.day10
local datastringmoonfont=moonfont.day1.."|"..moonfont.day2.."|"..moonfont.day3.."|"..moonfont.day4.."|"..moonfont.day5.."|"..moonfont.day6.."|"..moonfont.day7.."|"..moonfont.day8.."|"..moonfont.day9.."|"..moonfont.day10
--set alldata string
alldata=datastringnow.."<>"..datastringday1.."<>"..datastringday2.."<>"..datastringday3.."<>"..datastringday4.."<>:"..datastringday5.."<>"..datastringday6.."<>"..datastringday7.."<>"..datastringday8.."<>"..datastringday9.."<>"..datastringday10.."<>"..datastringfont.."<>"..datastringimage.."<>"..datastringwindfont.."<>"..datastringmoonfont
--write alldata string
local file = io.open(location, "w")
file:write(alldata)
file:close()
--######################################################################################################################################################################################################################################################################################################################################################
--set alldata string
alldata=datastringnow.."<>"..datastringday1.."<>"..datastringday2.."<>"..datastringday3.."<>"..datastringday4.."<>:"..datastringday5.."<>"..datastringday6.."<>"..datastringday7.."<>"..datastringday8.."<>"..datastringday9.."<>"..datastringday10.."<>"..datastringfont.."<>"..datastringimage.."<>"..datastringwindfont.."<>"..datastringmoonfont
--remove any open variables except all data
wimage={}
windfontt={}
moonfontt={}
data1=nil
data={}
fdata1=nil
fdata={}
fdata2={}
icondata1=nil
icondata={}
icondata2={}
cdn={}
con=nil
cd2=nil
wdr={}
now={}
dyt={}
uvi={}
wsp={}
wdr={}
day1={}
day2={}
day3={}
day4={}
day5={}
day6={}
day7={}
day8={}
day9={}
day10={}
nowif={}
day1if={}
day2if={}
day3if={}
day4if={}
day5if={}
day6if={}
day7if={}
day8if={}
day9if={}
day10if={}
image={}
font={}
windfont={}
moonfont={}
end--timed section
--##################################################
--#read written data and process for conyrc restart#
--##################################################
if alldata==nil then
local f=io.popen("cat '"..location.."'")
alldata=f:read("*a")
f:close()
end
--################################
daydata=string.split(alldata,"<>")
now=string.split(daydata[1],"|")
day1=string.split(daydata[2],"|")
day2=string.split(daydata[3],"|")
day3=string.split(daydata[4],"|")
day4=string.split(daydata[5],"|")
day5=string.split(daydata[6],"|")
day6=string.split(daydata[7],"|")
day7=string.split(daydata[8],"|")
day8=string.split(daydata[9],"|")
day9=string.split(daydata[10],"|")
day10=string.split(daydata[11],"|")
font=string.split(daydata[12],"|")
image=string.split(daydata[13],"|")
windfont=string.split(daydata[14],"|")
moonfont=string.split(daydata[15],"|")
--set individual data points
now={con=now[1],tmp=now[2],flk=now[3],wch=now[4],cel=now[5],hid=now[6],vis=now[7],dpt=now[8],wsp=now[9],wdg=now[10],wdi=now[11],wgs=now[12],hum=now[13],prs=now[14],cd2=now[15]}
day1={day=day1[1],dat=day1[2],con=day1[3],hih=day1[4],low=day1[5],sri=day1[6],sst=day1[7],mri=day1[8],mst=day1[9],uvn=day1[10],uvt=day1[11],hum=day1[12],ppt=day1[13],snw=day1[14],cld=day1[15],mph=day1[16],wmh=day1[17],wkm=day1[18],wkt=day1[19],wdg=day1[20],wdi=day1[21],cd2=day1[22],das=day1[23]}
day2={day=day2[1],dat=day2[2],con=day2[3],hih=day2[4],low=day2[5],sri=day2[6],sst=day2[7],mri=day2[8],mst=day2[9],uvn=day2[10],uvt=day2[11],hum=day2[12],ppt=day2[13],snw=day2[14],cld=day2[15],mph=day2[16],wmh=day2[17],wkm=day2[18],wkt=day2[19],wdg=day2[20],wdi=day2[21],cd2=day2[22],das=day2[23]}
day3={day=day3[1],dat=day3[2],con=day3[3],hih=day3[4],low=day3[5],sri=day3[6],sst=day3[7],mri=day3[8],mst=day3[9],uvn=day3[10],uvt=day3[11],hum=day3[12],ppt=day3[13],snw=day3[14],cld=day3[15],mph=day3[16],wmh=day3[17],wkm=day3[18],wkt=day3[19],wdg=day3[20],wdi=day3[21],cd2=day3[22],das=day3[23]}
day4={day=day4[1],dat=day4[2],con=day4[3],hih=day4[4],low=day4[5],sri=day4[6],sst=day4[7],mri=day4[8],mst=day4[9],uvn=day4[10],uvt=day4[11],hum=day4[12],ppt=day4[13],snw=day4[14],cld=day4[15],mph=day4[16],wmh=day4[17],wkm=day4[18],wkt=day4[19],wdg=day4[20],wdi=day4[21],cd2=day4[22],das=day4[23]}
day5={day=string.gsub(day5[1],":",""),dat=day5[2],con=day5[3],hih=day5[4],low=day5[5],sri=day5[6],sst=day5[7],mri=day5[8],mst=day5[9],uvn=day5[10],uvt=day5[11],hum=day5[12],ppt=day5[13],snw=day5[14],cld=day5[15],mph=day5[16],wmh=day5[17],wkm=day5[18],wkt=day5[19],wdg=day5[20],wdi=day5[21],cd2=day5[22],das=day5[23]}
day6={day=day6[1],dat=day6[2],con=day6[3],hih=day6[4],low=day6[5],sri=day6[6],sst=day6[7],mri=day6[8],mst=day6[9],uvn=day6[10],uvt=day6[11],hum=day6[12],ppt=day6[13],snw=day6[14],cld=day6[15],mph=day6[16],wmh=day6[17],wkm=day6[18],wkt=day6[19],wdg=day6[20],wdi=day6[21],cd2=day6[22],das=day6[23]}
day7={day=day7[1],dat=day7[2],con=day7[3],hih=day7[4],low=day7[5],sri=day7[6],sst=day7[7],mri=day7[8],mst=day7[9],uvn=day7[10],uvt=day7[11],hum=day7[12],ppt=day7[13],snw=day7[14],cld=day7[15],mph=day7[16],wmh=day7[17],wkm=day7[18],wkt=day7[19],wdg=day7[20],wdi=day7[21],cd2=day7[22],das=day7[23]}
day8={day=day8[1],dat=day8[2],con=day8[3],hih=day8[4],low=day8[5],sri=day8[6],sst=day8[7],mri=day8[8],mst=day8[9],uvn=day8[10],uvt=day8[11],hum=day8[12],ppt=day8[13],snw=day8[14],cld=day8[15],mph=day8[16],wmh=day8[17],wkm=day8[18],wkt=day8[19],wdg=day8[20],wdi=day8[21],cd2=day8[22],das=day8[23]}
day9={day=day9[1],dat=day9[2],con=day9[3],hih=day9[4],low=day9[5],sri=day9[6],sst=day9[7],mri=day9[8],mst=day9[9],uvn=day9[10],uvt=day9[11],hum=day9[12],ppt=day9[13],snw=day9[14],cld=day9[15],mph=day9[16],wmh=day9[17],wkm=day9[18],wkt=day9[19],wdg=day9[20],wdi=day9[21],cd2=day9[22],das=day9[23]}
day10={day=day10[1],dat=day10[2],con=day10[3],hih=day10[4],low=day10[5],sri=day10[6],sst=day10[7],mri=day10[8],mst=day10[9],uvn=day10[10],uvt=day10[11],hum=day10[12],ppt=day10[13],snw=day10[14],cld=day10[15],mph=day10[16],wmh=day10[17],wkm=day10[18],wkt=day10[19],wdg=day10[20],wdi=day10[21],cd2=day10[22],das=day10[23]}
font={now=font[1],day1=font[2],day2=font[3],day3=font[4],day4=font[5],day5=font[6],day6=font[7],day7=font[8],day8=font[9],day9=font[10],day10=font[11]}
image={now=image[1],day1=image[2],day2=image[3],day3=image[4],day4=image[5],day5=image[6],day6=image[7],day7=image[8],day8=image[9],day9=image[10],day10=image[11]}
windfont={now=windfont[1],day1=windfont[2],day2=windfont[3],day3=windfont[4],day4=windfont[5],day5=windfont[6],day6=windfont[7],day7=windfont[8],day8=windfont[9],day9=windfont[10],day10=windfont[11]}
moonfont={day1=moonfont[1],day2=moonfont[2],day3=moonfont[3],day4=moonfont[4],day5=moonfont[5],day6=moonfont[6],day7=moonfont[7],day8=moonfont[8],day9=moonfont[9],day10=moonfont[10]}
return ""
--#########################################
end--weather data gathering function#######
--#########################################

--#############################################################
function conky_weather(conkydata,xpos,ypos,scale1,scale2)--####
--#############################################################
if xpos==nil then xpos=0 end
if ypos==nil then ypos=0 end
if scale1==nil then scale1=0 end
if scale2==nil then scale2=0 end
--########################
--####print moon font#####
--########################
if string.find(conkydata,"moonfont")~=nil then
local wfont="Moon Phases"
local text=(loadstring("return "..conkydata)())
txt(text,xpos,ypos,wfont,scale1,scale2)
conkydata=""
end--moon font
--########################
--####print wind font#####
--########################
if string.find(conkydata,"windfont")~=nil then
local wfont="ConkyWindNESW"
local text=(loadstring("return "..conkydata)())
txt(text,xpos,ypos,wfont,scale1,scale2)
conkydata=""
end--wind font
--########################
--####print weather font#####
--########################
--weather font comes last as will match windfont and moonfont
if string.find(conkydata,"font")~=nil then
local wfont="ConkyWeather"
local text=(loadstring("return "..conkydata)())
txt(text,xpos,ypos,wfont,scale1,scale2)
conkydata=""
end--weather font
--#######################
--#####weather image#####
--#######################
if string.find(conkydata,"image")~=nil then
output="${image "..weathericons..(loadstring("return "..conkydata)())..".png -p "..xpos..","..ypos.." -s "..scale1.."x"..scale2.."}"
conkydata=""
elseif
loadstring("return " .. conkydata)()==nil then
output=""
else
output=(loadstring("return " .. conkydata)())
end
--------------------------------------

--------------------------------------
return output
--######################
end--main function######
--######################

function txt(dtext,dxpos,dypos,dfont,dfsize,dcolor)
---------------------------------------------
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
---------------------------------------------
--set font and size
local function rgb_to_r_g_b(color)
return ((color/0x10000) % 0x100)/255,((color/0x100) % 0x100)/255,(color % 0x100)/255,1
end
cairo_select_font_face (cr, dfont, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, dfsize)
--get extents info
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,dtext,extents)
local xb=extents.x_bearing
local yb=extents.y_bearing
local height=extents.height
local ybadj=-height-yb
--set color
cairo_set_source_rgba (cr ,rgb_to_r_g_b(dcolor))
cairo_move_to (cr,dxpos-xb,dypos+ybadj)
cairo_show_text (cr,dtext)
cairo_stroke (cr)
---------------------------------
cairo_destroy(cr)
cairo_surface_destroy(cs)
end--function

Last edited by ackernan (2012-01-02 16:48:50)

Offline

#20 2012-01-02 17:55:29

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

@ackernan.. Thanks.  You have become a master conky manipulator in a short period of time, of course learning from the Legend S11 helps..

S11 - Working on testing tint2 now with new variables made available.. If the they ever come through with making Launchers behave the same as Tasks it would be so much easier..  Specifically iconify/deiconify .... Getting there slowly.. Thanks!


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#21 2012-01-02 19:13:58

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

Dodge ram wrote:

Sector11, when I posted that message I forgot to include the pic. I like to attribute it to male menopause.
Screenshot_1.jpg
http://dl.dropbox.com/u/30953293/wea%20con.tar.gz

ackernan, I got the cores to read right. On the hard drive temp is reading 6 F. Do I need to play around withthe numbers in |cut -c36-40}? If anyone else has a answer the full line is in post #4. Thanks

If you are still using that consider yourself lucky, everyone else has lost the weather with conkyForecast.

With hddtemp you do not need to use cut at all:

${execpi 15 hddtemp -n /dev/sda1}°

-n is for numerical output only:

  16:12:46 ~
         $ hddtemp -n /dev/sda
37

  16:13:02 ~
         $

Also check this for above TEXT:

temperature_unit
     Desired output unit of all objects displaying a temperature. Parameters are either "fahrenheit" or "celsius". The default unit is degree Celsius.

Offline

#22 2012-01-02 19:18:53

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,874
Website

Re: The New Monster Conky Thread

VastOne wrote:

@ackernan.. Thanks.  You have become a master conky manipulator in a short period of time, of course learning from the Legend S11 helps..

Not even a legend in my own mind! big_smile

VastOne wrote:

S11 - Working on testing tint2 now with new variables made available.. If the they ever come through with making Launchers behave the same as Tasks it would be so much easier..  Specifically iconify/deiconify .... Getting there slowly.. Thanks!

Ohhhhh yea - I'll wait for your HowTo!!!  big_smile

Offline

#23 2012-01-02 21:15:48

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

Sector11 wrote:

With hddtemp you do not need to use cut at all:

${execpi 15 hddtemp -n /dev/sda1}°

-n is for numerical output only:

  16:12:46 ~
         $ hddtemp -n /dev/sda
37

  16:13:02 ~
         $

Also check this for above TEXT:

temperature_unit
     Desired output unit of all objects displaying a temperature. Parameters are either "fahrenheit" or "celsius". The default unit is degree Celsius.

That doesn't work with external programs like hddtemp, you'll still need to use -u f.

Offline

#24 2012-01-02 21:19:50

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

Re: The New Monster Conky Thread

@ackernan hddtemp -n works perfectly for me..  I use it on every machine and on each it does as Sector12 says...

I use it this way:

${execi 5 hddtemp -n /dev/sda}°

Last edited by VastOne (2012-01-02 21:21:18)


VSIDO | SolusOS

Words That Build Or Destroy

Offline

Be excellent to each other!

#25 2012-01-02 21:30:25

ackernan
#! Junkie
Registered: 2011-01-10
Posts: 403

Re: The New Monster Conky Thread

VastOne wrote:

@ackernan hddtemp -n works perfectly for me..  I use it on every machine and on each it does as Sector12 says...

I use it this way:

${execi 5 hddtemp -n /dev/sda}°

hddtemp -n does work for me but to get the numbers displayed as imperial you need to use hddtemp -nu f /dev/sda1.  The conky config setting that Sector11 posted is not for external programs like hddtemp.  It works with temperatures that conky does, like hwmon.

temperature_unit
     Desired output unit of all objects displaying a temperature. Parameters are either "fahrenheit" or "celsius". The default unit is degree Celsius.

***The reason I used cut, and probably the same reason for Dodgeram, is the keyboard doesn't have the degree symbol.

Last edited by ackernan (2012-01-02 22:15:06)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo