PDA

View Full Version : Post your .conkyrc files w/ screenshots



Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 [84] 85 86 87 88 89 90 91 92 93 94

rolypolycat
October 14th, 2012, 07:01 AM
My conky is located in:/home/michelle/.conkyrc/conkyrc

I've tried moving it around in my home directory, but that didn't help either.

I've been starting conky in the terminal with the command: conky

It doesn't run at all; just gives me the same old error message:
michelle@the-cathouse:~$ conky
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-02idlF/pkcs11: No such file or directory
Conky: invalid configuration file '/home/michelle/.conkyrc'

Conky: missing text block in configuration; exiting
***** Imlib2 Developer Warning ***** :
This program is calling the Imlib call:

imlib_context_free();

With the parameter:

context

being NULL. Please fix your program.

I've been around the web, too; on the arch site and a bunch of others, but everything they suggested, I tried, and it didn't work.

This what I got after I made the /rpc directory, put the text file in there of the code you gave me, and ran the conky command:
michelle@the-cathouse:~$ WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-02idlF/pkcs11: No such file or directory
Conky: invalid configuration file '/home/michelle/rpc'

Conky: no readable personal or system-wide config file found

I still can't help but wonder if there's something wrong on my computer. Why would all the conky files I've tried not work? Even the default file from the developers gave that same error message. At least this time the error message is different.
And what it this keyring thing it can't seem to find? Could that be the cause of the trouble?

Still plugging away!

stinkeye
October 14th, 2012, 08:21 AM
See HERE (http://ubuntuforums.org/showpost.php?p=12275031&postcount=6) for info.

If using conky -c option to run conky make sure the path to your
config is correct.
Go to your configs location in the file browser and right click on it and copy.
In the terminal enter conky -c followed by a space then, right click in the terminal and choose Paste Filenames.


If using just conky to run, your config has to be @

/home/michelle/.conkyrc

Where .conkyrc is your config not a folder.


Running in terminal...

gedit /home/michelle/.conkyrc
Should open your config in gedit.

stinkeye
October 14th, 2012, 11:52 AM
Looking for some conky help. Is there anyone that is able to recreate the geektool in the attached screenshot in Conky? I have attempted it and failed miserably after 2 hours of messing around (I am not that well versed in Conky)

http://ompldr.org/tZnZpaA (http://ompldr.org/vZnZpaA)
This conky outputs something similar.
You just need to find a font you like.
I'm using the DistrictThin font (http://www.urbanfonts.com/fonts/District_Thin.htm)

#

# set to yes if you want Conky to be forked in the background
background no

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour brown
own_window_transparent yes
own_window_argb_value 0
own_window_argb_visual yes

# fiddle with window
use_spacer none
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.9

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
minimum_size 250 200
maximum_width 250

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
font Bitstream Vera Sans Mono:size=11

# Stippled borders?
#stippled_borders 3

# border margins
#border_margin 0

# border width
#border_width 0

# Default colors and also border colors, grey90 == #e5e5e5
default_color #348a8f


# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment top_middle

# Gap between borders of screen and text
gap_x
gap_y 200

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# stuff after 'TEXT' will be formatted on screen



TEXT
${font DistrictThin:size=102}${time %l}
${font DistrictThin:size=40}${goto 130}${voffset -215}${time :%M}
${font DistrictThin:size=40}${goto 130}${voffset -5}${time %p}
${voffset -36}${font DistrictThin:size=16}${alignc}${time %B %d}

Sector11
October 14th, 2012, 02:58 PM
Still plugging away!

Hi - I'll bet you put the command in from an email notification.
After I saved my last post I noticed that it said:


conky -c ~rpc
not

conky -c ~/rpc

However stinkeye gave some sage advice.
The questions I finally asked should have been asked first.
Live and learn.

Does it work now?

Sector11
October 14th, 2012, 03:09 PM
This conky outputs something similar.
You just need to find a font you like.
I'm using the DistrictThin font (http://www.urbanfonts.com/fonts/District_Thin.htm)

I just finished the same thing - different font. Different look.
I like that font .. grabbed it ...thanks

Here's another option for DobsonM
Uses or commented out:

alignment middle_middle
gap_x 0 # left-right
gap_y 0 # up-down
#minimum_size 0 0
#maximum_width 0, and
xftfont WenQuanYi Micro Hei Mono:size=10

for when I use ${font} under TEXT to give a finer spacing aspect with less negative ${voffset} commands.


# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/.conky/conky11/Date-Hour.conky &

### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour gray
own_window_class Conky
own_window_title Time-Date

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

#minimum_size 0 0 ## width, height
#maximum_width 0 ## width, usually a good idea to equal minimum width

gap_x 0 # left-right
gap_y 0 # up-down

alignment middle_middle
################################################## # End Window Settings ###
### Font Settings ################################################## #######
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont WenQuanYi Micro Hei Mono:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color gray
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
#default_graph_size 15 40
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
# text_buffer_size 1028

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

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

############################################## End Miscellaneous Section ###
update_interval 1

TEXT
${font WenQuanYi Micro Hei Mono:size=120}${time %I}\
${voffset -70}${font WenQuanYi Micro Hei Mono:size=50}${goto 180}:${font WenQuanYi Micro Hei Mono:size=40}${time %M}${font}
${goto 200}${font WenQuanYi Micro Hei Mono:size=50}${time %p}${font}

${font WenQuanYi Micro Hei Mono:size=20}${alignc}${time %B %e}


http://t.imgbox.com/acmeQ4Tx.jpg (http://imgbox.com/acmeQ4Tx)

stinkeye
October 14th, 2012, 05:10 PM
I just finished the same thing - different font. Different look.
I like that font .. grabbed it ...thanks


lol, I knew you would be but I couldn't resist the challenge.
Even changed my time to match DobsonM's. ;)

Sector11
October 14th, 2012, 06:07 PM
lol, I knew you would be but I couldn't resist the challenge.
Even changed my time to match DobsonM's. ;)

I had started working on it before you posted - but I'm a slow 3.5 finger typist that has to look at the keyboard ... and I paused to have breakfast with my wife when she got up. When it was done I clicked on the link and - stinkeye beat me to it. Grrrrrrrrr ):P

The beauty of Linix: 1,000,001 ways to do the same thing - and get new fonts. :lolflag:

I added:

draw_outline yes # amplifies text if yes
default_outline_color black
to my version so it shows on light walls. For something so simple it's really quite elegant. Must try that new font though, plus I changed to 24 hour time and added seconds. different conky so I still have the other one.

http://t.imgbox.com/acjN0o8L.jpg (http://imgbox.com/acjN0o8L)
I have something similar in and older conky - must go looking.

rolypolycat
October 14th, 2012, 09:47 PM
HOUSTON, WE HAVE LIFTOFF!! I NOW HAVE CONKY ON THE DESKTOP!! :lolflag:
************************************************** *******************
@stinkeye:

I returned the original code sector11 gave me to /home/michelle .conkyrc and to /etc/conky; I renamed the /rpc folder. This is the code I'm using now:

#conky config file-small blue box

background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
double_buffer yes
minimum_size 280 5
draw_shades yes
draw_outline no
draw_graph_borders yes
stippled_borders 8
border_inner_margin 4
border_width 4
maximum_width 155
default_shade_color 000000 #0 0 0 0 Black
default_outline_color 000000 #0 0 0 Black
alignment bottom_right
gap_x 0 #-5
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
default_color A9A9A9 #169 169 169 DarkGray
color0 5b6dad
color1 ddaa00

TEXT
${color0}${alignc}${nodename} - ${uptime_short}

${color0}CPU: ${color grey}${cpu cpu1}% ${color0}[${color}${hwmon 2 temp 1}C${color0}] ${freq_g}Mhz
${color0} ${cpugraph 16,140 000000 7f8ed3}
${color0}RAM: ${color}$mem/$memmax
${color0} ${membar 6,140}
${color0}Swap: ${color}$swap/$swapmax
${color0} ${swapbar 6,140}

${color0}ETH0 Down: ${color}${downspeed eth0}${alignc} k/s
${color0} ${downspeedgraph eth0 16,140 000000 7f8ed3 190}
${color0}ETH0 Up: ${color}${upspeed eth0}${alignc} k/s
${color0} ${upspeedgraph eth0 16,140 000000 7f8ed3 16}
${color0}File systems:
${color0}/ ${color}${fs_free /}
${color0} ${fs_bar 6,140 /}
${color0}HDD Usage: [${color}${execi 15 hddtemp -n /dev/sda}°C${color0}]
${color0} ${color}${diskiograph 16,140 000000 7f8ed3 90000 -t -l}

${color0}Processes:$color $processes | $running_processes
${color} CPU Usage${goto 125}CPU
${color1} ${top name 1}${goto 115}${top cpu 1}
${color0} ${top name 2}${goto 115}${top cpu 2}
${color0} ${top name 3}${goto 115}${top cpu 3}
${color0} ${top name 4}${goto 115}${top cpu 4}

${color} MEM Usage${goto 125}MEM
${color1} ${top_mem name 1}${goto 115}${top_mem mem 1}
${color0} ${top_mem name 2}${goto 115}${top_mem mem 2}
${color0} ${top_mem name 3}${goto 115}${top_mem mem 3}
${color0} ${top_mem name 4}${goto 115}${top_mem mem 4}

${color0}Connections:
$color In: ${tcp_portmon 1 32767 count}${alignr 5}Out: ${tcp_portmon 32768 61000 count}
******************************************
When I run just "conky" in the terminal, I get this:

michelle@the-cathouse:~$ conky
WARNING: gnome-keyring:: couldn't connect to: /tmp/keyring-02idlF/pkcs11: No suc
h file or directory
Conky: can't open '/sys/class/hwmon/hwmon2/temp1_input': No such file or directo
ry
please check your device or remove this var from Conky
Conky: forked to background, pid is 15475
michelle@the-cathouse:~$
Conky: desktop window (800003) is subwindow of root window (b6)
Conky: window type - override
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer

(What is the /sys/class stuff it's fussing about?)
**************************************************
Anyway, thank you so much, Sector11 and Stinkeye!!

I'm going to read up more on the config parts, since theres a few things I don't need/understand from this conky, but it's finally up and running!! (Is there a good page somewhere which explains these functions in simple language a noob like me can understand? I have NO programming experience.)

Thanks so much!

sincerely,

Michelle

rolypolycat
October 14th, 2012, 10:04 PM
Hmmm, I just noticed something a bit odd; my wallpaper has turned completely black, except for an inch wide margin at the bottom.

http://i1213.photobucket.com/albums/cc466/rolypolycat/shot-2012-10-14_14-00-16.jpg

What happened?

I tried re-installing my wallpaper from the settings box, but it didn't work. Why doesn't conky like my wallpaper? It's not that bad, honest!

MoralAnarchy
October 15th, 2012, 12:23 AM
Hey folks! I am slowly but surely learning a thing or two about conky and I'm loving it. My current issue is this-- I have recently configured the v9000 lua from MrPeachy onto my laptop and went through all the steps of filling in the proper information in all the files. Now the issue arises that when I start it in a terminal I receive this script -->


Conky: desktop window (1600095) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x3c00001)
Conky: drawing to double buffer
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 56042 0 0:00:01 0:00:01 --:--:-- 87180
you have no weather alerts
processing complete
1
sh: 1: xdotool: not found
Absolute upper-left X: 5 Absolute upper-left Y: 603
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 9195 0 0:00:09 0:00:09 --:--:-- 45023
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 15542 0 0:00:05 0:00:05 --:--:-- 97067
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 13134 0 0:00:06 0:00:06 --:--:-- 47752
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 54112 0 0:00:01 0:00:01 --:--:-- 100k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 48629 0 0:00:01 0:00:01 --:--:-- 71899
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 35919 0 0:00:02 0:00:02 --:--:-- 51009
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 24555 0 0:00:03 0:00:03 --:--:-- 95710
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 58332 0 0:00:01 0:00:01 --:--:-- 95813
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 86822 0 0:00:01 0:00:01 --:--:-- 172k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 37488 0 0:00:02 0:00:02 --:--:-- 55562
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 36538 0 0:00:02 0:00:02 --:--:-- 72543
you have no weather alerts
processing complete
Now as you will see in the screen shot I provide that the only thing appear on my desktop is a faint box outline on the bottom left of my screen. If anybody has an idea on how to help or can tell me how I'm a complete failure right now I'd be more than appreciative :). If you are willing to help and need more info from me just ask.

MoralAnarchy
October 15th, 2012, 12:26 AM
forgot this... :p

arclance
October 15th, 2012, 12:29 AM
Hey folks! I am slowly but surely learning a thing or two about conky and I'm loving it. My current issue is this-- I have recently configured the v9000 lua from ArcLane(hope that username is right :)) onto my laptop and went through all the steps of filling in the proper information in all the files. Now the issue arises that when I start it in a terminal I receive this script -->

v9000 is mrpeachys weather script not mine.

MoralAnarchy
October 15th, 2012, 12:32 AM
v9000 is mrpeachys weather script not mine.
My mistake! I've been awake for too long and everything is kind of blurring right now haha. Working 12 hour days doesn't help when you're trying to learn something new :/

mrpeachy
October 15th, 2012, 12:46 AM
Hey folks! I am slowly but surely learning a thing or two about conky and I'm loving it. My current issue is this-- I have recently configured the v9000 lua from MrPeachy onto my laptop and went through all the steps of filling in the proper information in all the files. Now the issue arises that when I start it in a terminal I receive this script -->


Conky: desktop window (1600095) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x3c00001)
Conky: drawing to double buffer
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 89011 100 89011 0 0 56042 0 0:00:01 0:00:01 --:--:-- 87180
you have no weather alerts
processing complete
1
sh: 1: xdotool: not found


you don't have xdotool installed
i assume you are trying an interactive weather setup?

a recent version of xdotool should be available in ubuntu repos

MoralAnarchy
October 15th, 2012, 03:43 AM
Thanks for that. I downloaded xdottool and went ahead and updated. Now, though, the 'ghosted' image on my desktop looks slightly different and when I clikck inside of it randomly this is what appears in my terminal ->

findclient: 54525953

that will appear over and over however many times I click.
Just to be sure though that there are no more errors that I'm missing on this initial load script I'm going to include it at as well.

Conky: desktop window (1400095) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x3400001)
Conky: drawing to double buffer
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88921 100 88921 0 0 28137 0 0:00:03 0:00:03 --:--:-- 45183
you have no weather alerts
processing complete
1
Absolute upper-left X: 5 Absolute upper-left Y: 24

mrpeachy
October 15th, 2012, 04:19 AM
Thanks for that. I downloaded xdottool and went ahead and updated. Now, though, the 'ghosted' image on my desktop looks slightly different and when I clikck inside of it randomly this is what appears in my terminal ->

can you post your conkyrc and the weather template script

MoralAnarchy
October 15th, 2012, 04:30 AM
I turned the weather template script into my conkyrc because that's what the filepaths seemed to be calling for on one of my earlier errors. Should I change it back to the weather_template file name? And if so what specifically do I need to put in my conkyrc in order to run weather properly?

MoralAnarchy
October 15th, 2012, 05:06 AM
@mrpeachy. Hey sorry about that. I found a version of V9000 with much more comprehensive instructions in the readme file that helped me out immensely and corrected what I think were some of my earlier problems but I am getting some new errors now. I will attach the terminal readout as well as my v9000.lua file.

terminal:


moralanarchy@MoralAnarchy:~$ conky -c ~/v9000/conky_weather
Conky: llua_load: /home/moralanarchy/v9000/v9000.lua:8: attempt to concatenate local 'username' (a nil value)
Conky: desktop window (1400095) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x4000002)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_weather execution failed: attempt to call a nil value


my v9000 lua:


--weather v9000 by mrpeachy 01/10/12; released: Feb 23, 2012
require 'cairo'
require 'imlib2'
local username = os.getenv("USERNAME")
--you can enter your username here in case of errors,
--enter username in quotes like this username = "yourname"
local username = moralanarchy
package.path = '/home/'..username..'/.v9000_config.lua'
require '.v9000_config'
start=1
--INITIALIZE SETTINGS-- need only be run once
settings_table=weather_settings()
--##################################
--######## main function ###########
function conky_weather()--##########
--##################################
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)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
--###UNCOMMENT THE BELOW LINE TO ENABLE CPU DELAY############################################# #############
--if updates>5 then--###### YOU WILL ALSO HAVE TO UNCOMMENT THE MATCHING end ON LINE 923 ####################
--################################################## ################################################## #####
local testing=0--this setting is for script testing, if not in testing set to 0
--################################################## ################################################## #####
--############start of timed section########################################### ############################
--################################################## ################################################## #####
local timer=(updates %tonumber(settings_table[1]))
--################################################
if timer==0 or start==1 then--######
start=nil--#######################################
local web=settings_table[2]
local alert_check=settings_table[13]
--################################################
print ("gathering data with curl")
local f=io.popen("curl --max-time 60 '"..web.."' | sed 's/%//g'")
allweatherdata=f:read("*a")
f:close()
allweatherdata=string.gsub(allweatherdata,"[\n\r]","")
testall=string.find(allweatherdata,">10 Day Forecast&nbsp")
--CHECK FOR WEATHER ALERTS
if testall~=nil and alert_check==1 then
local alert=string.find(allweatherdata,"Severe Weather Alert!")
if alert~=nil then
print ("getting weather alerts")
--get alert web
local a,b,alertchunk=string.find(allweatherdata,">Local Information</div>(.*)>Severe Weather Alert!<")
local a,b,alertsite=string.find(alertchunk,"><a href=%p(.*)%p><img src=")
local f=io.popen("curl --max-time 60 'http://www.intellicast.com"..alertsite.."' | sed 's/%//g'")
alertdata=f:read("*a")
f:close()
alertdata=string.gsub(alertdata,"[\n\r]","")
alerttest=string.find(alertdata,"%a")
else
print ("you have no weather alerts")
alerttest=0
end--if alert~=nil
else
print ("not checking for alerts")
alerttest=1
end--if testall and alert check
processall=1
end--of timed data gathering section
--################################################## #######################

--################################################## #######################
--in case curl craps up it should retry until it works
if testall==nil or alerttest==nil then
print ("curl attempt timed out, trying again")
local web=settings_table[2]
local alert_check=settings_table[13]
local f=io.popen("curl --max-time 60 '"..web.."' | sed 's/%//g'")
allweatherdata=f:read("*a")
f:close()
allweatherdata=string.gsub(allweatherdata,"[\n\r]","")
testall=string.find(allweatherdata,">10 Day Forecast&nbsp")
--CHECK FOR WEATHER ALERTS
if testall~=nil and alert_check==1 then
local alert=string.find(allweatherdata,"Severe Weather Alert!")
if alert~=nil then
print ("getting weather alerts")
--get alert web
local a,b,alertchunk=string.find(allweatherdata,">Local Information</div>(.*)>Severe Weather Alert!<")
local a,b,alertsite=string.find(alertchunk,"><a href=%p(.*)%p><img src=")
local f=io.popen("curl --max-time 60 'http://www.intellicast.com"..alertsite.."' | sed 's/%//g'")
alertdata=f:read("*a")
f:close()
alertdata=string.gsub(alertdata,"[\n\r]","")
alerttest=string.find(alertdata,"%a")
else
print ("you have no weather alerts")
alerttest=0
end--if alert~=nil
else
print ("not checking for alerts")
alerttest=1
end--if testall and alert_check
processall=1
end--if testall==nil
--end or curl reruns ################################################## ####

--START PROCESSING ################################################## #########################
if testall~=nil and alerttest~=nil and processall==1 then
local weathericons=settings_table[3]
local con_short=settings_table[4]
local visibility_unit=settings_table[6]
local wind_mph_unit=settings_table[7]
local wind_km_unit=settings_table[8]
local wind_kts_unit=settings_table[9]
local ceiling_unit=settings_table[10]
local wind_degrees_unit=settings_table[11]
local translate=settings_table[12]
local alert_check=settings_table[13]
--################################################## #######################
--LOAD TRANSLATE TABLES IF TRANSLATE SETTING = 1
if translate==1 then
monthshort=settings_table[21]
monthnames=settings_table[20]
dayhort=settings_table[19]
daynames=settings_table[18]
neswtext=settings_table[14]
tsuffix=settings_table[15]
uvindextext=settings_table[16]
moonphases=settings_table[17]
additional=settings_table[22]
else--neswtext,tsuffix,uvindextext,moonphases,daynames,d ayshort,monthnames,monthshort
dayshort={Monday="Mon",Tuesday="Tue",Wednesday="Wed",Thursday="Thu",Friday="Fri",Saturday="Sat",Sunday="Sun"}
monthshort={January="Jan",February="Feb",March="Mar",April="Apr",May="May",June="Jun",July="Jul",August="Aug",September="Sep",October="Oct",November="Nov",December="Dec"}
end--end if translate =1
--################################################## #######################
--process data tables
--intellicast to conky weather icon conversion
wimage={
wx_65="32", -- Clear
wx_66="30", -- Partly Cloudy
wx_67="26", -- Cloudy
wx_68="32", -- Clear
wx_69="28", -- Mostly Cloudy
wx_70="20", -- Fog
wx_71="32", -- Clear
wx_72="21", -- Haze
wx_73="36", -- Hot
wx_74="14", -- Light Snow Showers
wx_75="28", -- Mostly Cloudy
wx_76="18", -- Sleet
wx_77="14", -- Light Snow Showers
wx_78="23", -- Blustery
wx_79="05", -- Mixed Rain and Snow
wx_80="15", -- Drifting Snow
wx_81="15", -- Drifting Snow
wx_82="11", -- Light Rain
wx_83="16", -- Snow
wx_84="00", -- Tornado
wx_85="32", -- Clear
wx_86="25", -- N/A
wx_87="09", -- Drizzle
wx_88="05", -- Mixed Rain and Snow
wx_89="18", -- Sleet
wx_90="18", -- Sleet
wx_91="39", -- Scattered Showers
wx_92="39", -- Scattered Showers
wx_93="39", -- Scattered Showers
wx_94="39", -- Scattered Showers
wx_95="37", -- Isolated Thunderstorms
wx_96="37", -- Isolated Thunderstorms
wx_97="31", -- Clear
wx_98="29", -- Partly Cloudy
wx_99="27", -- Mostly Cloudy
wx_100="47", -- Isolated Thunderstorms
wx_101="47", -- Isolated Thunderstorms
wx_102="33", -- Fair
wx_103="26", -- Cloudy
wx_104="20", -- Fog
wx_105="45", -- Scattered Showers
wx_106="45", -- Scattered Showers
wx_107="11", -- Light Rain
wx_108="46", -- Snow Showers
wx_109="46", -- Snow Showers
wx_110="06", -- Mixed Rain and Sleet
wx_111="18", -- Sleet
wx_112="06", -- Mixed Rain and Sleet
wx_113="46", -- Snow Showers
wx_114="46", -- Snow Showers
wx_115="31", -- Clear
wx_116="47", -- Isolated Thunderstorms
}--end w image table
--convert intellicast icons to weather font
wfont={
wx_65="a",
wx_66="c",
wx_67="f",
wx_68="a",
wx_69="d",
wx_70="0",
wx_71="a",
wx_72="9",
wx_73="5",
wx_74="p",
wx_75="d",
wx_76="w",
wx_77="p",
wx_78="6",
wx_79="x",
wx_80="8",
wx_81="8",
wx_82="h",
wx_83="q",
wx_84="m",
wx_85="a",
wx_86="-",
wx_87="h",
wx_88="x",
wx_89="w",
wx_90="w",
wx_91="g",
wx_92="g",
wx_93="g",
wx_94="g",
wx_95="k",
wx_96="k",
wx_97="A",
wx_98="C",
wx_99="D",
wx_100="K",
wx_101="K",
wx_102="B",
wx_103="f",
wx_104="0",
wx_105="G",
wx_106="G",
wx_107="h",
wx_108="O",
wx_109="O",
wx_110="x",
wx_111="w",
wx_112="x",
wx_113="O",
wx_114="O",
wx_115="A",
wx_116="K",
}--end w font table
--conversion day and month tables
moonfontt={
["New"]="@",
["Full"]="=",
["First Quarter"]="T",
["Last Quarter"]="G",
["Waning Gibbous"]="D",
["Waning Crescent"]="J",
["Waxing Crescent"]="Q",
["Waxing Gibbous"]="W",
}--end of moon font table
moonicont={
["New"]=weathericons.."moon_new.png",
["Full"]=weathericons.."moon_full.png",
["First Quarter"]=weathericons.."moon_first_quarter.png",
["Last Quarter"]=weathericons.."moon_last_quarter.png",
["Waning Gibbous"]=weathericons.."moon_waning_gibbous.png",
["Waning Crescent"]=weathericons.."moon_waning_crescent.png",
["Waxing Crescent"]=weathericons.."moon_waxing_crescent.png",
["Waxing Gibbous"]=weathericons.."moon_waxing_gibbous.png",
}--end of moon icon table
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"
}--end of wind direction font table
--################################################## #######################

--################################################## #######################
--setup tables for forecast weather
forecast_day={}
forecast_day_caps={}
forecast_day_lc={}
forecast_day_short={}
forecast_day_short_caps={}
forecast_day_short_lc={}
forecast_month={}
forecast_month_caps={}
forecast_month_lc={}
forecast_month_short={}
forecast_month_short_caps={}
forecast_month_short_lc={}
forecast_date={}
weather_icon={}
weather_font={}
high_temp={}
low_temp={}
conditions={}
conditions_caps={}
conditions_lc={}
conditions_short={}
conditions_short_caps={}
conditions_short_lc={}
sun_rise={}
sun_rise_lc={}
sun_rise_time={}
moon_rise={}
moon_rise_lc={}
moon_rise_time={}
moon_rise_ampm={}
moon_rise_ampm_lc={}
sun_set={}
sun_set_lc={}
sun_set_time={}
moon_set={}
moon_set_lc={}
moon_set_time={}
moon_set_ampm={}
moon_set_ampm_lc={}
humidity={}
precipitation={}
snow={}
cloud_cover={}
moon_phase={}
moon_phase_caps={}
moon_phase_lc={}
moon_font={}
moon_icon={}
wind_mph={}
wind_km={}
wind_kts={}
wind_font={}
wind_icon={}
wind_deg={}
wind_nesw={}
uv_index_num={}
uv_index_txt={}
uv_index_txt_caps={}
uv_index_txt_lc={}
--################################################## #######################

--################################################## #######################
--get forecast chunk
local a,b,allweather=string.find(allweatherdata,">10 Day Forecast&nbsp(.*)>More from Intellicast</div>")
--extract information into tables
local start=0
local f=1
while f~=nil do
--match forecast day name and date
local s,f,t=string.find(allweather,"<td colspan=\"2\"><strong>([%a,%s%d]*)</strong></td>",start)
if t~=nil then
--split name from month and date
local a,b,day=string.find(t,"(%a*),%s")
local a,b,month=string.find(t,",%s(%a*)%s")
local a,b,date=string.find(t,"(%d*)$")
--ser day names, regular, caps, lowercase and short
table.insert(forecast_day_short,dayshort[day])
table.insert(forecast_day_short_caps,string.upper( dayshort[day]))
table.insert(forecast_day_short_lc,string.lower(da yshort[day]))
if translate==1 then
day=daynames[day]
else
day=day
end
table.insert(forecast_day,day)
table.insert(forecast_day_caps,string.upper(day))
table.insert(forecast_day_lc,string.lower(day))
--set month types
table.insert(forecast_month_short,monthshort[month])
table.insert(forecast_month_short_caps,string.uppe r(monthshort[month]))
table.insert(forecast_month_short_lc,string.lower( monthshort[month]))
if translate==1 then
month=monthnames[month]
else
month=month
end
table.insert(forecast_month,month)
table.insert(forecast_month_caps,string.upper(mont h))
table.insert(forecast_month_lc,string.lower(month) )
--set date
table.insert(forecast_date,date)
end--if t~= nil
--intellicast weather icon match
local s,f,t=string.find(allweather,"40_white/(wx_[%d]*).png\"",start)
--convert to conkyweather icon
if t~=nil then
table.insert(weather_icon,weathericons..wimage[t]..".png")
--convert to weather font
table.insert(weather_font,wfont[t])
end
--match conditions
local s,f,t=string.find(allweather," /><br />([%a%s%p]*)</td>",start)
if t~=nil then
table.insert(conditions,t)
table.insert(conditions_caps,string.upper(t))
table.insert(conditions_lc,string.lower(t))
--set short versions--------------------------------
local cons=t
for k,v in pairs(con_short) do
cons=string.gsub(cons,k,v)
end
table.insert(conditions_short,cons)
table.insert(conditions_short_caps,string.upper(co ns))
table.insert(conditions_short_lc,string.lower(cons ))
-----------------------------------------------------
end
--match high temp
local s,f,t=string.find(allweather,"\"Hi\">([%p%d]*)&deg",start)
table.insert(high_temp,t)
--match low temp
local s,f,t=string.find(allweather,"\"Lo\">([%p%d]*)&deg",start)
table.insert(low_temp,t)
--match sun rise times
local s,f,t=string.find(allweather,"Rise:</strong> (%d*:%d*%s%u%u)</td>",start)
if t~=nil then
--get time only
local a,b,tm=string.find(t,"([%d%p]*)")
--get suffix only
local a,b,suf=string.find(t,"(%u%u)")
if translate==1 then
suf=tsuffix[suf]
else
suf=suf
end
table.insert(sun_rise,tm.." "..suf)
table.insert(sun_rise_lc,string.lower(tm.." "..suf))
table.insert(sun_rise_time,tm)
end
--match sun set times
local s,f,t=string.find(allweather,"Set:</strong> (%d*:%d*%s%u%u)</td>",f)
if t~=nil then
--get time only
local a,b,tm=string.find(t,"([%d%p]*)")
--get suffix only
local a,b,suf=string.find(t,"(%u%u)")
if translate==1 then
suf=tsuffix[suf]
else
suf=suf
end
table.insert(sun_set,tm.." "..suf)
table.insert(sun_set_lc,string.lower(tm.." "..suf))
table.insert(sun_set_time,tm)
end
--moon rise
local s,f,t=string.find(allweather,"Rise:</strong> (%d*:%d*%s%u%u)</td>",f)
if t~=nil then
--get time only
local a,b,tm=string.find(t,"([%d%p]*)")
--get suffix only
local a,b,suf=string.find(t,"(%u%u)")
if translate==1 then
suf=tsuffix[suf]
else
suf=suf
end
table.insert(moon_rise,tm.." "..suf)
table.insert(moon_rise_lc,string.lower(tm.." "..suf))
table.insert(moon_rise_time,tm)
table.insert(moon_rise_ampm,suf)
table.insert(moon_rise_ampm_lc,string.lower(suf))
end
--moon set
local s,f,t=string.find(allweather,"Set:</strong> (%d*:%d*%s%u%u)</td>",f)
if t~=nil then
--get time only
local a,b,tm=string.find(t,"([%d%p]*)")
--get suffix only
local a,b,suf=string.find(t,"(%u%u)")
if translate==1 then
suf=tsuffix[suf]
else
suf=suf
end
table.insert(moon_set,tm.." "..suf)
table.insert(moon_set_lc,string.lower(tm.." "..suf))
table.insert(moon_set_time,tm)
table.insert(moon_set_ampm,suf)
table.insert(moon_set_ampm_lc,string.lower(suf))
end
--match uv index
local s,f,tuv=string.find(allweather,"UV Index:</strong>%s*(%d*%s*%([%a%s]*%))%s*<br />",start)
if tuv~=nil then
--get just number
local a,b,unm=string.find(tuv,"(%d*)%s*%([%a%s]*%)")
--get just text
local a,b,utx=string.find(tuv,"%d*%s*%(([%a%s]*)%)")
table.insert(uv_index_num,unm)
if translate==1 then
utx=uvindextext[utx]
else
utx=utx
end
table.insert(uv_index_txt,utx)
table.insert(uv_index_txt_caps,string.upper(utx))
table.insert(uv_index_txt_lc,string.lower(utx))
end
--match humidity
local s,f,t=string.find(allweather,"Humidity:</strong> (%d*)<br />",start)
table.insert(humidity,t)
--match ppt
local s,f,t=string.find(allweather,"Precipitation:</strong> (%d*)<br />",start)
table.insert(precipitation,t)
--match snow %
local s,f,t=string.find(allweather,"Snow Probability:</strong>%s*(%d*)<br />",start)
table.insert(snow,t)
--match cloud coveage
local s,f,t=string.find(allweather,"Cloud Coverage:</strong> (%d*)<br />",start)
table.insert(cloud_cover,t)
--match moon phase
local s,f,t=string.find(allweather,"Moon Phase:</strong> ([%a%s]*) <br />",start)
--set moon phase text
if t~= nil then
--set moon phase font and icon
table.insert(moon_font,moonfontt[t])
table.insert(moon_icon,moonicont[t])
if translate==1 then
t=moonphases[t]
else
t=t
end
table.insert(moon_phase,t)
table.insert(moon_phase_caps,string.upper(t))
table.insert(moon_phase_lc,string.lower(t))
end
--match wind speeds
local s,f,tmph=string.find(allweather,"Wind Speed:</strong> (%d*)Mph",start)
local tmph=tonumber(tmph)
table.insert(wind_mph,tmph)
local s,f,t=string.find(allweather,"Mph%s*%((%d*)Km,",start)
table.insert(wind_km,t)
local s,f,t=string.find(allweather,"Km,%s*(%d*)Kts%)",start)
table.insert(wind_kts,t)
--match wind direction
local s,f,twd=string.find(allweather,"Wind Direction:</strong> ([%d&;%s%(%a%)]*)%s*</div>",start)
if twd~=nil then
local a,b,tdeg=string.find(twd,"(%d*)&deg;")
table.insert(wind_deg,tdeg)
--match wind font and nesw
local a,b,tnesw=string.find(twd,"%((%a*)%)")
table.insert(wind_font,windfontt[tnesw])
if tmph>0 and tmph<19 then
table.insert(wind_icon,weathericons.."green_"..string.lower(tnesw)..".png")
elseif tmph>18 and tmph<38 then
table.insert(wind_icon,weathericons.."yellow_"..string.lower(tnesw)..".png")
elseif tmph>37 and tmph<64 then
table.insert(wind_icon,weathericons.."orange_"..string.lower(tnesw)..".png")
elseif tmph>63 then
table.insert(wind_icon,weathericons.."green_"..string.lower(tnesw)..".png")
elseif tmph==0 then
table.insert(wind_icon,weathericons.."no_wind.png")
end
if translate==1 then
tnesw=neswtext[tnesw]
else
tnesw=tnesw
end
table.insert(wind_nesw,tnesw)
end
if f==nil then break end
start=f
end--while
--################################################## ################################################## #####################################

--################################################## #######################
--get location
local a,b,wl=string.find(allweatherdata,"<title>%s*Intellicast%s%p%s(.*)</title>")
weather_location=string.gsub(wl," Extended Forecast in",",")
--################################################## #######################

--################################################## #######################
--format now weather
--extract current data
--get now weather chunk
local a,b,nowweather=string.find(allweatherdata,">Current Conditions&nbsp(.*)>View Detailed Observations for the last<br />")
now={}
monthlong={Jan="January",Feb="February",Mar="March",Apr="April",May="May",Jun="June",Jul="July",Aug="August",Sep="September",Oct="October",Nov="November",Dec="December"}
local s,f,tnow=string.find(nowweather,"<div style=\"float:right;color:#666;\"> As of ([%d%p%a%s]*) %(Local Time%)")
local s,f,t=string.find(tnow,"(%d*%p%d*%s%a*) on")
--get time only
local a,b,ntm=string.find(t,"(%d*%p%d*)")
--get suffix only
local a,b,nsf=string.find(t,"(%u%u)")
if translate==1 then
suf=tsuffix[nsf]
else
suf=nsf
end
now["time"]=ntm.." "..suf
now["time_lc"]=string.lower(ntm.." "..suf)
now["time_num"]=ntm
now["time_ampm"]=suf
now["time_ampm_lc"]=string.lower(suf)
--get day
local s,f,t=string.find(tnow,"on (%a*)%s%d*")
if translate==1 then
day=daynames[t]
else
day=t
end
now["day"]=day
now["day_caps"]=string.upper(day)
now["day_lc"]=string.lower(day)
--short day names
local ds=dayshort[t]
now["day_short"]=ds
now["day_short_caps"]=string.upper(ds)
now["day_short_lc"]=string.lower(ds)
--get date
local s,f,t=string.find(tnow,"%s(%d%d)%s")
now["date"]=t
--get months
local s,f,t=string.find(tnow,"%d%d%s(%a*)%s%d")
if translate==1 then
mnth=monthlong[t]
now["month_short"]=monthshort[mnth]
now["month_short_caps"]=string.upper(monthshort[mnth])
now["month_short_lc"]=string.lower(monthshort[mnth])
mnth=monthnames[mnth]
else
now["month_short"]=t
now["month_short_caps"]=string.upper(t)
now["month_short_lc"]=string.lower(t)
mnth=monthlong[t]
end
now["month"]=mnth
now["month_caps"]=string.upper(mnth)
now["month_lc"]=string.lower(mnth)
--get year
local s,f,t=string.find(tnow,"%a%a%a%s(%d%d%d%d)")
now["year"]=t
--get weather icon
local s,f,t=string.find(nowweather,"40_white/(wx_[%d]*)%ppng%p%stitle=%p")
now["weather_icon"]=weathericons..wimage[t]..".png"
now["weather_font"]=wfont[t]
--class=%pIcon%p /> ([%a%s]*)%s*</td>
local s,f,t=string.find(nowweather,"class=%pIcon%p /> ([%a%s%p]*)%s*%s*</td>%s*<td class=%pEmpty%p>&nbsp;")
now["conditions"]=t
now["conditions_caps"]=string.upper(t)
now["conditions_lc"]=string.lower(t)
--set short versions------------------------
local cons=t
for k,v in pairs(con_short) do
cons=string.gsub(cons,k,v)
end
now["conditions_short"]=cons
now["conditions_short_caps"]=string.upper(cons)
now["conditions_short_lc"]=string.lower(cons)
--------------------------------------------
local s,f,t=string.find(nowweather,"Temperature\">([%p%d]*)&deg")
now["temp"]=t
local s,f,t=string.find(nowweather,">Feels Like: ([%p%d]*)&deg;</a>")
now["feels_like"]=t
local s,f,t=string.find(nowweather,">Wind Chill: </a></td>%s*<td>([%p%d]*)&deg;</td>")
now["wind_chill"]=t
local s,f,t=string.find(nowweather,">Ceiling: </a></td>%s*<td>([%a%d]*)</td>")
if t~="Unl" then
local s,f,t=string.find(t,"([%d%p]*)")
tc=t..ceiling_unit
else
if translate==1 then unlset=additional.Unl else unlset=t end
tc=unlset
end
now["ceiling"]=tc
now["ceiling_caps"]=string.upper(tc)
now["ceiling_lc"]=string.lower(tc)
--get heat index
local s,f,t=string.find(nowweather,">Heat Index: </a></td>%s*<td>([%p%d]*)&deg;</td>")
now["heat_index"]=t
--get visibility
local s,f,t=string.find(nowweather,">Visibility: </a></td>%s*<td>([%a%d%p]*)</td>")
if t~="Unl" then
local s,f,t=string.find(t,"([%d%p]*)")
tv=t..visibility_unit
else
if translate==1 then unlset=additional.Unl else unlset=t end
tv=unlset
end
now["visibility"]=tv
now["visibility_caps"]=string.upper(tv)
--get dew point
local s,f,t=string.find(nowweather,">Dew Point: </a></td>%s*<td>([%p%d]*)&deg;</td>")
now["dew_point"]=t
--get wind speed
local s,f,t=string.find(nowweather,">Wind: </a></td>%s*<td>(%d*)mph</td>")
local tmph=tonumber(t)
now["wind_mph"]=t..wind_mph_unit
now["wind_mph_caps"]=string.upper(t..wind_mph_unit)
--convert mph to km and knots #################################################
--[[1 mile per hour = 0.869 international nautical mile per hour (knot)
1 mile per hour = 1.609 kilometers per hour
1 mile per hour = 0.4470 meter per second
1 knot = 1.852 kilometers per hour
1 knot = 0.5144 meter per second
1 meter per second = 3.6 kilometers per hour]]
now["wind_km"]=round(tonumber(t)*1.609)..wind_km_unit
now["wind_km_caps"]=string.upper(round(tonumber(t)*1.609)..wind_km_un it)
now["wind_kts"]=round(tonumber(t)*0.869)..wind_kts_unit
now["wind_kts_caps"]=string.upper(round(tonumber(t)*0.869)..wind_kts_u nit)
--################################################## ###########################
local s,f,t=string.find(nowweather,">Humidity: </a></td>%s*<td>(%d*)</td>")
now["humidity"]=t
--get wind direction ################################################## #####
local s,f,twd=string.find(nowweather,">Direction: </a></td>%s*<td style=[%p%a]*>([%d&;%s%(%a%)]*)</td>%s*</tr>")
--check for NA
local a,b,t=string.find(twd,"(%a*)")
local tnesw=t
if tnesw~="NA" then
local a,b,t=string.find(twd,"(%d*)&deg;")
now["wind_deg"]=t..wind_degrees_unit
local a,b,tnesw=string.find(twd,"%((%a*)%)")
if tmph>0 and tmph<19 then
now["wind_icon"]=weathericons.."green_"..string.lower(tnesw)..".png"
elseif tmph>18 and tmph<38 then
now["wind_icon"]=weathericons.."yellow_"..string.lower(tnesw)..".png"
elseif tmph>37 and tmph<64 then
now["wind_icon"]=weathericons.."orange_"..string.lower(tnesw)..".png"
elseif tmph>63 then
now["wind_icon"]=weathericons.."green_"..string.lower(tnesw)..".png"
end
now["wind_font"]=windfontt[tnesw]
--################################
if translate==1 then
tnesw=neswtext[tnesw]
else
tnesw=tnesw
end
--################################
now["wind_nesw"]=tnesw
else
if translate==1 then naset=additional.NA else naset="NA" end
now["wind_deg"]=naset
now["wind_icon"]=weathericons.."no_wind.png"
now["wind_nesw"]=naset
now["wind_font"]=windfontt["N"]
end
--END WIND DIRECTION ################################################## #####
--get pressure
local s,f,t=string.find(nowweather,">Pressure: </a></td>%s*<td>([%d%p]*)\"</td>")
now["pressure"]=t
--convert pressures ################################################## ######
--[[ 1 inch of mercury = 25.4 mm of mercury = 33.86 millibars
= 33.86 hectoPascals]]
now["pressure_mb"]=round(tonumber(t)*33.86)
--################################################## ########################
local s,f,t=string.find(nowweather,">Gusts: </a></td>%s*<td>([%d%a]*)</td>")
if t~="NA" then
local s,f,t=string.find(t,"(%d*)")
tg=t..wind_mph_unit
tgkm=round(tonumber(t)*1.609)..wind_km_unit
tgkts=round(tonumber(t)*0.869)..wind_kts_unit
else
if translate==1 then naset=additional.NA else naset="NA" end
tg=naset
tgkm=naset
tgkts=naset
end
now["wind_gusts"]=tg
now["wind_gusts_caps"]=string.upper(tg)
now["wind_gusts_km"]=tgkm
now["wind_gusts_km_caps"]=string.upper(tgkm)
now["wind_gusts_kts"]=tgkts
now["wind_gusts_kts_caps"]=string.upper(tgkts)
--################################################## ########################
--get hourly forecast options hour1--------------------
--get day 1 bit
local s,f,hfc=string.find(nowweather,"<td class=%pHour%p%sstyle=%ppadding%pleft([%a%d%p%s]*)%pdeg%p</strong>",1)
--get time and conditions
--<strong>1 PM</strong><br />%s*P Cloudy%s*</td>%s*<td class=%pHour%p
local a,b,t=string.find(hfc,"<strong>([%d%p]*)[%s%a]*</strong><br",1)
now["fc_hour1_time"]=t
local a,b,t=string.find(hfc,"<strong>[%d%p%s]*([%a]*)</strong><br",1)
if translate==1 then
t=tsuffix[t]
else
t=t
end
now["fc_hour1_ampm"]=t
now["fc_hour1_ampm_lc"]=string.lower(t)
local a,b,t=string.find(hfc,"</strong><br%s/>%s*([%p%s%a]*)%s*</td>%s*<td class=%pHour%p",1)
now["fc_hour1_cond"]=t
now["fc_hour1_cond_lc"]=string.lower(t)
now["fc_hour1_cond_caps"]=string.upper(t)
----------set short versions--------------------------------
local cons=t
for k,v in pairs(con_short) do
cons=string.gsub(cons,k,v)
end
now["fc_hour1_cond_short"]=cons
now["fc_hour1_cond_short_caps"]=string.upper(cons)
now["fc_hour1_cond_short_lc"]=string.lower(cons)
-------------------------------------------------------------
--get weather icon and font
local a,b,t=string.find(hfc,"32_white/(wx_[%d]*)%ppng%p%stitle=%p",1)
now["fc_hour1_wicon"]=weathericons..wimage[t]..".png"
now["fc_hour1_wfont"]=wfont[t]
--get temperature
--><strong>-5&deg;</strong></td>
local a,b,t=string.find(hfc,"><strong>([%p%d]*)&deg;</strong></td>",1)
now["fc_hour1_temp"]=t
--end of hour1 data gathering--repeat 2 more times
--get hourly forecast options hour2--------------------
local start=tonumber(b)
--get time and conditions
--<strong>1 PM</strong><br />%s*P Cloudy%s*</td>%s*<td class=%pHour"%p
local a,b,t=string.find(hfc,"<strong>([%d%p]*)[%s%a]*</strong><br",start)
now["fc_hour2_time"]=t
local a,b,t=string.find(hfc,"<strong>[%d%p%s]*([%a]*)</strong><br",start)
if translate==1 then
t=tsuffix[t]
else
t=t
end
now["fc_hour2_ampm"]=t
now["fc_hour2_ampm_lc"]=string.lower(t)
local a,b,t=string.find(hfc,"</strong><br%s/>%s*([%a%s%p]*)%s*</td>%s*<td class=%pHour%p",start)
now["fc_hour2_cond"]=t
now["fc_hour2_cond_lc"]=string.lower(t)
now["fc_hour2_cond_caps"]=string.upper(t)
----------set short versions--------------------------------
local cons=t
for k,v in pairs(con_short) do
cons=string.gsub(cons,k,v)
end
now["fc_hour2_cond_short"]=cons
now["fc_hour2_cond_short_caps"]=string.upper(cons)
now["fc_hour2_cond_short_lc"]=string.lower(cons)
-------------------------------------------------------------
--get weather icon and font
local a,b,t=string.find(hfc,"32_white/(wx_[%d]*)%ppng%p%stitle=%p",start)
now["fc_hour2_wicon"]=weathericons..wimage[t]..".png"
now["fc_hour2_wfont"]=wfont[t]
--get temperature
--><strong>-5&deg;</strong></td>
local a,b,t=string.find(hfc,"><strong>([%p%d]*)&deg;</strong></td>",start)
now["fc_hour2_temp"]=t
--end of hour2 data gathering--repeat 1 more times
--get hourly forecast options hour3--------------------
local start=tonumber(b)
--get time and conditions
--<strong>1 PM</strong><br />%s*P Cloudy%s*</td>%s*<td class=%pHour"%p
local a,b,t=string.find(hfc,"<strong>([%d%p]*)[%s%a]*</strong><br",start)
now["fc_hour3_time"]=t
local a,b,t=string.find(hfc,"<strong>[%d%p%s]*([%a]*)</strong><br",start)
if translate==1 then
t=tsuffix[t]
else
t=t
end
now["fc_hour3_ampm"]=t
now["fc_hour3_ampm_lc"]=string.lower(t)
local a,b,t=string.find(hfc,"</strong><br%s/>%s*([%a%s%p]*)%s*</td>%s*<td class=%pHour%p",start)
now["fc_hour3_cond"]=t
now["fc_hour3_cond_lc"]=string.lower(t)
now["fc_hour3_cond_caps"]=string.upper(t)
----------set short versions--------------------------------
local cons=t
for k,v in pairs(con_short) do
cons=string.gsub(cons,k,v)
end
now["fc_hour3_cond_short"]=cons
now["fc_hour3_cond_short_caps"]=string.upper(cons)
now["fc_hour3_cond_short_lc"]=string.lower(cons)
-------------------------------------------------------------
--get weather icon and font
local a,b,t=string.find(hfc,"32_white/(wx_[%d]*)%ppng%p%stitle=%p",start)
now["fc_hour3_wicon"]=weathericons..wimage[t]..".png"
now["fc_hour3_wfont"]=wfont[t]
--get temperature
--><strong>-5&deg;</strong></td>
local a,b,t=string.find(hfc,"><strong>([%p%d]*)",start)
now["fc_hour3_temp"]=t
--end of hour3 data gathering--finished for all hours
--ALERTS############################################ ###################
if alert_check==1 then
--set tables
alert_type={}
alert_issued={}
if alerttest~=0 then
alert_icon=weathericons.."icon_alert_1.gif"
--extract information into tables
local start=0
local f=1
while f~=nil do
local s,f,t=string.find(alertdata,"><strong class='Alert'>([%a%s]*)</strong><br/>",start)
if t~=nil then
table.insert(alert_type,string.upper(t))
end--if t~=nil
local s,f,t=string.find(alertdata,"<br />([%d%a%s:]*)<br /><br />",start)
if t~=nil then
table.insert(alert_issued,t)
end--if t~=nil
if f==nil then break end
start=f
alert_number=#alert_type
end--while
else
alert_icon=weathericons.."icon_alert_0.gif"
table.insert(alert_type,"NO ALERTS")
table.insert(alert_issued,"")
alert_number=0
end--alerttest~=nil
else
alert_type={}
alert_issued={}
alert_icon=weathericons.."icon_alert_0.gif"
table.insert(alert_type,"alerts turned off")
table.insert(alert_issued,"")
alert_number=0
end--if alert check ###########################################
--###############end of data processing########################

--################################################## #######################
if testing==0 then
processall=0
print ("processing complete")
elseif testing==1 then
processall=1
end--if testing ==0
--################################################## #################################
end--of data processing section ################################################## ###
--################################################## #################################
if processall==0 or testing==1 then
_G.weather_script()
end
--################################################## ################################################## #####
--###UNCOMMENT THE BELOW LINE TO ENABLE CPU DELAY############################################# #############
--end--####### end of if updates>5 #############################
--################################################## ################################################## #####

cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
--######################################
end-- end main function ################
--######################################
function round(num)
local idp=tonumber(settings_table[5])
local mult = 10^(idp or 0)
return math.floor(num * mult + 0.5) / mult
end--of round function ################################################## ###############
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--string split ################################################## #####################
function xout(txj)--c,a,f,fs,x,y,txt,j ##################################################
c=nil
c=(txj.c or default_color)
a=nil
a=(txj.a or default_alpha)
f=nil
f=(txj.f or default_font)
fs=nil
fs=(txj.fs or default_font_size)
x=nil
x=(txj.x or 0)
y=nil
y=(txj.y or 0)
txt=nil
txt=(txj.txt or "set txt")
j=nil
j=(txj.j or "l")
local function col(c,a)
return ( (c/0x10000) % 0x100)/255,( (c/0x100) % 0x100)/255,(c % 0x100)/255,a
end--local function
cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fs)
local text=string.gsub(txt," ","_")
extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local wx=extents.width
cairo_set_source_rgba (cr,col(c,a))
if j=="l" then
cairo_move_to (cr,x,y)
adx=wx
elseif j=="c" then
cairo_move_to (cr,x-(wx/2),y)
adx=wx/2
elseif j=="r" then
cairo_move_to (cr,x-wx,y)
adx=0
end
cairo_show_text (cr,txt)
cairo_stroke (cr)
nextx=nil
nextx=adx+x
return nextx
end--function xout ################################################## #################
function out(tx)--################################################## ##################
c=nil
c=(tx.c or default_color)
a=nil
a=(tx.a or default_alpha)
f=nil
f=(tx.f or default_font)
fs=nil
fs=(tx.fs or default_font_size)
x=nil
x=(tx.x or 0)
y=nil
y=(tx.y or 0)
txt=nil
txt=(tx.txt or "set txt")
local function col(c,a)
return ( (c/0x10000) % 0x100)/255,( (c/0x100) % 0x100)/255,(c % 0x100)/255,a
end--local function
cairo_select_font_face (cr, f, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fs)
cairo_set_source_rgba (cr,col(c,a))
cairo_move_to (cr,x,y)
cairo_show_text (cr,txt)
cairo_stroke (cr)
end--function out ################################################## #################
function image(im)--################################################## ###############
x=nil
x=(im.x or 0)
y=nil
y=(im.y or 0)
w=nil
w=(im.w or default_image_width)
h=nil
h=(im.h or default_image_height)
file=nil
file=tostring(im.file)
if file==nil then print("set image file") end
---------------------------------------------
local show = imlib_load_image(file)
if show == nil then return end
imlib_context_set_image(show)
if tonumber(w)==0 then
width=imlib_image_get_width()
else
width=tonumber(w)
end
if tonumber(h)==0 then
height=imlib_image_get_height()
else
height=tonumber(h)
end
imlib_context_set_image(show)
local scaled=imlib_create_cropped_scaled_image(0, 0, imlib_image_get_width(), imlib_image_get_height(), width, height)
imlib_free_image()
imlib_context_set_image(scaled)
imlib_render_image_on_drawable(x, y)
imlib_free_image()
show=nil
end--function image ################################################## ################
--END OF SCRIPT

including my conky_weather only because you'd asked for it earlier:


##############################################
# Settings
##############################################
max_specials 10000
max_user_text 1500000
background no
use_xft yes
#xftfont Sans:size=12
#xftalpha 1
font Mono:size=8
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 600 600
maximum_width 600
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 10
gap_y 10
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
color1 86acad #darker blue
color2 b1c9c9 #lighter blue
text_buffer_size 100000
top_name_width 10
update_interval 1

lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load ~/v9000/weather_testing.lua

TEXT
${goto 230}${cpu}

DobsonM
October 15th, 2012, 05:16 AM
This conky outputs something similar.
You just need to find a font you like.
I'm using the DistrictThin font (http://www.urbanfonts.com/fonts/District_Thin.htm)

#

# set to yes if you want Conky to be forked in the background
background no

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour brown
own_window_transparent yes
own_window_argb_value 0
own_window_argb_visual yes

# fiddle with window
use_spacer none
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.9

# Update interval in seconds
update_interval 1.0

# Minimum size of text area
minimum_size 250 200
maximum_width 250

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase
font Bitstream Vera Sans Mono:size=11

# Stippled borders?
#stippled_borders 3

# border margins
#border_margin 0

# border width
#border_width 0

# Default colors and also border colors, grey90 == #e5e5e5
default_color #348a8f


# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment top_middle

# Gap between borders of screen and text
gap_x
gap_y 200

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# stuff after 'TEXT' will be formatted on screen



TEXT
${font DistrictThin:size=102}${time %l}
${font DistrictThin:size=40}${goto 130}${voffset -215}${time :%M}
${font DistrictThin:size=40}${goto 130}${voffset -5}${time %p}
${voffset -36}${font DistrictThin:size=16}${alignc}${time %B %d}


Awesome!! Thanks so much will see how it goes!

DobsonM
October 15th, 2012, 05:17 AM
I just finished the same thing - different font. Different look.
I like that font .. grabbed it ...thanks

Here's another option for DobsonM
Uses or commented out:

alignment middle_middle
gap_x 0 # left-right
gap_y 0 # up-down
#minimum_size 0 0
#maximum_width 0, and
xftfont WenQuanYi Micro Hei Mono:size=10

for when I use ${font} under TEXT to give a finer spacing aspect with less negative ${voffset} commands.


# To use #! in a conky use: ${exec echo '#!'}
# killall conky && conky -c ~/.conky/conky11/Date-Hour.conky &

### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour gray
own_window_class Conky
own_window_title Time-Date

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 0

#minimum_size 0 0 ## width, height
#maximum_width 0 ## width, usually a good idea to equal minimum width

gap_x 0 # left-right
gap_y 0 # up-down

alignment middle_middle
################################################## # End Window Settings ###
### Font Settings ################################################## #######
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont WenQuanYi Micro Hei Mono:size=10

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color gray
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
#default_graph_size 15 40
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
# text_buffer_size 1028

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

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

############################################## End Miscellaneous Section ###
update_interval 1

TEXT
${font WenQuanYi Micro Hei Mono:size=120}${time %I}\
${voffset -70}${font WenQuanYi Micro Hei Mono:size=50}${goto 180}:${font WenQuanYi Micro Hei Mono:size=40}${time %M}${font}
${goto 200}${font WenQuanYi Micro Hei Mono:size=50}${time %p}${font}

${font WenQuanYi Micro Hei Mono:size=20}${alignc}${time %B %e}
http://t.imgbox.com/acmeQ4Tx.jpg (http://imgbox.com/acmeQ4Tx)

Bloody excellent, thanks for the help!

mrpeachy
October 15th, 2012, 06:08 AM
@mrpeachy. Hey sorry about that. I found a version of V9000 with much more comprehensive instructions in the readme file that helped me out immensely and corrected what I think were some of my earlier problems but I am getting some new errors now. I will attach the terminal readout as well as my v9000.lua file.

one thing i noticed


local username = moralanarchy

needs to be


local username = "moralanarchy"

MoralAnarchy
October 15th, 2012, 07:15 AM
okay changed that and this is what i got in terminal and i'm going to append a screenshot to show you what came up on my desktop. i'm actually getting visual now but it seems to still be in need of tweaking. Any ideas?


moralanarchy@MoralAnarchy:~$ conky -c ~/v9000/conky_weather
Conky: desktop window (1400095) is subwindow of root window (a6)
Conky: window type - normal
Conky: drawing to created window (0x1e00002)
Conky: drawing to double buffer
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 62734 0 0:00:01 0:00:01 --:--:-- 101k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 94267 0 --:--:-- --:--:-- --:--:-- 140k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 68435 0 0:00:01 0:00:01 --:--:-- 125k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 82213 0 0:00:01 0:00:01 --:--:-- 112k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 27328 0 0:00:03 0:00:03 --:--:-- 48105
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 54638 0 0:00:01 0:00:01 --:--:-- 88066
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 53786 0 0:00:01 0:00:01 --:--:-- 108k
you have no weather alerts
processing complete
gathering data with curl
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 88947 100 88947 0 0 75192 0 0:00:01 0:00:01 --:--:-- 104k
you have no weather alerts
processing complete

mrpeachy
October 15th, 2012, 08:23 AM
okay changed that and this is what i got in terminal and i'm going to append a screenshot to show you what came up on my desktop. i'm actually getting visual now but it seems to still be in need of tweaking. Any ideas?
that is the test setup which should output all the available options, but where it says "set text" means there is something wrong with the data

let me check out v9000 on my puter and report back

mrpeachy
October 15th, 2012, 08:32 AM
i wondered if intellicast had changed their website causing things to break, but everything is still working for me

http://s10.postimage.org/eod5ctlet/Screenshot_at_2012_10_15_02_30_07.jpg (http://postimage.org/image/eod5ctlet/)

post your config file please and ill try it out
in particular check that the web address points to the extended forecast page like this one:


local web="http://www.intellicast.com/Local/Forecast.aspx?unit=F&location=USWA0502"

NRP
October 15th, 2012, 09:54 AM
Hi all been playing with Conky for a couple of days now and have cum up with this so far.
It is an edit of infinity-unity

Still need to add a weather script to the right hand side too fill in the gap,
Hope you like it :P

DobsonM
October 15th, 2012, 10:08 AM
So frustrating, I can't get newly installed fonts to work in conky, I have run
fc-cache -fv

and still the same issue. Any ideas anyone?

stinkeye
October 15th, 2012, 10:59 AM
So frustrating, I can't get newly installed fonts to work in conky, I have run
fc-cache -fv

and still the same issue. Any ideas anyone?
After extracting, I just place the folder or font file in ~/.fonts
Placing them in ~/.fonts makes it easier to not lose them when you backup home for a new install.

Click on the font and in info, check your using the right name.
gnome-specimen is also a handy viewer to list all your installed fonts.
It allows you to copy the font name from the menu.
Sometimes you have to copy a couple of times though.

sudo apt-get install gnome-specimen

stinkeye
October 15th, 2012, 11:14 AM
Hi all been playing with Conky for a couple of days now and have cum up with this so far.
It is an edit of infinity-unity

Still need to add a weather script to the right hand side too fill in the gap,
Hope you like it :P

Nice work. =D>

MoralAnarchy
October 15th, 2012, 03:54 PM
Hi all been playing with Conky for a couple of days now and have cum up with this so far.
It is an edit of infinity-unity

Still need to add a weather script to the right hand side too fill in the gap,
Hope you like it :P
I really like that set up man! Very, very clean.

Sector11
October 15th, 2012, 03:58 PM
HOUSTON, WE HAVE LIFTOFF!! I NOW HAVE CONKY ON THE DESKTOP!! :lolflag:

(What is the /sys/class stuff it's fussing about?)
**************************************************
Anyway, thank you so much, Sector11 and Stinkeye!!

I'm going to read up more on the config parts, since theres a few things I don't need/understand from this conky, but it's finally up and running!! (Is there a good page somewhere which explains these functions in simple language a noob like me can understand? I have NO programming experience.)

This would have been just fine: /home/michelle/.conkyrc

RE: What is the /sys/class stuff it's fussing about?

It means ${hwmon 2 temp 1} is not working for your system

Remember this:

$ sensors | grep 'Core 0'
Core 0: +46.0°C (high = +86.0°C, crit = +100.0°C)

Now try this:

sensors | grep 'Core 0' | cut -c 7-

Keep adding "1" to that "7" until you see:

46.0°C (high = +86.0°C, crit = +100.0°C)

That this point you will have something like this:

$ sensors | grep 'Core 0' | cut -c 15-
46.0°C (high = +86.0°C, crit = +100.0°C)

Lets say that "15" is that number that does that, add one after the - and you should see:


$ sensors | grep 'Core 0' | cut -c 15-16
46

Now in your conky where you see:

${color0}CPU: ${color grey}${cpu cpu1}% ${color0}[${color}${hwmon 2 temp 1}C${color0}] ${freq_g}Mhz

change it to:

${color0}CPU: ${color grey}${cpu cpu1}% ${color0}[${color}${execi 8 sensors | grep 'Core 0' | cut -c 15-16}C${color0}] ${freq_g}Mhz

and that should take care of the

Conky: can't open '/sys/class/hwmon/hwmon2/temp1_input'

do not worry about the gnome-keyring warning. It's a known bug.

RE: the screen going black I'm at a loss.

maybe - above TEXT change:


own_window_type override
to

own_window_type normal

One step at a time.

Sector11
October 15th, 2012, 04:02 PM
Still need to add a weather script to the right hand side too fill in the gap,
Hope you like it :P

Nice stuff.
Looking forward to the weather.

Sector11
October 15th, 2012, 04:03 PM
i wondered if intellicast had changed their website causing things to break, but everything is still working for me

Yup here too. I'd tell ya in a flash if it didn't :D

NRP
October 15th, 2012, 04:17 PM
Done, Added the weather looks ok but i'm not 100% happy with it.

Config is to large to upload here with the images so CLICK HERE (http://www.filedropper.com/newconkyconfig)

Sector11
October 15th, 2012, 04:51 PM
Done, Added the weather looks ok but i'm not 100% happy with it.

Config is to large to upload here with the images so CLICK HERE (http://www.filedropper.com/newconkyconfig)

Nice - Is that Teo's script in action - looks like it?

Clicked on CLICK HERE and couldn't view it. It wants a 'code' to down load the file. Don't want to down load it just view it.

May I suggest:
http://t.imgbox.com/acqLdgSs.jpg (http://imgbox.com/acqLdgSs)
Free Image Hosting by imgbox.com (http://imgbox.com) for images.
Feel free to say no thanks. ):P

rolypolycat
October 15th, 2012, 05:09 PM
@sector11

I changed the code; no more complaining about the hwmon. Tried the code for the window; it's still black. Very strange.

Sector11
October 15th, 2012, 06:38 PM
@sector11

I changed the code; no more complaining about the hwmon. Tried the code for the window; it's still black. Very strange.

If you don't run the conky does the desktop still go black?

:oops: -->> EDIT:

I just gragged you conky from here (http://ubuntuforums.org/showpost.php?p=12295631&postcount=20758) where you said


HOUSTON, WE HAVE LIFTOFF!! I NOW HAVE CONKY ON THE DESKTOP!!

And I have problems with it - had to reboot.
I'll be back!

Oops! This is really :oops: I made one change for it to work here - and made it wrong! :oops: DUMB!

I'll be back

Sector11
October 15th, 2012, 08:56 PM
@sector11

I changed the code; no more complaining about the hwmon. Tried the code for the window; it's still black. Very strange.

Are you using Composite (http://www.bodhilinux.com/e17guide/e17guideEN/compositing.html).

Might be playing a role in this.

Sector11
October 15th, 2012, 09:34 PM
@ rolypolycat

OK your conky has this above TEXT:


#conky config file-small blue box

background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
double_buffer yes
minimum_size 280 5
draw_shades yes
draw_outline no
draw_graph_borders yes
stippled_borders 8
border_inner_margin 4
border_width 4
maximum_width 155
default_shade_color 000000 #0 0 0 0 Black
default_outline_color 000000 #0 0 0 Black
alignment bottom_right
gap_x 0 #-5
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer none
default_color A9A9A9 #169 169 169 DarkGray
color0 5b6dad
color1 ddaa00

TEXT

Can you try this:

#conky config file-small blue box

background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type normal #override ##### <-- try this
own_window_transparent yes
own_window_colour hotpink ################# try without this
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

own_window_argb_visual yes ##### <-- try this
own_window_argb_value 255 ##### <-- try this

double_buffer yes
minimum_size 280 5
draw_shades yes
draw_outline no
draw_graph_borders yes
#stippled_borders 8 ################# try without this
border_inner_margin 4
border_width 4
maximum_width 155
default_shade_color 000000 #0 0 0 0 Black
default_outline_color 000000 #0 0 0 Black
alignment bottom_right
gap_x 0 #-5
gap_y 12
no_buffers yes
uppercase no
#cpu_avg_samples 2 ################# try without this
#net_avg_samples 2 ################# try without this
override_utf8_locale yes
#use_spacer none ################# try without this

default_color A9A9A9 #169 169 169 DarkGray
color0 5b6dad
color1 ddaa00

TEXT

See the movie! (http://dl.dropbox.com/u/16070765/Other_Stuff/rpc.mpeg) (2.5 MB)

mrpeachy
October 15th, 2012, 09:41 PM
See the movie! (http://dl.dropbox.com/u/16070765/Other_Stuff/rpc.mpeg) (2.5 MB)
a cinematic tour de force! 3 thumbs up :D

Sector11
October 15th, 2012, 11:08 PM
a cinematic tour de force! 3 thumbs up :D

=D> =D> I hear it's up for an Oscar! =D> =D>

Category: Scraping the Bottom of the Barrel!

NRP
October 16th, 2012, 12:48 AM
Nice - Is that Teo's script in action - looks like it?

Clicked on CLICK HERE and couldn't view it. It wants a 'code' to down load the file. Don't want to down load it just view it.

May I suggest:
http://t.imgbox.com/acqLdgSs.jpg (http://imgbox.com/acqLdgSs)
Free Image Hosting by imgbox.com (http://imgbox.com) for images.
Feel free to say no thanks. ):P

Yeah i think the weather script is Teo's, Here is the code for .conkyrc its a mess but it works, Just remember i have only been playing with conky for 2 days :)


################################################## #######################################
# Conky Theme : Infinity #
# Created by : Harshit Yadav #
# Version : 1.0 #
# Feel Free to distribute #
# For Installation Instrcutions See Read Me #
################################################## ######################################


# 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 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager


border_inner_margin 0
border_outer_margin 0

## This Resolution is set according to the sreen resolution of 1366x768
## Adjust Accoring to yours

minimum_size 800 560
maximum_width 1366

alignment tr
gap_x 10
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load #
lua_load ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings

## Adjust these fields according to the your screen size i have modded them for 1366X768

TEXT
${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %I:%M}${color EAEAEA}${font GE Inspira:pixelsize=32}${time %P}${font}${voffset -84}${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -600}${time %A}${font}
${offset 660}${voffset -103}
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}
${font Santana:size=12}${offset 1000}${voffset 80}${color EAEAEA}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/Accuweather_Conky_Int_Images/acc_int_images}
${image $HOME/Accuweather_Conky_Int_Images/cc.png -p 1010,300 -s 180x108}
${font Santana:size=10}${offset 1000}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_Images/messages}${font}${goto 200}${offset 1000}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C)
${goto 200}${offset 1000}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_Images/curr_cond} ${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '37p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C
${goto 200}${offset 1000}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '34p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '38p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '35p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '36p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/Accuweather_Conky_Int_Images/curr_cond}/${execpi 600 sed -n '41p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${offset 1000}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/Accuweather_Conky_Int_Images/curr_cond}/${execpi 600 sed -n '42p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${offset 1000}${color 2c2c2c}${hr 2}
${goto 50}${offset 1000}${font Santana:size=10}${color ffe595}TODAY$color$font${goto 230}${offset 1000}${font Santana:size=10}${color ffe595}TONIGHT$color$font${image $HOME/Accuweather_Conky_Int_Images/tod.png -p 1010,445 -s 120x72}${image $HOME/Accuweather_Conky_Int_Images/ton.png -p 1190,445 -s 120x72}

${goto 145}${offset 1000}${execpi 600 sed -n '26p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 340}${offset 990}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_Images/first_days}°C
${goto 140}${offset 1000}(${execpi 600 sed -n '27p' $HOME/Accuweather_Conky_Int_Images/first_days}°C)${goto 335}${offset 990}(${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_Images/first_days}°C)


${font Santana:size=8}${offset 1000}${execpi 600 sed -n '2p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 195}${offset 1000}${execpi 600 sed -n '3p' $HOME/Accuweather_Conky_Int_Images/messages}$font
${offset 1000}Chance of Precip: ${execpi 600 sed -n '28p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 195}${offset 1000}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_Images/first_days}
${offset 1000}${color 2c2c2c}${hr 2}
${font Santana:size=9}${goto 40}${offset 1000}${color ffe595}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 145}${offset 1000}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 270}${offset 1000}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_Images/first_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/6.png -p 1020,565 -s 90x54}

${font Santana:size=8}${goto 100}${offset 1000}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '13p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '18p' $HOME/Accuweather_Conky_Int_Images/first_days}°C
${goto 100}${offset 1000}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${image $HOME/Accuweather_Conky_Int_Images/11.png -p 1130,565 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/16.png -p 1250,565 -s 90x54}

${offset 1000}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${offset 1000}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${offset 1000}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_Images/messages}

${font Santana:size=9}${goto 40}${offset 1000}${color ffe595}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 145}${offset 1000}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 270}${offset 1000}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_Images/last_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/21.png -p 1020,655 -s 90x54}

${font Santana:size=8}${goto 100}${offset 1000}${execpi 600 sed -n '23p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/last_days}°C
${font Santana:size=8}${goto 100}${offset 1000}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${image $HOME/Accuweather_Conky_Int_Images/last_2.png -p 1130,655 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/last_7.png -p 1250,655 -s 90x54}

${offset 1000}${execpi 600 sed -n '7p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${offset 1000}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${offset 1000}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/messages}

${font Santana:size=9}${goto 40}${offset 1000}${color ffe595}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 145}${offset 1000}${execpi 600 sed -n '16p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 270}${offset 1000}${execpi 600 sed -n '21p' $HOME/Accuweather_Conky_Int_Images/last_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/last_12.png -p 1020,750 -s 90x54}

${font Santana:size=8}${goto 100}${offset 1000}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_Images/last_days}°C
${font Santana:size=8}${goto 100}${offset 1000}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 210}${offset 1000}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${offset 1000}${execpi 600 sed -n '25p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${image $HOME/Accuweather_Conky_Int_Images/last_17.png -p 1130,750 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/last_22.png -p 1250,750 -s 90x54}

${offset 1000}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${offset 1000}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${offset 1000}${execpi 600 sed -n '12p' $HOME/Accuweather_Conky_Int_Images/messages}

${offset 130}${voffset -412}${color EAEAEA}${font Santana:size=9:style=Bold}HDD: ${font Santana:size=9:style=Bold}${fs_used /} / ${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}HDD2: ${font Santana:size=9:style=Bold}${fs_used /media/BackUp} / ${fs_size /media/BackUp}$font
${offset 120}${voffset 12}${font Santana:size=9:style=Bold}Swap:${font Santana:size=9:style=Bold} ${swap} / ${swapfree}$font
${offset 570}${voffset -110}${font Santana:size=8:style=Bold} Kernel: ${kernel}
${offset 570}${voffset 5}${font Santana:size=8:style=Bold} Uptime: ${uptime}
${offset 825}${voffset -90}${font Santana:size=8:style=Bold} ${exec whoami}@${nodename}
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} ${top name 5} ${top mem 5}
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} Battery 1: ${battery_percent /C23B } %
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} Battery 2: ${battery_percent /C23A } %





${offset 680}${voffset 50}${color ffffff}${font Santana:size=8:style=Bold} IP Address: ${addr wlan0}
${offset 705}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold} Down: ${downspeed wlan0} k/s ${offset 8}Up: ${upspeed wlan0} k/s
${offset 705}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold} TCP Connections: ${tcp_portmon 1 65535 count}
${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph:

${offset 680}${voffset -10}${font Santana:size=8style=Bold}${color #6C6C6C}${downspeedgraph wlan0 32,150 000000 ffffff} ${color #6C6C6C}${upspeedgraph wlan0 32,150 000000 ffffff}

${offset 310}${voffset -80}${color ffffff}${font Santana:size=8:style=Bold}${exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}CPU0: ${cpu cpu0}% Temp: ${execpi 5 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}°C
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}CPU1: ${cpu cpu1}% Temp: ${execpi 5 sensors | grep "Core 1" | awk '{print $3}' | cut -c2-3}°C
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}Ram Used: $mem Free: $memfree Max: $memmax
${offset 310}${voffset 10}${color ffffff}${font Santana:size=8}CPU Load:
${offset 310}${voffset 5}${font Santana:size=8:style=Bold}${color #6C6C6C}${cpugraph cpu0 32,150 000000 ffffff} ${color #6C6C6C}${cpugraph cpu1 32,150 000000 ffffff}

Sector11
October 16th, 2012, 03:13 AM
Yeah i think the weather script is Teo's, Here is the code for .conkyrc its a mess but it works, Just remember i have only been playing with conky for 2 days :)

I wasn't asking for the conky just curious if it was Teos stuff, and yes, it is. :D

Two days!! Oh MY! Congratulations!

rolypolycat
October 16th, 2012, 03:52 AM
@sector11:

I tried the new code; stopped conky-(killall conky) the screen stayed black, by the way-started conky again with the new code. This is what the terminal said:

michelle@the-cathouse:~$
Conky: desktop window (800003) is subwindow of root window (b6)
Conky: window type - normal
Conky: drawing to created window (0xa00002)
Conky: drawing to double buffer

Then I realized I hadn't tried restarting Enlightenment since I've been doing all these changes, so I did that. Now my wallpaper is back!:p

Conky is running okay so far. Hopefully everything is fixed now, and I can later try out some of the other conkies that I've seen.(This thread certainly has some great ones!) At least I know this one conky works!

Thanks again for your help!

Sincerely,

Michelle

Sector11
October 16th, 2012, 05:04 AM
@ rolypolycat

Always glad to help.
And always better when it works!

NRP
October 16th, 2012, 07:32 AM
I wasn't asking for the conky just curious if it was Teos stuff, and yes, it is. :D

Two days!! Oh MY! Congratulations!

Thanks mate,

I use to use linux all the time so i an not a complete noob but i still need to wash up on my shell skills.

Made and edit to the config with new Weather "Looks better in my opinion"


################################################## #######################################
# Conky Theme : Infinity #
# Created by : Harshit Yadav #
# Version : 1.0 #
# Feel Free to distribute #
# For Installation Instrcutions See Read Me #
################################################## ######################################


# 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 2048
imlib_cache_size 4096

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager


border_inner_margin 0
border_outer_margin 0

## This Resolution is set according to the sreen resolution of 1366x768
## Adjust Accoring to yours

minimum_size 800 560
maximum_width 1366

alignment tr
gap_x 10
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load #
lua_load ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings

## Adjust these fields according to the your screen size i have modded them for 1366X768

TEXT
${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %I:%M}${color EAEAEA}${font GE Inspira:pixelsize=32}${time %P}${font}${voffset -84}${voffset 10}${color EAEAEA}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -600}${time %A}${font}
${offset 660}${voffset -103}
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}
${font Santana:size=12}${offset 1010}${voffset 80}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/Accuweather_Conky_Int_ConkyWeatherFont/acc_int_cwfont}
${font Santana:size=10}${offset 1010}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${font}${goto 200}${offset 1010}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°C)
${font conkyweather:size=100}${offset 1010}${execi 600 sed -n '27p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}${font}
${voffset -130}${goto 200}${offset 1010}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond} ${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '37p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}°C
${goto 200}${offset 1010}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '34p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '38p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '35p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '36p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${offset 1010}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}/${execpi 600 sed -n '41p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${goto 200}${offset 1010}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}/${execpi 600 sed -n '42p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/curr_cond}
${offset 1010}${hr 1}
${goto 50}${offset 1010}${font Santana:size=10}${color ffe595}TODAY$color$font${goto 230}${offset 1010}${font Santana:size=10}${color ffe595}TONIGHT$color$font
${goto 30}${offset 1010}${font conkyweather:size=65}${execi 600 sed -n '25p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}${goto 210}${offset 1010}${voffset -75}${font conkyweather:size=65}${execi 600 sed -n '30p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}
${voffset -70}${goto 145}${offset 1010}${execpi 600 sed -n '26p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 340}${offset 990}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C
${goto 140}${offset 1010}(${execpi 600 sed -n '27p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C)${goto 335}${offset 990}(${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C)


${font Santana:size=8}${offset 1010}${execpi 600 sed -n '2p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 195}${offset 1010}${execpi 600 sed -n '3p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}$font
${offset 1010}Chance of Precip: ${execpi 600 sed -n '28p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${goto 195}${offset 1010}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}
${offset 1010}${hr 1}
${font Santana:size=9}${goto 40}${offset 1010}${color ffe595}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${goto 145}${offset 1010}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${goto 270}${offset 1010}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}$color${font}
${goto 30}${offset 1010}${font conkyweather:size=50}${execi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}${goto 140}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}${goto 260}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '16p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}
${voffset -40}${font Santana:size=8}${goto 100}${offset 1010}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '13p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '18p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C
${goto 100}${offset 1010}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C

${offset 1010}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 135}${offset 1010}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 255}${offset 1010}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}

${font Santana:size=9}${goto 40}${offset 1010}${color ffe595}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${goto 145}${offset 1010}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${goto 270}${offset 1010}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}$color${font}
${goto 30}${offset 1010}${font conkyweather:size=50}${execi 600 sed -n '21p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}${font}${goto 140}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '2p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${font}${goto 260}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '7p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${font}
${voffset -40}${font Santana:size=8}${goto 100}${offset 1010}${execpi 600 sed -n '23p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C
${font Santana:size=8}${goto 100}${offset 1010}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/first_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C

${offset 1010}${execpi 600 sed -n '7p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 135}${offset 1010}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 255}${offset 1010}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}

${font Santana:size=9}${goto 40}${offset 1010}${color ffe595}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${goto 145}${offset 1010}${execpi 600 sed -n '16p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${goto 270}${offset 1010}${execpi 600 sed -n '21p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}$color${font}
${goto 30}${offset 1010}${font conkyweather:size=50}${execi 600 sed -n '12p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${font}${goto 140}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '17p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${font}${goto 260}${offset 1010}${voffset -50}${font conkyweather:size=50}${execi 600 sed -n '22p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}${font}
${voffset -40}${font Santana:size=8}${goto 100}${offset 1010}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C
${font Santana:size=8}${goto 100}${offset 1010}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 210}${offset 1010}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C${goto 330}${offset 1010}${execpi 600 sed -n '25p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/last_days}°C

${offset 1010}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 135}${offset 1010}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}${goto 255}${offset 1010}${execpi 600 sed -n '12p' $HOME/Accuweather_Conky_Int_ConkyWeatherFont/messages}

${offset 130}${voffset -466}${color EAEAEA}${font Santana:size=9:style=Bold}HDD: ${font Santana:size=9:style=Bold}${fs_used /} / ${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}HDD2: ${font Santana:size=9:style=Bold}${fs_used /media/BackUp} / ${fs_size /media/BackUp}$font
${offset 120}${voffset 12}${font Santana:size=9:style=Bold}Swap:${font Santana:size=9:style=Bold} ${swap} / ${swapfree}$font
${offset 570}${voffset -110}${font Santana:size=8:style=Bold} Kernel: ${kernel}
${offset 570}${voffset 5}${font Santana:size=8:style=Bold} Uptime: ${uptime}
${offset 825}${voffset -90}${font Santana:size=8:style=Bold} ${exec whoami}@${nodename}
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} ${top name 5} ${top mem 5}
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} Battery 1: ${battery_percent /C23B } %
${offset 825}${voffset 5}${font Santana:size=8:style=Bold} Battery 2: ${battery_percent /C23A } %





${offset 680}${voffset 50}${color ffffff}${font Santana:size=8:style=Bold} IP Address: ${addr wlan0}
${offset 705}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold} Down: ${downspeed wlan0} k/s ${offset 8}Up: ${upspeed wlan0} k/s
${offset 705}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold} TCP Connections: ${tcp_portmon 1 65535 count}
${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph:

${offset 680}${voffset -10}${font Santana:size=8style=Bold}${color #6C6C6C}${downspeedgraph wlan0 32,150 000000 ffffff} ${color #6C6C6C}${upspeedgraph wlan0 32,150 000000 ffffff}

${offset 310}${voffset -80}${color ffffff}${font Santana:size=8:style=Bold}${exec cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}CPU0: ${cpu cpu0}% Temp: ${execpi 5 sensors | grep "Core 0" | awk '{print $3}' | cut -c2-3}°C
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}CPU1: ${cpu cpu1}% Temp: ${execpi 5 sensors | grep "Core 1" | awk '{print $3}' | cut -c2-3}°C
${offset 310}${voffset 5}${color ffffff}${font Santana:size=8:style=Bold}Ram Used: $mem Free: $memfree Max: $memmax
${offset 310}${voffset 10}${color ffffff}${font Santana:size=8}CPU Load:
${offset 310}${voffset 5}${font Santana:size=8:style=Bold}${color #6C6C6C}${cpugraph cpu0 32,150 000000 ffffff} ${color #6C6C6C}${cpugraph cpu1 32,150 000000 ffffff}

MikeCyber
October 16th, 2012, 08:00 AM
Anyone has a detailed network output script? I want to see all connections with transfer rates and maybe CPU/GPU temperatures as well.
I'll try on 12.10...what desktop do you suggest will be the fastest for gaming on 12.10?
Thanks

DobsonM
October 16th, 2012, 09:01 AM
After extracting, I just place the folder or font file in ~/.fonts
Placing them in ~/.fonts makes it easier to not lose them when you backup home for a new install.

Click on the font and in info, check your using the right name.
gnome-specimen is also a handy viewer to list all your installed fonts.
It allows you to copy the font name from the menu.
Sometimes you have to copy a couple of times though.

sudo apt-get install gnome-specimen

Thanks for the help.

Sector11
October 16th, 2012, 01:41 PM
Thanks mate,

I use to use linux all the time so i an not a complete noob but i still need to wash up on my shell skills.

Made and edit to the config with new Weather "Looks better in my opinion"

Careful, next you'll be joining the One Step Conky Anonymous Program

Admitted that we were powerless over conky - AND LOVE IT!
:lolflag:

Sector11
October 16th, 2012, 06:41 PM
Anyone has a detailed network output script? I want to see all connections with transfer rates and maybe CPU/GPU temperatures as well.
I'll try on 12.10...what desktop do you suggest will be the fastest for gaming on 12.10?
Thanks

No something someone can just whip up for you. Need more information:


Do you have conky installed?
What version of Conky if installed (conky -V)
CPU/GPU (Harddrive in you want) are all machine specific.


For temperatures you'll need lm-sensors installed and nvidia drivers if using nvidia and hddtemp if you want to add hard drives to the pile.

Net stuff is easy if this is what you want:

# killall conky && conky -c ~/conky/test278.network.conky &
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title test 278 NET

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 0 0 ## width, height
maximum_width 300 ## width, usually a good idea to equal minimum width

gap_x 10 ### left &right
gap_y 10 ### up & down

alignment tl
################################################## ## End Window Settings ###
### Font Settings ################################################## ########
# Use Xft (anti-aliased font and stuff)
use_xft yes

xftfont PF Tempesta Seven:pixelsize=8
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no #### <<-- To see it easier on light screens.
#default_shade_color black

draw_outline no #### <<-- Amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color gray
default_outline_color black

default_color DCDCDC #Gainsboro
color0 ffe595 #Teo Gold
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 49D471 #Light Green 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan #48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red #A52A2A #DarkRed
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

############################################## End Miscellaneous Section ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 # in seconds

TEXT
${goto 70}${font WenQuanYi Micro Hei Mono:bold:size=18}NET${font}${alignc}ETH0 ${addr eth0}
${goto 100}Open Ports: ${tcp_portmon 1 65535 count}

Speeds:${goto 50}Up: ${upspeedf eth0} KiB${goto 200}Down: ${downspeedf eth0} KiB
Total:${goto 50}Up: ${totalup eth0}${goto 200}Down: ${totaldown eth0} KiB

${goto 25}IP:${goto 200}DPORT
${goto 25}${tcp_portmon 1 65535 rip 0}${goto 200}${tcp_portmon 1 65535 rport 0}
${tcp_portmon 1 65535 rhost 0}
${goto 25}${tcp_portmon 1 65535 rip 1}${goto 200}${tcp_portmon 1 65535 rport 1}
${tcp_portmon 1 65535 rhost 1}
${goto 25}${tcp_portmon 1 65535 rip 2}${goto 200}${tcp_portmon 1 65535 rport 2}
${tcp_portmon 1 65535 rhost 2}
${goto 25}${tcp_portmon 1 65535 rip 3}${goto 200}${tcp_portmon 1 65535 rport 3}
${tcp_portmon 1 65535 rhost 3}
${goto 25}${tcp_portmon 1 65535 rip 4}${goto 200}${tcp_portmon 1 65535 rport 4}
${tcp_portmon 1 65535 rhost 4}
${goto 25}${tcp_portmon 1 65535 rip 5}${goto 200}${tcp_portmon 1 65535 rport 5}
${tcp_portmon 1 65535 rhost 5}
${goto 25}${tcp_portmon 1 65535 rip 6}${goto 200}${tcp_portmon 1 65535 rport 6}
${tcp_portmon 1 65535 rhost 6}
${goto 25}${tcp_portmon 1 65535 rip 7}${goto 200}${tcp_portmon 1 65535 rport 7}
${tcp_portmon 1 65535 rhost 7}
${goto 25}${tcp_portmon 1 65535 rip 8}${goto 200}${tcp_portmon 1 65535 rport 8}
${tcp_portmon 1 65535 rhost 8}
${goto 25}${tcp_portmon 1 65535 rip 9}${goto 200}${tcp_portmon 1 65535 rport 9}
${tcp_portmon 1 65535 rhost 9}
${goto 25}${tcp_portmon 1 65535 rip 10}${goto 200}${tcp_portmon 1 65535 rport 10}
${tcp_portmon 1 65535 rhost 10}
${goto 25}${tcp_portmon 1 65535 rip 11}${goto 200}${tcp_portmon 1 65535 rport 11}
${tcp_portmon 1 65535 rhost 11}
${goto 25}${tcp_portmon 1 65535 rip 12}${goto 200}${tcp_portmon 1 65535 rport 12}
${tcp_portmon 1 65535 rhost 12}
${goto 25}${tcp_portmon 1 65535 rip 13}${goto 200}${tcp_portmon 1 65535 rport 13}
${tcp_portmon 1 65535 rhost 13}
${goto 25}${tcp_portmon 1 65535 rip 14}${goto 200}${tcp_portmon 1 65535 rport 14}
${tcp_portmon 1 65535 rhost 14}
${goto 25}${tcp_portmon 1 65535 rip 15}${goto 200}${tcp_portmon 1 65535 rport 15}
${tcp_portmon 1 65535 rhost 15}


RE: gaming - no idea

Jedcurtis
October 16th, 2012, 11:34 PM
To borrow an expression from Sector11, I "cough-cough" copied this conky from him, after he borrowed it "cough-cough" from the Voyager Linux site.

I'm getting the same error that Sector11 is getting in the terminal. The error repeats twice then never again. I say 'never again' loosely since for me that meant running it for around 12 hours without terminal showing the error again. I've attached some pic's for your perusal.

The only changes I've made were cosmetic, i.e. making the whole thing larger since my screen resolution is 1920x1080. I increased the size of all of the rings and arcs and where they get placed by the lua. Other than that, it is the same as Sector11's first posting of it. I have typed with him and he says he gets the same error.

Any ideas? Below is my conkyrc and any errors are mine alone. I've changed a couple of things from the original posting by Sector11 so I'm to blame for any egregious errors!



#=== borrowed from: === & Voyager Linux === http://voyager.legtux.org/ =========
# conkyrc_orange
#
# author : SLK
# version : v2011011601
# license : Distributed under the terms of GNU GPL version 2 or later
#
#=== Sector11 09 Oct 12 ================================================== =====
# killall conky && conky -c ~/.conky/conky5/conkyrc_HUD2 &
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_colour black
own_window_class Conky
own_window_title Clock

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 255

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

minimum_size 350 550 ## width, height
maximum_width 350 ## width

gap_x 60 # left-right
gap_y 150 # up-down

alignment top_left
################################################## # End Window Settings ###
### Font Settings ################################################## #######
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont WenQuanYi Micro Hei Mono:size=8

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color grey
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no #yes
default_graph_size 15 40
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

############################################## End Miscellaneous Section ###
### LUA Settings ################################################## #########
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 100 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
lua_load /home/jed/conky/draw_bg.lua
lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.0
#
lua_load /home/jed/conky/conky_HUD2.lua
lua_draw_hook_post main

################################################## ##### End LUA Settings ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1

TEXT




#${goto 105}${font Anonymous Pro:bold:size=8}DISKS${font Anonymous Pro:bold:size=8} ${color0}${execi 15 hddtemp -n /dev/sda}°
${goto 163}${font Anonymous Pro:bold:size=9}${color1}size /${font}
${goto 160}${font Anonymous Pro:size=9}${color1}${voffset 1}${fs_size /}
${goto 160}${font Anonymous Pro:bold:size=9}${color1}size /home${color1}
${goto 160}${font Anonymous Pro:size=9}${color1}${voffset 1}${fs_size /home}${font}
${goto 245}${color8}${voffset 25}${font Anonymous Pro:bold:size=10}Avg.${font}
${goto 42}${font Anonymous Pro:bold:size=10}${color}${voffset 46}MEM
${goto 238}${font Anonymous Pro:bold:size=10}${color}${voffset -10}CPU
${goto 239}${color8}${voffset 0}${hwmon temp 1}°${color}

${voffset 75}${goto 155}${color7}${font White Rabbit:size=32}${time %e}${color3}${goto 115}${font WenQuanYi Micro Hei Mono:size=16}${time %a}
${goto 135}${color7}${font WenQuanYi Micro Hei Mono:size=14}${time %b}${color3} ${font WenQuanYi Micro Hei Mono:size=22}${time %y}${font}

Thanks,
Jed

mrpeachy
October 17th, 2012, 01:18 AM
To borrow an expression from Sector11, I "cough-cough" copied this conky from him, after he borrowed it "cough-cough" from the Voyager Linux site.

I'm getting the same error that Sector11 is getting in the terminal. The error repeats twice then never again. I say 'never again' loosely since for me that meant running it for around 12 hours without terminal showing the error again. I've attached some pic's for your perusal.

a good idea for future - put errors and code segments in post in code brackets
so they can be quoted/copied/altered/pasted

line 203 that reads


local val = value % (max_value +1)
if you want to get rid of the error, change to


local val = (value % (max_value +1)) or 0
sometimes it takes conky a couple of cycles to return value via conky_parse in lua scripts, hence the nil value errors

actually this will get rid of the error


local val = (value or 0) % (max_value +1)

or find where "value" is first set and change that accordingly

Jedcurtis
October 17th, 2012, 01:40 AM
@mrpeachy, I'll do that from now on. Matter of fact, that'll be easier than the screenshots anyway!

I was so close to having it solved on my own... I had done the thing with the parenthesis, however I did not add the 'or 0'. I'll give it a try, and thanks for the help...

And, voila!


local val = (value or 0) % (max_value +1)

That solves the issue!!!

Mrpeachy, I'd give anything to have just a 'pinch' of your skills!!!

Jed

Sector11
October 17th, 2012, 01:51 AM
a good idea for future - put errors and code segments in post in code brackets
so they can be quoted/copied/altered/pasted

line 203 that reads


local val = value % (max_value +1)

if you want to get rid of the error, change to


local val = (value % (max_value +1)) or 0


sometimes it takes conky a couple of cycles to return value via conky_parse in lua scripts, hence the nil value errors

No that didn't work:


16 Oct 12 | 21:32:41 ~
$ Conky: llua_load: /home/sector11/.conky/conky6/conky_HUD2.lua:214: malformed number near '1local'
Conky: desktop window (322) is root window
Conky: window type - normal
Conky: drawing to created window (0x1c00002)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: received SIGINT or SIGTERM to terminate. bye!



-- arc of value
-- local val = value % (max_value +1)
local val = (value % (max_value +1)) or 0
local start_arc = 0
local stop_arc = 0
local i = 1
while i <= val do

BTW, the original code has that on line 162 (I added 3 cpu values):


-- arc of value
local val = value % (max_value + 1)
local start_arc = 0
local stop_arc = 0
local i = 1
while i <= val do

Sector11
October 17th, 2012, 02:01 AM
@mrpeachy, I'll do that from now on. Matter of fact, that'll be easier than the screenshots anyway!

I was so close to having it solved on my own... I had done the thing with the parenthesis, however I did not add the 'or 0'. I'll give it a try, and thanks for the help...

And, voila!


local val = (value or 0) % (max_value +1)

That solves the issue!!!

Mrpeachy, I'd give anything to have just a 'pinch' of your skills!!!

Jed

I'd give a pinch for yours. :D I didn't even see this until after I posted mine ):P

MoralAnarchy
October 17th, 2012, 07:48 AM
*EDIT: MUCH THANKS AND PRAISE TO ALL THOSE WHOSE WORK I'M PIRATING!!!! I'M HOPING TO BE ABLE TO WRITE MY OWN STUFF SOMEDAY!!!*
Hey all.
I'm getting my confidence up little by little with this programming stuff. I still have LIGHT YEARS to go though. But currently I'm trying to patch together my own custom conky by grabbing bits and pieces of other peoples and putting them together all frankenstein-like. I'm having an issue with my lua script that i just started on and was looking for somebody to look it over for me. First, this is the error i receive upon typing conky into terminal -


Conky: llua_load: /home/moralanarchy/.scripts/Conky/conky_widgets.lua:28: attempt to call global 'ring' (a nil value)-then it just goes over and over with the 'llua_do_call:.......... call a nil value' I will attach my lua (it's probably royally jacked up but, meh, I'm winging it) and I'm hoping somebody can point out where it's messed up to me. :p


--[[
Conky Widgets by londonali1010 (2009)

This script is meant to be a "shell" to hold a suite of widgets for use in Conky.

To configure:
+ Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
+ To call the widget, add the following just before the last "end" of the entire script:
cr = cairo_create(cs)
NAME_OF_FUNCTION(cr, OPTIONS)
cairo_destroy(cr)
+ Replace OPTIONS with the options for your widget (should be specified in the widget's code block)

Call this script in Conky using the following before TEXT (assuming you save this script to ~/.scripts/Conky/conky_widgets.lua):
lua_load ~/scripts/Conky/conky_widgets.lua
lua_draw_hook_pre widgets

Changelog:
+ v1.0 -- Original release (17.10.2009)
]]

require 'cairo'
require 'imlib2'

-------------------[[ STORAGE RINGS SETTINGS ]]---------------

cr = cairo_create(cs)
ring(cr, 'fs_used_perc', '/media/AHD0', 100, 0xFFFF00, 0.3, 0xFF0000, 1, 260, 60, 45, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)



cr = cairo_create(cs)
ring(cr, 'fs_used_perc', '/media/2E48-9992', 100, 0xFFFF00, 0.3, 0xFF5A00, 1, 460, 60, 45, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)



cr = cairo_create(cs)
ring(cr, 'fs_used_perc', '/media/AHD1', 100, 0xFFFF00, 0.3, 0xFFFF00, 1, 660, 60, 45, 7, 0, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)

-------------------[[ END STORAGE RINGS SETTINGS ]]---------------

-------------------[[ CLOCK RINGS SETTINGS ]]---------------
settings_table = {
{
-- Edit this table to customise your rings.
-- You can create more rings simply by adding more elements to settings_table.
-- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
name='time',
-- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
arg='%I.%M',
-- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
max=12,
-- "bg_colour" is the colour of the base ring.
bg_colour=0xffffff,
-- "bg_alpha" is the alpha value of the base ring.
bg_alpha=0.1,
-- "fg_colour" is the colour of the indicator part of the ring.
fg_colour=0xffffff,
-- "fg_alpha" is the alpha value of the indicator part of the ring.
fg_alpha=0.2,
-- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
x=870, y=148,
-- "radius" is the radius of the ring.
radius=50,
-- "thickness" is the thickness of the ring, centred around the radius.
thickness=5,
-- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
start_angle=0,
-- "end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle.
end_angle=360
},
{
name='time',
arg='%M.%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0x4a89a7,
fg_alpha=0.4,
x=870, y=148,
radius=56,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='time',
arg='%S',
max=60,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xe83737,
fg_alpha=0.6,
x=870, y=148,
radius=62,
thickness=5,
start_angle=0,
end_angle=360
},
{
name='swapperc',
arg='',
max=100,
bg_colour=0xffffff,
bg_alpha=0,
fg_colour=0xffffff,
fg_alpha=0.1,
x=870, y=148,
radius=70,
thickness=5,
start_angle=60,
end_angle=120
},
{
name='memperc',
arg='%m',
max=100,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xebff46,
fg_alpha=0.6,
x=870, y=148,
radius=72,
thickness=11,
start_angle=122,
end_angle=210
},
{
name='fs_used_perc',
arg='/media/AHD0',
max=100,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xebff46,
fg_alpha=0.8,
x=870, y=148,
radius=83.5,
thickness=8,
start_angle=122,
end_angle=210
},
{
name='time',
arg='%d',
max=31,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xebff46,
fg_alpha=0.8,
x=870, y=148,
radius=70,
thickness=5,
start_angle=212,
end_angle=360
},
{
name='time',
arg='%m',
max=12,
bg_colour=0xffffff,
bg_alpha=0.1,
fg_colour=0xf4732d,
fg_alpha=0.8,
x=870, y=148,
radius=76,
thickness=5,
start_angle=212,
end_angle=360
},
{
name='cpu',
arg='cpu0',
max=100,
bg_colour=0xb7b7b7,
bg_alpha=0.5,
fg_colour=0x46a646,
fg_alpha=1.0,
x=870, y=148,
radius=120,
thickness=17,
start_angle=-90,
end_angle=30
},
{
name='cpu',
arg='cpu1',
max=100,
bg_colour=0xb7b7b7,
bg_alpha=0.2,
fg_colour=0x46a646,
fg_alpha=1.0,
x=870, y=148,
radius=116,
thickness=17,
start_angle=82,
end_angle=180
},
{
name='fs_used_perc',
arg='/home',
max=100,
bg_colour=0xffffff,
bg_alpha=0.5,
fg_colour=0xffffff,
fg_alpha=0.6,
x=870, y=148,
radius=95,
thickness=5,
start_angle=0,
end_angle=90
},
}


clock_r=125



clock_x=870
clock_y=148



clock_colour=0xffffff
clock_alpha=0.5



show_seconds=true

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
local w,h=conky_window.width,conky_window.height

local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local t_arc=t*(angle_f-angle_0)



cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,ring_w)
cairo_stroke(cr)



cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

function draw_clock_hands(cr,xc,yc)
local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys

secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")

secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12



xh=xc+0.7*clock_r*math.sin(hours_arc)
yh=yc-0.7*clock_r*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)

cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,rgb_to_r_g_b(clock_colour ,clock_alpha))
cairo_stroke(cr)



xm=xc+clock_r*math.sin(mins_arc)
ym=yc-clock_r*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)

cairo_set_line_width(cr,3)
cairo_stroke(cr)



if show_seconds then
xs=xc+clock_r*math.sin(secs_arc)
ys=yc-clock_r*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)

cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end

function conky_clock_rings()
local function setup_rings(cr,pt)
local str=''
local value=0

str=string.format('${%s %s}',pt['name'],pt['arg'])
str=conky_parse(str)

value=tonumber(str)
if value == nil then value = 0 end
pct=value/pt['max']

draw_ring(cr,pct,pt)
end



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)

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then
for i in pairs(settings_table) do
setup_rings(cr,settings_table[i])
end
end

draw_clock_hands(cr,clock_x,clock_y)
end
-------------------[[ END CLOCK RINGS SETTINGS ]]---------------
-------------------[[ RING WIDGET ]]-------------
--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]

function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local function draw_ring(pct)
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local pct_arc=pct*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,t)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

local function setup_ring()
local str = ''
local value = 0

str = string.format('${%s %s}', name, arg)
str = conky_parse(str)

value = tonumber(str)
if value == nil then value = 0 end
pct = value/max

draw_ring(pct)
end

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then setup_ring() end
end

----------------[[ END RING WIDGET ]]---------------Here's my conkyrc incase you need that too:


background yes
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_class conky
use_xft yes
#xftfont ariel:size=8
xftfont MgOpen Modata-07
xftalpha 1.0 #0.2
override_utf8_locale yes
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
cpu_avg_samples 1
net_avg_samples 2
use_spacer left
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
alignment tr
uppercase no
imlib_cache_size 0

minimum_size 1024 2500
#maximum_width 1024

gap_x 0 # left-right
gap_y 0 # up-down
border_inner_margin 0
border_outer_margin 0

# Colors
default_color 00BFFF #DeepSkyBlue
color0 FFD700 #Gold #7FFFD4 #Aquamarine
color1 FFA07A #LightSalmon #CD5C5C IndianRed #00CED1 DarkTurquoise #00FFFF Cyan
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
text_buffer_size 6144 # 256 is the minimum
short_units yes

# -- Lua Load -- #
lua_load ~/.scripts/Conky/conky_widgets.lua
lua_draw_hook_pre widgets

TEXT
#------------------------External Storage--------------------------#
#------------------------Alex's Harddrive--------------------------#
${voffset -138}${goto 237}${color yellow}AHD0
${color} ${if_existing /media/AHD0}
${voffset 00}${goto 225}${fs_used /media/AHD0}
${color yellow} of${color} ${fs_size /media/AHD0}
${voffset 00}${goto 248}${color green}used
${else}${voffset 20}${goto 224}${color8} NOT MOUNTED${voffset 40}${endif}${color}
#------------------------Thumb Drive--------------------------#
${voffset -48}${goto 637}${color yellow}2E48-9992
${color} ${if_existing /media/2E48-9992}
${voffset 00}${goto 623}${fs_used /media/2E48-9992}
${color yellow} of${color} ${fs_size /media/2E48-9992}
${voffset 00}${goto 647}${color green}used
${else}${voffset 20}${goto 622}${color8} NOT MOUNTED${voffset 15}${endif}${color}
#------------------------Alex's Harddrive 2--------------------------#
${voffset -72}${goto 435}${color yellow}AHD1
${color} ${if_existing /media/AHD1}
${voffset 00}${goto 425}${fs_used /media/AHD1}
${color yellow} of${color} ${fs_size /media/AHD1}
${voffset 00}${goto 448}${color green}used
${else}${voffset 20}${goto 422}${color8} NOT MOUNTED${voffset 16}${endif}${color}

zombifier25
October 17th, 2012, 08:28 AM
@MoralAnarchy: I see that you are using londonali's Ring and Clock Hands along with the Widget Block. I don't really know what you put inside your lua script (it looks like a royal mess, no offense :) ), but the 'proper' way to use the Conky Widget script is to use the whatever_wb.txt files that comes with the Rings and Clock Hands with it. Here's my lua script for you to use:

--[[
Conky Widgets by londonali1010 (2009)

This script is meant to be a "shell" to hold a suite of widgets for use in Conky.

To configure:
+ Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
+ To call the widget, add the following between "cr = cairo_create(cs)" and "cairo_destroy(cr)" at the end of the script:
NAME_OF_FUNCTION(cr, OPTIONS)
+ Replace OPTIONS with the options for your widget (should be specified in the widget's code block)

Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
lua_load ~/scripts/conky_widgets.lua
lua_draw_hook_pre widgets

Changelog:
+ v1.1 -- Simplified calls to widgets by implementing a global drawing surface, and included imlib2 by default (03.11.2009)
+ v1.0 -- Original release (17.10.2009)
]]

require 'cairo'
require 'imlib2'
--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]

function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local function draw_ring(pct)
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local pct_arc=pct*(angle_f-angle_0)

-- Draw background ring

cairo_arc(cr,xc,yc,r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,t)
cairo_stroke(cr)

-- Draw indicator ring

cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end

local function setup_ring()
local str = ''
local value = 0

str = string.format('${%s %s}', name, arg)
str = conky_parse(str)

value = tonumber(str)
if value == nil then value = 0 end
pct = value/max

draw_ring(pct)
end

local updates=conky_parse('${updates}')
update_num=tonumber(updates)

if update_num>5 then setup_ring() end
end

--[[ Options (xc, yc, colour, alpha, show_secs, size):
"xc" and "yc" are the x and y coordinates of the centre of the clock hands, in pixels, relative to the top left corner of the Conky window
"colour" is the colour of the clock hands, in OxFFFFFF formate
"alpha" is the alpha of the hands, between 0 and 1
"show_secs" is a boolean; set to TRUE to show the seconds hand, otherwise set to FALSE
"size" is the total size of the widget (e.g. twice the length of the minutes hand), in pixels ]]

function clock_hands(cr, xc, yc, colour, alpha, show_secs, size)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

local secs,mins,hours,secs_arc,mins_arc,hours_arc
local xh,yh,xm,ym,xs,ys

secs=os.date("%S")
mins=os.date("%M")
hours=os.date("%I")

secs_arc=(2*math.pi/60)*secs
mins_arc=(2*math.pi/60)*mins+secs_arc/60
hours_arc=(2*math.pi/12)*hours+mins_arc/12

xh=xc+0.4*size*math.sin(hours_arc)
yh=yc-0.4*size*math.cos(hours_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xh,yh)

cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
cairo_set_line_width(cr,5)
cairo_set_source_rgba(cr,rgb_to_r_g_b(colour,alpha ))
cairo_stroke(cr)

xm=xc+0.5*size*math.sin(mins_arc)
ym=yc-0.5*size*math.cos(mins_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xm,ym)

cairo_set_line_width(cr,3)
cairo_stroke(cr)

if show_secs then
xs=xc+0.5*size*math.sin(secs_arc)
ys=yc-0.5*size*math.cos(secs_arc)
cairo_move_to(cr,xc,yc)
cairo_line_to(cr,xs,ys)

cairo_set_line_width(cr,1)
cairo_stroke(cr)
end
end

function conky_widgets()
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)
cr = cairo_create(cs)
clock_hands(cr, 830, 200, 0x000000, 0.5, true, 200)
ring(cr, 'cpu', 'cpu0', 100, 0x000000, 0.1, 0x000000, 0.5, 830, 200, 75, 8, -40, 40)
ring(cr, 'time', '%S', 60, 0x000000, 0.1, 0x000000, 0.5, 830, 200, 62, 5, 0, 360)
ring(cr, 'memperc', '', 100, 0x000000, 0.1, 0x000000, 0.5, 830, 200, 75, 8, 190, 300)
ring(cr, 'swapperc', '', 100, 0x000000, 0.1, 0x000000, 0.5, 830, 200, 75, 8, 60, 170)
ring(cr, 'battery_percent', 'BAT0', 100, 0x000000, 0.1, 0x000000, 0.3, 830, 200, 100, 20, 120, 240)
ring(cr, 'fs_used_perc', '/', 100, 0x000000, 0.1, 0x000000, 0.2, 830, 200, 150, 40, -100, 100)
ring(cr, 'mpd_percent', '', 100, 0x000000, 0.1, 0x000000, 0.4, 830, 200, 100, 15, -40, 40)
ring(cr, 'entropy_perc', '', 100, 0x000000, 0.1, 0x000000, 0.3, 830, 200, 123, 5, -20, 20)
cairo_destroy(cr)
end

Like the script suggested, put the functions that defines the ring between the command cr = cairo_create(cs) and cairo_destroy(cr). The functions in this script is for my computer, so modify them to suit you.

MoralAnarchy
October 17th, 2012, 08:49 AM
thank you for the advice! haha. yeah i think i've bitten off a little more than i can chew. i'm loving this stuff but i need to get a whooooooole lot more proficient at it. i think i'll take that lua you posted and see what i can do with it step by step. thank mate. :)

Jedcurtis
October 18th, 2012, 06:13 AM
How cool is this? Just found out one of my conkys, (cough-cough) was being 'featured' on the Conky Pitstop (http://conky.pitstop.free.fr/wiki/index.php5?title=File:12-2-Jedcurtis-1.png) site. Way awesome! This is what happens when you learn how to "Ctrl-C and Ctrl-V"! (maybe a little Ctrl-X as well!) Thanks for the nod Sector11. ):P

Actual 'Featured (http://conky.pitstop.free.fr/wiki/index.php5?title=Featured)' link. (this link wont last forever obviously! No one gets featured forever!)hehe

Speaking of Sector11, here's one he found/borrowed from over at the Voyager Linux site. I just made a couple little changes with the colors and size and such! (That is, the "Rings/Clock/info Rings" on the right side of the screen-shot I've attached at the bottom). Sector11, you've been tremendously patient, and more importantly, FRIENDLY! I really appreciate all your help and kind words! Isn't it amazing the whole world isn't using Linux? (Thanks also to 'mrpeachy' for help resolving an error with the script.)

The weather script is courtesy of 'arclance (http://crunchbanglinux.org/forums/post/247218/#p247218)'! Click on his name to get a direct link to his scripts and instructions. Asking me questions about 'how-to' with his scripts would be like asking a chimp to fly you to your next vacation destination! I'll probably crash and burn your stuff! If I can figure it out, in other words, it should be simple for you. :)

The 'album/currently playing/lyrics', on the left is courtesy of VastOne (http://crunchbanglinux.org/forums/topic/20323/how-to-gmusicbrowser-and-custom-layouts/)'s advice to use gmusicbrowser (http://gmusicbrowser.org/). IMO this should be the default music player for Ubuntu! His 'how-to' link above (click his name) is fantastically easy to read and follow!

The rss-ticker at the top is just that, the Tickr-Feedreader (http://www.newsrssticker.com/download.php) configured easily enough with some of my favorite news sites.

The .tar.gz file for the clock conky can be grabbed here (http://www.jedsdesk.com/tmp/ClockRings.tar.gz). You'll have to make obvious changes, probably, for your particular set-up. My screen resolution is 1920x1080. If yours is less than that it'll obviously look gigantic. Do what I did, experiment till you find the size that suits you. Make sure in the lua and conkyrc files you change things to match your own /home/"User-Name" path. (without the quotes of course!)

I've read literally hundreds if not thousands of posts to figure all this out, and still had to have help with aspects of it from the very friendly folks on various Linux (i.e. #!CrunchBang Linux Forums (http://crunchbanglinux.org/forums/)) related forums. Google is your friend! "Search and ye shall find" or something like that.

So there, between the Conky Pitstop and the info in this post, you've got 3 fabulous conky's to play with! Enjoy...

Thanks,
Jed

PS, Way more than 3 if you count all the ones at CPS and the other sites mentioned in this post! I've also posted this 'post' on my blog-site (http://www.jedsdesk.com/?p=627)! Everyone should know about this stuff, and how nice Linux can be, not just to use, but to look at as well...

MikeCyber
October 18th, 2012, 08:12 AM
Thanks for net code Sector11 (http://ubuntuforums.org/member.php?u=1020869)

Sector11
October 18th, 2012, 03:49 PM
@ Jedcurtis

Thank you. It's been a pleasure helping you. Love the blue theme of arclance's weather. I gotta look at that some day and see if I can make it 'smaller'. I just have too much on my plate at the moment with other thinks ... life being a biggie at the moment.

Sector11
October 18th, 2012, 04:24 PM
Thanks for net code Sector11 (http://ubuntuforums.org/member.php?u=1020869)

No problem, did it do what you wanted?

reference this:

and maybe CPU/GPU temperatures as well

I mentioned lm-sensors ... here's a great bit of help that mrpeachy updated and gives three options: Using Sensors (http://conky.pitstop.free.fr/wiki/index.php5?title=Using_Sensors_%28en%29). I use the third method - hwmon changes where it puts things on occasion, platform is solid.

You can also get it without 'awk | sed' by using just 'grep and cut', example can be seen here (http://ubuntuforums.org/showpost.php?p=12296754&postcount=20780).

Nvidia GPU? I have that covered, it's a tough one:

GPU ${nvidia temp}°

Conky Variables (http://conky.sourceforge.net/variables.html)

nvidia threshold Nvidia graficcard support for the XNVCtrl library. Each option can be shortened to the least significant part. Temperatures are printed as float, all other values as integer.

threshold - The thresholdtemperature at which the gpu slows down
temp - Gives the gpu current temperature
ambient - Gives current air temperature near GPU case
gpufreq - Gives the current gpu frequency
memfreq - Gives the current mem frequency
imagequality - Which imagequality should be chosen by OpenGL applications

dogbert176
October 18th, 2012, 05:49 PM
@jedcurtis

The link to the clock conky doesn't work.

Sector11
October 18th, 2012, 06:32 PM
@jedcurtis

The link to the clock conky doesn't work.


I think Jed meant here: ClockRings (http://www.jedsdesk.com/tmp/ClockRings.tar.gz) Be quick about it though, looks like it's in a /tmp/ directory. :D

Ohhhhhhhhhh Jed!

dogbert176
October 18th, 2012, 07:42 PM
I think Jed meant here: ClockRings (http://www.jedsdesk.com/tmp/ClockRings.tar.gz) Be quick about it though, looks like it's in a /tmp/ directory. :D

Ohhhhhhhhhh Jed!

got it - thanks

Sector11
October 18th, 2012, 08:37 PM
got it - thanks

You're welcome.

Any questions answered only 10¢ payable to your left pocket by your right pocket. No confirmation of payment needed.

Jedcurtis
October 18th, 2012, 11:36 PM
Thanks to Sector11 and dogbert176 for pointing the link out! It should be fixed now, and, I'll leave it in the tmp directory for now.

Jed

Sector11
October 19th, 2012, 04:50 AM
Thanks to Sector11 and dogbert176 for pointing the link out! It should be fixed now, and, I'll leave it in the tmp directory for now.

Jed

It's always in the file at 12-2-Jedcurtis-1 you know the rest! :guitar:

MoralAnarchy
October 19th, 2012, 08:11 AM
Nice - Is that Teo's script in action - looks like it?

Clicked on CLICK HERE and couldn't view it. It wants a 'code' to down load the file. Don't want to down load it just view it.

May I suggest:
http://t.imgbox.com/acqLdgSs.jpg (http://imgbox.com/acqLdgSs)
Free Image Hosting by imgbox.com (http://imgbox.com) for images.
Feel free to say no thanks. ):P
Sector, may I ask what that dock is called that you are using at the bottom of your screen and possibly where I could get it?

NRP
October 19th, 2012, 12:19 PM
A little more playing around with the config, it's starting to get there.

everything seems to be working well so far

http://t.imgbox.com/abfX40n7.jpg (http://imgbox.com/abfX40n7)

http://imageshack.us/a/img191/3307/1024x768.gif
http://hcd-1.imgbox.com/abe3kxLl.gif?st=8X4aA9ZtHasgdQFLaJh8MQ&e=1350653076

Sector11
October 19th, 2012, 02:27 PM
Sector, may I ask what that dock is called that you are using at the bottom of your screen and possibly where I could get it?

'tint2' - it's in the repos. That's my main one. I have another setup that has the launcher hiding on the left side:

http://t.imgbox.com/abix1cry.jpg (http://imgbox.com/abix1cry)

VastOne has a nice little How To - Latest Tint2 Code and New Tint2 Additions (http://crunchbanglinux.org/forums/topic/16997/how-to-latest-tint2-code-and-new-tint2-additions/)

You can run multiple instances of it (different names), and have each of these:

##### Panel #####
##### In order left to right #####
panel_items = LCST

# L Launcher
# T Taskbar
# S Systray (also called notification area)
# B Battery status (no need)
# C Clock

as a separate panel if you choose.

The one on the left, the launcher, has this:

##### Panel #####
##### In order left to right #####
panel_items = L

VastOne has some really great setups.

MoralAnarchy
October 19th, 2012, 02:37 PM
thanks sector!! downloading now :)

MoralAnarchy
October 19th, 2012, 03:50 PM
loving it so far. especially since i found that tintwizard which is really handy!

Sector11
October 19th, 2012, 06:58 PM
loving it so far. especially since i found that tintwizard which is really handy!

Used that once and deleted it. However, lots of people do use it.

New panel, new conky, new screenshot coming soon?

DobsonM
October 20th, 2012, 06:45 AM
Anyone know how to force the fonts you are using to be capital letters??

VastOne
October 20th, 2012, 06:49 AM
Anyone know how to force the fonts you are using to be capital letters??

uppercase yes

I know (now) it is that easy...

DobsonM
October 20th, 2012, 06:54 AM
Perfect, thank you!

VinDSL
October 20th, 2012, 12:07 PM
Data Dump...




Ubuntu 10.10 / Conky 1.8.0-1 / Lua / Gnome2 / Rhythmbox / Conkywx 0.7.8 - Imperial Weather

http://vindsl.com/images/vindsl-desktop-19-oct-2012-4(650x520).png (http://vindsl.com/images/vindsl-desktop-19-oct-2012-4.png)





Ubuntu 12.10 / Conky 1.9.0-2 / Lua / Unity / Banshee / Conkywx 0.7.8 - Metric Weather

http://vindsl.com/images/vindsl-desktop-19-oct-2012-3(650x520).png (http://vindsl.com/images/vindsl-desktop-19-oct-2012-3.png)


See the 42dorian HOWTO in my sig for details. ;)

DobsonM
October 20th, 2012, 06:52 PM
So this is my very simple Conky and I want to use the ITC Avant Garde Gothic Pro Extra Light font. But no matter what format I enter the font name, it doesn't use that font, anyone got any ideas on what format the font name should be?


alignment top_middle
background no
border_margin 5
border_width 5
default_color d7d7d7 #413536 # grey 5f5f5f 3F3F3F 183149 3B3B3B 26211F
double_buffer yes
draw_borders no
draw_outline no
draw_shades no
gap_x -370
gap_y 50
maximum_width 400
minimum_size 450
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal ## normal /override /desktop
text_buffer_size 8000
total_run_times 0
update_interval 1
uppercase no
use_xft yes
xftalpha 1
xftfont Raleway:pixelsize=9

# Distric-Thin fonts
# Blue Highway
# Raleway
# Zekton
# Calibri
# Engebrechtre
# Opeln2001
# Pricedown
# Sawasdee
TEXT
${font ITC Avant Garde Gothic Pro Extra Light:pixelsize=180}${alignc}${time %H}${font}
${font ITC Avant Garde Gothic Pro Extra Light:pixelsize=180}${alignc}${color #FBAA35}${time %M}${font}
#${voffset 30}${font Sawasdee:pixelsize=20}${alignc}${color #d7d7d7}${time %A | %B %d}${font}
#${voffset 15}${font Sawasdee:pixelsize=20}${alignc}${color #d7d7d7}${time %Y}

mrpeachy
October 20th, 2012, 07:04 PM
So this is my very simple Conky and I want to use the ITC Avant Garde Gothic Pro Extra Light font. But no matter what format I enter the font name, it doesn't use that font, anyone got any ideas on what format the font name should be?

one thing to try... open gimp and see what gimp calls that font, then copy the name directly into conky

DobsonM
October 20th, 2012, 07:24 PM
one thing to try... open gimp and see what gimp calls that font, then copy the name directly into conky

Tried that, still does the same thing as before. I have already updated the font cache and I even did a restart to see if that would help. :(

To top it off now my conk is cut off at the bottom for no apparent reason:

mrpeachy
October 20th, 2012, 08:39 PM
Tried that, still does the same thing as before. I have already updated the font cache and I even did a restart to see if that would help. :(

To top it off now my conk is cut off at the bottom for no apparent reason:
did you get the font working?
this worked for me


${font AvantGarde LT ExtraLight, Ultra-Light:pixelsize=60}


as to why its being cut off... always try killall conky and restart as the first step

Sijmen
October 20th, 2012, 08:41 PM
Haven't changed this in.... well..... almost a year, and I have no clue what some of the code means anymore :P

I would like to make it simpler. There must be some $user and $ubuntu_release commands somewhere....



background yes
use_xft yes
xftfont DejaVu Sans:size=7
xftalpha 0.1
update_interval 0.5
total_run_times 0
own_window no
#own_window_type normal
#own_window_transparent yes
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 5
maximum_width 150
draw_shades no
draw_outline no
draw_borders yes
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment middle_left
gap_x 15
gap_y 13
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
text_buffer_size 256

color1 FF0101 #Headers
color2 A1A1A1 #Bar graph
color3 9A9A9A #Main text
#color4
#color5

TEXT
${font URW Gothic L Book:size=7}${color1}SYSTEM ${color2}${hr 2}${font}${color3}
Xubuntu $alignr 12.10
$sysname $kernel $alignr $machine
User $alignr simon@$nodename
Uptime $alignr $uptime
Temp $alignr ${execi 1 cat /sys/bus/acpi/devices/LNXTHERM:00/thermal_zone/temp | cut -c1-2}°C
File System $alignr $fs_type

${font URW Gothic L Book:size=7}${color1}PROCESSOR ${color2}${hr 2}${font}
${color3}Intel Core 2 Duo T8100 @${alignr}${freq_g}Ghz
${color3}Core 1 ${cpu cpu1}% ${color2}${cpubar cpu1}
${color3}Core 2 ${cpu cpu2}% ${color2}${cpubar cpu2}

${font URW Gothic L Book:size=7}${color1}DISK / RAM ${color2}${hr 2}${font}
${color3}/ $alignc ${fs_used /} ${fs_size /} $alignr ${fs_used_perc /}%
${color2}${fs_bar /}
${color3}/home $alignc ${fs_used /home} ${fs_size /home} $alignr ${fs_used_perc /home}%
${color2}${fs_bar /home}
#${if_existing /data/operstate}
#${color3}/data $alignc ${fs_used /data} ${fs_size /data} $alignr ${fs_used_perc /data}%
#${color2}${fs_bar /data}
#${endif}
${color3}Swap $alignc $swap / $swapmax $alignr $swapperc%
${color2}$swapbar
${color3}RAM $alignc $mem / $memmax $alignr $memperc%
${color2}$membar

${font URW Gothic L Book:size=7}${color1}BATTERY ${color2}${hr 2}${font}${color3}
State: $alignr${battery BAT1}
Battery Time: ${alignr}${battery_time BAT1}

${font URW Gothic L Book:size=7}${color1}TOP PROCESSES ${color2}${hr 2}${font}${color3}
${top name 1}${alignr}${top cpu 1} %
${top name 2}${alignr}${top cpu 2} %
${top name 3}${alignr}${top cpu 3} %
#${top name 4}${alignr}${top cpu 4} %
#${top name 5}${alignr}${top cpu 5} %

${font URW Gothic L Book:size=7}${color1}TOP MEMORY ${color2}${hr 2}${font}${color3}
${top_mem name 1}${alignr}${top_mem mem 1} %
${top_mem name 2}${alignr}${top_mem mem 2} %
${top_mem name 3}${alignr}${top_mem mem 3} %
#${top_mem name 4}${alignr}${top_mem mem 4} %
#${top_mem name 5}${alignr}${top_mem mem 5} %

${font URW Gothic L Book:size=7}${color1}NETWORK ${color2}${hr 2}${font}${color3}
${if_existing /sys/class/net/wlan0/operstate up}Wi-Fi: ${alignr}${wireless_essid wlan0}
IP address: ${alignr}${addr wlan0}
Inbound: ${alignr}${downspeed wlan0}
Outbound: ${alignr}${upspeed wlan0}
Inbound total: ${alignr}${totaldown wlan0}
Outbound total: ${alignr}${totalup wlan0}${endif}${if_existing /sys/class/net/eth0/operstate = up}

${font}${color3}LAN:${alignr}Start Networking
IP address: ${alignr}${addr eth0}
Inbound: ${alignr}${downspeed eth0}
Outbound: ${alignr}${upspeed eth0}
Inbound total: ${alignr}${totaldown eth0}
Outbound total: ${alignr}${totalup eth0}${endif}

DobsonM
October 20th, 2012, 08:42 PM
did you get the font working?
this worked for me


${font AvantGarde LT ExtraLight, Ultra-Light:pixelsize=60}


as to why its being cut off... always try killall conky and restart as the first step


Thanks for your help but it still isn't working grrr.

dk75
October 20th, 2012, 08:48 PM
So this is my very simple Conky and I want to use the ITC Avant Garde Gothic Pro Extra Light font. But no matter what format I enter the font name, it doesn't use that font, anyone got any ideas on what format the font name should be?
The problem is, that this particular font is commercial - €35; so can't test it with font viewer (gnome-font-viewer by the way), but "ITC Avant Garde Gothic LT Extra Light" seems to be same and is called by "AvantGarde LT ExtraLight".
Checked it and it works (I can tell by capital R curves).

And whenever I look for it in gnome-font-viewer or in GIMP it is listed as (surprise) "AvantGrade LT ExtraLight" and no more (GIMP have it with addition of ",Ultra-Light").

So, you didn't checked GIMP for it too throughly.
So for Pro version I suggest font face name as "AvantGarde Pro ExtraLight", but you should check it out with font viewer or GIMP.




To top it off now my conk is cut off at the bottom for no apparent reason:
Theres always reason.
It works for me though.

DobsonM
October 20th, 2012, 08:56 PM
The problem is, that this particular font is commercial - €35; so can't test it with font viewer (gnome-font-viewer by the way), but "ITC Avant Garde Gothic LT Extra Light" seems to be same and is called by "AvantGarde LT ExtraLight".
Checked it and it works (I can tell by capital R curves).

And whenever I look for it in gnome-font-viewer or in GIMP it is listed as (surprise) "AvantGrade LT ExtraLight" and no more (GIMP have it with addition of ",Ultra-Light").

So, you didn't checked GIMP for it too throughly.
So for Pro version I suggest font face name as "AvantGarde Pro ExtraLight", but you should check it out with font viewer or GIMP.




Theres always reason.
It works for me though.

Sorry I didn't realise it was a professional font, I pinched the font from the rainmeter skin it was packaged with, Elegance.

So now I have installed the free version it is all working :D

Thanks team for all the help.

Sector11
October 20th, 2012, 09:59 PM
So this is my very simple Conky and I want to use the ITC Avant Garde Gothic Pro Extra Light font. But no matter what format I enter the font name, it doesn't use that font, anyone got any ideas on what format the font name should be?

I see this is solved but I'd like to pass on a tip. Some fonts don't have the same name you downloaded them by.

Bad font, bad, bad, bad!

With 'Gnome Specimen' font viewer when a font is highlighted just start typing the name: itc
http://t.imgbox.com/adbKO6GZ.jpg (http://imgbox.com/adbKO6GZ)

OK that didn't work, wipe it clean and start with the next part: 'avant' and as soon as you type 'av' there it is:
http://t.imgbox.com/acdLJjJj.jpg (http://imgbox.com/acdLJjJj)

easy peasy... and notice how it's getting 'itc' and 'av' from anywhere in the names.

EDIT: Works for me as well:
http://t.imgbox.com/aciMCdUH.jpg (http://imgbox.com/aciMCdUH)

DobsonM
October 20th, 2012, 11:05 PM
I see this is solved but I'd like to pass on a tip. Some fonts don't have the same name you downloaded them by.

Bad font, bad, bad, bad!

With 'Gnome Specimen' font viewer when a font is highlighted just start typing the name: itc
http://t.imgbox.com/adbKO6GZ.jpg (http://imgbox.com/adbKO6GZ)

OK that didn't work, wipe it clean and start with the next part: 'avant' and as soon as you type 'av' there it is:
http://t.imgbox.com/acdLJjJj.jpg (http://imgbox.com/acdLJjJj)

easy peasy... and notice how it's getting 'itc' and 'av' from anywhere in the names.

EDIT: Works for me as well:
http://t.imgbox.com/aciMCdUH.jpg (http://imgbox.com/aciMCdUH)

Thank you for the tip.

Sector11
October 20th, 2012, 11:15 PM
Thank you for the tip.

You're welcome.

mrpeachy
October 21st, 2012, 01:40 AM
just tried out gnome specimen
certainly launches faster than gimp... but you can't copy the font name from it
have to copy it m a n u a l l y :D

Sector11
October 21st, 2012, 04:23 AM
just tried out gnome specimen
certainly launches faster than gimp... but you can't copy the font name from it
have to copy it m a n u a l l y :D

Double click on a font - when it's on the right, click on it and then [ctrl]+c: White Rabbit Regular (drop the Regular) and you have it.

WenQuanYi Zen Hei Mono Regular

mrpeachy
October 21st, 2012, 04:59 AM
Double click on a font - when it's on the right, click on it and then [ctrl]+c: White Rabbit Regular (drop the Regular) and you have it.

WenQuanYi Zen Hei Mono Regular
hmmm... that does indeed work... but
why on earth are there no right click options in the window itself??
(can you tell i do most things by mouse? :) )

Sector11
October 21st, 2012, 05:08 AM
hmmm... that does indeed work... but
why on earth are there no right click options in the window itself??
(can you tell i do most things by mouse? :) )

So do I and I had the same question to myself when I first tried...
Bummer.

You can double click on a font ... when it's highlighted on the right, use the mouse on Edit + Copy font name - but sometimes I find that doesn't work.

Jedcurtis
October 21st, 2012, 07:34 AM
So here's a quicky question for all of you conky pro's! Does conkyForecast still work? I feel like I've been at the brick wall banging my head on it, for all the good I've been able to accomplish trying to get it to work! It's not thaaaat important, just experimenting with something and it seemed like maybe it would be the fastest route to success! So far, no joy!

If it's not worth the effort of trying to get it to work, someone, please tell me to get away from that wall! ](*,) My head hurts!!!

I wont be able to check back in till Sun afternoon sometime. (the wife said, choose; me or Conky! I told her how sorry I was, and got back to 'working' on the latest conky script I've borrowed! cough-cough) [-X

Thanks,
Jed

Sector11
October 21st, 2012, 03:26 PM
So here's a quicky question for all of you conky pro's! Does conkyForecast still work? I feel like I've been at the brick wall banging my head on it, for all the good I've been able to accomplish trying to get it to work! It's not thaaaat important, just experimenting with something and it seemed like maybe it would be the fastest route to success! So far, no joy!

If it's not worth the effort of trying to get it to work, someone, please tell me to get away from that wall! ](*,) My head hurts!!!

I wont be able to check back in till Sun afternoon sometime. (the wife said, choose; me or Conky! I told her how sorry I was, and got back to 'working' on the latest conky script I've borrowed! cough-cough) [-X

Thanks,
Jed

YES and NO

ConkyForecast - as originally done will still work under a few conditions:

Free access ID and KEY (as was originally set up)

you still have ~/.conkyForecast.config with:

XOAP_PARTNER_ID = IDIDIDIDIDIDID
XOAP_LICENCE_KEY = KEYKEYKEY, and

you still have your cache file. ie: .conkyForecast-ARBA0009.cache


Original paid service ID & KEY; for 10 day forecast:

you still have ~/.conkyForecast.config with:

XOAP_PARTNER_ID = IDIDIDIDIDIDID
XOAP_LICENCE_KEY = KEYKEYKEY, and

you can still create new cache files.


Other than that you can use the conkyForecastWU version that is included in the latest .deb file and get weather from Wunderground.

I just did this post before coming here, conkyForecast for 4 locations with Chinese output. (http://crunchbanglinux.org/forums/post/265755/#p265755)

I have the 10 day ID and KEY and I always used:

CACHE_FOLDERPATH = /home/sector11/Conky/cache/
vs

CACHE_FOLDERPATH = /tmp/
that deletes everything when the computer is turned off.

Sector11
October 21st, 2012, 04:20 PM
IT'S BACK!!!!!


conkyForecast is BACK! No ID No KEY 10days!

~/.conkyForecast.config

#=============================================#
# EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
#=============================================#
#BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
MAXIMUM_DAYS_FORECAST = 9

#===============================================#
# USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
#===============================================#
CACHE_FOLDERPATH = /home/sector11/Conky/cache/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
DEFAULT_LOCATION = ARBA0009
AUTO_NIGHT = TRUE
PROXY_HOST =
PROXY_PORT = 8080
PROXY_USERNAME =
PROXY_PASSWORD =


I did NOT have a cache file for NYC, NY ... so I got the LOCATION: USNY0996

and ran 2 conkys, the "4 location conky" and another conky I had set up for here - but used the USNY0996 code. conkyForecast created the cache file and ran just fine.

http://t.imgbox.com/adtyWmVh.jpg (http://imgbox.com/adtyWmVh)

The conky:

# killall conky && conky -c /home/sector11/Conky/GNU/gnu_win_weather
# To use #! in a conky use: ${exec echo '#!'}
# Text Weather
# by Sector11

own_window yes
own_window_type normal #override
own_window_transparent no #yes
own_window_colour black
own_window_hints below,skip_taskbar,skip_pager
own_window_title NYC NY USA
own_window_class Conky

background no
border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
no_buffers yes
override_utf8_locale yes
pad_percents 2
short_units yes
stippled_borders 0
text_buffer_size 1028
uppercase no
use_spacer right
use_xft yes
xftalpha 1.0

# Colors
default_color DCDCDC #Gainsboro
color0 FFFFF0 #Ivory
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 C6FF8E #a light green #FFF00 #Chartreuse
color4 778899 #LightSlateGrey
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red

imlib_cache_size 0

gap_x 10 # left-right
gap_y 5 # up-down
text_buffer_size 3584 # 256 is minimum
minimum_size 240 880
maximum_width 240
alignment tr
xftfont monospace:size=8
own_window_argb_visual yes

update_interval 1
### LUA Settings ################################################## #########
## Above and After TEXT - requires a composite manager or blinks.
##
## lua_load ~/Conky/LUA/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.4}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## WARNING: Heavy on CPU
##
## OR Both above TEXT (No composite manager required - no blinking!)
# lua_load ~/Conky/LUA/draw_bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
##
################################################## ##### End LUA Settings ###

## NYC NY #USNY0996 ##ARBA0009

TEXT
${execpi 1800 conkyForecast --location=USNY0996 --template=$HOME/Conky/GNU/gnu-all-txt.template}


gnu-all-txt.template

Now: [--datatype=HT] - FL: [--datatype=LT --night]${image [--datatype=WI --startday=1] -p 195,40 -s 40x40}${image [--datatype=MI] -p 195,130 -s 40x40}
[--datatype=CT --night]
Max: [--startday=0 --datatype=HT --night] Min: [--startday=0 --datatype=LT --night]
Vis: [--datatype=VI --hideunits --night] km
Dew Pt: [--datatype=DP]
Hum: [--datatype=HM --hideunits] Rain? [--datatype=PC --startday=0]
UV: [--datatype=UI --night] - [--datatype=UT --night]
Bar: [--datatype=BR] [--datatype=BD]
Wind: [--datatype=WS --hideunits] km/h - [--datatype=WA]° - [--datatype=WD]
Moon: [--datatype=MP]
Sun: [--startday=0 --datatype=SR] [--startday=0 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=0 --datatype=DL]
${if_match "${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009 -t}"=="Sunrise"}Sunrise in: ${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009}${else}Sunset in: ${exec conkyForecast-SunsetSunriseCountdown --location=ARBA0009}${endif}
${color4}${hr}${color}${image [--datatype=WI --startday=2] -p 195,210 -s 40x40}
[--datatype=DW --startday=1]: [--datatype=HT --hideunits --startday=1] - [--datatype=LT --hideunits --startday=1]
[--datatype=CT --startday=1]
Hum: [--datatype=HM --startday=1] Rain? [--datatype=PC --startday=1]
Wind: [--hideunits --startday=1 --datatype=WS] km/h - [--startday=1 --datatype=WA]° - [--startday=1 --datatype=WD]
Sun: [--startday=1 --datatype=SR] [--startday=1 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=1 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=2] -p 195,303 -s 40x40}
[--datatype=DW --startday=2]: [--datatype=HT --hideunits --startday=2] - [--datatype=LT --hideunits --startday=2]
[--datatype=CT --startday=2]
Hum: [--datatype=HM --startday=2] Rain? [--datatype=PC --startday=2]
Wind: [--hideunits --startday=2 --datatype=WS] km/h - [--startday=2 --datatype=WA]° - [--startday=2 --datatype=WD]
Sun: [--startday=2 --datatype=SR] [--startday=2 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=2 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=3] -p 195,395 -s 40x40}
[--datatype=DW --startday=3]: [--datatype=HT --hideunits --startday=3] - [--datatype=LT --hideunits --startday=3]
[--datatype=CT --startday=3]
Hum: [--datatype=HM --startday=3] Rain? [--datatype=PC --startday=3]
Wind: [--hideunits --startday=3 --datatype=WS] km/h - [--startday=3 --datatype=WA]° - [--startday=3 --datatype=WD]
Sun: [--startday=3 --datatype=SR] [--startday=3 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=3 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=4] -p 195,485 -s 40x40}
[--datatype=DW --startday=4]: [--datatype=HT --hideunits --startday=4] - [--datatype=LT --hideunits --startday=4]
[--datatype=CT --startday=4]
Hum: [--datatype=HM --startday=4] Rain? [--datatype=PC --startday=4]
Wind: [--hideunits --startday=4 --datatype=WS] km/h - [--startday=4 --datatype=WA]° - [--startday=4 --datatype=WD]
Sun: [--startday=4 --datatype=SR] [--startday=4 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=4 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=5] -p 195,578 -s 40x40}
[--datatype=DW --startday=5]: [--datatype=HT --hideunits --startday=5] - [--datatype=LT --hideunits --startday=5]
[--datatype=CT --startday=5]
Hum: [--datatype=HM --startday=5] Rain? [--datatype=PC --startday=5]
Wind: [--hideunits --startday=5 --datatype=WS] km/h - [--startday=5 --datatype=WA]° - [--startday=5 --datatype=WD]
Sun: [--startday=5 --datatype=SR] [--startday=5 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=5 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=6] -p 195,670 -s 40x40}
[--datatype=DW --startday=6]: [--datatype=HT --hideunits --startday=6] - [--datatype=LT --hideunits --startday=6]
[--datatype=CT --startday=6]
Hum: [--datatype=HM --startday=6] Rain? [--datatype=PC --startday=6]
Wind: [--hideunits --startday=6 --datatype=WS] km/h - [--startday=6 --datatype=WA]° - [--startday=6 --datatype=WD]
Sun: [--startday=6 --datatype=SR] [--startday=6 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=6 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=7] -p 195,762 -s 40x40}
[--datatype=DW --startday=7]: [--datatype=HT --hideunits --startday=7] - [--datatype=LT --hideunits --startday=7]
[--datatype=CT --startday=7]
Hum: [--datatype=HM --startday=7] Rain? [--datatype=PC --startday=7]
Wind: [--hideunits --startday=7 --datatype=WS] km/h - [--startday=7 --datatype=WA]° - [--startday=7 --datatype=WD]
Sun: [--startday=7 --datatype=SR] [--startday=7 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=7 --datatype=DL]
${color4}${hr}${color}${image [--datatype=WI --startday=8] -p 195,853 -s 40x40}
[--datatype=DW --startday=8]: [--datatype=HT --hideunits --startday=8] - [--datatype=LT --hideunits --startday=8]
[--datatype=CT --startday=8]
Hum: [--datatype=HM --startday=8] Rain? [--datatype=PC --startday=8]
Wind: [--hideunits --startday=8 --datatype=WS] km/h - [--startday=8 --datatype=WA]° - [--startday=7 --datatype=WD]
Sun: [--startday=8 --datatype=SR] [--startday=8 --datatype=SS]
${voffset -14}${font arrows:size=8}${color8}c ${color4}g${color}${font}
Amount of Daylight: [--startday=8 --datatype=DL]
${color4}${hr}${color}${voffset -110}



conkyForecast LIVES! It's ALIVE!!!!!!!

MoralAnarchy
October 21st, 2012, 05:28 PM
Used that once and deleted it. However, lots of people do use it.

New panel, new conky, new screenshot coming soon?
I will certainly consider posting a screen shot just as soon as i can copy and paste my way into something kind of resembling originality haha! I'm steadily trying to absorb as much as I can about programming languages but I have so far to go. Will definitely share my "creations" as soon as I'm feeling confident :P

Sector11
October 22nd, 2012, 12:50 AM
I will certainly consider posting a screen shot just as soon as i can copy and paste my way into something kind of resembling originality haha! I'm steadily trying to absorb as much as I can about programming languages but I have so far to go. Will definitely share my "creations" as soon as I'm feeling confident :P

That is totally fair and understandable.

IbsUser
October 23rd, 2012, 01:35 AM
hi,

i followed the guide at
http://www.upubuntu.com/2012/07/conky-2-nice-conky-desklet-for-your.html

everything works fine except battery ring.

my battery is BAT0 and i get the following error:
Conky: can't open /sys/class/power_supply/BAT1/uevent: No such file or directory

Where in conky files i can change BAT1 for BAT0?

tks in advance for your help!

VastOne
October 23rd, 2012, 01:40 AM
hi,

i followed the guide at
http://www.upubuntu.com/2012/07/conky-2-nice-conky-desklet-for-your.html

everything works fine except battery ring.

my battery is BAT0 and i get the following error:
Conky: can't open /sys/class/power_supply/BAT1/uevent: No such file or directory

Where in conky files i can change BAT1 for BAT0?

tks in advance for your help!

That is a directory path error, not a conky error

Check to see what is in /sys/class/power_supply/BAT0/

If it is, make the change to the conky to reflect that

IbsUser
October 23rd, 2012, 02:11 AM
That is a directory path error, not a conky error

Check to see what is in /sys/class/power_supply/BAT0/

If it is, make the change to the conky to reflect that

hi,
i got it's a path error. i've double checked my path and it is
/sys/class/power_supply/BAT0/uevent

i've already changed conky files at

/home/.conkyrc
${battery_percent BAT0}%conk
${font Xirod:size=8}${color0}${goto 105}${voffset -1}BATTERY

and i also put a file under
/home/conky/rings-v1.2.1.lua

as said in
http://browse.deviantart.com/customization/skins/linuxutil/applications/conky/#/d58gktj

however i keep getting the same error msg:
Conky: can't open /sys/class/power_supply/BAT1/uevent: No such file or directory

i don't understand once i've already changed the paths on conky config file... so question is: is there another file in conky i should change?

tks in advance!

mrpeachy
October 23rd, 2012, 02:12 AM
hi,

i followed the guide at
http://www.upubuntu.com/2012/07/conky-2-nice-conky-desklet-for-your.html

everything works fine except battery ring.

my battery is BAT0 and i get the following error:
Conky: can't open /sys/class/power_supply/BAT1/uevent: No such file or directory

Where in conky files i can change BAT1 for BAT0?

tks in advance for your help!
according to the conky objects page BAT0 should be the default
http://conky.sourceforge.net/variables.html


battery (num) Battery status and remaining percentage capacity of ACPI or APM battery. ACPI battery number can be given as argument (default is BAT0).

battery_bar (height),(width) (num) Battery percentage remaining of ACPI battery in a bar. ACPI battery number can be given as argument (default is BAT0).

battery_percent (num) Battery percentage remaining for ACPI battery. ACPI battery number can be given as argument (default is BAT0).
what does your conkyrc look like?





${battery_percent BAT0}%conk

just saw this reply - try just ${battery_percent} and see what happens

otherwise dont worry about the errors, as long as the conky is working the errors dont affect anything

also what version of conky are you using?
in terminal

conky -v

irv
October 23rd, 2012, 04:05 PM
Are there any others out here having problems with Conky display in 12.10. Conky is set to refresh and sometimes the transparency doesn't seem to work.
Here are two screen shots to show what I am talking about.
225986 225987
This is only happening once in awhile.
Here is my .conkyrc file.

# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu 12.04 / Debian Unity, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
# INCLUDES:
# - tail of /var/log/syslog
# - netstat shows number of connections from your computer and application/PID making it. Kill spyware!
#
# -- Pengo
#


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
# border_margin 9

# border width
# border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color orange} ${hr 2}$color
${color orange}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine

${color orange}CPU ${hr 2}$color
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}
${font DejaVu Sans Mono:size=8}NAME PID CPU% MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

${color orange}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
hda1: ${fs_free_perc /dev/sda1}% ${fs_bar 6 /dev/sda1}$color

${color orange}NETWORK (${addr wlan0}) ${hr 2}$color
Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0
25,140 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}
${color orange}LOGGING ${hr 2}$color
${execi 30 tail -n3 /var/log/syslog | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w50}


# ${color orange}FORTUNE ${hr 2}$color
# ${execi 120 fortune -s | fold -w50}

${color orange}programs that are connecting to the outside world ${hr 2}$color
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}

${color orange}Looking for Zombies ${hr 2}$color


I am starting to think this is a bug.

Sector11
October 23rd, 2012, 05:55 PM
Are there any others out here having problems with Conky display in 12.10. Conky is set to refresh and sometimes the transparency doesn't seem to work.
Here are two screen shots to show what I am talking about.

Do you need to be root to read: /var/log/syslog on your system?

Also:

# border margins
# border_margin 9

border margins have changed to:

# border_inner_margin x
# border_outer_margin x
I see you have them commented out but for future reference.

What version of conky are you running?

conky -v
if v1.8.1 - try updating to 1.9.1-2:

Add Vincent's PPA to your sources list. (He maintains conky for Debian based systems)

In a Terminal:

sudo add-apt-repository ppa:vincent-c/conky
sudo apt-get update

Make sure you are using conky-all not just conky.

VinDSL
October 23rd, 2012, 08:16 PM
Are there any others out here having problems with Conky display in 12.10.


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager



Here's what I use in my script(s), Irv.

Haven't had any complaints... :)



####
## Create 'own_window' type. Makes Conky behave like other panels.
#
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
####
## Some distros require the following lines for true transparency.
#
# own_window_argb_visual yes
# own_window_argb_value 255


You may, or may not have to un-comment the last two lines, depending on your rig.

This gives true transparency in 12.10 ;)



http://vindsl.com/images/vindsl-desktop-22-oct-2012-2(650x520).png (http://vindsl.com/images/vindsl-desktop-22-oct-2012-2.png)




http://vindsl.com/images/vindsl-desktop-22-oct-2012-3(650x520).png (http://vindsl.com/images/vindsl-desktop-22-oct-2012-3.png)




http://vindsl.com/images/vindsl-desktop-22-oct-2012-4(650x520).png (http://vindsl.com/images/vindsl-desktop-22-oct-2012-4.png)


As you can see, I'm now running the Ubuntu 13.04 pre-toolchain dev release, but...

It works fine in Ubu 12.10 Unity, Gnome-Shell, LXDE/Openbox, and everything else I've tested it on.

Just make sure you're running Conky-ALL 1.8.0-1 or Conky-ALL 1.9.0-2


From my terminal...



vindsl@Zuul:~$ apt-cache policy conky-all
conky-all:
Installed: 1.9.0-2
Candidate: 1.9.0-2
Version table:
*** 1.9.0-2 0
500 http://archive.ubuntu.com/ubuntu/ raring/universe i386 Packages
100 /var/lib/dpkg/status
1.9.0-2~ppa1~precise1 0
500 http://ppa.launchpad.net/vincent-c/conky/ubuntu/ precise/main i386 Packages


From my .conkyrc...



####
## Prerequisites (required)
#
# conky-all 1.8.0-1 or 1.9.0-2
# Conkywx 0.7.8 (Paramvir Likhari)
# UTF-8 Compatible Text Editor
#
## Tips n' Tricks: conky 1.8.1 will no longer be supported. RIP :)

irv
October 23rd, 2012, 08:27 PM
Do you need to be root to read: /var/log/syslog on your system?

Also:

# border margins
# border_margin 9

border margins have changed to:

# border_inner_margin x
# border_outer_margin x
I see you have them commented out but for future reference.

What version of conky are you running?

conky -v
if v1.8.1 - try updating to 1.9.1-2:

Add Vincent's PPA to your sources list. (He maintains conky for Debian based systems)

In a Terminal:

sudo add-apt-repository ppa:vincent-c/conky
sudo apt-get update

Make sure you are using conky-all not just conky.

OK: first conky -v is 1.9.0
Second I added the PPA
Third I ran the update
I changed my desktop wallpaper and change my text color from gray to black.
Next I set my startup to run conky -all then rebooted and this is what I am looking at. Now how do I fix this.
225999
Looks like I have a window and it is top high. It is covering my top panel.

EDIT: if I just run conky -p 10 everything is fixed.
226000

Sector11
October 23rd, 2012, 09:45 PM
EDIT: if I just run conky -p 10 everything is fixed.
226000

OK that pasy id needed for startup with some desktop managers, but have a look at what VinDSL posted.

Especially if you are running a composite manager - which could lead to the background problem you had.

irv
October 23rd, 2012, 10:20 PM
Everything seems to be running OK now and this is my settings in startup.
226006
I spoke to soon, it happen again.
226007

mrpeachy
October 23rd, 2012, 10:34 PM
Everything seems to be running OK now and this is my settings in startup.
226006
I spoke to soon, it happen again.
226007
is the white background only after conky is launched at startup?
what is the command you have to start conky?
do you have any sleep time before it?
have you tried different own_window_types ?

irv
October 23rd, 2012, 10:40 PM
is the white background only after conky is launched at startup?
what is the command you have to start conky?
do you have any sleep time before it?
have you tried different own_window_types ?

to start I use "conky -p 10"

I just made some changes to my conkyrc file.

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

## Some distros require the following lines for true transparency.
#
own_window_argb_visual yes
own_window_argb_value 255
The only time it happens is when I minimize all programs and am at a clean desktop. After making these changes I want to give it time to see if it happens again.

cociuba
October 23rd, 2012, 11:53 PM
@irv
I have the same problem with my conky, for me it triggers when I use quake or minimizing another application

stinkeye
October 24th, 2012, 12:35 AM
Had problems with

own_window_type override



own_window_type normal
Working fine with or without real transparency. Nvidia gfx.

Jedcurtis
October 24th, 2012, 09:59 AM
IT'S BACK!!!!!



conkyForecast is BACK! No ID No KEY 10days!


conkyForecast LIVES! It's ALIVE!!!!!!!


That's affirmative! Spent some "quality time" with conky tonight, and between Sector11, mclovin, mrpeachy, VinDSL, Vastone, and way to many more to name, I'm looking pretty decent! Love CTRL-C and CTRL-V and other peoples creativity! :biggrin:

The moon and sun images are showing correctly now on my desktop! It's not part of the desktop picture! Love the way it just blends in. Looks like it is part of the wallpaper! Conky is fantastic! If you think any of it looks bad, then that is my fault totally and has nothing to do with the aforementioned folks. I was just saying thank-you to them for their help, whether they know they gave it or not! Your a patient man Sector11... Definitely thanks... (Not sure why I'm getting the 'shadows' behind the text for the middle conky?)

Accidental learnin'! You gotta love it!

Jed

irv
October 24th, 2012, 03:51 PM
Had problems with

own_window_type override



own_window_type normal
Working fine with or without real transparency. Nvidia gfx.

I made the same change and it seems to be working for me also.

Sector11
October 24th, 2012, 06:50 PM
Had problems with

own_window_type override



own_window_type normal
Working fine with or without real transparency. Nvidia gfx.

Yea, I gave up "override" a while back, I like the "full control" of:

own_window_hints
that override doesn't allow: (italics - mine)


If own_window is yes, you may use these window manager hints to affect the way Conky displays. Notes: Use own_window_type desktop as another way to implement many of these hints implicitly. If you use own_window_type override, window manager hints have no meaning and are ignored.
Note that: If own_window is yes

Also if you are using wmctrl with conky in anyway, 'override' is a no no. (in my experience)

Sector11
October 24th, 2012, 06:52 PM
Accidental learnin'! You gotta love it!

Looking really good there Jed!

I learn by osmosis. :D

EDIT:

Shadows:

draw_shades yes

vasilub1
October 24th, 2012, 11:03 PM
Hi, everyone !
Is there any way to make conky hide automatically or manually..?
May be interactive conky method applied here..?

djyoung4
October 25th, 2012, 12:11 AM
conkyForecast LIVES! It's ALIVE!!!!!!!

Did you tell K?

Sector11
October 25th, 2012, 01:30 AM
Hi, everyone !
Is there any way to make conky hide automatically or manually..?
May be interactive conky method applied here..?

Link to that conky please. ):P
Interactive ... probably has a touch of mrpeachy's interactive LUA script in there.


You could always remove "undecorated" from:

own_window_hints
putting conky in a window make an icon that starts it and click on the [x] to shut it down.

Or the start-stop conky script (ssc.sh) assign that to an icon and it will open a closed conky (group of conkys) or shut them all down.

Start/Stop Conky (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_%28en%29) or another version Start/Stop Conky II (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_II_%28en%29)

Sector11
October 25th, 2012, 01:33 AM
Did you tell K?

Oh yea, he was the first to get an email.

Quoting K (not the MIB K)

Well found, so the moral of the story? Don't do a thing and everything will turn out alright :-)

Think of all those old examples that can serve as a basis for lots of conky files!

mrpeachy
October 25th, 2012, 01:49 AM
Hi, everyone !
Is there any way to make conky hide automatically or manually..?
May be interactive conky method applied here..?

see here
http://crunchbanglinux.org/forums/post/245759/#p245759

this is my button script and conkyrc

the conkyrc is like this currently


template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,t ext=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${cpu cpu0}
${if_match ${template1}==0}the button is off${else}the button is on${endif}

but could easily control an entire conky display


template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,t ext=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${if_match ${template1}==0}${else}
all your conky stuff
${endif}

arclance
October 25th, 2012, 01:52 AM
Hi, everyone !
Is there any way to make conky hide automatically or manually..?
May be interactive conky method applied here..?
If you need it to hide so it does not overlap some other window you could use mrpeachys interative conky code to minimize and un-minimize the conky window on mouse over/mouse off by using something like wmctrl to send the minimize command to the window.
I don't know what result you would get using xdotool on a minimized window so this might require some changes to the interactive conky code for it to work.

If you just want the window to go blank at a certain time mrpeachys suggestion is much easier to do.

Sector11
October 25th, 2012, 05:28 AM
see here
http://crunchbanglinux.org/forums/post/245759/#p245759

this is my button script and conkyrc

Good stuff ... I have to bookmark that. Thanks.

sbjaved
October 25th, 2012, 06:34 AM
Hi,
Is there a way to align the entire output of a command in conky? I have a script which outputs 5 lines. ${alignr}{exec /path/to/script} only aligns the first line. The rest are printed aligned left.

vasilub1
October 25th, 2012, 09:44 AM
Link to that conky please. ):P
Interactive ... probably has a touch of mrpeachy's interactive LUA script in there.


You could always remove "undecorated" from:

own_window_hints
putting conky in a window make an icon that starts it and click on the [x] to shut it down.

Or the start-stop conky script (ssc.sh) assign that to an icon and it will open a closed conky (group of conkys) or shut them all down.

Start/Stop Conky (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_%28en%29) or another version Start/Stop Conky II (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_II_%28en%29)

Greetings to you, Sector11 and thanks so much for your kind advices..:-D
I placed already a SSC icon on Unity launcher... and that is workink pretty well...
However, what I intend to do is to add more conkys / sections to this one (calendar, RSS, music players,vnstat etc) and to play with them alternativelly..
On my small Sony Vaio laptop I would like to make a conky more "discrete" to have as much as possible free space of screen...
Yes, I got your idea of using mrpeachy interactive LUA scripts.. I will try but I cannot guarantee you anything... :P ...still learning...

vasilub1
October 25th, 2012, 10:01 AM
see here
http://crunchbanglinux.org/forums/post/245759/#p245759

this is my button script and conkyrc

the conkyrc is like this currently


template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,t ext=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${cpu cpu0}
${if_match ${template1}==0}the button is off${else}the button is on${endif}

but could easily control an entire conky display


template1 ${lua rc_button {btype=1,bname="conkybutton1",blx_off=5,bly_off=50,bw_off=70,bh_off=30,draw=1,t ext=1,fcol_off={0x000000},txt_off={"BUTTON","OFF"},font_off={"Sans"},fs_off={12},fxadj_off={5},fyadj_off={-17,-2},txt_on={"BUTTON","ON"}}}
TEXT
${if_match ${template1}==0}${else}
all your conky stuff
${endif}


Hi, SIR mrpeachy ! THANK YOU !
The Crunchbang forums are so far my favorite and lighting me every day.. :P
Be assured, I will try... and come back with results... if any... :lolflag:
All the best !

vasilub1
October 25th, 2012, 10:07 AM
If you need it to hide so it does not overlap some other window you could use mrpeachys interative conky code to minimize and un-minimize the conky window on mouse over/mouse off by using something like wmctrl to send the minimize command to the window.
I don't know what result you would get using xdotool on a minimized window so this might require some changes to the interactive conky code for it to work.

If you just want the window to go blank at a certain time mrpeachys suggestion is much easier to do.

Yes, thank you arclance. I will split the conky in some sectorial parts and try to use mrpeachy interactive conky code... Hard work... :popcorn:

bra|10n
October 25th, 2012, 11:08 AM
Hi folks,
I recently dusted off an old conkyrc I'm using on (K)ubuntu 12.10 from around page 500 of this thread :KS
I have a small problem though with the system updates code,

${execi 3600 aptitude search "~U" | wc -l | tail}Has something changed that this no longer works?
cheers

stinkeye
October 25th, 2012, 11:20 AM
Hi folks,
I recently dusted off an old conkyrc I'm using on (K)ubuntu 12.10 from around page 500 of this thread :KS
I have a small problem though with the system updates code,

${execi 3600 aptitude search "~U" | wc -l | tail}Has something changed that this no longer works?
cheers
What's your terminal output of...

aptitude search "~U" | wc -l | tail


Still works here.
May be this bug.
http://ubuntuforums.org/showpost.php?p=12301334&postcount=2 (http://ubuntuforums.org/showpost.php?p=12301334&postcount=2)

bra|10n
October 25th, 2012, 11:30 AM
stinkeye as requested,

bra10n@Aspire-5750:~$ aptitude search "~U" | wc -l | tail
The program 'aptitude' is currently not installed. You can install it by typing:
sudo apt-get install aptitude
0


I find it odd that it appears to show 0 updates. I'm using this with a KDE version of a SSC script so stop/start should have shown available updates IMO.

dk75
October 25th, 2012, 11:48 AM
Why odd?
Since you have no aptitude installed, then there is no output from it, so line count from 'aptitude' is '0'.

The line

The program 'aptitude' is currently not installed. You can install it by typing:
sudo apt-get install aptitude
is not from 'aptitude' but from shell and is not from normal output (SDTOUT) but from error output (SDTERR), so it is not piped to 'wc' and is not counted by it.

Everything is fine there and logic.
If you want some data from 'aptitude' then install it as suggested by shell.

ragamatrix
October 25th, 2012, 11:53 AM
Hi everybody who better know scripts lua than me...I'm trying to make an equalizer conky working but i can't fix it .The script was writting by Wlourf, it's an old code but i'm still interrested in.It was find here :
http://ubuntuforums.org/showthread.php?p=8861782post 175
I've errors after conky launched :

┌─( climatix ) - ( 3.2.0-32-generic ) - ( ~ )
└─> conky -c /home/climatix/développement/audio_spectrum1.2/conkyrc
Conky: desktop window (ba) is root window
Conky: window type - normal
Conky: drawing to created window (0x2400001)
Conky: drawing to double buffer
Traceback (most recent call last):
File "/home/climatix/développement/audio_spectrum1.2/impulse.py", line 11, in <module>
import impulse
ImportError: /home/climatix/développement/audio_spectrum1.2/impulse.so: wrong ELF class: ELFCLASS32
Conky: llua_do_call: function conky_spectrum execution failed: .../développement/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
Conky: llua_do_call: function conky_spectrum execution failed: .../développement/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
Conky: llua_do_call: function conky_spectrum execution failed: .../développement/audio_spectrum1.2/audio_spectrum.lua:468: bad argument #1 to 'sub' (string expected, got nil)
Thanks for help !

bra|10n
October 25th, 2012, 12:10 PM
Why odd?
Since you have no aptitude installed, then there is no output from it, so line count from 'aptitude' is '0'.

The line

The program 'aptitude' is currently not installed. You can install it by typing:
sudo apt-get install aptitudeis not from 'aptitude' but from shell and is not from normal output (SDTOUT) but from error output (SDTERR), so it is not piped to 'wc' and is not counted by it.

Everything is fine there and logic.
If you want some data from 'aptitude' then install it as suggested by shell.

Thanks for your reply.
So are you saying in fact the 0 shown is not 0 updates available? If this is so, was aptitude installed by default in earlier versions of Ubuntu ?

ragamatrix
October 25th, 2012, 12:56 PM
Hi everybody who better know scripts lua than me...I'm trying to make an equalizer conky working but i can't fix it .The script was writting by Wlourf, it's an old code but i'm still interrested in.It was find here :
http://ubuntuforums.org/showthread.php?p=8861782post 175
I've errors after conky launched :
Thanks for help !

Sorry; it's working now.It was because i didn't get the right lib for x64 arch, but there's an interval between sounds and image...

dk75
October 25th, 2012, 01:34 PM
Thanks for your reply.
So are you saying in fact the 0 shown is not 0 updates available? If this is so, was aptitude installed by default in earlier versions of Ubuntu ?

No. It was always considered optional by Ubuntu Team, since apt-get and more over Software Center is in place.




equalizerSorry; it's working now.It was because i didn't get the right lib for x64 arch, but there's an interval between sounds and image...
Ah, you've been faster yourself in figuring it out... hint was 'wrong ELF class: ELFCLASS32'.

arclance
October 25th, 2012, 02:42 PM
Hi,
Is there a way to align the entire output of a command in conky? I have a script which outputs 5 lines. ${alignr}{exec /path/to/script} only aligns the first line. The rest are printed aligned left.
Yes, you need to make your script put a ${alignr} at the front of each line that it outputs.

jfath
October 25th, 2012, 03:06 PM
I tried to find a shell script to display connections excluding localhost. No luck, so I wrote my own. Thought I would share.
Note the variables at the top that can be used to tailor output to your own needs.



#!/bin/bash

#connections.sh is a bash script for displaying active connection with
#filtering of localhost connextions
#Version 1.0 10/23/2012 by Jerry Fath
#
#Call with exec from within conky
#If you use execi or other variant, set text_buffer_size to 1024 or greater
#to avoid chopping output

#Usage: connections.sh [-in|-out|-both]

#localhost is always filtered, set this to also filter inet
FILTERMYIP=1
#Allowable width of connection host name
HOSTNAMEWIDTH=23
#Rightstr when chopping hostname
HOSTRIGHT=1
#Maximum inbound lines
MAXINLINES=255
#Maximum inbound lines
MAXOUTLINES=255
#Maximum inbound+outbound lines
MAXINOUTLINES=255
#Minimum inbound+outbound lines
MININOUTLINES=12


#Chose outbound, inbound, or both
if [ "$1" == "-in" ]; then
INPORTS=1
OUTPORTS=0
elif [ "$1" == "-out" ]; then
INPORTS=0
OUTPORTS=1
else
INPORTS=1
OUTPORTS=1
fi

#Get lines with established connection not from localhost or vmware
CONNECTIONS=$(netstat -upant 2>/dev/null | grep "tcp\|udp" | grep -v "127.0.0.1\|::1\|172.16.43.1" | grep "ESTABLISHED")

#IPPORT=$(echo "$CONNECTIONS" | awk '{split($5, a, ":"); printf "%s %s \n", a[1], a[2]}')

IP=$(echo "$CONNECTIONS" | awk '{split($5, a, ":"); printf "%s,", a[1]}')
PORT=$(echo "$CONNECTIONS" | awk '{split($5, a, ":"); printf "%s,", a[2]}')

#echo "$IP" | IFS=',' read -a iparray
#cho "$PORT" | IFS=',' read -a portarray

IFS=',' read -a iparray <<< "$IP"
IFS=',' read -a portarray <<< "$PORT"

function connection_out {
HNAME=$(dig +short -x $1)
HOSTNAMELEN=$[${#HNAME}-$HOSTNAMEWIDTH]
if [ ${#HNAME} -gt $HOSTNAMEWIDTH ]; then
#Use leftstr or rightstr when chopping
if [ "$HOSTRIGHT" == "1" ]; then
HNAME=$(echo $HNAME | cut -c $[${#HNAME}-$HOSTNAMEWIDTH]-)
else
HNAME=$(echo $HNAME | cut -c 1-$HOSTNAMEWIDTH)
fi
fi
echo "$1:$2 ${HNAME}"
}

MYIP=$(ifconfig | grep -v '127.0.0.1' | grep -m 1 'inet addr:'| cut -d: -f2 | awk '{print $1}')
INCOUNT=0
OUTCOUNT=0
INOUTCOUNT=0
if [ $INPORTS == 1 ]; then
for index in "${!portarray[@]}"
do
if [ ${portarray[index]} -ge 32768 ]; then
if [ "$FILTERMYIP" == "0" ] || [ "${iparray[index]}" != "$MYIP" ]; then
if [ $INCOUNT -lt $MAXINLINES ] && [ $INOUTCOUNT -lt $MAXINOUTLINES ]; then
connection_out ${iparray[index]} ${portarray[index]}
fi
INCOUNT=$[$INCOUNT+1]
INOUTCOUNT=$[$INOUTCOUNT+1]
fi
fi
done
echo "--- Inbound to" "$MYIP": "$INCOUNT" "---"
fi

if [ $OUTPORTS == 1 ]; then
for index in "${!portarray[@]}"
do
if [ ${portarray[index]} -lt 32768 ]; then
if [ "$FILTERMYIP" == "0" ] || [ "${iparray[index]}" != "$MYIP" ]; then
if [ $OUTCOUNT -lt $MAXOUTLINES ] && [ $INOUTCOUNT -lt $MAXINOUTLINES ]; then
connection_out ${iparray[index]} ${portarray[index]}
fi
OUTCOUNT=$[$OUTCOUNT+1]
INOUTCOUNT=$[$INOUTCOUNT+1]
fi
fi
done
echo "--- Outbound from" "$MYIP": "$OUTCOUNT" "---"
fi

while [ $INOUTCOUNT -lt $MININOUTLINES ]
do
echo
INOUTCOUNT=$[$INOUTCOUNT+1]
done

exit 0;

sbjaved
October 25th, 2012, 04:03 PM
Yes, you need to make your script put a ${alignr} at the front of each line that it outputs.
My script now outputs:
${alignr}line 1
${alignr}line 2...etc
The conky entry is ${exec path/to/script}.
Now it just prints ${alignr} in front of each line with all of it aligned left.... ?

sbjaved
October 25th, 2012, 05:21 PM
My script now outputs:
${alignr}line 1
${alignr}line 2...etc
The conky entry is ${exec path/to/script}.
Now it just prints ${alignr} in front of each line with all of it aligned left.... ?
Okay changing {exec path/to/script} to {execp path/to/script} solved this. Entire output aligns right. But now I have a new problem. My conky lines were:

$nodename ${execp path/to/script}
$kernelhttp://i45.tinypic.com/313lrbl.png
Now there are 5 newlines b/w nodename and kernel on the left with the script output on the right b/w them.

arclance
October 25th, 2012, 05:30 PM
Okay changing {exec path/to/script} to {execp path/to/script} solved this. Entire output aligns right. But now I have a new problem. My conky lines were:

$nodename ${execp path/to/script}
$kernelNow there are 5 newlines b/w nodename and kernel on the left with the script output on the right b/w them.
That is normal.
If you want the output to be like this.


${nodename}${alignr}Script Line 1
${kernel}${alignr}Script Line2
${alignr}Script Line3
${alignr}Script Line4
${alignr}Script Line5
you can use ${voffset} with a negative value to move the ${kernel} up to the correct position like this.

$nodename ${execp path/to/script}
${voffset -20}$kernel

sbjaved
October 25th, 2012, 05:39 PM
[/code]you can use ${voffset} with a negative value to move the ${kernel} up to the correct position like this.

$nodename ${execp path/to/script}
${voffset -20}$kernel

${voffset -60}$kernel did the trick. Thanks arclane!:P:)

sbjaved
October 25th, 2012, 05:49 PM
BTW is there any way to show nethogs output in conky. I've googled a lot but haven't found anything...

I would love to show top internet usage by program (like "top" for cpu/mem) in conky.

mrpeachy
October 25th, 2012, 10:34 PM
BTW is there any way to show nethogs output in conky. I've googled a lot but haven't found anything...

I would love to show top internet usage by program (like "top" for cpu/mem) in conky.
only thing about using nethogs is that i cant see a "batch" mode .. ie it runs, prints the data then stops instead of running continuously

this is the kind of behavior you want to use with exec or execi

but then what good would a batch mode be?
as you only get data when a program is using the internet

need something like vnstat that logs use

perhaps you could get an undecorated terminal to open at given coordinates and size to fit in your conky and open running nethogs
could launch it with pre-exec

sbjaved
October 25th, 2012, 10:59 PM
mrpeachy - first let me say...your dp is AWESOME :) I'm a huge thundercats fan

secondly, can you please elaborate on the last bit about running nethogs in an undecorated terminal? How can one do that?

mrpeachy
October 25th, 2012, 11:07 PM
mrpeachy - first let me say...your dp is AWESOME :) I'm a huge thundercats fan

secondly, can you please elaborate on the last bit about running nethogs in an undecorated terminal? How can one do that?
there are several ways to do it i think
i did it here:
http://crunchbanglinux.org/forums/post/205175/#p205175
using a program called devilspie
http://linux.die.net/man/1/devilspie

i would have to dig up the actual command i used however

also more info here http://ubuntuforums.org/showpost.php?p=10511203&postcount=16374

bra|10n
October 26th, 2012, 12:09 AM
No. It was always considered optional by Ubuntu Team, since apt-get and more over Software Center is in place.


So I'm no closer as to why the code in conky doesn't show updates available when there are.

Another Q...
Is there a 'metric' or MB option for the output of ${mem}?

Sector11
October 26th, 2012, 12:43 AM
So I'm no closer as to why the code in conky doesn't show updates available when there are.

Another Q...
Is there a 'metric' or MB option for the output of ${mem}?

Have you looked at 'update-notifier'? Check this out. (http://crunchbanglinux.org/forums/post/215613/#p215613)

There's 'bytes'


to_bytes
size
If 'size' is a number followed by a size-unit (kilobyte,mb,GiB,...) then it converts the size to bytes and shows it without unit, otherwise it just shows 'size'.

and


short_units
Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.

But that's it I believe.

bra|10n
October 26th, 2012, 01:55 AM
Thanks for the link Sector11.

I have another question...
I'm using vnstat and would like to include an ${if_match} ... ${color red} scenario for the total monthly usage.
As I have a small (3GB) usage allowance I would like the total to turn red @ 2.9GB or 2900.00MB.
This is the relevant code,

${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}
My efforts to date have failed.
Appreciate any help...

Sector11
October 26th, 2012, 02:30 AM
Thanks for the link Sector11.

I have another question...
I'm using vnstat and would like to include an ${if_match} ... ${color red} scenario for the total monthly usage.
As I have a small (3GB) usage allowance I would like the total to turn red @ 2.9GB or 2900.00MB.
This is the relevant code,

${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}
My efforts to date have failed.
Appreciate any help...

I use this:

${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}
but I have configured vnstat NOT to display the 'y just y so you'd have to change it to:

${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9" "$10}'}

You nee the " " between the %9 and %10

25 Oct 12 | 22:08:48 ~
$ vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'
41.21 GB

25 Oct 12 | 22:10:46 ~
$

I'm no good with 'scripts' that might pars out that "$9" value (41.21) and colorize it at a certain point but maybe Crinos512's colorize.sh (http://conky.pitstop.free.fr/wiki/index.php5?title=Colorize.sh_%28en%29) script will work with it.

It's worth a try.

Here's my vnstat.conky

# killall conky && conky -c ~/Conky/S11_VNS.conky &
# with help from dk75

### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
# own_window_colour ffffff
own_window_class Conky
own_window_title Vnstats

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 350 0 ## width, height
maximum_width 350 ## width, usually a good idea to equal minimum width

gap_x 395 ### left &right
gap_y 295 ### up & down

alignment top_left
################################################## ## End Window Settings ###
### Font Settings ################################################## ########
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

### WARNING ### These do NOT play well with ~/Conky/LUA/draw-bg.lua
################################################## #################
draw_shades no #### <<<--- yes --- To see it easier on light screens.
#default_shade_color black
draw_outline no #### <<<--- yes --- Amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color gray
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################

# yes
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
# text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

############################################## End Miscellaneous Section ###
### LUA Settings ################################################## #########
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.5
#
################################################## ##### End LUA Settings ###

#digiThe all important - How often conky refreshes.5
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 # in seconds

# stuff after 'TEXT' will be formatted on screen
TEXT
${color0}Network${color} ${hr}
${downspeedgraph eth0 24,150 A52A2A 0000FF -t -l}${goto 180}${upspeedgraph eth0 24,150 0000FF A52A2A -t -l}
Down: ${downspeedf eth0}${goto 195}Up: ${upspeedf eth0}

${color0}Transfer Totals${color} ${hr}
${color6}rx${goto 98}tx${goto 182}Total${goto 265}Avg Rate${color}
${color0}Today:${color}
${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${goto 98}"$5" "$6"\
${goto 182}"$8" "$9"\
${goto 265}"$11" "$12}'}
${color0}Yesterday:${color}
${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${goto 98}"$5" "$6 "\
${goto 182}" $8" "$9 "\
${goto 265}" $11" "$12}'}
${color0}Last Week:${color}
${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${goto 98}" $6" "$7 "\
${goto 182}" $9" "$10 "\
${goto 265}" $12" "$13}'}
${color0}Last 7 Days:${color}
${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${goto 98}" $7" "$8 "\
${goto 182}" $10" "$11 "\
${goto 265}" $13" "$14}'}
${color0}Current Week:${color}
${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${goto 98}" $6" "$7 "\
${goto 182}" $9" "$10 "\
${goto 265}" $12" "$13}'}
${color0}${time %B %Y}:${color}
${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${goto 98}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${goto 182}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}\
${goto 265}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $12" "$13}'}

${color0}Yearly Transfer Totals${color} ${hr}
${color6}${goto 75}rx${goto 155}tx${goto 235}Total${color}
${execpi 300 vnstat -m | grep "Jan" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Feb" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Mar" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Apr" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "May" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Jun" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Jul" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Aug" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Sep" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Oct" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Nov" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4" ${goto 155}"$6" "$7" ${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Dec" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${color0}${hr}${color}

bra|10n
October 26th, 2012, 03:00 AM
Thanks again Sector11,

I tried something along these lines,

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}>=2900MB}${color red}${else}${endif}The following error is the result,

Conky: compare failed for expression '255.15MB>=2900MB'
Conky: Bad arguments: '255.15MB' and '2900MB'

mrpeachy
October 26th, 2012, 03:28 AM
Thanks again Sector11,

I tried something along these lines,

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}>=2900MB}${color red}${else}${endif}The following error is the result,

Conky: compare failed for expression '255.15MB>=2900MB'
Conky: Bad arguments: '255.15MB' and '2900MB'
i assume the print $9 part gets you the number and the $10 gets you the units
just compare the numbers - to conky 2900MB is not a number, 2900 is

sbjaved
October 26th, 2012, 03:33 AM
Thanks for the link Sector11.

I have another question...
I'm using vnstat and would like to include an ${if_match} ... ${color red} scenario for the total monthly usage.
As I have a small (3GB) usage allowance I would like the total to turn red @ 2.9GB or 2900.00MB.
This is the relevant code,

${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9 $10}'}
My efforts to date have failed.
Appreciate any help...

Thats weird. I just tested your command.
http://i50.tinypic.com/kco176.png
It seems to run fine.

bra|10n
October 26th, 2012, 04:42 AM
i assume the print $9 part gets you the number and the $10 gets you the units
just compare the numbers - to conky 2900MB is not a number, 2900 is

I tried,

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}>=2900.00}${color red}${else}${endif}and there were no errors reported in a terminal, but also no data displayed, just blank.
So is this small progress or false hope?

mrpeachy
October 26th, 2012, 04:54 AM
I tried,

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}>=2900.00}${color red}${else}${endif}and there were no errors reported in a terminal, but also no data displayed, just blank.
So is this small progress or false hope?
that line doesn't show anything
the ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'} command is part of the if_match statement, only being evaluated not shown

you need this

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}>=2900.00}${color red}${else}${endif}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9$10}'}

bra|10n
October 26th, 2012, 04:59 AM
Thank you Mr Peachy.
Works like a charm! :KS

dk75
October 26th, 2012, 06:15 AM
So I'm no closer as to why the code in conky doesn't show updates available when there are.

???
Code don't show updates because it uses aptitude, which you have not installed.
Install it

sudo apt-get install aptitude
and it will work.

dk75
October 26th, 2012, 07:48 AM
that line doesn't show anything
the ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'} command is part of the if_match statement, only being evaluated not shown

you need this

${if_match ${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9}'}>=2900.00}${color red}${else}${endif}${execi 300 vnstat -m | grep "`date +"%b '%y"`" | awk '{print $9$10}'}

Hm... $if_match (one conditional), twice $execi (both giving this same data), twice date, both grep and awk for one data conditionals, and to make it worse twice (5 conditonals)... isn't it overkill?

for those using English locale in system:

${execi 300 vnstat -m -i wlan0 | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
for those using non-English locale in system:

${execi 300 vnstat -m -i wlan0 | mawk '/'$(env LC_ALL=en_US.UTF-8 date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

ragamatrix
October 26th, 2012, 01:28 PM
@The crunchbang team ! (Sector11 Mr Peachy dk75 Arclance.....and the others)
Thank you for the isometric_bars code lua.
I've made a test and i find it great ! May be you will find a way to put
${downspeed eth0} ${upspeed eth0} inside.I'm not really good in prog lines just copy and paste :).This script is with good hands.
http://pix.toile-libre.org/upload/original/1351254428.png

irv
October 26th, 2012, 02:33 PM
@The crunchbang team ! (Sector11 Mr Peachy dk75 Arclance.....and the others)
Thank you for the isometric_bars code lua.
I've made a test and i find it great ! May be you will find a way to put inside.I'm not really good in prog lines just copy and paste :).This script is with good hands.
http://pix.toile-libre.org/upload/original/1351254428.png

It would be nice to see your .conkyrc file. I like the look.

Sector11
October 26th, 2012, 02:40 PM
for those using English locale in system:

${execi 300 vnstat -m -i wlan0 | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

I tried that at the end of my vnstat conky - but with 'eth0' vs 'wlan0' it does nothing, so I tried it without "-i eth0" (2nd test line):


${execpi 300 vnstat -m | grep "Aug" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Sep" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Oct" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Nov" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4" ${goto 155}"$6" "$7" ${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Dec" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${color0}${hr}${color}
test line
${execi 300 vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}
2nd test line
${execi 300 vnstat -m | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

plus

All of these produce the same: 1: $(date +"%b..%y") 2: $(date +"%b") & 3: $(date +"%y")

26 Oct 12 | 10:30:08 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:30 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%b")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:36 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%y")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:42 ~
$

Any idea why?

ragamatrix
October 26th, 2012, 03:08 PM
@irv
Hi;
Here you are:
conkyrc_isobars:

##############################################
# Settings
##############################################
#background yes
use_xft yes
xftfont monospace:size=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
#own_window_title box widget 1.1
double_buffer yes
minimum_size 800 350#Taille minimum (px) ; largeur / hauteur
maximum_width 800
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color d9d7d6
default_shade_color 000000
default_outline_color d9d7d6
alignment mm
gap_x 0
gap_y 0
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no

#call the Lua script here
lua_load ~/développement/isometric_bars/isometric_bars.lua
lua_draw_hook_pre draw_shape
lua_load ~/développement/isometric_bars/draw_bg.lua
TEXT
##${lua conky_draw_bg 15 310 20 1430 45 0x838B8B 0.3}
${lua conky_draw_bg 20 0 0 800 260 0x000000 0.5}
${goto 60}${voffset -10}${font Borg 9:size=8}${color ffff00}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}${goto 140}${voffset 12}${font OCR A Extended:style=Bold:size=8}${color ffff00}$kernel
${goto 50}${voffset 30}${fs_free_perc /home}%${goto 125}${cpu cpu1}%${goto 290}${cpu cpu2}%${goto 345}${cpu cpu0}%${goto 400}${memperc}%
${goto 52}${voffset 30}${font :style=Bold:size=8}${color lightgray}${fs_used_perc /home}%${goto 440}${voffset -16}${memfree}${goto 490}$mem/$memmax
${voffset 0}
${goto 165}${font caviar dreams:style=Bold:size=6}${color yellow}${top name 1}${goto 245}${top cpu 1}%${goto 445}${font caviar dreams:style=Bold:size=6}${color green2}${top_mem name 1}${goto 515}${top_mem mem 1}%
${goto 165}${font caviar dreams:size=6}${color2}${top name 2}${goto 245}${top cpu 2}%${goto 445}${font caviar dreams:size=6}${color lightgray}${top_mem name 2}${goto 515}${top_mem mem 2}%
${goto 165}${font caviar dreams:size=6}${color2}${top name 3}${goto 245}${top cpu 3}%${goto 445}${font caviar dreams:size=6}${color lightgray}${top_mem name 3}${goto 515}${top_mem mem 3}%
${goto 165}${font caviar dreams:size=6}${color2}${top name 4}${goto 245}${top cpu 4}%${goto 445}${font caviar dreams:size=6}${color lightgray}${top_mem name 4}${goto 515}${top_mem mem 4}%
${goto 165}${font caviar dreams:size=6}${color2}${top name 5}${goto 245}${top cpu 5}%${goto 445}${font caviar dreams:size=6}${color lightgray}${top_mem name 5}${goto 515}${top_mem mem 5}%
${goto 165}${font caviar dreams:size=6}${color2}${threads} process
${goto 595}${voffset 28}${font :style=Bold:size=10}${color lightgray}dl|ul${goto 460}${font :style=Bold:size=6}${color ffff00}${downspeed eth0}${goto 730}${font :style=Bold:size=6}${color FF4500}${upspeed eth0}${goto 500}${voffset -13}${downspeedgraph eth0 20,90 ffff00 00F5FF}${goto 635}${upspeedgraph eth0 20,90 FF4500 FFD700}
${voffset -400}

isometric_bars.lua:


--[[ the post: http://crunchbanglinux.org/forums/post/55927/#p55927
this one was easy (or i thought it was going to be)
http://omploader.org/tM2x0bg
Going to be a work in progress until i set up all the variables properly... and get my titles right smile
UPDATE- now you can change line thickness without messing it up. Getting the lines right has made things alot less easy smile
also you can set font, font size and title position
-- end the post
isometric bars by mrpeachy (2012)
updated by mrpeachy 15 Oct 2012
--]]

require 'cairo'

function bar3d(conkyobject, linethick, width, barheight, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)
--line 1 settings end
local a_num1=tonumber(conkyobject) or 0
local a_num=(height/100)*a_num1
--indicator
if direction==nil then direction="r" end
if direction=="r" then
isoadjust=width*-0.5
elseif direction=="l" then
isoadjust=width*0.5
end
--point 1 - bottom left
x1,y1=0,0
--point 2 - bottom right
x2,y2=x1+width,y1
--point 3 - middle left
x3,y3=x1,-a_num
--point 4 - middle right
x4,y4=x2,y3
--point 5 - iso left
x5,y5=x1+isoadjust,y1+(width*-0.5)
--point 6 - iso right
x6,y6=x5+width,y5
--point 7 - top left
x7,y7=x5,y5-a_num
--point 8 - top right
x8,y8=x7+width,y7
--##################################
cairo_set_line_cap (cr, CAIRO_LINE_CAP_ROUND);
cairo_set_line_join (cr, CAIRO_LINE_JOIN_ROUND);
cairo_set_line_width (cr,linethick)
if framelines == 1 then
--back lines
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_save(cr)
cairo_translate (cr, across, down)
cairo_move_to (cr,x5,y5)
cairo_line_to (cr,x5,y5-height)
cairo_line_to (cr,x6,y6-height)
cairo_line_to (cr,x6,y6)
cairo_close_path (cr)
cairo_stroke (cr)
cairo_restore (cr)
end
cairo_save (cr)
cairo_translate (cr, across, down)
--bottom
cairo_move_to (cr,x1,y1)
cairo_line_to (cr,x2,y2)
cairo_line_to (cr,x6,y6)
cairo_line_to (cr,x5,y5)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
--back
cairo_move_to (cr,x7,y7)
cairo_line_to (cr,x5,y5)
cairo_line_to (cr,x6,y6)
cairo_line_to (cr,x8,y8)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
--iso side left
cairo_move_to (cr,x7,y7)
cairo_line_to (cr,x3,y3)
cairo_line_to (cr,x1,y1)
cairo_line_to (cr,x5,y5)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
--iso side right
cairo_move_to (cr,x8,y8)
cairo_line_to (cr,x4,y4)
cairo_line_to (cr,x2,y2)
cairo_line_to (cr,x6,y6)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
--top
cairo_move_to (cr,x3,y3)
cairo_line_to (cr,x7,y7)
cairo_line_to (cr,x8,y8)
cairo_line_to (cr,x4,y4)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
--front
cairo_move_to (cr,x1,y1)
cairo_line_to (cr,x2,y2)
cairo_line_to (cr,x4,y4)
cairo_line_to (cr,x3,y3)
cairo_close_path (cr)
cairo_set_source_rgba (cr, facered, facegreen, faceblue, facealpha);
cairo_fill_preserve (cr)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
cairo_stroke (cr)
cairo_restore (cr)

if framelines == 1 then
--frame lines
cairo_save (cr)
cairo_translate (cr, across, down)
cairo_set_source_rgba (cr, linered, linegreen, lineblue, linealpha);
--front
cairo_move_to (cr,x1,y1)
cairo_line_to (cr,x1,y1-height)
cairo_line_to (cr,x2,y2-height)
cairo_line_to (cr,x2,y2)
cairo_close_path (cr)
cairo_stroke (cr)
--top
cairo_move_to (cr,x1,y1-height)
cairo_line_to (cr,x5,y5-height)
cairo_line_to (cr,x6,y6-height)
cairo_line_to (cr,x2,y2-height)
cairo_close_path (cr)
cairo_stroke (cr)
cairo_restore (cr)
end--if framelines
--title
cairo_select_font_face (cr, font, CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, fontsize);
cairo_set_source_rgba (cr, (txtred or linered),(txtgreen or linegreen),(txtblue or lineblue),(txtalpha or linealpha));
cairo_move_to (cr, txtacross, txtdown)
cairo_show_text (cr, title)
cairo_stroke (cr)
end--isometric drawing function

function conky_draw_shape ()
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num > 5 then
if conky_window==nil then return end
local w=conky_window.width
local h=conky_window.height
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)

-- ROOT
--conkyobject=conky_parse('${fs_used_perc /}')
--linethick=0.5 --1.25 --1.5
--width=20
--height=140
--linered=1.0
--linegreen=0.0
--lineblue=0.0
--linealpha=1.0
--facered=0.0
--facegreen=0.0
--faceblue=1.0
--facealpha=0.3
--across=50
--down=200
--text formatting
--title="Root"
--font="White Rabbit"
--fontsize=14
--txtred=0.5
--txtgreen=1.0
--txtblue=0.0
--txtalpha=1.0
--txtacross=50
--txtdown=220
--1 for framelines, 0 for none
--framelines=1
--face direction "r" or "l"
--direction="r"
--bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, --fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- HOME
conkyobject=conky_parse('${fs_used_perc /home}')
linethick=0.5 --1.25 --1.5
width=20
height=140
linered=1.0
linegreen=0.0
lineblue=0.0
linealpha=1.0
facered=0.0
facegreen=0.0
faceblue=1.0
facealpha=0.3
across=50
down=200
--text formatting
title="Home"
font="Kimberley"
fontsize=14
fontsize=14
txtred=1
txtgreen=1
txtblue=0
txtalpha=1
txtacross=50
txtdown=220
--1 for framelines, 0 for none
framelines=1
--face direction "r" or "l"
direction="l"
bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- MEDIA/5
--conkyobject=conky_parse('${fs_used_perc /home}')
--linethick=0.25
--width=40
--height=150
--linered=1.0
--linegreen=1.0
--lineblue=1.0
--linealpha=0.5
--facered=0.5
--facegreen=0.5
--faceblue=0.5
--facealpha=1.0
--across=190
--down=200
--text formatting
--title="HOME"
--font="White Rabbit"
--fontsize=14
--txtred=1
--txtgreen=1
--txtblue=0
--txtalpha=1
--txtacross=190
--txtdown=220
--1 for framelines, 0 for none
--framelines=1
--face direction "r" or "l"
--direction="l"
--bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, --fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- MEMORY
conkyobject=conky_parse('${memperc}')
linethick=0.5 --1.25 --1.5
width=20
height=140
linered=0.1
linegreen=1.0
lineblue=0.1
linealpha=1.0
facered=0.9
facegreen=0.5
faceblue=0.0
facealpha=0.3
across=400
down=200
--text formatting
title="Ram"
font="Kimberley"
fontsize=12
txtred=1
txtgreen=1
txtblue=0
txtalpha=1
txtacross=400
txtdown=220
--1 for framelines, 0 for none
framelines=1
--face direction "r" or "l"
direction="l"
bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- CPU O (Average of all)
conkyobject=conky_parse('${cpu cpu0}')
linethick=0.5
width=20
height=140
linered=0.0
linegreen=0.0
lineblue=1.0
linealpha=1
facered=0.7
facegreen=0.2
faceblue=0.6
facealpha=1.0
across=345
down=200
--text formatting
title="CPU 1 + 2"
font="Kimberley"
fontsize=10
txtred=1
txtgreen=1
txtblue=0
txtalpha=1
txtacross=345
txtdown=220
--1 for framelines, 0 for none
framelines=1
--face direction "r" or "l"
direction="l"
bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- CPU 1
conkyobject=conky_parse('${cpu cpu1}')
linethick=0.5 --1.25 --1.5
width=20
height=140
linered=0.1
linegreen=1.0
lineblue=0.1
linealpha=1
facered=1.0
facegreen=0.0
faceblue=0.0
facealpha=0.3
across=120
down=200
--text formatting
title="CPU1"
font="Kimberley"
fontsize=12
txtred=1
txtgreen=1
txtblue=0
txtalpha=1
txtacross=120
txtdown=220
--1 for framelines, 0 for none
framelines=1
--face direction "r" or "l"
direction="l"
bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- CPU 2
conkyobject=conky_parse('${cpu cpu2}')
linethick=0.5 --1.25 --1.5
width=20
height=140
linered=0.1
linegreen=1.0
lineblue=0.1
linealpha=1
facered=1.0
facegreen=0.0
faceblue=0.0
facealpha=0.3
across=290
down=200
--text formatting
title="CPU2"
font="Kimberley"
fontsize=12
txtred=1
txtgreen=1
txtblue=0
txtalpha=1
txtacross=290
txtdown=220
--1 for framelines, 0 for none
framelines=1
--face direction "r" or "l"
direction="l"
bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

-- CPU 3
--conkyobject=conky_parse('${cpu cpu3}')
--linethick=0.5 --1.25 --1.5
--width=40
--height=150
--linered=0.1
--linegreen=0.1
--lineblue=0.1
--linealpha=1.0
--facered=1.0
--facegreen=0.0
--faceblue=0.0
--facealpha=1.0
--across=260
--down=400
--text formatting
--title="CPU3"
--font="White Rabbit"
--fontsize=14
--txtred=1
--txtgreen=1
--txtblue=0
--txtalpha=1
--txtacross=260
--txtdown=420
--1 for framelines, 0 for none
--framelines=1
--face direction "r" or "l"
--direction="l"
--bar3d(conkyobject, linethick, width, height, linered, linegreen, lineblue, linealpha, facered, facegreen, faceblue, facealpha, across, down, title, framelines, font, --fontsize, txtacross, txtdown, txtred, txtblue, txtgreen, txtalpha, direction)

end
cairo_surface_destroy(cs)
cairo_destroy(display)
end

Have a good conky
Tschüss !

mrpeachy
October 26th, 2012, 03:09 PM
@The crunchbang team ! (Sector11 Mr Peachy dk75 Arclance.....and the others)
Thank you for the isometric_bars code lua.
I've made a test and i find it great ! May be you will find a way to put inside.I'm not really good in prog lines just copy and paste :).This script is with good hands.
http://pix.toile-libre.org/upload/original/1351254428.png
can you post the isometric bar script you are using as there are a couple of different versions floating about

problem with down/upspeed is first you need to know what the max values are for each (run a speed test on your connection) and then the range of values is extremely wide - from B to MiB so you may want a log scale :)

EDIT - just saw your post ragamatrix - go back and change the quote boxes to code boxes so it isnt so long :)

Sector11
October 26th, 2012, 03:11 PM
@The crunchbang team ! (Sector11 Mr Peachy dk75 Arclance.....and the others)
Thank you for the isometric_bars code lua.
I've made a test and i find it great ! May be you will find a way to put inside.I'm not really good in prog lines just copy and paste :).This script is with good hands.
http://pix.toile-libre.org/upload/original/1351254428.png

That's mrpeachy's script. I can't do that, I'm not LUA literate.

The problem as I see it: up/down speeds vary from B/s to Kb/s and to get a proper scale you'd need to know your maximum that your ISP is providing - even though it's rare you get that full speed. My experience anyway.

I agree with irv ... show conky please :D

EDIT: I gotta take a speed typing test! mrpeachy beat me by a minute.

Sector11
October 26th, 2012, 03:24 PM
@ ragamatrix

http://pix.toile-libre.org/upload/original/1351254428.png

Also: Link to wallpaper if you have it please.

ragamatrix
October 26th, 2012, 03:44 PM
@ ragamatrix

http://pix.toile-libre.org/upload/original/1351254428.png

Also: Link to wallpaper if you have it please.

I think it was taken in the star-trek wallpapers site.I give you that directly cause i can't remember the link...
I've correctly writted the code in the right way...sorry.
https://dl.dropbox.com/u/63154177/wall_space.zip

arclance
October 26th, 2012, 03:49 PM
I think it was taken in the star-trek wallpapers site.I give you that directly cause i can't remember the link...
I've correctly writted the code in the right way...sorry.
https://dl.dropbox.com/u/63154177/wall_space.zip
I get a Error (404) with that link.

arclance
October 26th, 2012, 04:06 PM
@ ragamatrix

http://pix.toile-libre.org/upload/original/1351254428.png

Also: Link to wallpaper if you have it please.
I found that here (http://www.wallpapersbuzz.com/image/828/b_bright-star.jpg) using TinEye.

ragamatrix
October 26th, 2012, 04:19 PM
I get a Error (404) with that link.

Sorry guys, i have a problem whitn my dropbox, i'll send it later...

Sector11
October 26th, 2012, 04:22 PM
I think it was taken in the star-trek wallpapers site.I give you that directly cause i can't remember the link...
I've correctly writted the code in the right way...sorry.
https://dl.dropbox.com/u/63154177/wall_space.zip

Didn't work, I get a 404 error.

Open your DropBox site:

right click on the file.
select: Copy Public Link
the blue button "Copy to clipboard" doesn't work for me, I have to highlight it and right click - copy.
http://dl.dropbox.com/u/16070765/123.png
use "Shorten link" if you wish:
http://db.tt/J5N0AMlE

Sector11
October 26th, 2012, 04:24 PM
I found that here (http://www.wallpapersbuzz.com/image/828/b_bright-star.jpg) using TinEye.

Good catch ... and I have TinEye (http://tiny.cc/) bookmarked, I just keep forgetting it.
Thank you.

ragamatrix
October 26th, 2012, 04:33 PM
Didn't work, I get a 404 error.

Open your DropBox site:

right click on the file.
select: Copy Public Link
the blue button "Copy to clipboard" doesn't work for me, I have to highlight it and right click - copy.
http://dl.dropbox.com/u/16070765/123.png
use "Shorten link" if you wish:
http://db.tt/J5N0AMlE


I can't acces to the dropbox site.
https://www.dropbox.com/
online problem may-be ??

Sector11
October 26th, 2012, 04:58 PM
I can't acces to the dropbox site.
https://www.dropbox.com/
online problem may-be ??

Hmmmmmmmmmm works for me. maybe a problem at your end. Wait a while and see.

dk75
October 26th, 2012, 05:02 PM
I tried that at the end of my vnstat conky - but with 'eth0' vs 'wlan0' it does nothing, so I tried it without "-i eth0" (2nd test line):

All of these produce the same: 1: $(date +"%b..%y") 2: $(date +"%b") & 3: $(date +"%y")

26 Oct 12 | 10:30:08 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:30 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%b")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:36 ~
$ vnstat -m -i eth0 | mawk '/'$(date +"%y")'/ $9 $10'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.67 GB | 1.56 GB | 41.23 GB | 19.67 KB/s
------------------------+-------------+-------------+---------------
estimated 48.34 GB | 1.91 GB | 50.25 GB |

26 Oct 12 | 10:30:42 ~
$

Any idea why?

First: vnstat defaults to eth0, so if your net device is that, you don't need "-i eth0" to trigger proper device to stat.

Second: in your latest test you didn't used "print" in mawk so can't tell what the problem is.

Third: test date in terminal for me:

date +%b
it's my result:

:~$ date +%b
paź
:~$

Sector11
October 26th, 2012, 05:28 PM
First: vnstat defaults to eth0, so if your net device is that, you don't need "-i eth0" to trigger proper device to stat.

Oops! I didn't realize that but neither of the tested lines worked:


${execi 300 vnstat -m -i eth0 | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

${execi 300 vnstat -m | mawk '/'$(date +"%b..%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

One with - one without: eth0


Second: in your latest test you didn't used "print" in mawk so can't tell what the problem is.

In the code in conky it's there in the terminal.

And here comes the noob in me:
How?


26 Oct 12 | 13:12:03 ~
$ vnstat -m | mawk '/'$(date +"%b..%y")'/ {print $9}'

26 Oct 12 | 13:12:20 ~
$ vnstat -m | mawk '/'$(date +"%b")'/"{print $9}"'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.75 GB | 1.57 GB | 41.32 GB | 19.62 KB/s
------------------------+-------------+-------------+---------------
estimated 48.22 GB | 1.90 GB | 50.12 GB |

26 Oct 12 | 13:26:18 ~
$


Third: test date in terminal for me:

date +%b
it's my result:

:~$ date +%b
paź
:~$

Here it is - with %y as well:

26 Oct 12 | 13:18:02 ~
$ date +%b
Oct

26 Oct 12 | 13:18:14 ~
$ date +%y
12

26 Oct 12 | 13:18:17 ~
$

Off Topic:
I think I like "paź" where you are: se = Spanish-English Dictionary for terminal:

26 Oct 12 | 13:19:31 ~
$ se paz
Result for 'paz':
Paz is a feminine noun.
type='feminine noun'
meaning: peace

26 Oct 12 | 13:19:41 ~
$

ragamatrix
October 26th, 2012, 05:34 PM
Hmmmmmmmmmm works for me. maybe a problem at your end. Wait a while and see.

I think its working fine now : https://dl.dropbox.com/u/63154177/wall_space.zip
I hope...

Sector11
October 26th, 2012, 06:51 PM
I think its working fine now : https://dl.dropbox.com/u/63154177/wall_space.zip
I hope...

Ja ist das gut.
Yes, it's good.

Thank you.

dk75
October 26th, 2012, 07:05 PM
26 Oct 12 | 13:12:20 ~
$ vnstat -m | mawk '/'$(date +"%b")'/"{print $9}"'

eth0 / monthly

month rx | tx | total | avg. rate
------------------------+-------------+-------------+---------------
May 12 107.65 MB | 5.99 MB | 113.64 MB | 0.04 KB/s
Jun 12 13.95 GB | 863.18 MB | 14.79 GB | 5.98 KB/s
Jul 12 16.41 GB | 876.48 MB | 17.26 GB | 6.76 KB/s
Aug 12 24.46 GB | 1.21 GB | 25.67 GB | 10.05 KB/s
Sep 12 27.95 GB | 1.69 GB | 29.64 GB | 11.99 KB/s
Oct 12 39.75 GB | 1.57 GB | 41.32 GB | 19.62 KB/s
------------------------+-------------+-------------+---------------
estimated 48.22 GB | 1.90 GB | 50.12 GB |

26 Oct 12 | 13:26:18 ~
$
OK.
I didn't realized it earlier, but your version of vnstat have only one space between short month name and short year digits, whereas my vnstat and in earlier post, have one space and single quote (two character space) in between.
So, there is a proper, universal code, that should work for most (unless, vnstat changes it output again, especially "-m" option, as in the past ;P ):

${execi 300 vnstat -m | mawk '/'$(env LC_ALL=en_US.UTF-8 date +"%b.+%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

And here, is another thing for you:

for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done




Off Topic:
I think I like "paź" where you are: se = Spanish-English Dictionary for terminal:

26 Oct 12 | 13:19:31 ~
$ se paz
Result for 'paz':
Paz is a feminine noun.
type='feminine noun'
meaning: peace

26 Oct 12 | 13:19:41 ~
$
Funny thing, as I'm mistaken for Spaniard in real life as I'm seen:

:~$ date +"%A, %d %B %Y, %T %Z"; env LC_ALL=en_US.UTF-8 date +"%A, %d %B %Y, %T %Z"
piątek, 26 październik 2012, 19:44:04 CEST
Friday, 26 October 2012, 19:44:04 CEST
:~$
:~$ locale
LANG=pl_PL.utf8
LANGUAGE=
LC_CTYPE="pl_PL.utf8"
LC_NUMERIC=pl_PL.utf8
LC_TIME=pl_PL.utf8
LC_COLLATE="pl_PL.utf8"
LC_MONETARY=pl_PL.utf8
LC_MESSAGES="pl_PL.utf8"
LC_PAPER="pl_PL.utf8"
LC_NAME="pl_PL.utf8"
LC_ADDRESS="pl_PL.utf8"
LC_TELEPHONE="pl_PL.utf8"
LC_MEASUREMENT=pl_PL.utf8
LC_IDENTIFICATION="pl_PL.utf8"
LC_ALL=
:~$
:~$ env LC_ALL=en_US.UTF-8 locale
LANG=pl_PL.utf8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=en_US.UTF-8
:~$



PS: even better, no date required, one vnstat call and one mawk and '-v last=3' variable controls how many months earlier to present one to show (currently '3'):

vnstat -m |mawk -v last=3 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; if ($9>100) _color="${color red}"; else _color="${color green}"; print $1, $2 ":", _color $9 "${color}" $10}}'

bra|10n
October 26th, 2012, 10:12 PM
???
Code don't show updates because it uses aptitude, which you have not installed.
Install it

sudo apt-get install aptitudeand it will work.

Respectfully, perhaps you've missed my point(s)...
As confirmed by you in an earlier post, aptitude was not installed default in earlier versions, nor is it installed in 12.10 by default.
So my question remains: Why did the code work (without aptitude) in 9.04 / 9.10 and not work now?
Furthermore, here (Kubuntu 12.10) with aptitude installed also failed to indicate updates were available.
In fact Muon (GUI) also failed to detect updates until I added/removed enabled/disabled a series of repositories and then asked Muon to recheck for updates. Updates were found and conky only then relected this availability.

Sector11
October 26th, 2012, 10:19 PM
OK.
I didn't realized it earlier, but your version of vnstat have only one space between short month name and short year digits, whereas my vnstat and in earlier post, have one space and single quote (two character space) in between.

Because I edited my /etc/vnstat.config and I'm going to do it again to get the DatabaseDir into "$HOME/vnstat_data" at some point so it is always available and can be included in my home-backup.


# vnStat 1.11 config file
# modified by Sector11 - see /media/5/vnstat.config_ORIGINAL
##

# default interface
Interface "eth0"

# location of the database directory
DatabaseDir "/var/lib/vnstat"

# locale (LC_ALL) ("-" = use system locale)
Locale "-"

# on which day should months change
MonthRotate 1

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat "%x"
MonthFormat "%b %y" ## edited by Sector11
TopFormat "%x"

# characters used for visuals
RXCharacter "%"
TXCharacter ":"
RXHourCharacter "r"
TXHourCharacter "t" 22:35:30 ~
$

# how units are prefixed when traffic is shown
# 0 = IEC standard prefixes (KiB/MiB/GiB/TiB)
# 1 = old style binary prefixes (KB/MB/GB/TB)
UnitMode 1 ## edited by Sector11

# output style
# 0 = minimal & narrow, 1 = bar column visible
# 2 = same as 1 except rate in summary and weekly
# 3 = rate column visible
OutputStyle 3

# used rate unit (0 = bytes, 1 = bits)
RateUnit 0 ## edited by Sector11

# maximum bandwidth (Mbit) for all interfaces, 0 = disable feature
# (unless interface specific limit is given)
MaxBandwidth 100

# interface specific limits
# example 8Mbit limit for eth0 (remove # to activate):
#MaxBWeth0 8

# how many seconds should sampling for -tr take by default
Sampletime 5

# default query mode
# 0 = normal, 1 = days, 2 = months, 3 = top10
# 4 = dumpdb, 5 = short, 6 = weeks, 7 = hours
QueryMode 0

# filesystem disk space check (1 = enabled, 0 = disabled)
CheckDiskSpace 1

# database file locking (1 = enabled, 0 = disabled)
UseFileLocking 1

# how much the boot time can variate between updates (seconds)
BootVariation 15

# log days without traffic to daily list (1 = enabled, 0 = disabled)
TrafficlessDays 1


# vnstatd
##

# how often (in seconds) interface data is updated
UpdateInterval 30

# how often (in seconds) interface status changes are checked
PollInterval 5

# how often (in minutes) data is saved to file
SaveInterval 5

# how often (in minutes) data is saved when all interface are offline
OfflineSaveInterval 30

# force data save when interface status changes (1 = enabled, 0 = disabled)
SaveOnStatusChange 1

# enable / disable logging (0 = disabled, 1 = logfile, 2 = syslog)
UseLogging 2

# file used for logging if UseLogging is set to 1
LogFile "/var/log/vnstat.log"

# file used as daemon pid / lock file
PidFile "/var/run/vnstat.pid"


# vnstati
##

# title timestamp format
HeaderFormat "%x %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1

# show rate in summary (1 = enabled, 0 = disabled)
SummaryRate 1

# layout of summary (1 = with monthly, 0 = without monthly)
SummaryLayout 1

# transparent background (1 = enabled, 0 = disabled)
TransparentBg 0

# image colors
CBackground "FFFFFF"
CEdge "AEAEAE"
CHeader "606060"
CHeaderTitle "FFFFFF"
CHeaderDate "FFFFFF"
CText "000000"
CLine "B0B0B0"
CLineL "-"
CRx "92CF00"
CTx "606060"
CRxD "-"
CTxD "-"



So, there is a proper, universal code, that should work for most (unless, vnstat changes it output again, especially "-m" option, as in the past ;P ):

${execi 300 vnstat -m | mawk '/'$(env LC_ALL=en_US.UTF-8 date +"%b.+%y")'/ {if ($9>=2900) _color="${color red}"; else _color="${color green}"; print _color $9 "${color}" $10}'}

And here, is another thing for you:

for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done

Now that is sweet!!!!!!!!!!!!!!!!


26 Oct 12 | 17:35:56 ~
$ for i in 3 2 1 0; do vnstat -m |mawk '/'$(env LC_ALL=en_US.UTF-8 date -d "- $i month" +"%b.+%y")'/ {print $1, $2 ":", $9$10}'; done
Jul 12: 17.26GB
Aug 12: 25.67GB
Sep 12: 29.64GB
Oct 12: 41.39GB

26 Oct 12 | 17:36:34 ~
$
If I only knew 50% of what you know .... or the stuff you've forgotten.


Funny thing, as I'm mistaken for Spaniard in real life as I'm seen:

:~$ date +"%A, %d %B %Y, %T %Z"; env LC_ALL=en_US.UTF-8 date +"%A, %d %B %Y, %T %Z"
piątek, 26 październik 2012, 19:44:04 CEST
Friday, 26 October 2012, 19:44:04 CEST
{snip}
:~$

But that Polish and US English not Spanish. And people really mistake you for Spanish? WoW!!!!!
Hmmmmmmm you don't capitalize days and months in Polish - like Spanish.


PS: even better, no date required, one vnstat call and one mawk and '-v last=3' variable controls how many months earlier to present one to show (currently '3'):

vnstat -m |mawk -v last=3 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; if ($9>100) _color="${color red}"; else _color="${color green}"; print $1, $2 ":", _color $9 "${color}" $10}}'

OH YEA!!!!!!!!!! You just answered a question I was going to have to worry about in 6 months .... what to do when the database has more than a years worth of info. That's :KS :KS :KS :KS :KS for you and 'Kudos' too!


26 Oct 12 | 17:50:08 ~
$ vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print $1, $2 ": "$3 $4" "$6 $7" "$9 $10}}'
:
:
:
:
:
:
:
May 12: 107.65MB 5.99MB 113.64MB
Jun 12: 13.95GB 863.18MB 14.79GB
Jul 12: 16.41GB 876.48MB 17.26GB
Aug 12: 24.46GB 1.21GB 25.67GB
Sep 12: 27.95GB 1.69GB 29.64GB
Oct 12: 39.82GB 1.58GB 41.39GB

26 Oct 12 | 17:50:33 ~
$

I'll get it into conky with 5 months and at the first every month add a month until I get to 11. It starts at 0 :D

dk75
October 26th, 2012, 10:22 PM
You didn't posted about it earlier, only about aptitude problem.
But repositories problem is not a script problem.

Sector11
October 26th, 2012, 10:59 PM
Thanks to dk75 (post #20928 above) I've just eliminated 11 lines in my vnstat conky that ended with:

${color0}Yearly Transfer Totals${color} ${hr}
${color6}${goto 75}rx${goto 155}tx${goto 235}Total${color}
${execpi 300 vnstat -m | grep "Jan" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Feb" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Mar" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Apr" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "May" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Jun" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Jul" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Aug" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Sep" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Oct" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Nov" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4" ${goto 155}"$6" "$7" ${goto 235}"$9" "$10}'}
${execpi 300 vnstat -m | grep "Dec" | awk '{print "${color6}"$1" "$2"${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}'}
${color0}${hr}${color}

it now ends with:

${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 75}rx${goto 155}tx${goto 235}Total${color}
${execpi 300 vnstat -m |mawk -v last=5 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print "${color6}"$1, $2 ":${color}${goto 75}"$3" "$4"${goto 155}"$6" "$7"${goto 235}"$9" "$10}}'}

A combination of the two:

http://t.imgbox.com/adyd48xi.jpg (http://imgbox.com/adyd48xi)

The conky as it is now:

# killall conky && conky -c ~/Conky/S11_VNS.conky &
# with help from dk75

### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
# own_window_colour ffffff
own_window_class Conky
own_window_title Vnstats

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 330 0 ## width, height
maximum_width 330 ## width, usually a good idea to equal minimum width

gap_x 385 ### left &right
gap_y 295 ### up & down

alignment top_left
################################################## ## End Window Settings ###
### Font Settings ################################################## ########
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes

### WARNING ### These do NOT play well with ~/Conky/LUA/draw-bg.lua
################################################## #################
draw_shades no #### <<<--- yes --- To see it easier on light screens.
#default_shade_color black
draw_outline no #### <<<--- yes --- Amplifies text if yes
default_outline_color black

uppercase no
################################################## #### End Font Settings ###
### Color Settings ################################################## #######
default_shade_color gray
default_outline_color black

default_color DCDCDC #220 220 220 Gainsboro
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 FF8C00 #255 140 0 DarkOrange
color3 7FFF00 #127 255 0 Chartreuse
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 00FFFF # 0 255 255 Cyan
color8 FFFF00 #255 255 0 Yellow
color9 B22222 #178 34 34 FireBrick
################################################## ### End Color Settings ###
### Borders Section ################################################## ######
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
################################################## ### End Borders Secton ###
### Miscellaneous Section ##################################################

# yes
background yes

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 512

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
# max_user_text 16384

############################################## End Miscellaneous Section ###
### LUA Settings ################################################## #########
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg 15 0 0 0 0 0x000000 0.5
#
################################################## ##### End LUA Settings ###

#digiThe all important - How often conky refreshes.5
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 # in seconds

# stuff after 'TEXT' will be formatted on screen
TEXT
${color0}Network${color} ${hr}
${downspeedgraph eth0 24,150 A52A2A 0000FF -t -l}${goto 180}${upspeedgraph eth0 24,150 0000FF A52A2A -t -l}
Down: ${downspeedf eth0}${goto 195}Up: ${upspeedf eth0}

${color0}Transfer Totals${color} ${hr}
${color6}rx${goto 85}tx${goto 170}Total${goto 265}Avg Rate${color}
${color0}Today:${color}
${execpi 300 vnstat | grep "today" | awk '{print $2" "$3"\
${goto 85}"$5" "$6"\
${goto 170}"$8" "$9"\
${goto 265}"$11" "$12}'}
${color0}Yesterday:${color}
${execpi 300 vnstat | grep "yesterday" | awk '{print $2" "$3"\
${goto 85}"$5" "$6 "\
${goto 170}" $8" "$9 "\
${goto 265}" $11" "$12}'}
${color0}Last Week:${color}
${execpi 300 vnstat -w | grep "last week" | awk '{print $3" "$4"\
${goto 85}" $6" "$7 "\
${goto 170}" $9" "$10 "\
${goto 265}" $12" "$13}'}
${color0}Last 7 Days:${color}
${execpi 300 vnstat -w | grep "last 7 days" | awk '{print $4" "$5 "\
${goto 85}" $7" "$8 "\
${goto 170}" $10" "$11 "\
${goto 265}" $13" "$14}'}
${color0}Current Week:${color}
${execpi 300 vnstat -w | grep "current week" | awk '{print $3" "$4 "\
${goto 85}" $6" "$7 "\
${goto 170}" $9" "$10 "\
${goto 265}" $12" "$13}'}
${color0}${time %B %Y}:${color}
${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $3" "$4}'}\
${goto 85}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $6" "$7}'}\
${goto 170}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $9" "$10}'}\
${goto 265}${execi 300 vnstat -m | grep "`date +"%b %y"`" | awk '{print $12" "$13}'}

${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=5 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print "${color6}"$1, $2 ":${color}${goto 85}"$3" "$4"${goto 170}"$6" "$7"${goto 265}"$9" "$10}}'}
${color0}${hr}${color}

If you like it thank dk75
http://t.imgbox.com/abwPcZcJ.jpg (http://imgbox.com/abwPcZcJ)

dk75
October 26th, 2012, 11:01 PM
OH YEA!!!!!!!!!! You just answered a question I was going to have to worry about in 6 months .... what to do when the database has more than a years worth of info. That's :KS :KS :KS :KS :KS for you and 'Kudos' too!


26 Oct 12 | 17:50:08 ~
$ vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); --i; for (j=i-last; j<=i; j++) {$0=test[j]; print $1, $2 ": "$3 $4" "$6 $7" "$9 $10}}'
:
:
:
:
:
:
:
May 12: 107.65MB 5.99MB 113.64MB
Jun 12: 13.95GB 863.18MB 14.79GB
Jul 12: 16.41GB 876.48MB 17.26GB
Aug 12: 24.46GB 1.21GB 25.67GB
Sep 12: 27.95GB 1.69GB 29.64GB
Oct 12: 39.82GB 1.58GB 41.39GB

26 Oct 12 | 17:50:33 ~
$

I'll get it into conky with 5 months and at the first every month add a month until I get to 11. It starts at 0 :D
It'll do?

${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color green}"; if ($9>100) c1="${color red}"; print "${color6}"$1, $2 ":${color}${goto 75}" $3, $4 "${goto 175}" $6, $7 "${goto 275}" c1 $9 "${color}", $10}}'}

this shows last 12 months, but only those with actual data. You can change number of months with "-v last=12" and still, it will show as much as vnstat gives:

:~$ vnstat -m -i wlan0 |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; print $1, $2":\t" $3$4, "\t" $6$7, "\t" $9$10}}'
May '12: 62.58GiB 8.92GiB 71.49GiB
Jun '12: 120.64GiB 8.83GiB 129.47GiB
Jul '12: 78.36GiB 10.38GiB 88.74GiB
Aug '12: 80.44GiB 6.36GiB 86.80GiB
Sep '12: 258.00GiB 17.10GiB 275.10GiB
Oct '12: 147.50GiB 10.70GiB 158.20GiB
:~$

Sector11
October 27th, 2012, 12:40 AM
It'll do?

${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color green}"; if ($9>100) c1="${color red}"; print "${color6}"$1, $2 ":${color}${goto 75}" $3, $4 "${goto 175}" $6, $7 "${goto 275}" c1 $9 "${color}", $10}}'}

this shows last 12 months, but only those with actual data. You can change number of months with "-v last=12" and still, it will show as much as vnstat gives:

:~$ vnstat -m -i wlan0 |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; print $1, $2":\t" $3$4, "\t" $6$7, "\t" $9$10}}'
May '12: 62.58GiB 8.92GiB 71.49GiB
Jun '12: 120.64GiB 8.83GiB 129.47GiB
Jul '12: 78.36GiB 10.38GiB 88.74GiB
Aug '12: 80.44GiB 6.36GiB 86.80GiB
Sep '12: 258.00GiB 17.10GiB 275.10GiB
Oct '12: 147.50GiB 10.70GiB 158.20GiB
:~$

OH YEA! That's really nice.
Thank you again!

EDIT: Forgot the image: with a little adjustment in the line to fit the new look - kept the colours this time

http://t.imgbox.com/acr9KnjZ.jpg (http://imgbox.com/acr9KnjZ)

The ending of the the vnstat.conky (http://ubuntuforums.org/showpost.php?p=12319980&postcount=20930) with edits to match the layout.

Only the ${goto}'s have been changed to protect the innocent!


${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; if ($9>100) c1="${color9}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}

Chdslv
October 27th, 2012, 01:41 AM
Too many replies.

Isn't it time to break this thread monthly basis?

Sector11
October 27th, 2012, 02:23 AM
Too many replies.

Isn't it time to break this thread monthly basis?

No, that's a horrible idea. Some of us have been here for years. This just works.

Can you imagine starting a series of posts to get help and in the middle of someone helping .... oops ... new thread!

Jedcurtis
October 27th, 2012, 08:28 AM
Hello all, quick question over-all I think. I believe I got this conky from Sector11. It is called gnu_win_weather! Works great, love it! However, being a simple-minded American who doesn't comprehend the metric system, I would like for it to display in Fahrenheit. I haven't been able to find anywhere, a place to change it to 'IM' for US measurements. ie km/h to mph, C to F and so on. Advice appreciated.

Thanks,
Jed

Sector11
October 27th, 2012, 02:46 PM
Hello all, quick question over-all I think. I believe I got this conky from Sector11. It is called gnu_win_weather! Works great, love it! However, being a simple-minded American who doesn't comprehend the metric system, I would like for it to display in Fahrenheit. I haven't been able to find anywhere, a place to change it to 'IM' for US measurements. ie km/h to mph, C to F and so on. Advice appreciated.

Thanks,
Jed

Yes, that's mine and it's conkyForecast in action!

Add --imperial to the line that calls it:

${execpi 1800 conkyForecast --location=AYXX0005 --imperial --template=$HOME/Conky/GNU/gnu-all-txt.template}

Metric:

${execpi 1800 conkyForecast --location=AYXX0005 --template=$HOME/Conky/GNU/gnu-all-txt.template}

http://t.imgbox.com/adhJrB60.jpg (http://imgbox.com/adhJrB60)

EDIT! Had the code backwards! Hey, I just got up!

MoralAnarchy
October 27th, 2012, 03:08 PM
Hey folks. I just made a new conky. This time I just started from scratch and tweaked it out as much as i could with the very little I know so far. But anyway I'm having trouble with the fact that whenever conky is running and i click on my desktop conky disappears. If somebody could please look at this script and tell me what might be messed up about it.


# Conky, a system monitor, based on torsmo
#


alignment top_right
background transparent
background no
border_width 0
cpu_avg_samples 2
default_color red
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Neuropol:size=12
gap_x 0
gap_y 0
minimum_size 250 150
maximum_width 250
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type desktop
own_window_transparent no
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
#
####Title####
${font OpenLogos:size=48}${color grey}SH${color red}$hr${font 16}
${font Neuropol:size=18} $nodename
${font Neuropol:size=8} $kernel
$hr
#
####Memory####
${color grey}${font OpenLogos:size=38}t${font Neuropol:size=8}Memory ${color red}$hr
${color grey}Frequency :$color $freq MHz
${color grey}RAM Usage:$color $mem/$memmax
$memperc% ${alignr}${membar 4, 200}
${color grey}Swap Usage:$color $swap/$swapmax
$swapperc% ${alignr}${swapbar 4, 200}
#
#
####CPU####
${color grey}${font Illustrate IT:size=12}r${font 16}${font Neuropol:size=8}Robit Use${color red}$hr
${color grey}CPU1 ${color red}${cpu cpu0}% ${alignr}${cpugraph cpu0 14, 175}
${color grey}CPU2 ${color red}${cpu cpu1}% ${alignr}${cpugraph cpu1 14, 175}
${color grey}CPU3 ${color red}${cpu cpu2}% ${alignr}${cpugraph cpu2 14, 175}
${color grey}CPU4 ${color red}${cpu cpu3}% ${alignr}${cpugraph cpu3 14, 175}
${color grey}Process ${alignc}PID ${alignr}CPU%
${font Neuropol:size=6}${color white} ${top name 1} ${alignc}${top pid 1} ${alignr}${top cpu 1}
${color white} ${top name 2} ${alignc}${top pid 2} ${alignr}${top cpu 2}
${color white} ${top name 3} ${alignc}${top pid 3} ${alignr}${top cpu 3}
#
#
####File Systems####
${color grey}${font Illustrate IT:size=16}a${font 16}${font Neuropol:size=8}Access Granted ${color red}$hr
${color grey} / $color${fs_used /}/${fs_size /}
${fs_bar 6 /}
${color grey} HD0 $color${fs_used /media/AHD0}/${fs_size /media/AHD0}
${fs_bar 6 /media/AHD0}
${color grey} HD1 $color${fs_used /media/AHD1}/${fs_size /media/AHD1}
${fs_bar 6 /media/AHD1}
${color grey} Thumb $color${fs_used /media/2E48-9992}/${fs_size /media/2E48-9992}
${fs_bar 6 /media/2E48-9992}
#
#
####Internet#####
${color gray}${font LMS Poke'mon Master Dingbat:size=48}M${font 16}${font Neuropol:size=8}Welcome2theInternet ${color red}$hr
${color red}${font Neuropol:size=8} Up: ${upspeed wlan0}${alignr}${color white}${font Neuropol:size=8} Down: ${downspeed wlan0}
${color red}${upspeedgraph wlan0 30, 115}${alignr}${color white}${downspeedgraph wlan0 30,115}
${color red}Sauce! ${color white}${alignr}${addr wlan0}

dk75
October 27th, 2012, 03:28 PM
The ending of the the vnstat.conky (http://ubuntuforums.org/showpost.php?p=12319980&postcount=20930) with edits to match the layout.

Only the ${goto}'s have been changed to protect the innocent!


${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; if ($9>100) c1="${color9}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}
One more thing - whatever it is 100MB or 100GB it is colored same, like when border is set to 100 then 101MB will be above border, but 1GB will be below border.
So, this edit make for this:

${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 -v month_max="50 GB" 'BEGIN{split(month_max, max); if (max[2]=="GB" || max[2]=="GiB") max[1]=max[1]*1024;} /[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; total=$9; if ($10=="GB" || $10=="GiB"); total=$9*1024; if (total>=max[1]) c1="${color9}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}
it is crucial, that -v month_max="50 GiB" have space in between value and unit (unit might be "MB"/"MiB" or "GB"/"GiB").

Sector11
October 27th, 2012, 03:29 PM
Hey folks. I just made a new conky. This time I just started from scratch and tweaked it out as much as i could with the very little I know so far. But anyway I'm having trouble with the fact that whenever conky is running and i click on my desktop conky disappears. If somebody could please look at this script and tell me what might be messed up about it.

Try changing this:

own_window_type desktop

to

own_window_type normal

Sector11
October 27th, 2012, 03:55 PM
One more thing - whatever it is 100MB or 100GB it is colored same, like when border is set to 100 then 101MB will be above border, but 1GB will be below border.
So, this edit make for this:

${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 -v month_max="50 GB" 'BEGIN{split(month_max, max); if (max[2]=="GB" || max[2]=="GiB") max[1]=max[1]*1024;} /[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; total=$9; if ($10=="GB" || $10=="GiB"); total=$9*1024; if (total>=max[1]) c1="${color9}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}
it is crucial, that -v month_max="50 GiB" have space in between value and unit (unit might be "MB"/"MiB" or "GB"/"GiB").

I copied you code in below the other one and changed
month_max="50 GB"to
month_max="30 GB"to see a difference, also changed ${color9} (red) to ${color3} (orange), the red was too hard on my eyes:


${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; if ($9>100) c1="${color2}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}
${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 -v month_max="30 GB" 'BEGIN{split(month_max, max); if (max[2]=="GB" || max[2]=="GiB") max[1]=max[1]*1024;} /[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; total=$9; if ($10=="GB" || $10=="GiB"); total=$9*1024; if (total>=max[1]) c1="${color2}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}

What did I miss?

MoralAnarchy
October 27th, 2012, 04:17 PM
it's still acting funny. when i click it will disappear once or twice for a split second then reappear. but when i click on the desktop and on other open windows it will act up like that.

EDIT: Fixed it. own_window_type override did it
:)
Thanks for the help though sector!

MoralAnarchy
October 27th, 2012, 04:48 PM
btw here's the conky i made from sort of scratch. using a lot of the tips i get here. also a nice little screen shot of big bang theory for you all :)

dk75
October 27th, 2012, 05:40 PM
I copied you code in below the other one and changed
month_max="50 GB"to
month_max="30 GB"to see a difference, also changed ${color9} (red) to ${color3} (orange), the red was too hard on my eyes:


${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 '/[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; if ($9>100) c1="${color2}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}
${color0}Monthly Transfer Totals${color} ${hr}
${color6}${goto 85}rx${goto 170}tx${goto 265}Total${color}
${execpi 300 vnstat -m |mawk -v last=12 -v month_max="30 GB" 'BEGIN{split(month_max, max); if (max[2]=="GB" || max[2]=="GiB") max[1]=max[1]*1024;} /[A-Z][a-z][a-z].+12/ {test[++i]=$0} END{i=0; while (test[++i]); if (last>i) last=i-1; else if (last<1) last=1; for (j=i-last; j<i; j++) {$0=test[j]; c1="${color3}"; total=$9; if ($10=="GB" || $10=="GiB"); total=$9*1024; if (total>=max[1]) c1="${color2}"; print "${color6}"$1, $2 ":${color}${goto 85}" $3, $4 "${goto 170}" $6, $7 "${goto 265}" c1 $9 "${color}", $10}}'}
${color0}${hr}${color}

What did I miss?
Small typo: after "if (..)" clause there is a ";", meaning "end of if" where it need to do something if "if clause" is true:

if ($10=="GB" || $10=="GiB"); total=$9*1024;
should be

if ($10=="GB" || $10=="GiB") total=$9*1024;



To go little easy on conkyrc (to make it cleaner) make BASH script "conky-vnstat-month.sh":

#!/bin/bash

LAST=1
MONTH_MAX="999999999 MB"

function show_help(){
echo
echo "Usage: conky-vnstat-month.sh [-i device] [-l number] [-m \"string\"] [-1 \"string\"] [-2 \"string\"] [-3 \"string\"] [-4 \"string\"]"
echo -e "\tall are optional (you can give it, but it is not required)"
echo "options:"
echo -e "\t-i\t- pass device to get statistic for, eg. -i wlan0"
echo -e "\t-l\t- pass number of month to display, eg. -l 12"
echo -e "\t-m\t- pass maximum bandwidth to alarm for, eg. -m \"30 GB\""
echo -e "\t-1\t- first color, for entire text, eg. -1 \"\\\${color blue}\""
echo -e "\t-2\t- second color, for month names column, eg. 2 \"\\\${color orange}\""
echo -e "\t-3\t- third color, for values below alarm value (see -m option), eg. -3 \"\\\${color green}\""
echo -e "\t-4\t- fourth color, for values above alarm value (see 0m option), eg. -4 \"\\\${color red}\""
echo -e "\t-h\t- this help text"
echo
}

function conky_vnstat(){
vnstat -m $1 |mawk -v last=$2 -v month_max="$3"\
'BEGIN{split(month_max, max); if (max[2]=="GB" || max[2]=="GiB") max[1]=max[1]*1024;}\
/[A-Z][a-z][a-z].+12/ {test[++i]=$0}\
END{ i=0;\
while (test[++i]);\
if (last>i) last=i-1; else if (last<1) last=1;\
for (j=i-last; j<i; j++)\
{\
$0=test[j];\
c1="'"$6"'";\
total=$9;\
if ($10=="GB" || $10=="GiB") total=$9*1024;\
if (total>=max[1]) c1="'"$7"'";\
print "'"$4$5"'" $1, $2 ":${color}"\
"${goto 75}'"$4"'" $3, $4\
"${goto 175}" $6, $7\
"${goto 275}" c1 $9 "${color}'"$4"'", $10 "${color}"\
}\
}'
}

while getopts ":i:l:m:1:2:3:4:h" opt
do
case $opt in
i) DEVICE="-i $OPTARG";;
l) LAST=$OPTARG;;
m) MONTH_MAX="$OPTARG";;
1) COLOR_TEXT="$OPTARG";;
2) COLOR_MONTH="$OPTARG";;
3) COLOR_MIN="$OPTARG";;
4) COLOR_MAX="$OPTARG";;
h) show_help; exit 0;;
*) echo "ERROR! Bad argument!"; exit 66;;
esac
done

conky_vnstat "$DEVICE" $LAST "$MONTH_MAX" "$COLOR_TEXT" "$COLOR_MONTH" "$COLOR_MIN" "$COLOR_MAX"

exit 0
and use it like:

${execpi 300 conky-vnstat-month.sh -l 12 -m "30 GB" -3 "\${color9}" -4 "\${color2}"

Sector11
October 27th, 2012, 07:03 PM
btw here's the conky i made from sort of scratch. using a lot of the tips i get here. also a nice little screen shot of big bang theory for you all :)

Looks nice ...

But if I may, a few suggestions as there are some things that need fixing.

Above TEXT:

background yes #<<-- transparent is not an option - see own_window section
xftfont Neuropol:size=8 ## you use size=8 the most and NO size=12


I suggest this for your "own_window section":

own_window yes
own_window_type normal ## now you should use normal so HINTS work
own_window_transparent yes ## this is what you declare transparency
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
own_window_class Conky

Below TEXT:
every place you have:

${font Neuropol:size=8}

You can now change to

${font}

And the same of every place you have:

${font 16}

If you use 'search/replace' for the two above you will need to:

Search for: ${font}${font}
Replace with: ${font}

RE ${font 16}
That does nothing except call up your "default" screen font since you are actually calling for a font named "16" that doesn't exist - see the bottom section of the image. My screen font is "sans"


${font}This is a test:

this is ${font 16}font 16${font}
this is ${font 50}font 50${font}
this is ${font 5}font 5${font}
this is ${font sans}font sans${font}

this is ${font sans:size=16}font sans 16${font}
this is ${font sans:size=20}font sans 20${font}
this is ${font sane:size=5}font sans 5${font}

One last thing. There are time that commands like $color $mem / $memperc without the {} around them will cause problems in certain circumstances. kaivalagi, conkyForecast, showed it in a post quite a while back, whish I could remember where. So I always 'suggest' that people use the {} around all conky commands.

ALL of the above are only SUGGESTIONS.

Here is the code with the above suggestions and two additions:

gap_x 10
gap_y 10
and the test lines above are removed.

# killall conly && conky -c ~/conky/test284.MoralAnarchy.conky &
# Conky, a system monitor, based on torsmo
#


alignment top_right
background yes #transparent <<-- not an option
background no
border_width 0
cpu_avg_samples 2
default_color red
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
use_xft yes
xftfont Neuropol:size=8 ## you use size=8 the most and NO size=12
gap_x 10
gap_y 10
minimum_size 250 0
maximum_width 250
net_avg_samples 2
double_buffer yes
out_to_console no
out_to_stderr no
extra_newline no

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_class Conky


stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
#
####Title####
${font OpenLogos:size=48}${color grey}SH${color red}${hr}${font}
${font Neuropol:size=18} ${nodename}
${font} ${kernel}
${hr}
#
####Memory####
${color grey}${font OpenLogos:size=38}t${font}Memory ${color red}${hr}
${color grey}Frequency :${color} ${freq MHz}
${color grey}RAM Usage:${color} ${mem}/${memmax}
${memperc}% ${alignr}${membar 4, 200}
${color grey}Swap Usage:${color} ${swap}/${swapmax}
${swapperc}% ${alignr}${swapbar 4, 200}
#
#
####CPU####
${color grey}${font Illustrate IT:size=12}r${font} ${font}Robit Use ${color red}${hr}
${color grey}CPU1 ${color red}${cpu cpu0}% ${alignr}${cpugraph cpu0 14, 175}
${color grey}CPU2 ${color red}${cpu cpu1}% ${alignr}${cpugraph cpu1 14, 175}
${color grey}CPU3 ${color red}${cpu cpu2}% ${alignr}${cpugraph cpu2 14, 175}
${color grey}CPU4 ${color red}${cpu cpu3}% ${alignr}${cpugraph cpu3 14, 175}
${color grey}Process ${alignc}PID ${alignr}CPU%
${font Neuropol:size=6}${color white} ${top name 1} ${alignc}${top pid 1} ${alignr}${top cpu 1}
${color white} ${top name 2} ${alignc}${top pid 2} ${alignr}${top cpu 2}
${color white} ${top name 3} ${alignc}${top pid 3} ${alignr}${top cpu 3}
#
#
####File Systems####
${color grey}${font Illustrate IT:size=16}a${font}Access Granted ${color red}${hr}
${color grey} / $color${fs_used /}/${fs_size /}
${fs_bar 6 /}
${color grey} HD0 $color${fs_used /media/AHD0}/${fs_size /media/AHD0}
${fs_bar 6 /media/AHD0}
${color grey} HD1 $color${fs_used /media/AHD1}/${fs_size /media/AHD1}
${fs_bar 6 /media/AHD1}
${color grey} Thumb $color${fs_used /media/2E48-9992}/${fs_size /media/2E48-9992}
${fs_bar 6 /media/2E48-9992}
#
#
####Internet#####
${color gray}${font LMS Poke'mon Master Dingbat:size=48}M${font}Welcome2theInternet ${color red}${hr}
${color red}${font} Up: ${upspeed wlan0}${alignr}${color white}${font} Down: ${downspeed wlan0}
${color red}${upspeedgraph wlan0 30, 115}${alignr}${color white}${downspeedgraph wlan0 30,115}
${color red}Sauce! ${color white}${alignr}${addr wlan0}

As I said: Just suggestions. It's really a nice conky, I like it.

Finally a conky with 'digbat' style fonts I like.

Sector11
October 27th, 2012, 08:22 PM
Small typo: after "if (..)" clause there is a ";", meaning "end of if" where it need to do something if "if clause" is true:

if ($10=="GB" || $10=="GiB"); total=$9*1024;
should be

if ($10=="GB" || $10=="GiB") total=$9*1024;


Typo? · · · What typo! · · · You don't make typos!
You're dk75!

Here's what happens:

The keys move around on your keyboard every now and then to confuse you. \\:D/

HOWEVER: fixing that 'non-typo' worked like a charm. :guitar:

And now he comes up with a bash script ...
WOW!!! Look at that: MONTH_MAX="999999999 MB"

A little tweaking and it looks just like the non-typo line.

Super nice stuff dk75, just super!

EDIT! Trust me to forget the image!

yumm91
October 29th, 2012, 07:19 AM
Sector11, looks nice. Can you kindly share the conkyrc that you edited from MoralAnarchy? along with the digbat fonts..

ragamatrix
October 29th, 2012, 04:05 PM
Hi all;
I've made a conky wich it's display your personnal config of xplanet in conky.
I'm not really good in English so :
http://pix.toile-libre.org/upload/original/1351520713.png
you must edit crontab to make it work correctly and the file xml:
crontab :
49 2,5,8,11,14,17,20,23 * * * perl /usr/local/bin/clouds.pl

*/10 * * * * votre_id /usr/local/bin/xplanet-bg
xplanet.xml

<background>
while (truth) {
<static>
<duration>590.0</duration>
<file>/home/your_id/.xplanet/xplanet.png</file>
</static>
<transition>
<duration>10.0</duration>
<from>/home/votre_id/.xplanet/xplanet.png</from>
<to>/home/your_id/.xplanet/2xplanet.png</to>
</transition>
<static>
<duration>590.0</duration>
<file>/home/your_id/.xplanet/2xplanet.png</file>
</static>
<transition>
<duration>10.0</duration>
<from>/home/votre_id/.xplanet/2xplanet.png</from>
<to>/home/your_id/.xplanet/xplanet.png</to>
</transition>
}
</background>
(in.xplanet folder)
Then I give you a pack that you have to modify the path in...
Conky_xplanet_pack--->
https://dl.dropbox.com/u/63154177/conky_xplanet_images_scripts.zip
May be you will have to read stuff about xplanet; sorry I only have it in french, it's quite old but it's still good for the old computers...
French doc :
http://doc.ubuntu-fr.org/xplanet

You can have an eye on Sandy Hurricane...you can also modify your "longitude and latitude for your country in the xplanet-bg script...

Sector11
October 29th, 2012, 07:37 PM
Hi all;

Conky_xplanet_pack--->

That looks awesome but the link is wrong. When you right click on the dropbox icon you have something like the image below.

Please excuse Google Translate:

Open Dropbox Folder (Ouvrir le dossier Dropbox) - Local on your HDD
Launch Dropbox Website (Lancement Site Web Dropbox) this gives the link:

http://dl.dropbox.com/u/16070765/Other_Stuff/1_pixel_images.tar.gz

Or use the link globe in the menu: 1_pixel_images.tar.gz (http://dl.dropbox.com/u/16070765/Other_Stuff/1_pixel_images.tar.gz)

Hope this helps

Sector11
October 29th, 2012, 07:50 PM
Hi all;

Is this a Conky (Est-ce un conky)?: http://t.imgbox.com/acj7rTz4.jpg (http://imgbox.com/acj7rTz4)

If it is can you share it please.
Si c'est le cas pouvez-vous s'il vous plaît.

Sector11
October 29th, 2012, 08:02 PM
Sector11, looks nice. Can you kindly share the conkyrc that you edited from MoralAnarchy? along with the digbat fonts..

The conky you're looking for is in post #20944 (http://ubuntuforums.org/showpost.php?p=12321458&postcount=20944) and the fonts are:

Neuropol (http://www.dafont.com/neuropol.font)
OpenLogos (http://www.dafont.com/openlogos.font)
Illustrate IT (http://www.dafont.com/illustrate-it.font)
LMS Poke'mon Master Dingbat (http://www.dafont.com/lms-pokemon-master.font)

ragamatrix
October 29th, 2012, 09:27 PM
@Sector11
Yes it's a conky.It's working with Meteo-Lua script from Didier-T.Take the ConCour file of this script.I've modified the post and I think the link is aviable.It's working fine.
Here's the file for the conky_pression_temperature:
https://dl.dropbox.com/u/63154177/Conky_Pression%26Temp%C3%A9ratures.zip

Sector11
October 29th, 2012, 11:14 PM
@Sector11
Yes it's a conky.It's working with Meteo-Lua script from Didier-T.Take the ConCour file of this script.I've modified the post and I think the link is aviable.It's working fine.
Here's the file for the conky_pression_temperature:
https://dl.dropbox.com/u/63154177/Conky_Pression%26Temp%C3%A9ratures.zip

Yes, link working now, and a huge thank you for this.

MoralAnarchy
October 30th, 2012, 11:35 AM
Hey guys, I'm trying to get a conky calendar on my desktop and I'm having some trouble. It seems that there is something going wrong when it tries to change the colour of the current date. Was hoping somebody could have a look and tell me where it's messing up?

Here's my .conkyrc3 file:


# Conky, a system monitor, based on torsmo
#
alignment bottom_left
#background transparent
background yes
#border_width 0
#cpu_avg_samples 2
#top_cpu_separate yes
default_color red
#default_outline_color white
#default_shade_color white
#draw_borders no
#draw_graph_borders no
#draw_outline no
#draw_shades no
use_xft yes
xftfont LCDMono:size=19
gap_x 15
gap_y 15
minimum_size 300 150
maximum_width 300
#net_avg_samples 2
double_buffer yes
#out_to_console no
#out_to_stderr no
#extra_newline no

own_window yes
own_window_class Conky
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

#stippled_borders 0
update_interval 1.0
uppercase no
#use_spacer none
#show_graph_scale no
#show_graph_range no

TEXT

${font LCDMono:size=19}${color}${pre_exec ~/Conky/scripts/calendario.sh semana}
${color gray}${pre_exec ~/Conky/scripts/calendario.sh pasado}${color red}${pre_exec ~/Conky/scripts/calendario.sh hoy}${color gray}${pre_exec ~/Conky/scripts/calendario.sh futuro}${font}


and here's the calendario.sh file:


#! /bin/sh
# written by: jjgomera

#str=`echo '\033[01;32m29'`

# replace the 4 "cal |" with "cal -m |" to have the week start on Monday

DATE=`date | awk -F" " '{print $3}'`

case "$1" in
mes)
cal | head -n1
;;
semana)
cal | head -n2 | tail -n1
;;
pasado)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
cal | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac

dk75
October 31st, 2012, 02:36 AM
If any one interested, here is Conky 2.0_pre git2012-10-20 x86_64 along with LUA conkyrc (http://www.fileden.com/files/2006/12/11/497871/Conky/conky_2.0-git20121020.tar.gz), for testing (460KiB).

Sector11
October 31st, 2012, 02:43 AM
If any one interested, {link fixed - see above}, for testing (460KiB).

YES! -- Oops! No!


404 - File not found.
The file you requested cannot be found.

:arrow: Where did you find/get that?

dk75
October 31st, 2012, 03:16 AM
YES! -- Oops! No!



:arrow: Where did you find/get that?
I've fixed the link - problem was "+" character in name...

As from where... I've compiled it.

Sector11
October 31st, 2012, 03:16 PM
I've fixed the link - problem was "+" character in name...

As from where... I've compiled it.

Thank you -- will play later.

Chdslv
October 31st, 2012, 04:39 PM
Here's mine.
Raring Ringtail built from 12.10 mini.iso with kernel 3.7.1 rc2 and Gnome 3.7.1

Conky thanks to Noobslab, with a little tweaking.
http://www.noobslab.com/2012/10/install-1st-conky-in-ubuntulinux.html

Wallpaper from Ubuntu-tweak

Sector11
October 31st, 2012, 08:09 PM
Hey guys, I'm trying to get a conky calendar on my desktop and I'm having some trouble. It seems that there is something going wrong when it tries to change the colour of the current date. Was hoping somebody could have a look and tell me where it's messing up?

Here's my .conkyrc3 file:

WoW jj's script, it stopped working here too. I use to use that all the time. Don't know enough about bash to get it going though. :(

I have these that work - not scripts, just conky commands:


TEXT
${alignc}${font Monofur:bold:size=20}${time %T}${font}
${hr}

${font Monofur:bold:size=12}${color2}SU MO ${color6}${time %b %y}${color2} FR SA
${color}${execp REM=`date +%-d`; cal -h | sed '2d' | sed -e '1d' -e 's/\<'$REM'\>/${color6}&${color}/'}${font}

${hr}

${font Monofur:bold:size=10}${color}${execp REM=`date +%-d`; cal -h | sed -e 's/\<'$REM'\>/${color6}&${color}/'}${font}

${hr}

${font Monofur:bold:size=14}${goto 40}${color2}SU MO ${color6}${time %b %y}${color2} FR SA
${goto 40}${color}${execp REM=`date +%-d`; cal -h | sed '2d' | sed -e '1d' -e 's/\<'$REM'\>/${color6}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 40}/g'}${font}

http://thumbnails101.imagebam.com/21797/4bb20c217960536.jpg (http://www.imagebam.com/image/4bb20c217960536)

VinDSL
October 31st, 2012, 11:10 PM
Here's mine.
Raring Ringtail built from 12.10 mini.iso with kernel 3.7.1 rc2 and Gnome 3.7.1
Nice! Here's mine.

Raring Ringtail with kernel 3.7.0 rc3 (patched for nvidia legacy card support) and Gnome 3.7.1



http://vindsl.com/images/vindsl-desktop-31-oct-2012-1(650x520).png (http://vindsl.com/images/vindsl-desktop-31-oct-2012-1.png)




http://vindsl.com/images/vindsl-desktop-31-oct-2012-2(650x520).png (http://vindsl.com/images/vindsl-desktop-31-oct-2012-2.png)

stinkeye
October 31st, 2012, 11:42 PM
Hi Vin, nice pics, but do you need to embed such big file sizes.
I am currently shaped by my ISP as I often am towards the end of the month
and it takes almost a minute to load the page.
:(

Jedcurtis
November 1st, 2012, 08:55 AM
Okay, most, if not all is courtesy of Sector11. Much thanks!

I have a desktop resolution of 1920x1080 so I have changed template settings to match my resolution, and also some fonts and colour settings. I will have a new system info conky on the right side of the screen sometime in the next 12 to 16 hours. Gotta get some sleep right now though. The lua script on the bottom was the hardest to get 'right'! I'm pretty pleased with how I got it to turn out though. Again, thanks Sector11 for the help! I'll post tomorrow with the updated shot of the sys info conky once I've completed it. Anyway, here's what I have so far. Hope you like...

Thanks,
Jed

stinkeye
November 1st, 2012, 09:10 AM
Hey guys, I'm trying to get a conky calendar on my desktop and I'm having some trouble. It seems that there is something going wrong when it tries to change the colour of the current date. Was hoping somebody could have a look and tell me where it's messing up?


I use the same calendar script using ncal instead of cal.
Try this config with my calendario file(week starts on monday).

cal.conkyrc
# Conky, a system monitor, based on torsmo
#
alignment bottom_left
#background transparent
background no
#border_width 0
#cpu_avg_samples 2
#top_cpu_separate yes
default_color red
#default_outline_color white
#default_shade_color white
#draw_borders no
#draw_graph_borders no
#draw_outline no
#draw_shades no
use_xft yes
xftfont LCDMono:size=19
gap_x 15
gap_y 15
minimum_size 265
maximum_width 265
#net_avg_samples 2
double_buffer yes
#out_to_console no
#out_to_stderr no
#extra_newline no

own_window yes
own_window_class Conky
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

#stippled_borders 0
update_interval 1.0
uppercase no
#use_spacer none
#show_graph_scale no
#show_graph_range no



TEXT
${font LCDMono:bold:size=14}${alignc}${time %B %Y}
${font LCDMono:size=19}${color}${pre_exec ~/Conky/scripts/calendario.sh semana}
${color gray}${pre_exec ~/Conky/scripts/calendario.sh pasado}${color red}${pre_exec ~/Conky/scripts/calendario.sh hoy}${color gray}${pre_exec ~/Conky/scripts/calendario.sh futuro}${font}

calendario.sh
#! /bin/sh
# written by: jjgomera

#str=`echo '\033[01;32m29'`

# replace the 4 "cal |" with "cal -m |" to have the week start on Monday

DATE=`date | awk -F" " '{print $3}'`
DAY=`date +%a | cut -c1-2`

case "$1" in
mes)
ncal -M -C -h | head -n1
;;
semana)
ncal -M -C -h | head -n2 | tail -n1 #| sed 's/'$DAY'/${color CC9846}'$DAY'${color 919FAA}/g'
;;
pasado)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac

firekage
November 1st, 2012, 09:18 AM
Nice! Here's mine.


Could you post .conkyrc files for right panel? I like it. There is everything listed in it - i have 4 cores cpu, could you also tell me what to change for it?

Thanks.

Sector11
November 1st, 2012, 01:26 PM
Okay, most, if not all is courtesy of Sector11. Much thanks!

You're welcome Jed, but all I did was show you some tips and the odd tweak for the top one, you did all the work to make it what it is. Looks good. OK, that bottom one does look familiar, but that's your work I see there.

Sector11
November 1st, 2012, 02:19 PM
I use the same calendar script using ncal instead of cal.
Try this config with my calendario file(week starts on monday).

Totally forgot about ncal. I tried it with gcal and got <1> for the current days.

You've just revived an old friend.

If memory serves me correctly this was discussed here a long time ago when conky v1.8.1 started doing things differently.

Nice to have jj's script back up and running. I took the time to do an update at CPS: calendario.sh (http://conky.pitstop.free.fr/wiki/index.php5?title=Calendar_%28en%29)

Thanks stinkeye.

stinkeye
November 1st, 2012, 03:13 PM
Totally forgot about ncal. I tried it with gcal and got <1> for the current days.

You've just revived an old friend.

If memory serves me correctly this was discussed here a long time ago when conky v1.8.1 started doing things differently.

Nice to have jj's script back up and running. I took the time to do an update at CPS: calendario.sh (http://conky.pitstop.free.fr/wiki/index.php5?title=Calendar_%28en%29)

Thanks stinkeye.
Ye, I think I first used it way back, from one of your posts.
You can also highlight the day of the week by changing this line...

ncal -M -C -h | head -n2 | tail -n1
to

ncal -M -C -h | head -n2 | tail -n1 | sed 's/'$DAY'/${color CC9846}'$DAY'${color 919FAA}/g'
so you get the day of the week as well as the date highlighted.
First ${color CC9846} is the highlight and ${color 919FAA} takes you back to the original colour.
Needs to have...

DAY=`date +%a | cut -c1-2`
in the calendario.sh for the day highlight to work.

#! /bin/sh
# written by: jjgomera

#str=`echo '\033[01;32m29'`

# replace the 4 "cal |" with "cal -m |" to have the week start on Monday

DATE=`date | awk -F" " '{print $3}'`
DAY=`date +%a | cut -c1-2`

case "$1" in
mes)
ncal -M -C -h | head -n1
;;
semana)
ncal -M -C -h | head -n2 | tail -n1 | sed 's/'$DAY'/${color CC9846}'$DAY'${color 919FAA}/g'
;;
pasado)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=0}
($1 == $0 && i==0) {print $1}($1 != $0 && i==0){i=i+1;print $1}';
;;
hoy)
echo $DATE;
;;
futuro)
ncal -M -C -h | grep -v '[a-zA-Z]' | grep '[0-9]' | awk -F$DATE ' BEGIN {i=1}
(i==0) {print $0}($1 != $0 && i==1){i=i-1;print $2}';
;;
esac

Sector11
November 1st, 2012, 04:51 PM
Ye, I think I first used it way back, from one of your posts.
You can also highlight the day of the week by changing this line...

Possible, I used that script for a LONG time.

I did another update at Conky PitStop: Option #2 calendario.sh - highlight day as well (http://conky.pitstop.free.fr/wiki/index.php5?title=Calendar_%28en%29#Option_.232_cal endario.sh_-_highlight_day_as_well) and as it says there: Nicely done!

crazyness003
November 2nd, 2012, 04:46 AM
It's been a while since I've posted on these here forums. A long time.
Anyway, I recently got conky back up and running so I decided to contribute (i'm sure my stuff is so mainstream but what the heck.)

Almost all of it is based off the default conky-colors configuration with human theme (color). I did happen to do some modifications

Here's .conkyrc


######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
net_avg_samples 3
cpu_avg_samples 3
if_up_strictness link

imlib_cache_size 0
double_buffer yes
no_buffers yes

format_human_readable

#####################
# - Text settings - #
#####################
use_xft yes
xftfont Ubuntu:size=8
override_utf8_locale yes
text_buffer_size 2048

#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_right
gap_x 25
gap_y 40
minimum_size 182 600
maximum_width 182

default_bar_size 60 8

#########################
# - Graphics settings - #
#########################
draw_shades no

default_color cccccc

color0 white
color1 CE5C00
color2 white
color3 CE5C00

TEXT
${font Ubuntu:style=Bold:size=8}SYSTEM $stippled_hr${font}
##############
# - SYSTEM - #
##############
${color1}${voffset 6}${font OpenLogos:size=19}u${font}${color}${goto 32}${voffset -14}Kernel: ${alignr}${color2}${kernel} x86_64${color}
${goto 32}Uptime: ${alignr}${color2}${uptime}${color}
# |--UPDATES
${goto 32}Updates: ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 360 aptitude search "~U" | wc -l | tail}${color}${font} ${color2}Packages${color}
# |--CPU
${offset 2}${color2}${font Poky:size=14}P${color}${font}${offset -19}${voffset 9}${offset 1}${cpubar cpu0 4,18}${offset -20}${voffset 10}${font Ubuntu:style=Bold:size=8}${acpitemp}°C ${font}${voffset -25}${goto 32}CPU1: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu1}%${font} ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 30 sensors -f | grep 'Core 0' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'}${color}${font} ${color2}${cpugraph cpu1 8,50 E07A1F CE5C00}${color}
${goto 32}CPU2: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 30 sensors -f | grep 'Core 1' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'}${color}${font} ${color2}${cpugraph cpu2 8,50 E07A1F CE5C00}${color}
${goto 32}CPU3: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu3}%${font} ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 30 sensors -f | grep 'Core 2' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'}${color}${font} ${color2}${cpugraph cpu3 8,50 E07A1F CE5C00}${color}
${goto 32}CPU4: ${font Ubuntu:style=Bold:size=8}${color1}${cpu cpu4}%${font} ${alignr}${font Ubuntu:style=Bold:size=8}${color1}${execi 30 sensors -f | grep 'Core 3' | awk '{print $3}' | sed 's/+//' | sed 's/\.0//g'}${color}${font} ${color2}${cpugraph cpu4 8,50 E07A1F CE5C00}${color}
# |--MEM
${voffset 2}${offset 1}${color2}${font Poky:size=14}M${font}${color}${goto 32}${voffset -7}RAM: ${font Ubuntu:style=Bold:size=8}${color1}$memperc%${color }${font}
${voffset 1}${offset 1}${voffset 2}${color0}${membar 4,18}${color}${goto 32}${voffset -2}F: ${font Ubuntu:style=Bold:size=8}${color2}${memeasyfree}${ color}${font} U: ${font Ubuntu:style=Bold:size=8}${color2}${mem}${color}${ font} T: ${font Ubuntu:style=Bold:size=8}${color2}${memmax}${color }${font}
# |--PROC
${voffset 2}${voffset 1}${color2}${font Poky:size=14}a${font}${color}${goto 32}${voffset -10}Processes: ${color2}${alignr 13}CPU${alignr}RAM${color}
${voffset -1}${goto 42}${color2}${top name 1}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 1}${alignr }${top mem 1}${color}${font}
${voffset -1}${goto 42}${color2}${top name 2}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 2}${alignr }${top mem 2}${color}${font}
${voffset -1}${goto 42}${color2}${top name 3}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 3}${alignr }${top mem 3}${color}${font}
${voffset -1}${goto 42}${color2}${top name 4}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 4}${alignr }${top mem 4}${color}${font}
${voffset -1}${goto 42}${color2}${top name 5}${color}${font Ubuntu:style=Bold:size=8}${color1} ${goto 126}${top cpu 5}${alignr }${top mem 5}${color}${font}
#############
# - CLOCK - #
#############
${voffset 4}${font Ubuntu:style=Bold:size=8}DATE $stippled_hr${font}
${goto 100}${voffset -16}${font Ubuntu:size=6}EPOCH+ ${time %s}${font}
${voffset 8}${goto 2}${font clockfaces:size=40}${color1}O${color}${font}
${voffset -35}${goto 11}${font zoraclockH:size=30}${color2}${execpi 120 /usr/share/conkycolors/bin/conkyClock hour}${color}${font}
${voffset -39}${goto 5}${font zoraclockM:size=40}${color2}${execpi 60 /usr/share/conkycolors/bin/conkyClock minute}${color}${font}
${voffset -60}${goto 60}${font UBuntu:style=Bold:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Ubuntu:style=Bold:size=14}${color2}${time :%M}${time :%S}${color}${font}
#${goto 100}${voffset -50}${font Ubuntu:style=Bold:size=11}${color1}${time %H}${time :%M}${time :%S}${color}${font} ${time %Z}
${goto 100}${goto 120}${font Ubuntu:style=Bold:size=10}${color2}${time %A}${color}${font}
${goto 70}${voffset 4}${time %B %d, %Y}${voffset 8}
${goto 70}${voffset -8}${font UBuntu:size=7}${color1}${utime}${color} UTC ${font}
################
# - CALENDAR - #
################
${voffset -2}${color0}${font Poky:size=16}D${font}${voffset -8}${font Ubuntu:style=Bold:size=7}${offset -17}${voffset 4}${time %d}${font}${color}${voffset -1}${font Monospace:size=7}${execpi 300 DJS=`date +%_d`; cal -h |sed '2,8!d'| sed '/./!d' | sed 's/^/${goto 42} /'| sed 's/$/ /' | sed 's/^/ /' | sed /" $DJS "/s/" $DJS "/" "'${font Arial:style=Bold:size=8}${voffset -2}${offset -4}${color1} '"$DJS"'${color}${font Monospace:size=7}'" "/}${voffset -1}
${voffset -22}
##########
# - HD - #
##########
${voffset 4}${font Ubuntu:style=Bold:size=8}HD $stippled_hr${font}
# |--HDTEMP1
${voffset 4}${offset 7}${color0}${font Weather:size=15}y${font}${color}${voffset -3}${goto 32}Temperature: ${font Ubuntu:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sda -n --unit=C}°C${color}${font}${alignr}${color2}/dev/sda${color}
${voffset 4}${execpi 30 /usr/share/conkycolors/bin/conkyHD2}
###############
# - NETWORK - #
###############
${voffset -4}${font Ubuntu:style=Bold:size=8}NETWORK $stippled_hr${font}
# |--WLAN0
${if_up wlan0}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} ${alignr}${color2}${upspeedgraph wlan0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totalup wlan0}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} ${alignr}${color2}${downspeedgraph wlan0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown wlan0}${color}${font}
${voffset 2}${color0}${font Poky:size=14}Y${font}${color}${goto 32}${voffset -2}Signal: ${font Ubuntu:style=Bold:size=8}${color1}${wireless_link_ qual_perc wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 2}${color0}${font Webdings:size=16}¬${font}${color}${goto 32}${voffset -8}Local IP: ${alignr}${color2}${addr wlan0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 /usr/share/conkycolors/bin/conkyIp}${color}
# |--ETH0
${else}${if_up eth0}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} ${alignr}${color2}${upspeedgraph eth0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totalup eth0}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} ${alignr}${color2}${downspeedgraph eth0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown eth0}${color}${font}
${voffset 2}${color0}${font Webdings:size=16}¬${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr eth0}${color}
${goto 32}Public IP: ${alignr}${color2}${execi 10800 /usr/share/conkycolors/bin/conkyIp}${color}
# |--PPP0
${else}${if_up ppp0}
${voffset -5}${color0}${font Webdings:size=17}”${font}${color}${goto 32}${voffset -5}Up: ${font Ubuntu:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} ${alignr}${color2}${upspeedgraph ppp0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totalup ppp0}${color}${font}
${voffset 2}${color0}${font Webdings:size=17}“${font}${color}${goto 32}${voffset -5}Down: ${font Ubuntu:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} ${alignr}${color2}${downspeedgraph ppp0 8,60 E07A1F CE5C00}${color}
${goto 32}Total: ${font Ubuntu:style=Bold:size=8}${color2}${totaldown ppp0}${color}${font}
${voffset 2}${color0}${font Webdings:size=16}¬${font}${color}${goto 32}${voffset -4}Local IP: ${alignr}${color2}${addr ppp0}${color}
${else}${voffset 4}${offset 4}${color0}${font Wingdings:size=20}N${font}${color}${voffset -6}${goto 32}Network Unavailable${voffset 14}${endif}${endif}${endif}
####################
# - WEATHER - #
####################
# http://weather.yahoo.com/
${voffset -8}${font Ubuntu:style=Bold:size=8}WEATHER $stippled_hr${font}
${if_gw}${voffset 4}${offset -4}${color0}${font Webdings:size=24}·${font}${color}
${voffset -24}${goto 32}Temperature: ${font Ubuntu:style=Bold:size=8}${color1}${execi 3600 /usr/share/conkycolors/bin/conkyYahooWeather cur USFL0111 f}°F${color}${font}
${goto 32}${voffset -2}${color0}${font Webdings}6${font}${color}${font Ubuntu:style=Bold:size=8}${color1}${execi 3600 /usr/share/conkycolors/bin/conkyYahooWeather min USFL0111 f}°F${color}${font} ${voffset -2}${color0}${font Webdings}5${font}${color}${voffset -1}${font Ubuntu:style=Bold:size=8}${color1}${execi 3600 /usr/share/conkycolors/bin/conkyYahooWeather max USFL0111 f}°F${color}${font}
${else}${voffset 4}${offset 4}${color0}${font Wingdings:size=20}N${font}${color}${voffset -6}${goto 32}Weather Unavailable${voffset 14}${endif}
############
# - TASK - #
############
# type "ct help" in terminal for info
${voffset 4}${font Ubuntu:style=Bold:size=8}TASKS $stippled_hr${font}
${voffset 4}${execpi 5 cat ~/.conkycolors/tasks | fold -w 38 | sed 's/\[ \]/\[ \]/' | sed 's/\[X\]/\[ X \]/' | sed 's/\] /\] ${color2}/' | sed 's/$/${color}/' | sed 's/ X /${color0}${font Poky:size=7}A${font}${color}${voffset -1}/'}


Here are the scripts used by conky-colors (just to give everything perspective. sorry about the long post)

conkyClock.sh


#!/bin/sh
# clock.sh
# Written by Crinos512
# Original concept by t-mo_
#
# Usage: ${execpi 20 ~/.conky/conkyparts/clock.sh hour}
# - or -
# ${execpi 20 ~/.conky/conkyparts/clock.sh minute}

#Hour
case "$1" in
'hour')
HOUR=`date +%H`
MINUTE=`date +%M`
case $HOUR in
00 | 12)
case $MINUTE in
0[0-9] | 1[0-2]) echo "A" ;;
1[3-9] | 2[0-2]) echo "B" ;;
2[3-9] | 3[0-5]) echo "C" ;;
3[6-9] | 4[0-8]) echo "D" ;;
49 | 5[0-9]) echo "E" ;;
*) echo "ERROR in Hour mod 00" ;;
esac
;;
01 | 13)
case $MINUTE in
0[0-9] | 1[0-2]) echo "F" ;;
1[3-9] | 2[0-2]) echo "G" ;;
2[3-9] | 3[0-5]) echo "H" ;;
3[6-9] | 4[0-8]) echo "I" ;;
49 | 5[0-9]) echo "J" ;;
*) echo "ERROR in Hour mod 01" ;;
esac
;;
02 | 14)
case $MINUTE in
0[0-9] | 1[0-2]) echo "K" ;;
1[3-9] | 2[0-2]) echo "L" ;;
2[3-9] | 3[0-5]) echo "M" ;;
3[6-9] | 4[0-8]) echo "N" ;;
49 | 5[0-9]) echo "O" ;;
*) echo "ERROR in Hour mod 02" ;;
esac
;;
03 | 15)
case $MINUTE in
0[0-9] | 1[0-2]) echo "P" ;;
1[3-9] | 2[0-2]) echo "Q" ;;
2[3-9] | 3[0-5]) echo "R" ;;
3[6-9] | 4[0-8]) echo "S" ;;
49 | 5[0-9]) echo "T" ;;
*) echo "ERROR in Hour mod 03" ;;
esac
;;
04 | 16)
case $MINUTE in
0[0-9] | 1[0-2]) echo "U" ;;
1[3-9] | 2[0-2]) echo "V" ;;
2[3-9] | 3[0-5]) echo "W" ;;
3[6-9] | 4[0-8]) echo "X" ;;
49 | 5[0-9]) echo "Y" ;;
*) echo "ERROR in Hour mod 04" ;;
esac
;;
05 | 17)
case $MINUTE in
0[0-9] | 1[0-2]) echo "Z" ;;
1[3-9] | 2[0-2]) echo "a" ;;
2[3-9] | 3[0-5]) echo "b" ;;
3[6-9] | 4[0-8]) echo "c" ;;
49 | 5[0-9]) echo "d" ;;
*) echo "ERROR in Hour mod 05" ;;
esac
;;
06 | 18)
case $MINUTE in
0[0-9] | 1[0-2]) echo "e" ;;
1[3-9] | 2[0-2]) echo "f" ;;
2[3-9] | 3[0-5]) echo "g" ;;
3[6-9] | 4[0-8]) echo "h" ;;
49 | 5[0-9]) echo "i" ;;
*) echo "ERROR in Hour mod 06" ;;
esac
;;
07 | 19)
case $MINUTE in
0[0-9] | 1[0-2]) echo "j" ;;
1[3-9] | 2[0-2]) echo "k" ;;
2[3-9] | 3[0-5]) echo "l" ;;
3[6-9] | 4[0-8]) echo "m" ;;
49 | 5[0-9]) echo "n" ;;
*) echo "ERROR in Hour mod 07" ;;
esac
;;
08 | 20)
case $MINUTE in
0[0-9] | 1[0-2]) echo "o" ;;
1[3-9] | 2[0-2]) echo "p" ;;
2[3-9] | 3[0-5]) echo "q" ;;
3[6-9] | 4[0-8]) echo "r" ;;
49 | 5[0-9]) echo "s" ;;
*) echo "ERROR in Hour mod 08" ;;
esac
;;
09 | 21)
case $MINUTE in
0[0-9] | 1[0-2]) echo "t" ;;
1[3-9] | 2[0-2]) echo "u" ;;
2[3-9] | 3[0-5]) echo "v" ;;
3[6-9] | 4[0-8]) echo "w" ;;
49 | 5[0-9]) echo "x" ;;
*) echo "ERROR in Hour mod 09" ;;
esac
;;
10 | 22)
case $MINUTE in
0[0-9] | 1[0-2]) echo "y" ;;
1[3-9] | 2[0-2]) echo "z" ;;
2[3-9] | 3[0-5]) echo "1" ;;
3[6-9] | 4[0-8]) echo "2" ;;
49 | 5[0-9]) echo "3" ;;
*) echo "ERROR in Hour mod 10" ;;
esac
;;
11 | 23)
case $MINUTE in
0[0-9] | 1[0-2]) echo "4" ;;
1[3-9] | 2[0-2]) echo "5" ;;
2[3-9] | 3[0-5]) echo "6" ;;
3[6-9] | 4[0-8]) echo "7" ;;
49 | 5[0-9]) echo "8" ;;
*) echo "ERROR in Hour mod 11" ;;
esac
;;
*) echo "ERROR finding Hour" ;;
esac
;;

'minute')
MINUTE=`date +%M`
case $MINUTE in
00) echo "A" ;;
01) echo "B" ;;
02) echo "C" ;;
03) echo "D" ;;
04) echo "E" ;;
05) echo "F" ;;
06) echo "G" ;;
07) echo "H" ;;
08) echo "I" ;;
09) echo "J" ;;
10) echo "K" ;;
11) echo "L" ;;
12) echo "M" ;;
13) echo "N" ;;
14) echo "O" ;;
15) echo "P" ;;
16) echo "Q" ;;
17) echo "R" ;;
18) echo "S" ;;
19) echo "T" ;;
20) echo "U" ;;
21) echo "V" ;;
22) echo "W" ;;
23) echo "X" ;;
24) echo "Y" ;;
25) echo "Z" ;;
26) echo "a" ;;
27) echo "b" ;;
28) echo "c" ;;
29) echo "d" ;;
30) echo "e" ;;
31) echo "f" ;;
32) echo "g" ;;
33) echo "h" ;;
34) echo "i" ;;
35) echo "j" ;;
36) echo "k" ;;
37) echo "l" ;;
38) echo "m" ;;
39) echo "n" ;;
40) echo "o" ;;
41) echo "p" ;;
42) echo "q" ;;
43) echo "r" ;;
44) echo "s" ;;
45) echo "t" ;;
46) echo "u" ;;
47) echo "v" ;;
48) echo "w" ;;
49) echo "x" ;;
50) echo "y" ;;
51) echo "z" ;;
52) echo "1" ;;
53) echo "2" ;;
54) echo "3" ;;
55) echo "4" ;;
56) echo "5" ;;
57) echo "6" ;;
58) echo "7" ;;
59) echo "8" ;;
*) echo "ERROR finding Minute" ;;
esac
;;
esac
exit 0


conkyHD2.sh


#! /bin/sh
DIR=$(conky-colors --finddir=scripts/conkyHD2.py)
pythoncmd="$DIR/scripts/conkyHD2.py $@"

if [ -f /usr/bin/python2 ]; then
cmd="/usr/bin/python2 $pythoncmd"
elif [ -f /usr/bin/python2.7 ] ; then
cmd="/usr/bin/python2.7 $pythoncmd"
elif [ -f /usr/bin/python2.6 ] ; then
cmd="/usr/bin/python2.6 $pythoncmd"
else
# here's hoping!
cmd="/usr/bin/python $pythoncmd"
fi

exec $cmd


conkyHD2.py


#!/usr/bin/env python
import os
import subprocess

# root filesystem
statb = subprocess.Popen("stat -f -c %b /", shell=True, stdout=subprocess.PIPE,)
statb_value = statb.communicate()[0]
statf = subprocess.Popen("stat -f -c %f /", shell=True, stdout=subprocess.PIPE,)
statf_value = statf.communicate()[0]
total = int(statb_value)
used = total - int(statf_value)
dec = (((used * 100) / total) + 5) / 10
if dec > 9:
icon = "0"
elif dec < 1:
icon = "A"
else:
icon = str(dec)
print ("${voffset 2}${color0}${font Pie charts for maps:size=14}"+icon+"${font}${color} ${voffset -5}Root: ${font Ubuntu:style=Bold:size=8}${color1}${fs_free_perc /}%${color} ${alignr}${color2}${fs_free /}${color}${font}\n")

# /home folder (if its a separate mount point)
if os.path.ismount("/home"):
# start calculation for the pie chart symbol (icon)
statb = subprocess.Popen("stat -f -c %b /home", shell=True, stdout=subprocess.PIPE,)
statb_value = statb.communicate()[0]
statf = subprocess.Popen("stat -f -c %f /home", shell=True, stdout=subprocess.PIPE,)
statf_value = statf.communicate()[0]
total = int(statb_value)
used = total - int(statf_value)
dec = (((used * 100) / total) + 5) / 10
if dec > 9:
icon = "0"
elif dec < 1:
icon = "A"
else:
icon = str(dec)
# end calculation icon
print ("${voffset -6}${color0}${font Pie charts for maps:size=14}"+icon+"${font}${color} ${voffset -5}Home: ${font Ubuntu:style=Bold:size=8}${color1}${fs_free_perc /home}%${color} ${alignr}${color2}${fs_free /home}${color}${font}\n")

# folder in /media
for device in os.listdir("/media/"):
if (not device.startswith("cdrom")) and (os.path.ismount('/media/'+device)):
# start calculation dec value (for the pie chart symbol)
statb = subprocess.Popen('stat -f -c %b "/media/'+device+'"', shell=True, stdout=subprocess.PIPE,)
statb_value = statb.communicate()[0]
statf = subprocess.Popen('stat -f -c %f "/media/'+device+'"', shell=True, stdout=subprocess.PIPE,)
statf_value = statf.communicate()[0]
total = int(statb_value)
used = total - int(statf_value)
dec = (((used * 100) / total) + 5) / 10
if dec > 9:
icon = "0"
elif dec < 1:
icon = "A"
else:
icon = str(dec)
# end calculation dec
print ("${voffset -6}${color0}${font Pie charts for maps:size=14}"+icon+"${font}${color} ${voffset -5}"+device.capitalize()+": ${font Ubuntu:style=Bold:size=8}${color1}${fs_free_perc /media/"+device+"}%${color} ${alignr}${color2}${fs_free /media/"+device+"}${color}${font}\n")
print ("${voffset -6}")

conkyIp.sh


#!/bin/bash
# eigene öffentliche ip anzeigen

wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'


conkyYahooWeather.sh


#!/bin/bash
# By helmuthdu

MIN="min"
MAX="max"
CUR="cur"
UNIT="c"

if [ "$1" = "$CUR" ]; then
if [ "$3" = "$UNIT" ]; then
curl -s --connect-timeout 30 "http://weather.yahooapis.com/forecastrss?p=$2&u=$3" | sed '/Current\ Conditions/,$!d' | sed -e 's/<[^>]*>//g' | sed '2!d' | sed 's/^.*, //' | sed 's/ C.*$//'
else
curl -s --connect-timeout 30 "http://weather.yahooapis.com/forecastrss?p=$2&u=$3" | sed '/Current\ Conditions/,$!d' | sed -e 's/<[^>]*>//g' | sed '2!d' | sed 's/^.*, //' | sed 's/ F.*$//'
fi
elif [ "$1" = "$MAX" ]; then
curl -s --connect-timeout 30 "http://weather.yahooapis.com/forecastrss?p=$2&u=$3" | sed '/Current\ Conditions/,$!d' | sed -e 's/<[^>]*>//g' | sed '4!d' | sed 's/^.*High: //' | sed 's/ Low.*$//'
elif [ "$1" = "$MIN" ]; then
curl -s --connect-timeout 30 "http://weather.yahooapis.com/forecastrss?p=$2&u=$3" | sed '/Current\ Conditions/,$!d' | sed -e 's/<[^>]*>//g' | sed '4!d' | sed 's/^.*Low: //'
fi


And see attachments for final results (I have dual-monitor)

Anyway, if anyone can suggest some efficiency or a better alternative route to accomplish something (cough-weather-cough), please let me know.

I think I'll stick with this for a while.

EDIT: I forgot to mentions, my readings for CPU temp are curiously low. That's what ${acpitemp}, ${hdmon} and the sensors route give me though. Strange.

McLovin926
November 3rd, 2012, 08:07 PM
This is my latest conky, I used a lua script made by Sector11 from Conky Pit-Stop (http://conky.pitstop.free.fr/wiki/index.php5?title=Main_Page), and added another lua to draw a background a,d boarders to it, as well as make the hands have a thick to thin look to them.
The CPU bars come out from the center, and there are alarm colors for when things start to run really high.
The weather in the clock is conkyForecast from conky-companions, and there is a now playing feature on the bottom of the config on the right, it scrolls "Media Player Not Currently Running" if there is no medai player runng, and the noew playing info if there is, it auto detects which one is running (using Exaile. Rhythmbox, Banshee, Clementine, Guaydeque) and uses conky<Medaplayer> scripts from conky-companions as well.
There is also a transmission display on the bottom of the config on the left, using conkyTransmission, again, by conky-companions, that only shows if Transmission is running.
The calendar is shown with conkyGoogleCalendar by, you guessed it, conky-companions.

http://t.imgbox.com/adpz74ik.jpg (http://imgbox.com/adpz74ik)
click for full size preview

And you can download the full set-up, including a script that you can use a switch to turn it on and off, in an archive from here Download the full config (http://dl.dropbox.com/u/124517/McBars.tar.gz)

Paari
November 3rd, 2012, 08:27 PM
Sorry for the 24 hour format though:p i like it this way


# 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 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

## This Resolution is set according to the sreen resolution of 1366x768
## Adjust Accoring to yours

minimum_size 800 560
maximum_width 1600

alignment tr
gap_x 10
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load #
lua_load ~/.lua/scripts/haunted.lua
lua_draw_hook_pre clock_rings

## Adjust these fields according to the your screen size i have modded them for 1366X768

TEXT
${offset 700}${color EAEAEA}${font GE Inspira:pixelsize=120}${time %H:%M}${font}${voffset -84}${voffset 10}${color FFA300}${font GE Inspira:pixelsize=42}${time %d} ${voffset -15}${color EAEAEA}${font GE Inspira:pixelsize=22}${time %B} ${time %Y}${font}${voffset 124}${font GE Inspira:pixelsize=58}${offset -800}${time %A}${font}
${offset 720}${voffset -100}${font Ubuntu:pixelsize=10}${color FFA300}HD ${offset 9}$color${fs_free /} / ${fs_size /}${offset 30}${color FFA300}RAM ${offset 9}$color$mem / $memmax${offset 30}${color FFA300}CPU ${offset 9}$color${cpu cpu0}%
${voffset 10}${offset 270}${color 2c2c2c}${hr 4}
${image ~/.conky/rev-eng.png}


${offset 130}${voffset 222}${font Santana:size=9:style=Bold}root : ${font Santana:size=9}${fs_used /}/${fs_size /}
${offset 130}${voffset 10}${font Santana:size=9:style=Bold}home: ${font Santana:size=9}${fs_used /home/Rev-Eng/Solaris}/${fs_size /home/Rev-Eng/Solaris}$font
${offset 120}${voffset 12}${color ffffff}${font Santana:size=9:style=Bold}swap: ${font Santana:size=8} ${swap} / ${swapfree}$font
${offset 570}${voffset -110} ${color EAEAEA}Linux ${kernel} kernel
${offset 570}${voffset 5} Uptime :${uptime}
${offset 825}${voffset -80}${color ffffff}${font Santana:size=10:style=Bold}${exec whoami}@${nodename}
${offset 825}${voffset 0}${color ffffff}${font Santana:size=8}${top name 5} ${top mem 5}




${offset 680}${voffset 130}${color ffffff}${font Santana:size=8}IP Address :${addr wlan0}
${offset 705}${voffset 10}${color ffffff}${font Santana:size=8}Down :${downspeed wlan0} k/s ${offset 8}Up:${upspeed wlan0} k/s
${offset 703}${voffset 10}${color ffffff}${font Santana:size=8}TCP Connections: ${tcp_portmon 1 65535 count}
${offset 680}${voffset 10}${color ffffff}${font Santana:size=8}Speed Graph :
${offset 680}${voffset -10}${color ffffff}${font Santana:size=8}${color #000000}${downspeedgraph wlan0 32,150 000000 ffffff} ${color #000000}${upspeedgraph wlan0 32,150 000000 ffffff}

Sector11
November 4th, 2012, 12:42 AM
McLovin926 borrowed mine, I borrowed his, and edited it again ... NEXT!

conkyForecast is a live and well, don't let anyone tell you different

http://t.imgbox.com/abijk6Lr.jpg (http://imgbox.com/abijk6Lr)

The conky: /media/5/Conky/McBars/Chronograph.conky



# killall conky & conky -c /media/5/Conky/McBars/Chronograph.conky &
######################
# - Conky settings - #
######################

background no
update_interval 1
cpu_avg_samples 1
total_run_times 0
override_utf8_locale yes

double_buffer yes
#no_buffers yes

text_buffer_size 1024 #10240
imlib_cache_size 0 #10240

minimum_size 350 350
maximum_width 350

#####################
# - Text settings - #
#####################
use_xft yes
xftfont CorporateMonoExtraBold:size=10
xftalpha 1 #.8

uppercase no

# Text alignment, other possible values are commented
#alignment middle_left
#alignment middle_middle
#alignment middle_right
#alignment top_middle
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment bottom_middle

gap_x 5
gap_y 5


######################
# - Color settings - #
######################
default_color c3c3c3
default_shade_color gray
default_outline_color black

color0 c3c3c3 #mid gray
color1 FF0000 #red
color2 09FF00 #bright green
color3 007EFF #bright blue
color4 E3E3E3 #very light gray
color5 FF8600 #an orange shade
color6 CA8718 #a dust like color
color7 FFE500 #a darker yellow color
color8 C3FF00 #lime green
color9 00FCFF #sky blue
#############################
# - Window specifications - #
#############################
################################################## #################################################
# - Create own window instead of using desktop (required in all file-managers, other than caja) - #
################################################## #################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour gray
own_window_class Conky
own_window_title Chronograph


border_inner_margin 0
border_outer_margin 0

#########################
# - Graphics settings - #
#########################
draw_shades no #yes
draw_outline no
draw_borders no
stippled_borders 0
draw_graph_borders no

####################
# - LUA Settings - #
####################
#lua_load /media/5/conky/McBars_McLovin/McBars/scripts/draw-bg.lua ################################################## #########
#lua_draw_hook_pre draw_bg 20 0 0 0 0 0x000000 0.3 #### - Uncoment these lines to have BG-Image -#
#lua_draw_hook_post draw-bg 125 0 0 0 0 0x000000 0.01 ############################################
lua_load /media/5/Conky/McBars/scripts/Chronograph.lua
lua_draw_hook_post main
#lua_load /media/5/conky/McBars_McLovin/McBars/scripts/clock_rings.lua
#lua_draw_hook_pre clock_rings
lua_load /media/5/Conky/LUA/draw-bg.lua

TEXT
${lua conky_draw_bg 15 0 0 0 0 0x000000 0.5}${execpi 3600 conkyForecast --hideunits --template=/media/5/Conky/McBars/scripts/chronograph.weather.template}

/media/5/Conky/McBars/scripts/Chronograph.lua

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
21 Jun 2012 - Chronograph modifications by Sector11
22 Jun 2012 - again with mrpeachy's help day names, numbers and month names

use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT


-- INDEX (use find with):

-- ###### 12 OR 24 CLOCK FACE
-- SET BORDER OPTIONS ###### ALL CLOCKS

-- ### START CLOCK A ######################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
-- CLOCK A HOUR HAND
-- CLOCK A MINUTE HAND SETUP
-- CLOCK A SECOND HAND SETUP
-- CLOCK A ###### 24 HR TIME

-- ### START DIAL B ### Top - Week Day Names Dial #########
-- ### START DIAL C ### Right - Month Names Dial ##########
-- ### START DIAL D ### Left - Day Numbers Dial ###########

-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
-- CLOCK E HOUR HAND
-- CLOCK E MINUTE HAND SETUP
-- CLOCK E SECOND HAND SETUP
-- CLOCK E ###### 12 HR TIME

NOTE: Putting ### CLOCK A ### last insures that it's functions are written
over the other dials.
]]

require 'cairo'

function conky_main()
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)
cr = cairo_create(cs)
-- ################################################## ######
-- SETTINGS AREA
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")

-- ###### 12 OR 24 CLOCK FACE #############################
local clock_type_A=24 -- Large Main 24 HR Clock
local clock_type_E=12 -- Bottom - 12 HR Clock

-- ###### CLOCK SETTINGS ##################################
-- SET BORDER OPTIONS FOR "CLOCKS" ########################
local clock_border_width=0
-- set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1 -- full opaque white
-- gap from clock border to minute marks
local b_to_m=1

-- ################################################## ######
-- ### START DIAL B ### Top - Week Day Names Dial #########
-- DIAL POSITION FOR TEXT
local center_x=175
local center_y=95
local radius=50
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"SUN","MON","TUE","WED","THR","FRI","SAT",}
-- text_days={"DOM","LUN","MAR","MIE","JUE","VIE","SAB",}
for i=1,7 do
-- work out points
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=35
for i=1,7 do
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current day of week
local hand_length=30
local day_number=tonumber(os.date("%w"))
local point=(math.pi/180)*((360/7)*(day_number))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
local hand_width=2
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END DIAL B #########################################

-- ################################################## ######
-- ### START DIAL C ### Right - Month Names Dial ##########
-- DIAL POSITION FOR TEXT
local center_x=260
local center_y=175
local radius=45
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC",}
-- text_days={"ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current month
local this_month=tonumber(os.date("%m"))
local hand_length=28 --radius for this calculation
local point=(math.pi/180)*((360/12)*(this_month-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)

-- ### END CLOCK C ########################################

-- ################################################## ######
-- ### START DIAL D ### Left - Day Numbers Dial ###########
-- GET NUMBER OF DAYS IN CURRENT MONTH
-- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00, min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00, min=0,sec=0});
febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
-- MONTH TABLE
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30 ,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
-- TEXT positioning
local center_x=95
local center_y=175
local radius=50
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 8)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
for i=1,number_days do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=i
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=40
for i=1,number_days do
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current DAY
local this_day=tonumber(os.date("%d"))
local hand_length=35--radius for this calculation
local point=(math.pi/180)*((360/number_days)*(this_day-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END CLOCK D ########################################

-- ################################################## ######
-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
local number_marks_E=12
-- set mark length
local m_length_E=0
-- set mark width
local m_width_E=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,0,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK E HOUR HAND
-- set length of hour hand
hh_length_E=25
-- set hour hand width
hh_width_E=2
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,0,1-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK E MINUTE HAND SETUP
-- set length of minute hand
mh_length_E=35
-- set minute hand width
mh_width_E=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,0,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK E SECOND HAND SETUP
-- set length of seconds hand
sh_length_E=32
-- set hour hand width
sh_width_E=1
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK E ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=45
clock_centerx=175
clock_centery=260
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*m ath.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_E
-- set line cap type
cairo_set_line_cap (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_E)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR SECOND MARKS
for i=1,number_marks_E do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
--[[ TIME CALCULATIONS CLOCK E
if clock_type_E==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_E==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds and draw it
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_E))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_E)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_E)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_E)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)


-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=260
local radius=45
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
--text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
-- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end ]]

-- ### END CLOCK E ########################################




-- ################################################## ######
-- ### START CLOCK A ######################################
-- SET MARKS ##############################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=24
-- set mark length
local m_length_A=0
-- set mark width
local m_width_A=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK A HOUR HAND
-- set length of hour hand
hh_length_A=130
-- set hour hand width
hh_width_A=3
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,1,.5-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK A MINUTE HAND SETUP
-- set length of minute hand
mh_length_A=145
-- set minute hand width
mh_width_A=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,1,.5-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK A SECOND HAND SETUP
-- set length of seconds hand
sh_length_A=150
-- set hour hand width
sh_width_A=2
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK A ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=200
clock_centerx=175
clock_centery=175
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*m ath.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A
-- set line cap type
cairo_set_line_cap (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_A)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
-- HOUR MARKS
-- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds just as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
--[[
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_A)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)
]]
-- ################################################## ##################
-- part of a second hand

--position
local center_x=175
local center_y=175
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
local arc=(math.pi/180)*((360/60)*seconds)
--calculate point 1
local radius1=140
local x1=0+radius1*math.sin(arc)
local y1=0-radius1*math.cos(arc)
--calculate point 2
local radius2=158
local x2=0+radius2*math.sin(arc)
local y2=0-radius2*math.cos(arc)
--draw line connecting points
cairo_move_to (cr, center_x+x1,center_y+y1)
cairo_line_to (cr, center_x+x2, center_y+y2)
cairo_set_source_rgba (cr,255/255,0/255,0/255,1)
cairo_stroke (cr)
-- ################################################## ##################

-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=165
-- FONT
cairo_select_font_face (cr, "CorporateMonoExtraBold", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 16)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,24 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=150
for i=1,24 do
local point=(math.pi/180)*((360/24)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
--[[ HOUR POINTS CIRCLES, ##########Uncoment section to draw rings around numbers
local radius=162
for i=1,60 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,12,0,2*math.pi)
cairo_stroke (cr)
end]]
-- ### END CLOCK A ########################################



-- ################################################## ######
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function


and last but not least the conkyForecast (https://launchpad.net/~conky-companions/+archive/ppa/+build/3059692/+files/conkyforecast_2.24_all.deb) template: /media/5/Conky/McBars/scripts/chronograph.weather.template

Sunrise${goto 290}Sunset
[--datatype=SR]${goto 300}[--datatype=SS]


${goto 55}Visible${goto 240}Rain?
${goto 55}[--datatype=VI]${goto 240}[--datatype=PC]







${goto 55}High: [--datatype=HT --startday=0]${goto 235}Now: [--datatype=LT --night]
${goto 70}Low: [--datatype=LT --startday=0]${goto 230}FL: [--datatype=LT --night]
${goto 90}Bar: [--datatype=BR]${goto 220}UV: [--datatype=UI]
${goto 120}Humidity: [--datatype=HM]${image [--datatype=MI] -p 150,73 -s 50x50}
Daylight${goto 140}Dew: [--datatype=DP]${image [--datatype=WI] -p 125,170 -s 100x100 -n}${goto 300}Wind
[--datatype=DL]${goto 260}[--datatype=WD] @ [--datatype=WS]


and my: /home/sector11/.conkyForecast.config

#=============================================#
# EXPERT SETTINGS, NOT REQUIRED TO BE ALTERED #
#=============================================#
#BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m
MAXIMUM_DAYS_FORECAST = 9

#===============================================#
# USER SETTINGS, EDIT BASED ON DOCUMENTED SETUP #
#===============================================#
CACHE_FOLDERPATH = /home/sector11/Conky/cache/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE = en
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
DEFAULT_LOCATION = ARBA0009
AUTO_NIGHT = TRUE
PROXY_HOST =
PROXY_PORT = 8080
PROXY_USERNAME =
PROXY_PASSWORD =

Sector11
November 4th, 2012, 12:46 AM
Sorry for the 24 hour format though:p i like it this way

No need to apologize, 24 hours format it's used in a lot of places.

I like it as well, take a look at the analogue 24 hour clock above.

FrankenCub
November 4th, 2012, 02:56 AM
I've got a weird problem I'm experiencing. Been playing around with Linux Mint 13 and got both my conkys working after fixing the sensors issue. Problem is, when they do start, my hardware monitor conky starts on my right monitor, my weather conky starts on my left monitor, both should start on the left monitor.
If I remove this line, it will restart in the correct position except it will start as a window with minimize maximize and close buttons.

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pagerWh en I put that line back in and save it, it will restart in the correct spot and as it should.
The whole section for placement is here

####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0

####
## Create own window instead of using desktop?
#
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline yes # amplifies text if yes

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders no

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment top_left

####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
#
minimum_size 260 1394

####
## Maximum width of the text area.
## Syntax: maximum_width [width]
#
maximum_width 280

####
## Gap between text and screen borders.
#
gap_x 6 ## Right / Left
gap_y 6 ## Top / Bottom

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
no_buffers yes

####
## Set to yes, if you want all text to be in UPPERCASE.
#
uppercase no

####
## Number of cpu samples to average.
## Set to 1 to disable averaging.
#
cpu_avg_samples 3

####
## Number of net samples to average.
## Set to 1 to disable averaging.
#
net_avg_samples 2

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer left
Both conkys worked beautifully in Ubuntu, just acts up in Mint. They don't start from boot-up either, but will when I log out then back in. Don't understand it .

Jedcurtis
November 4th, 2012, 04:26 AM
Hello all,

After perusing google, this forum, and crunchbang among other sites, I've been unable to find a solution to getting conky to check my POP/POP3 email addresses. Is this possible, and if so does someone have a script I can copy? I have my own mail server that is part of my web domain, and would like to be able for conky to display the accounts that have messages if possible. I also have .live, .yahoo, .gmail, .hotmail, and other IMAP accounts that it would be nice to display as well. I would like to create a totally separate conky that was for email only.

I have Conky 1.9.1_pre2429 on 12.04 64bit.

Thanks,
Jed

trellis2
November 4th, 2012, 04:48 AM
I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.

Exodus111
November 4th, 2012, 05:15 AM
Sorry for the 24 hour format though:p i like it this way



I'm sorry for my newbishness, i really like this setup, but where do i get the lua file? And whatever else I seem to be missing...

-Exo

Sector11
November 4th, 2012, 06:07 AM
I've got a weird problem I'm experiencing. Been playing around with Linux Mint 13 and got both my conkys working after fixing the sensors issue. Problem is, when they do start, my hardware monitor conky starts on my right monitor, my weather conky starts on my left monitor, both should start on the left monitor.
If I remove this line, it will restart in the correct position except it will start as a window with minimize maximize and close buttons.

own_window_hints undecorated,below,sticky,skip_taskbar,skip_pagerWh en I put that line back in and save it, it will restart in the correct spot and as it should.
The whole section for placement is here

####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0

####
## Create own window instead of using desktop?
#
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline yes # amplifies text if yes

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders no

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment top_left

####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
#
minimum_size 260 1394

####
## Maximum width of the text area.
## Syntax: maximum_width [width]
#
maximum_width 280

####
## Gap between text and screen borders.
#
gap_x 6 ## Right / Left
gap_y 6 ## Top / Bottom

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
no_buffers yes

####
## Set to yes, if you want all text to be in UPPERCASE.
#
uppercase no

####
## Number of cpu samples to average.
## Set to 1 to disable averaging.
#
cpu_avg_samples 3

####
## Number of net samples to average.
## Set to 1 to disable averaging.
#
net_avg_samples 2

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer left
Both conkys worked beautifully in Ubuntu, just acts up in Mint. They don't start from boot-up either, but will when I log out then back in. Don't understand it .

try this for both conkys:

alignment top_left

Leave one like this:

gap_x 6 ## Right / Left
gap_y 6 ## Up / Down

Change the other to:

gap_x 1000 ## Right / Left <<-- adjust as needed.
gap_y 6 ## Up / Down

You may need a sleep time in your start up, check this out: Start/Stop Conky (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_%28en%29)

Sector11
November 4th, 2012, 06:13 AM
Hello all,

After perusing google, this forum, and crunchbang among other sites, I've been unable to find a solution to getting conky to check my POP/POP3 email addresses. Is this possible, and if so does someone have a script I can copy? I have my own mail server that is part of my web domain, and would like to be able for conky to display the accounts that have messages if possible. I also have .live, .yahoo, .gmail, .hotmail, and other IMAP accounts that it would be nice to display as well. I would like to create a totally separate conky that was for email only.

I have Conky 1.9.1_pre2429 on 12.04 64bit.

Thanks,
Jed

Hi Jed, have you checked out conkyEmail? it will do everything you're talking about above. I can help you when needed.

conkyEmail (http://ubuntuforums.org/showthread.php?t=869771), it's what I use since the day it was created.

Oooooooooooooo - Conky 1.9.1_pre2429 - looks good!

Sector11
November 4th, 2012, 06:21 AM
I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.

The encryption may be the problem, my home is on it's own partition as well

The commands are easy enough:

${fs_used_perc /home}% Used of ${fs_size /home}${alignr}Free: ${fs_free /home}

Jedcurtis
November 4th, 2012, 06:49 AM
@Sector11, yes! Need all the help I can get. This week has fried my brain! Do I just call it via the conkyrc? (conkyemail) I have it installed by-the-way. Just need to know how to utilize it...

OK, hold off on your help! I just found the python script and am thinking I can solve on my own. (maybe) If not I'll PM you tomorrow sometime...

I FIGURED IT OUT!!!!!!!!!! Woot woot!!!! I'm getting there slowly but surely. Once I figured out that I already had conkyEmail installed (courtesy of conky-companions I think) the rest was fairly strait-forward!!!

Thanks

MaindotC
November 4th, 2012, 07:12 AM
I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.

Very Nice!

FrankenCub
November 4th, 2012, 07:13 AM
try this for both conkys:

alignment top_leftLeave one like this:

gap_x 6 ## Right / Left
gap_y 6 ## Up / DownChange the other to:

gap_x 1000 ## Right / Left <<-- adjust as needed.
gap_y 6 ## Up / DownYou may need a sleep time in your start up, check this out: Start/Stop Conky (http://conky.pitstop.free.fr/wiki/index.php5?title=Start/Stop_Conky_%28en%29)

For sleep, I have my start delayed by 40sec in my conky-start-delayed.sh

#!/bin/bash
sleep 40 &&
conky -c /home/brendan/.conkyrc &&
conky -c /home/brendan/.conkyrc_weather_com
#conky -c ~/.conkyrc2 &
#conky -c ~/.conkyrc3
Should that one not work ? Or just not with Mint ?

Both my conkys have 'alignment top_left'. And my weather conky has the gaps as follows...

# Gap between borders of screen and text
gap_x 310 ## Right / Left
gap_y 25 ## Up / Down
Which when it starts it starts in the correct position. Now it won't even start from terminal though for some reason, been working up till now. Wonder what I did ?! Inadvertently ?!

Initial start from terminal...
http://i306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/th_Screenshotfrom2012-11-04015228.png (http://s306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/?action=view&current=Screenshotfrom2012-11-04015228.png)

After I remove this line and save...
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
http://i306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/th_Screenshotfrom2012-11-04015329.png (http://s306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/?action=view&current=Screenshotfrom2012-11-04015329.png)

After I put that line back in and save...
http://i306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/th_Screenshotfrom2012-11-04015401.png (http://s306.photobucket.com/albums/nn244/FrankenCub/Computer%20Issues/?action=view&current=Screenshotfrom2012-11-04015401.png)

Doesn't it seem odd that saving that line out then back in will move it from one monitor to the other ? I thought maybe it was the way I had my monitors set up, but upon looking I have the left set as absolute as it should be.
I need to look at my weather conky now to see why it wont start at all :-/

FrankenCub
November 4th, 2012, 07:36 AM
Ok, it seems I now have a segmentation fault in my weather conky ](*,)

brendan@brendan-MS-7636:~$ conky -c ~/.conkyrc_weather_com
Conky: desktop window (c00021) is subwindow of root window (263)
Conky: window type - normal
Conky: drawing to created window (0x2a00001)
Conky: drawing to double buffer
Segmentation fault
I also changed my start-delay to do what your link shows

#!/bin/sh
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else

sleep 30 # sleep not required for xfce on startup - 30 or more for others
conky -c ~/.conkyrc &
sleep 30
conky -c ~/conkyrc_weather_com &


exit
fi
No dice, still not starting without going to terminal.

Geeze...good thing for the edit button lol. After about 10 minutes I tried starting the weather conky through terminal again and it started. So why did it show segmentation fault the first time ?

trellis2
November 4th, 2012, 07:56 AM
I cannot get my /home disk usage to read. My home directory is on another partition and it is enrypted.

/Home disk usage is working. Found the conky variables "fs_used" & fs_free http://conky.sourceforge.net/variables.html then edited .conkyrc by using the correct user name. {fs_used /home/USER}/${fs_size /home/USER}

encryption was not a problem nor was separate partition for Home. Thanks everybody. The Ubuntu community is the greatest.

mrpeachy
November 4th, 2012, 08:18 AM
#!/bin/sh
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else

sleep 30 # sleep not required for xfce on startup - 30 or more for others
conky -c ~/.conkyrc &
sleep 30
conky -c ~/conkyrc_weather_com &


exit
fi

i think you need an "&&" after the sleep command
dont know if that has anything to do with your problems

FrankenCub
November 4th, 2012, 08:51 AM
i think you need an "&&" after the sleep command
dont know if that has anything to do with your problems
My old start config had those, I just tried that with this new one and that didn't help either.
What exactly is a segmentation fault anyhow ? Had one then my conky started ok shortly after. Now that I restarted the fault is back. I'll try it again in 10 minutes and see if it goes away again.

mrpeachy
November 4th, 2012, 09:05 AM
My old start config had those, I just tried that with this new one and that didn't help either.
What exactly is a segmentation fault anyhow ? Had one then my conky started ok shortly after. Now that I restarted the fault is back. I'll try it again in 10 minutes and see if it goes away again.
i suggest you post the entire conky that is giving you trouble

FrankenCub
November 4th, 2012, 09:23 AM
i suggest you post the entire conky that is giving you trouble
Ok, I'll do that. The first is my weather, which is off and on throwing segmentation faults. But funny enough started by terminal just fine 5 minutes ago.


# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer left
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

## Daemonize Conky, aka 'fork to background'.
#
#background yes


# Stippled borders?
stippled_borders 3

# border margins
#border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 310 ## Right / Left
gap_y 25 ## Up / Down

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color FFA54F}Right Now ${font}${hr 2}${texeci 600 bash /home/brendan/Conky_WeatherCom/weath_com}
${font Arial:size=10}${execpi 600 sed -n '4p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}${font}

${goto 200}${color FFA54F}Temp: $color${alignr}${execpi 600 sed -n '3p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}°F (${execpi 600 sed -n '5p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}°F)${image /home/brendan/Conky_WeatherCom/now.png -p 0,30 -s 120x120}
${goto 200}${color FFA54F}Wind: $color${alignr}${execpi 600 sed -n '6p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn} ${execpi 600 sed -n '7p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}mph
${goto 200}${color FFA54F}Humidity: $color${alignr}${execpi 600 sed -n '8p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color FFA54F}Dew Point: $color${alignr}${execpi 600 sed -n '9p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}°F
${goto 200}${color FFA54F}Visibility: $color${alignr}${execpi 600 sed -n '10p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color FFA54F}Pressure: $color${alignr}${execpi 600 sed -n '11p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color FFA54F}UV Index: $color${alignr}${execpi 600 sed -n '12p' /home/brendan/Conky_WeatherCom/RightNow/raw_rn}
${font Arial:size=12}${color FFA54F}10 Days Forcast ${font}${hr 2}
${font Arial:size=11}${color FFA54F}${goto 65}${execpi 600 sed -n '1p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 175}${execpi 600 sed -n '8p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 285}${execpi 600 sed -n '15p' /home/brendan/Conky_WeatherCom/10days/raw_10}${color}${image /home/brendan/Conky_WeatherCom/10_2.png -p 20,180 -s 70x70}${image /home/brendan/Conky_WeatherCom/10_9.png -p 130,180 -s 70x70}${image /home/brendan/Conky_WeatherCom/10_16.png -p 240,180 -s 70x70}

${goto 115}${execpi 600 sed -n '3p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 225}${execpi 600 sed -n '10p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 335}${execpi 600 sed -n '17p' /home/brendan/Conky_WeatherCom/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '4p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 226}${execpi 600 sed -n '11p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 336}${execpi 600 sed -n '18p' /home/brendan/Conky_WeatherCom/10days/raw_10}

${execpi 600 sed -n '5p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${execpi 600 sed -n '12p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${execpi 600 sed -n '19p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}Precip:${color}${execpi 600 sed -n '6p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${color FFA54F}Precip:${color}${execpi 600 sed -n '13p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${color FFA54F}Precip:${color}${execpi 600 sed -n '20p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}Wind:${color}${execpi 600 sed -n '7p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${color FFA54F}Wind:${color}${execpi 600 sed -n '14p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${color FFA54F}Wind:${color}${execpi 600 sed -n '21p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}${hr 1}
${font Arial:size=11}${goto 65}${execpi 600 sed -n '22p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 175}${execpi 600 sed -n '29p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 285}${execpi 600 sed -n '36p' /home/brendan/Conky_WeatherCom/10days/raw_10}${color}${image /home/brendan/Conky_WeatherCom/10_23.png -p 20,310 -s 70x70}${image /home/brendan/Conky_WeatherCom/10_30.png -p 130,310 -s 70x70}${image /home/brendan/Conky_WeatherCom/10_37.png -p 240,310 -s 70x70}

${goto 115}${execpi 600 sed -n '24p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 225}${execpi 600 sed -n '31p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 335}${execpi 600 sed -n '38p' /home/brendan/Conky_WeatherCom/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '25p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 226}${execpi 600 sed -n '32p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 336}${execpi 600 sed -n '39p' /home/brendan/Conky_WeatherCom/10days/raw_10}

${execpi 600 sed -n '26p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${execpi 600 sed -n '33p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${execpi 600 sed -n '40p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}Precip:${color}${execpi 600 sed -n '27p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${color FFA54F}Precip:${color}${execpi 600 sed -n '34p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${color FFA54F}Precip:${color}${execpi 600 sed -n '41p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}Wind:${color}${execpi 600 sed -n '28p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${color FFA54F}Wind:${color}${execpi 600 sed -n '35p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 260}${color FFA54F}Wind:${color}${execpi 600 sed -n '42p' /home/brendan/Conky_WeatherCom/10days/raw_10}
${color FFA54F}${hr 1}
${font Arial:size=11}${goto 50}${execpi 600 sed -n '43p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 135}${execpi 600 sed -n '50p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 220}${execpi 600 sed -n '57p' /home/brendan/Conky_WeatherCom/10days/raw_10}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 305}${execpi 600 sed -n '64p' /home/brendan/Conky_WeatherCom/10days/raw_10}${endif}${color}${image /home/brendan/Conky_WeatherCom/10_44.png -p 0,450 -s 55x55}${image /home/brendan/Conky_WeatherCom/10_51.png -p 85,450 -s 55x55}${image /home/brendan/Conky_WeatherCom/10_58.png -p 170,450 -s 55x55}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${image /home/brendan/Conky_WeatherCom/10_58.png -p 255,450 -s 55x55}${endif}${font}

${goto 75}${execpi 600 sed -n '45p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 160}${execpi 600 sed -n '52p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 245}${execpi 600 sed -n '59p' /home/brendan/Conky_WeatherCom/10days/raw_10}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 330}${execpi 600 sed -n '66p' /home/brendan/Conky_WeatherCom/10days/raw_10}${endif}
${goto 76}${execpi 600 sed -n '45p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 160}${execpi 600 sed -n '53p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 245}${execpi 600 sed -n '60p' /home/brendan/Conky_WeatherCom/10days/raw_10}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 330}${execpi 600 sed -n '67p' /home/brendan/Conky_WeatherCom/10days/raw_10}${endif}

${execpi 600 sed -n '47p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c1-12}${goto 95}${execpi 600 sed -n '54p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c1-12}${goto 180}${execpi 600 sed -n '61p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c1-12}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c1-12}${endif}
${execpi 600 sed -n '47p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c13-24}${goto 95}${execpi 600 sed -n '54p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c13-24}${goto 180}${execpi 600 sed -n '61p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c13-24}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' /home/brendan/Conky_WeatherCom/10days/raw_10|cut -c13-24}${endif}
${color FFA54F}PR:${color}${execpi 600 sed -n '48p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 95}${color FFA54F}PR:${color}${execpi 600 sed -n '55p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 180}${color FFA54F}PR:${color}${execpi 600 sed -n '62p' /home/brendan/Conky_WeatherCom/10days/raw_10}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 265}${color FFA54F}PR:${color}${execpi 600 sed -n '69p' /home/brendan/Conky_WeatherCom/10days/raw_10}${endif}
${color FFA54F}W:${color}${execpi 600 sed -n '49p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 95}${color FFA54F}W:${color}${execpi 600 sed -n '56p' /home/brendan/Conky_WeatherCom/10days/raw_10}${goto 180}${color FFA54F}W:${color}${execpi 600 sed -n '63p' /home/brendan/Conky_WeatherCom/10days/raw_10}${if_existing /home/brendan/Conky_WeatherCom/10days/10days_OK}${goto 265}${color FFA54F}W:${color}${execpi 600 sed -n '70p' /home/brendan/Conky_WeatherCom/10days/raw_10}${endif}

##################################
## TIME ##
##################################
#${voffset 4}${font DroidSans:bold:size=8}${color FFA54F}${offset 8}${color FFA54F}${voffset -2}${hr 2}${font}
#${voffset -4}${font Arial:size=32}${color FFA54F}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}The second one, my hardware monitor, refuses to start in the correct location, see post a page back for more details.


##################################
## VinDSL | rev. 11-06-01 00:27 ##
##################################
## May 2011 Series ##
##################################

## ¡PLEASE READ THE FINE PRINT! ##

####
## Development Platforms (currently)
#
# Ubuntu 10.10 'Maverick Meerkat' (GNOME2)
# Ubuntu 11.10 'Oneiric Ocelot' (UNITY)
# Ubuntu 12.04 'Precise Pangolin' (UNITY)
# Linux Mint 13 'Maya' (Cinnamon)
# Screen Resolution: 1280x1024 (I-INC x2)

####
## Prerequisites (required)
#
# conky-all 1.8.0 or 1.8.1
# UTF-8 Compatible Text Editor

####
## Installed fonts (required)
#
# ConkyWeather (Stanko Metodiev)
# ConkyWindNESW (Stanko Metodiev)
# Cut Outs for 3D FX (Fonts & Things)
# Droid Font Family (Google Android SDK)
# KR A Round (Kat's Fun Fonts)
# Moon Phases (Curtis Clark)
# OpenLogos (Icoma)
# PizzaDude Bullets (Jakob Fischer)
# Radio Space (Iconian Fonts)
# StyleBats (Vinterstille)
# Ubuntu Font Family (Canonical Ltd)
# Ubuntu Title Bold (Paulo Silva)
# Weather (Jonathan Macagba)
#
## Tips from Mr. Peachy, djyoung4, and 42dorian:
## Download ALL of the necessary fonts listed above.
## Unzip fonts to your font folder. Example: /home/username/.fonts
## Run this command in a terminal (rebuilds cache): sudo fc-cache -fv

####
## Use XFT? Required to Force UTF8 (see below)
#
use_xft yes
xftfont DroidSans:size=8.75
xftalpha 0.1

####
## Force UTF8? Requires XFT (see above)
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes

####
## This buffer is used for text, single lines, output from $exec, and other variables.
## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
## Decreasing the size (too low) will truncate content and cause strange display output.
## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
#
text_buffer_size 384

####
## Daemonize Conky, aka 'fork to background'.
#
#background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0

####
## Create own window instead of using desktop?
#
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline yes # amplifies text if yes

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders no

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment top_left

####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
#
minimum_size 260 1394

####
## Maximum width of the text area.
## Syntax: maximum_width [width]
#
maximum_width 280

####
## Gap between text and screen borders.
#
gap_x 6 ## Right / Left
gap_y 6 ## Up / Down

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
no_buffers yes

####
## Set to yes, if you want all text to be in UPPERCASE.
#
uppercase no

####
## Number of cpu samples to average.
## Set to 1 to disable averaging.
#
cpu_avg_samples 3

####
## Number of net samples to average.
## Set to 1 to disable averaging.
#
net_avg_samples 2

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer left

####
## temperature_unit fahrenheit
#
temperature_unit fahrenheit

####
## My colors (suit yourself)
#
color0 White #FFFFFF
color1 Ivory #FFFFF0
color2 Ivory2 #EEEEE0
color3 Ivory3 #CDCDC1
color4 Tan1 #FFA54F
color5 Tan2 #EE9A49
color6 Gray #7E7E7E
color7 AntiqueWhite4 #8B8378
color8 DimGray #696969
color9 Black #000000

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

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

TEXT
##################################
## LOGO ##
##################################
#${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 178}${font UbuntuTitleBold:size=19.6}${color4}${offset 1}1${offset 5}2
##################################
## SYSTEM ##
##################################
${voffset 20}${font DroidSans:size=12}${color4}System${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.65}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
${voffset 1}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.65}${color3}${offset 4}${sysname}${offset 5}${kernel}${alignr}${font DroidSans:size=8.45}${machine}${font}
${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}Intel${offset 3}i3${offset 3}${offset 3}${alignr}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font}
${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.4}${uptime_short}${font}
##################################
## PROCESSORS ##
##################################
${voffset 6}${font DroidSans:size=12}${color4}Processors${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU3${offset 5}${font DroidSans:size=8.3}${cpu cpu3}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU4${offset 5}${font DroidSans:size=8.3}${cpu cpu4}%${font}
##################################
## MEMORY ##
##################################
${voffset 6}${font DroidSans:size=12}${color4}Memory${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
##################################
## HDD ##
##################################
${voffset 16}${font DroidSans:size=11}${color4}HDD${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 5}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}ROOT${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}${fs_free_perc /}%${font}
${voffset 20}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}HOME${goto 95}${font DroidSans:size=8.3}${fs_used /home}${goto 133}/${offset 5}${fs_size /home}${alignr}${fs_free_perc /home}%${font}
${voffset 20}${font StyleBats:size=9.9}${color2}4${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}SWAP${goto 95}${font DroidSans:size=8.3}${swap}${goto 133}/${offset 5}${swapmax}${alignr}${swapperc}%${font}
##################################
## HARDWARE MONITOR ##
##################################
${voffset 16}${font DroidSans:size=12}${color4}Hardware monitor${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=9.9}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Core 1${offset 3}${alignr}${font DroidSans:size=8.3}${platform f71882fg.2560 temp 1}°${font}
${voffset 4}${font StyleBats:size=9.9}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Core 2${offset 3}${alignr}${font DroidSans:size=8.3}${platform f71882fg.2560 temp 2}°${font}
${voffset 4}${font StyleBats:size=9.9}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}SYS Temp${offset 3}${alignr}${font DroidSans:size=8.3}${platform f71882fg.2560 temp 3}°${font}
${voffset 4}${font StyleBats:size=9.9}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}HDD Temp${offset 3}${alignr}${font DroidSans:size=8.3}${execpi 300 hddtemp --unit=F /dev/sda | cut -c25-28}${font}
${voffset 4}${font StyleBats:size=9.9}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Asus ENGT 240${offset 3}${alignr}${font DroidSans:size=8.3}${execi 10 nvidia-settings -q GPUCoreTemp | awk '{if (NR==2) {print ($4*9)/5+32}}'} °
##################################
## TOP PROCESSES ##
##################################
${voffset 16}${font DroidSans:size=11}${color4}TOP PROCESSES${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 1}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 2}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 3}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
${voffset 2}${if_running rhythmbox}${voffset -16}${else}${if_running banshee}${voffset -16}${else}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.5}${color3}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 4}${alignr}${top_mem mem 4} %${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.5}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${endif}${endif}${font}
##################################
## NETWORK ##
##################################
${voffset 6}${font DroidSans:size=12}${color4}Network${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Private${offset 3}IP${alignr}${font DroidSans:size=8.3}${addr eth0}${font}
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Public${offset 7}IP${alignr}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${font}
${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.5}${color3}${offset 5}Down${alignr}${font DroidSans:size=8.3}${downspeed eth0}${font}
${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.5}${color3}${offset 5}Up${alignr}${font DroidSans:size=8.3}${upspeed eth0}${font}
##################################
## TIME ##
##################################
${voffset 6}${font DroidSans:size=12}${color4}TIME${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset -4}${font RadioSpace:size=32}${color8}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}
${voffset 0}${font DroidSansFallback:bold:size=6.85}${color4}${alignc 2}Sunrise${offset 1}${execi 1800 conkyForecast -d SR}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 1800 conkyForecast -d SS}${font}
##################################
## CALENDAR ##
##################################
${voffset 4}${font DroidSans:size=12}${color4}Date${offset 8}${color4}${voffset -2}${hr 2}${font}
${voffset 16}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
${voffset -4}${if_match ${time %e}<=9}${font DroidSansFallback:bold:size=18}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${font DroidSansFallback:bold:size=18}${color5}${alignc 60}${time %e}${endif}${endif}${font}
${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
####
## Uncomment for Conky 1.8.0
#${voffset -75}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e s/^/"\$\{offset 120"\}/ -e 's/\<'"$VinDSL_Cal_8"'\>/${color4}&${color3}/'}${font}
####
## Uncomment for Conky 1.8.1 and 1.9.0
${voffset -75}${offset 120}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_8=`date +%-d`; cal -h | sed -e '1d' -e 's/\<'"$VinDSL_Cal_8"'\>/${color4}&${color3}/'}${font}
${voffset -99}${font CutOutsFor3DFX:size=67}${color4}${alignc 99}2${font}


And just so they are in the same post, this is my start script I'm now trying


#!/bin/sh
# click to start, click to stop

if pidof conky | grep [0-9] > /dev/null
then
exec killall conky
else

sleep 30 && # sleep not required for xfce on startup - 30 or more for others
conky -c ~/.conkyrc &
sleep 30 &&
conky -c ~/conkyrc_weather_com &


exit
fi
These both worked without issue every day while using Ubuntu 12.04
Now on Linux Mint 13 (Cinnamon) there are problems.

mrpeachy
November 4th, 2012, 09:55 AM
you could try replacing the settings you have now with this set of minimal settings on each conky
adjust size and gaps and see if the conkies behave



##minimal conky settings
background no
use_xft yes
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
no_buffers yes
uppercase no
cpu_avg_samples 2
update_interval 1

alignment top_right
minimum_size 600 400
maximum_width 600
gap_x 10
gap_y 0

Sector11
November 4th, 2012, 03:48 PM
OK, hold off on your help! I just found the python script and am thinking I can solve on my own. (maybe) If not I'll PM you tomorrow sometime...

I FIGURED IT OUT!!!!!!!!!! Woot woot!!!! I'm getting there slowly but surely. Once I figured out that I already had conkyEmail installed (courtesy of conky-companions I think) the rest was fairly strait-forward!!!

Thanks

Kinda figured you would. It very straight forward. and
conkyEmail -h is your friend. :D

McLovin926
November 4th, 2012, 10:48 PM
McLovin926 borrowed mine, I borrowed his, and edited it again ... NEXT!

conkyForecast is a live and well, don't let anyone tell you different

Next, hmmm, I guessthat means it's my turn, ok, once again, altered the clock, moved the wind info inside the clock, ad added the minute numbers.
Other than that, still more or less the same
http://t.imgbox.com/abrDysAr.jpg (http://imgbox.com/abrDysAr)
Here is the altered Chronograph.lua with the minutes in it,

--[[ multiple analogue clocks by mrpeachy - 18 Jun 2012
21 Jun 2012 - Chronograph modifications by Sector11
22 Jun 2012 - again with mrpeachy's help day names, numbers and month names
02 Nov 2012 - edited by McLovin to add the outside rings, and minute numbers
use in conkyrc

lua_load /path/Chronograph.lua
lua_draw_hook_pre main
TEXT


-- INDEX (use find with):

-- ###### 12 OR 24 CLOCK FACE
-- SET BORDER OPTIONS ###### ALL CLOCKS

-- ### START CLOCK A ######################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
-- CLOCK A HOUR HAND
-- CLOCK A MINUTE HAND SETUP
-- CLOCK A SECOND HAND SETUP
-- CLOCK A ###### 24 HR TIME

-- ### START DIAL B ### Top - Week Day Names Dial #########
-- ### START DIAL C ### Right - Month Names Dial ##########
-- ### START DIAL D ### Left - Day Numbers Dial ###########

-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
-- CLOCK E HOUR HAND
-- CLOCK E MINUTE HAND SETUP
-- CLOCK E SECOND HAND SETUP
-- CLOCK E ###### 12 HR TIME

NOTE: Putting ### CLOCK A ### last insures that it's functions are written
over the other dials.
]]

require 'cairo'

function conky_main()
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)
cr = cairo_create(cs)
-- ################################################## ######
-- SETTINGS AREA
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image ~/Conky/images/red_1.png -p 0,0 -s 35x35}")

-- ###### 12 OR 24 CLOCK FACE #############################
local clock_type_A=12 -- Large Main 24 HR Clock
local clock_type_E=12 -- Bottom - 12 HR Clock

-- ###### CLOCK SETTINGS ##################################
-- SET BORDER OPTIONS FOR "CLOCKS" ########################
local clock_border_width=0
-- set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1 -- full opaque white
-- gap from clock border to minute marks
local b_to_m=1

-- ################################################## ######
-- ### START DIAL B ### Top - Week Day Names Dial #########
-- DIAL POSITION FOR TEXT
local center_x=175
local center_y=95
local radius=50
-- FONT
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"SUN","MON","TUE","WED","THR","FRI","SAT",}
-- text_days={"DOM","LUN","MAR","MIE","JUE","VIE","SAB",}
for i=1,7 do
-- work out points
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=35
for i=1,7 do
local point=(math.pi/180)*((360/7)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current day of week
local hand_length=30
local day_number=tonumber(os.date("%w"))
local point=(math.pi/180)*((360/7)*(day_number))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
local hand_width=2
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END DIAL B #########################################

-- ################################################## ######
-- ### START DIAL C ### Right - Month Names Dial ##########
-- DIAL POSITION FOR TEXT
local center_x=260
local center_y=175
local radius=45
-- FONT
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"JAN","FEB","MAR","APR","MAY","JUN","JUL","AUG","SEP","OCT","NOV","DEC",}
-- text_days={"ENE","FEB","MAR","ABR","MAY","JUN","JUL","AGO","SEP","OCT","NOV","DIC",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current month
local this_month=tonumber(os.date("%m"))
local hand_length=28 --radius for this calculation
local point=(math.pi/180)*((360/12)*(this_month-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)

-- ### END CLOCK C ########################################

-- ################################################## ######
-- ### START DIAL D ### Left - Day Numbers Dial ###########
-- GET NUMBER OF DAYS IN CURRENT MONTH
-- calculate Feb, then set up table
year4num=os.date("%Y")
t1=os.time({year=year4num,month=03,day=01,hour=00, min=0,sec=0});
t2=os.time({year=year4num,month=02,day=01,hour=00, min=0,sec=0});
febdaynum=tonumber((os.difftime(t1,t2))/(24*60*60))
-- MONTH TABLE
monthdays={31,febdaynum,31,30,31,30,31,31,30,31,30 ,31}
this_month=tonumber(os.date("%m"))
number_days=monthdays[this_month]
-- TEXT positioning
local center_x=95
local center_y=175
local radius=50
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 8)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
for i=1,number_days do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=i
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=40
for i=1,number_days do
local point=(math.pi/180)*((360/number_days)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
-- DRAW HAND -- snaps to current DAY
local this_day=tonumber(os.date("%d"))
local hand_length=35--radius for this calculation
local point=(math.pi/180)*((360/number_days)*(this_day-1))
local x=0+hand_length*(math.sin(point))
local y=0-hand_length*(math.cos(point))
cairo_move_to (cr,center_x,center_y)
cairo_line_to (cr,center_x+x,center_y+y)
cairo_stroke (cr)
-- ### END CLOCK D ########################################

-- ################################################## ######
-- ### START CLOCK E ######################################
-- MARKS AROUND CLOCK E -- Bottom - 12 HR Clock
local number_marks_E=12
-- set mark length
local m_length_E=0
-- set mark width
local m_width_E=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,0,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK E HOUR HAND
-- set length of hour hand
hh_length_E=25
-- set hour hand width
hh_width_E=2
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,0,1-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK E MINUTE HAND SETUP
-- set length of minute hand
mh_length_E=35
-- set minute hand width
mh_width_E=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,0,1-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK E SECOND HAND SETUP
-- set length of seconds hand
sh_length_E=32
-- set hour hand width
sh_width_E=1
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK E ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=45
clock_centerx=175
clock_centery=260
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*m ath.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_E
-- set line cap type
cairo_set_line_cap (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_E)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR SECOND MARKS
for i=1,number_marks_E do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_E))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
--[[ TIME CALCULATIONS CLOCK E
if clock_type_E==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_E==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds and draw it
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_E))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_E)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_E)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_E
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_E)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)


-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=260
local radius=45
-- FONT
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
--text_days={"12","01","02","03","04","05","06","07","08","09","10","11",}
-- FOR A 12 HOUR CLOCK WITH THE NUMBERS 13-00
text_days={"00","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end
-- INNER POINTS POSITION, radius smaller than text circle
local radius=32
for i=1,12 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end ]]

-- ### END CLOCK E ########################################




-- ################################################## ######
-- ### START CLOCK A ######################################
-- SET MARKS ##############################################
-- MARKS AROUND CLOCK A -- Large Main 24 HR Clock
local number_marks_A=12
-- set mark length
local m_length_A=0
-- set mark width
local m_width_A=0
-- set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
-- set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1-- opaque white
-- SETUP HOUR HANDS #######################################
-- CLOCK A HOUR HAND
-- set length of hour hand
hh_length_A=130
-- set hour hand width
hh_width_A=3
-- set hour hand line cap
hh_cap=CAIRO_LINE_CAP_ROUND
-- set hour hand color
hhr,hhg,hhb,hha=1,1,1,.5-- fully opaque white
-- SETUP MINUTE HANDS #####################################
-- CLOCK A MINUTE HAND SETUP
-- set length of minute hand
mh_length_A=145
-- set minute hand width
mh_width_A=2
-- set minute hand line cap
mh_cap=CAIRO_LINE_CAP_ROUND
-- set minute hand color
mhr,mhg,mhb,mha=1,1,1,.5-- fully opaque white
-- SETUP SECOND HANDS #####################################
-- CLOCK A SECOND HAND SETUP
-- set length of seconds hand
sh_length_A=150
-- set hour hand width
sh_width_A=2
-- set hour hand line cap
sh_cap=CAIRO_LINE_CAP_ROUND
-- set seconds hand color
shr,shg,shb,sha=1,0,0,1-- fully opaque red
-- CLOCK A ###### 12 HR TIME ##############################
-- CLOCK SETTINGS
clock_radius=200
clock_centerx=175
clock_centery=175
-- DRAWING CODE
-- DRAW BORDER
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*m ath.pi)
cairo_stroke (cr)
-- DRAW MARKS
-- stuff that can be moved outside of the loop, needs only be set once
-- calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length_A
-- set line cap type
cairo_set_line_cap (cr, m_cap)
-- set line width
cairo_set_line_width (cr,m_width_A)
-- set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
-- START LOOP FOR HOUR MARKS
for i=1,number_marks_A do
-- drawing code using the value of i to calculate degrees
-- calculate start point for 12/24 hour mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
-- calculate end point for 12/24 hour mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks_A))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- draw the line
cairo_stroke (cr)
end-- of for loop
-- HOUR MARKS
-- TIME CALCULATIONS CLOCK A
if clock_type_A==12 then
hours=tonumber(os.date("%I"))
-- convert hours to seconds
h_to_s=hours*60*60
elseif clock_type_A==24 then
hours=tonumber(os.date("%H"))
-- convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
-- convert minutes to seconds
m_to_s=minutes*60
-- get current seconds
seconds=tonumber(os.date("%S"))
-- DRAW HOUR HAND
-- get hours minutes seconds as just seconds
hsecs=h_to_s+m_to_s+seconds
-- calculate degrees for each second
hsec_degs=hsecs*(360/(60*60*clock_type_A))-- use equation ~ eliminate decimals
-- set radius to calculate hand points
radius=hh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of hour hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,hh_width_A)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
-- DRAW MINUTE HAND
-- get minutes and seconds just as seconds
msecs=m_to_s+seconds
-- calculate degrees for each second
msec_degs=msecs*0.1
-- set radius to calculate hand points
radius=mh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of minute hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes and draw line
cairo_set_line_width (cr,mh_width_A)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
-- DRAW SECOND HAND
--[[
-- calculate degrees for each second
sec_degs=seconds*6
-- set radius to calculate hand points
radius=sh_length_A
-- set start line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
-- calculate coordinates for end of seconds hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
-- describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
-- set up line attributes
cairo_set_line_width (cr,sh_width_A)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)
]]
-- ################################################## ##################
-- part of a second hand

--position
local center_x=175
local center_y=175
--get seconds value
local seconds=tonumber(os.date("%S"))
--calculate rotation of second hand in degrees
local arc=(math.pi/180)*((360/60)*seconds)
--calculate point 1
local radius1=100
local x1=0+radius1*math.sin(arc)
local y1=0-radius1*math.cos(arc)
--calculate point 2
local radius2=151
local x2=0+radius2*math.sin(arc)
local y2=0-radius2*math.cos(arc)
--draw line connecting points
cairo_move_to (cr, center_x+x1,center_y+y1)
cairo_line_to (cr, center_x+x2, center_y+y2)
cairo_set_source_rgba (cr,255/255,0/255,0/255,1)
cairo_stroke (cr)
-- ################################################## ##################

-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=165
-- FONT
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size (cr, 16)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"12","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23",}
for i=1,12 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end

-- POSITION FOR TEXT HOUR NUMBERS
local center_x=175
local center_y=175
local radius=160
-- FONT
cairo_select_font_face (cr, "Santana", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);
cairo_set_font_size (cr, 12)
cairo_set_source_rgba (cr,1,1,1,1) --(cr,194/255,204/255,255/255,1) -- (cr,1,1,1,1)
-- TABLE OF TEXT -- in order
text_days={"","1","2","3","4","","6","7","8","9","","11","12","13","14","","16","17","18","19","","21","22","23","24","","26","27","28","29","","31","32","33","34","","36","37","38","39","","41","42","43","44","","46","47","48","49","","51","52","53","54","","56","57","58","59","",}
for i=1,60 do
-- OUTTER POINTS POSTION FOR TEXT
local point=(math.pi/180)*((360/60)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
-- CALCULATE CENTRE OF TEXT
local text=text_days[i]--gets text from table
local extents=cairo_text_extents_t:create()
cairo_text_extents(cr,text,extents)
local width=extents.width
local height=extents.height
cairo_move_to(cr,center_x+x-(width/2),center_y+y+(height/2))
cairo_show_text (cr, text)
cairo_stroke (cr)
end

-- INNER POINTS POSITION, radius smaller than text circle
local radius=150
for i=1,60 do
local point=(math.pi/180)*((360/60)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,1,0,2*math.pi)
cairo_stroke (cr)
end
--[[ HOUR POINTS CIRCLES, ##########Uncoment section to draw rings around numbers
local radius=162
for i=1,60 do
local point=(math.pi/180)*((360/12)*(i-1))
local x=0+radius*(math.sin(point))
local y=0-radius*(math.cos(point))
cairo_arc (cr,center_x+x,center_y+y,12,0,2*math.pi)
cairo_stroke (cr)
end]]
-- ### END CLOCK A ########################################



-- ################################################## ######
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
Ok, Sector11, your turn........... NEXT teehee
/me waits eating popcorn for the show, :popcorn:

sbjaved
November 5th, 2012, 02:03 AM
I'm trying to show smb shares stats in conky. Shares mounted through nautilus are located under ~.gvfs/ but they don't show up in conky...?


#${if_mounted /home/saad/.gvfs/share-on-server}Toshiba: ${fs_free /home/saad/.gvfs/share-on-server}/${fs_size /home/saad/.gvfs/share-on-server} ${fs_bar 6 /home/saad/.gvfs/share-on-server}${endif}

Do I have to mount them in fstab for them to show in conky?

Sector11
November 5th, 2012, 03:55 AM
I'm trying to show smb shares stats in conky. Shares mounted through nautilus are located under ~.gvfs/ but they don't show up in conky...?


#${if_mounted /home/saad/.gvfs/share-on-server}Toshiba: ${fs_free /home/saad/.gvfs/share-on-server}/${fs_size /home/saad/.gvfs/share-on-server} ${fs_bar 6 /home/saad/.gvfs/share-on-server}${endif}

Do I have to mount them in fstab for them to show in conky?

It's old but maybe still good:

HOWTO: Automatically mount and unmount shares (alternative version) (http://ubuntuforums.org/showthread.php?t=637258)
Read it all pages 3 & 4 are current.

FrankenCub
November 5th, 2012, 04:49 AM
you could try replacing the settings you have now with this set of minimal settings on each conky
adjust size and gaps and see if the conkies behave



##minimal conky settings
background no
use_xft yes
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
no_buffers yes
uppercase no
cpu_avg_samples 2
update_interval 1

alignment top_right
minimum_size 600 400
maximum_width 600
gap_x 10
gap_y 0


Tried this on both conkys and they don't act any different, although it does clean the text files up making them easier to read lol. My hardware monitor still starts up on the right monitor, although on the left of that monitor, when alignment is set to top_left. I don't understand it because the weather conky also is set alignment top_left and does start on the left monitor.
Still also not starting on their own, have to start them with terminal and I still get segmentation faults unless I wait a while before starting them.

sbjaved
November 5th, 2012, 04:50 AM
It's old but maybe still good:

HOWTO: Automatically mount and unmount shares (alternative version) (http://ubuntuforums.org/showthread.php?t=637258)
Read it all pages 3 & 4 are current.
The script was pretty old and people seemed to have issues with it in newer ubuntu releases. One of the commentators suggested 'smbnetfs'. Its a good option. Tried it. Works as advertised but transfer speeds are slow (2MBps for smbnetfs VS 6MBps for gvfs in my wifi network). So I think I'll stick to gvfs for now. gvfs shares are browesable like regular folders...conky should work with them. I'm able to run 'ls' and other commands on them.

Jedcurtis
November 5th, 2012, 06:00 AM
Some 'borrowing' of my own, cough-cough! A little bit of McLovin, a little bit of Sector11, throw in some v9000, tweak some templates, add some colours, change some fonts, (check my email) and voilà! And, @Sector11, I do like having the current condition icon, as well as the current moon phase. I just think it looks cool... I did get rid of the H/L from the time as it is showing right below in the v9000! The template is one Sector11 posted a while back, that for the life of me, I can't find. (the post that is) (if it helps, the template is called h-10d-template.lua) I assume that meant horizontal 10 day forecast! Thanks for all your hard work everyone! Cut and Paste is still alive and well!!!

ragamatrix
November 5th, 2012, 11:54 AM
Hi !
Your conky looks nice; I tried the code and take the Chronograph.lua code but i've some errors...
May be i need the red_one image file ?

conky -c /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono
Conky: /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono: 1: no such configuration: '--[['
Conky: /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono: 2: no such configuration: '21'
Conky: /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono: 3: no such configuration: '22'
Conky: /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono: 4: no such configuration: '02'
Conky: /home/climatix/développement/12-1-Sector11-1/LUA/ConkyChrono: 5: no such configuration: 'use'
Conky: desktop window (ae) is root window
Conky: drawing to desktop window
Conky: drawing to single buffer
Conky: Unable to load image '/home/climatix/Conky/images/red_1.png'

Thanks

ragamatrix
November 5th, 2012, 12:27 PM
@Sector11
Is it possible to change the language in the chronograph.lua to French?You told about English and Spanish can we chage it as we want with no modify the entire script ?
Thanks
Have a nice day

Sorry for that I've found the solution...:confused:I can't remove this post ?

ragamatrix
November 5th, 2012, 04:41 PM
@Sector 11
I'd like to have minutes around the circle to have a normal clock like "McLovin926"But I can't make it works, things probably missing...?The seconds are marked with a "point" and not a "hand"
thanks
show:http://pix.toile-libre.org/?img=1352130046.png