You are not logged in.

#876 2011-12-31 00:25:03

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

Thanks for your persistence. smile

I don't think you will find the site all that interesting unless you are into building a slot car track, & even then it is a click together not routed job anyway. wink

Found it very interesting - especially the REASON why.  big_smile  Says a lot for a man.

And don't bet money on it, you'd loose.  I saw 60 a few years back.
What version of conky are you running?

  21:01:38 ~
         $ conky -v
Conky 1.8.1 compiled Wed Sep  7 23:22:15 UTC 2011 for Linux 3.0.0-1-amd64 (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * Audacious
  * MPD
  * MOC
  * XMMS2

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * config-output
  * Imlib2
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2

  21:01:45 ~
         $ 

I'm interest in the last three lines.

"conky" is an executable program and is in your path.
nothing else needs to be in your path.

conky -c ~/path/to/a_conky/file

where "file" is a custom file created by you - OR -

conky

will run the conky default conky from:

/etc/conky/conky.conf

YUK! or if it exists:

~/.conkyrc

which a lot of distros are adding as default now.

A LUA script must be executable as well as any other type of script conky uses, be it a bash script, python or perl etc etc. None of which need to be in your path but called by pointing them out:

~/conky/lua/some_lua_script.lua
~/conky/scripts/a_bash_script.sh
etc etc...

So at this point if you do not have those ending lines for your conky version:

  Lua bindings:
   * Cairo
   * Imlib2

You need to update your conky.

If you do have those lines could you please post the conky file AND the LUA script, with paths to them, so I can see any changes you made.

ie:
/home/sector11/Conky/Forecast_v6-2.conky

the conky code

/home/sector11/Conky/LUA/forecast_6.lua

the lus script

Offline

#877 2011-12-31 00:45:00

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

Sector11 wrote:
handy wrote:

Thanks for your persistence. smile

I don't think you will find the site all that interesting unless you are into building a slot car track, & even then it is a click together not routed job anyway. wink

Found it very interesting - especially the REASON why.  big_smile  Says a lot for a man.

And don't bet money on it, you'd loose.  I saw 60 a few years back.

Thanks, & congratulations, you win. smile

Sector11 wrote:

What version of conky are you running?

Conky 1.8.2_preNONE

It is a later version, BUT it doesn't have support for Lua -> those last three lines in question are not there.

So you have nailed it Sector11. big_smile

Thanks for the path/executable stuff. I kinda knew that but was clutching at straws...

Sector11 wrote:

You need to update your conky.

If you do have those lines could you please post the conky file AND the LUA script, with paths to them, so I can see any changes you made.

It would seem that I actually have to downgrade conky. Why they upgraded it & left Lua support out is beyond me?

As far as my edits are concerned I've done very little at this stage beyond making sure the paths are correct for my system & adjusting conky font & window sizes which I've had some experience with.

I'll see what I can do about downgrading conky & get back to you with the results.

Thanks again for your time.


[edit:] Installing conky-lua from the AUR. I'll see what knew fun & games this brings me. smile

[edit2:] It works!! big_smile

Now I have to learn how to change the shape so that I can go across the screen, & then size & position all of the images correctly. Which I suspect is going to take me quite some time...

Then the weather site will change its output & we'll be reliant on Mr.P to put in all the hours to adapt to the changes & on it goes...

All good fun. lol

Last edited by handy (2011-12-31 01:01:30)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#878 2011-12-31 00:49:40

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,319

Re: conky configs and screenshots!

You could build and install this AUR package https://aur.archlinux.org/packages.php?ID=31589 to get the latest and greatest WITH lua support enabled

Edit: my post crossed your edit

Last edited by skunktrader (2011-12-31 00:50:42)

Offline

#879 2011-12-31 01:02:35

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

skunktrader wrote:

You could build and install this AUR package https://aur.archlinux.org/packages.php?ID=31589 to get the latest and greatest WITH lua support enabled

Edit: my post crossed your edit

Thanks skunktrader, I think I was doing it whilst you were typing. smile


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#880 2011-12-31 01:06:10

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

I just noticed this in the terminal:

handy ~  $  
Conky: desktop window (131) is root window
Conky: window type - normal
Conky: drawing to created window (0x1800001)
Conky: drawing to double buffer
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68044  100 68044    0     0  21291      0  0:00:03  0:00:03 --:--:-- 26757
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68044  100 68044    0     0  47215      0  0:00:01  0:00:01 --:--:-- 58658
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 68044  100 68044    0     0  57061      0  0:00:01  0:00:01 --:--:-- 74527
8
Conky: llua_do_call: function conky_draw_bg execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_draw_bg execution failed: attempt to call a nil value

-------------- < snip > these guys just keep coming ------- 

I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#881 2011-12-31 01:20:24

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

I just commented out this first line after TEXT in forecast conky:

${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}${color7}Now:${color} ${lua weather now.tmp}°  ${color7}FL:${color} ${lua weather now.flk}°

That has stopped all errors.

I guess the very different sized window I'm using may(?) be the reason for the repeated error.


The weather images are still being displayed. I take it that the draw_bg.lua that is being called is cosmetic. If so, I don't need it as I'll be happiest to use a black background in the conky display over my black desktop, with only the informational cosmetic of the weather images on top of that.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#882 2011-12-31 01:44:47

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

Now I have to learn how to change the shape so that I can go across the screen, & then size & position all of the images correctly. Which I suspect is going to take me quite some time...

Then the weather site will change its output & we'll be reliant on Mr.P to put in all the hours to adapt to the changes & on it goes...

All good fun. lol

YEA, all good fun ... and sooooo additive.
Have at it, looking forward to seeing the results.
Just shout if you have a Q to ask.

Happy New Year to you and yours!

Offline

#883 2011-12-31 01:50:02

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

I just commented out this first line after TEXT in forecast conky:

${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}${color7}Now:${color} ${lua weather now.tmp}°  ${color7}FL:${color} ${lua weather now.flk}°

That has stopped all errors.

I guess the very different sized window I'm using may(?) be the reason for the repeated error.


The weather images are still being displayed. I take it that the draw_bg.lua that is being called is cosmetic. If so, I don't need it as I'll be happiest to use a black background in the conky display over my black desktop, with only the informational cosmetic of the weather images on top of that.


Above TEXT comment out:

## lua_load ~/Conky/LUA/draw_bg.lua

and remove the first command after TEXT

TEXT
${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}${color7}
TEXT
${color7}

That should do it.

Offline

#884 2011-12-31 01:56:45

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

Is it possible to put a scroll bar on the side of the forecast conky display?

If that was possible it would make my life (& that of others) so much easier, as I would be able to scroll through future days of forecast that are listed but don't fit on the display because I've set the font too big. smile


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#885 2011-12-31 02:05:29

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

Is it possible to put a scroll bar on the side of the forecast conky display?

If that was possible it would make my life (& that of others) so much easier, as I would be able to scroll through future days of forecast that are listed but don't fit on the display because I've set the font too big. smile

That would be a question for mrpeachy.  I don't do LUA scripts.
But I will show him this post and ask.  Doesn't look like he's a member here.

EDIT: Link

Last edited by Sector11 (2011-12-31 02:15:31)

Offline

#886 2011-12-31 02:22:36

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

@Sector11: thanks for all the above.

All the best for the new year for you & yours & for the rest of humanity as well. We need all the help we can get!

I'm very interested to hear what Mr.P. has to say about scrolling the display. It is interesting to contemplate Lua being able to give conky a scrolling display. That could open up a lot of doors full of various possibilities for the creative.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#887 2011-12-31 02:36:53

mrpeachy
Member
Registered: 2011-12-31
Posts: 4

Re: conky configs and screenshots!

hi Sector11, hi handy

good to see somone brave enough to be using my lua scripts smile

@ handy
can you give me a more detailed idea of the kind of scroll you are looking for?
what would it do and what would you see on the screen?

Offline

#888 2011-12-31 02:54:11

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

mrpeachy wrote:

hi Sector11, hi handy

good to see somone brave enough to be using my lua scripts smile

@ handy
can you give me a more detailed idea of the kind of scroll you are looking for?
what would it do and what would you see on the screen?

lol

Hello mrpeachy, I just went over to the #! forum & (re)registered & made you a post of what you just did the same thing over here & asked me for. smile

Please let me know where you would prefer to follow this conversation?


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#889 2011-12-31 02:54:50

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

@ handy

Just realized that there was a newer LUA script, handy, version 7.
I believe that this one handles images the same as conky, from the top-left corner.
It also works with the other conky I gave you (it does here).

@ mrpeachy
Is that right mrpeachy, images from the top-left?

A different layout with the v7 LUA script
e15523167274389.jpg

Conky:

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

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
# # own_window_argb_visual yes
#own_window_colour black
own_window_class Forecast Conky
own_window_title Forecast by MrP

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

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

gap_x 20        ### left &right
gap_y 0        ### up & down

alignment middle_right
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
# xftfont Anonymous Pro:bold:size=9
# xftfont Unispace:size=8
# xftfont Onuava:size=8
 xftfont Inconsolata:bold:size=10
# xftfont Andale Mono:bold:size=9
# xftfont DejVu Mono:size=9


# 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 #Gainsboro
color0 DAA520 #Goldenrod  FFFFF0 #Ivory
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 10
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 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  ###########################################################
 lua_load ~/Conky/LUA/draw_bg.lua

## ${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}
#######################################################  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
top_name_width 7

lua_load ~/Conky/LUA/forecast_7.lua
lua_draw_hook_pre weatherdata #starts the lua weather data gathering function, call once at top of conkyrc


TEXT
${lua conky_draw_bg 0 0 0 0 0 0x000000 0.5}${goto 125}Current: ${lua weather now.con}${lua_parse weather image.now 10 10 80 80}
${goto 125}Now: ${lua weather now.tmp}°  FL: ${lua weather now.flk}°
${goto 125}Hum: ${lua weather now.hum}%  DP: ${lua weather now.dpt}°
${goto 125}WC: ${lua weather now.wch}° HI: ${lua weather now.hid}°
${goto 125}Ceiling: ${lua weather now.cel} Vis: ${lua weather now.vis}
${goto 125}Wind: ${lua weather now.wsp} mph @ ${lua weather now.wdg}° (${lua weather now.wdi})
${goto 125}Barometer: ${lua weather now.prs} Gusts: ${lua weather now.wgs}
${alignc}${color8}CPU: ${cpu}%${color}
${lua weather day1.day}${goto 250}${lua weather day2.day}${lua_parse weather image.day1 165 155 50 50}${lua_parse weather image.day2 405 155 50 50}
${lua weather day1.con}${goto 250}${lua weather day2.con}
H: ${lua weather day1.hih}°  L: ${lua weather day1.low}°${goto 250}H: ${lua weather day2.hih}°  L: ${lua weather day2.low}°
Rain?: ${lua weather day1.ppt}% Cloud: ${lua weather day1.cld}%${goto 250}Rain?: ${lua weather day2.ppt}% Cloud: ${lua weather day2.cld}%
UVI: ${lua weather day1.uvn} (${lua weather day1.uvt})${goto 250}UVI: ${lua weather day2.uvn} (${lua weather day2.uvt})
 Sun: ${lua weather day1.sri} ${lua weather day1.sst}${goto 250} Sun: ${lua weather day2.sri} ${lua weather day2.sst}
Moon: ${lua weather day1.mri} ${lua weather day1.mst}${goto 250}Moon: ${lua weather day2.mri} ${lua weather day2.mst}
Moon Phase: ${lua weather day1.mph}${goto 250}Moon Phase: ${lua weather day2.mph}

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

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

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

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

forecast_7.lua

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

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

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

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

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

Offline

#890 2011-12-31 03:04:47

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

Thanks Sector11, I'll get onto it & see what happens.

P.S. I'm starting to feel a bit schizo checking across two forum sites to see what the same people are saying... lol


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#891 2011-12-31 03:23:12

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

Thanks Sector11, I'll get onto it & see what happens.

P.S. I'm starting to feel a bit schizo checking across two forum sites to see what the same people are saying... lol

Well, I'll always post where the questions are.

I didn't realize you'd join #! or that mrpeachy would join ARCH.  big_smile

What's the words to that song ... Oh yea,

I'm so dizzy, my head is spinnin' ...

Offline

#892 2011-12-31 03:30:56

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

Yes it truly made me lol when I checked back here to see mrpeachy's first post here at Arch.

It can only be a good thing for him to spread more of his goodness around. smile

I have your recently supplied scripts running, to do so I have only modified the paths where necessary. I had to comment out the first line after TEXT in the conky to stop errors & the other thing is I've got no weatherimages. Perhaps I made a mistake in the path, I'll double check.

By the way, this format may solve the requirement for scrolling. I'll see what happens when I size up the fonts.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#893 2011-12-31 03:33:46

mrpeachy
Member
Registered: 2011-12-31
Posts: 4

Re: conky configs and screenshots!

switches from crunchbang to archlinux... double takes smile

yes this could get confusing

i have a thread on the crunchbang forum about my lua weather script
http://crunchbanglinux.org/forums/topic … -in-conky/
that might be the best place to continue

ill post the same on the dark side

Offline

#894 2011-12-31 03:44:09

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

mrpeachy wrote:

switches from crunchbang to archlinux... double takes smile

yes this could get confusing

i have a thread on the crunchbang forum about my lua weather script
http://crunchbanglinux.org/forums/topic … -in-conky/
that might be the best place to continue

ill post the same on the dark side


Yes, funny stuff. smile

I have made a reply in the #! thread you mentioned here.

Last edited by handy (2011-12-31 04:00:24)


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#895 2011-12-31 11:53:36

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: conky configs and screenshots!

Here is a link to a couple of somewhat blurry screenshots of where I'm up to using mrpeachy's forecast.v7 Lua script for conky in combination with my "normal" conkyrc:

http://www.users.on.net/~thehands/windowshot.html

My thanks to mrpeachy & Sector11, without their input I'd still be scratching my head.


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

#896 2011-12-31 13:29:52

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

handy wrote:

Here is a link to a couple of somewhat blurry screenshots of where I'm up to using mrpeachy's forecast.v7 Lua script for conky in combination with my "normal" conkyrc:

http://www.users.on.net/~thehands/windowshot.html

My thanks to mrpeachy & Sector11, without their input I'd still be scratching my head.

Lookin' good there handy ... glad to have helped.

Just two small things.

  1. At the end of whatever is your first line after TEXT in the weather conky, add this:

    ${lua_parse weather image.now 10 10 80 80}
    • play with the 80 80 to get the size right

  2. With conky there is no such thing as normal - Crinos512

Offline

#897 2011-12-31 14:12:36

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

By the way handy in response to: - I did not want to hijack mrpeachy's thread

handy wrote:

[edit:] Spaces will get me there, if I stay in 2 columns, moving to 3 columns looks like it would get pretty ugly in the text editor.

You can do this in conky:

TEXT
 ${voffset -3}CPU: ${color7}${if_match ${cpu cpu0} < 10}00${cpu cpu0}${color}\
${else}${color7}${if_match ${cpu cpu0} < 100}0${cpu cpu0}${color}\
${else}${color9}${cpu cpu0}${color}\
${endif}${endif}\
 Mem: ${color7}${if_match ${memperc} < 10}00${memperc}${color}\
${else}${color7}${if_match ${memperc} < 100}0${memperc}${color}\
${else}${color9}${memperc}${color}\
${endif}${endif}\
 Root: ${color7}${if_match ${fs_used_perc /} < 10}00${fs_used_perc /}${color}\
${else}${color7}${if_match ${fs_used_perc /} < 100}0${fs_used_perc /}${color}\
${else}${color9}${fs_used_perc /}${color}\
${endif}${endif}\
 Temp T1: ${color7}${hwmon 0 temp 1}°${color}\
 T2: ${color7}${hwmon 1 temp 1}°${color}\
 SDA: ${color7}${execpi 15 hddtemp -n /dev/sda1 | xargs ~/Conky/scripts/ColorTempHDD.sh}°${color}\
 GPU: ${color7}${nvidia temp}°${color}\
 ${color5}Freq:${color} GPU: ${color7}${nvidia gpufreq}${color}\
 MEM: ${color7}${nvidia memfreq}${color}\
 DN: ${downspeedgraph eth0 10,50 FFFF00 FF0000}\
 ${color7}${desktop_name}${color}\
 UP: ${upspeedgraph eth0 10,50 FF0000 FFFF00}\

That \ at the end of each line tells conky to keep what follows on the same line.

835589167343292.jpg
take a look at the results under my tint2 bar.

Simple example of what you want to do:

first line column one\
   first line column two\
   first line column three
second line column one\
   second line column two\
   second line column three
third line column one\
   third line column two\
   third line column three

One word of advice - if the conky command is capable of output of varying lengths ie: 1% - 100% it would shift everything that follows so use ${goto xx}

A working example for the weather conky

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

would become:

${lua weather day1.con}\
${goto 250}${lua weather day2.con}
H: ${lua weather day1.hih}°  L: ${lua weather day1.low}°\
${goto 250}H: ${lua weather day2.hih}°  L: ${lua weather day2.low}°
Rain?: ${lua weather day1.ppt}% Cloud: ${lua weather day1.cld}%\
${goto 250}Rain?: ${lua weather day2.ppt}% Cloud: ${lua weather day2.cld}%
UVI: ${lua weather day1.uvn} (${lua weather day1.uvt})\
${goto 250}UVI: ${lua weather day2.uvn} (${lua weather day2.uvt})
 Sun: ${lua weather day1.sri} ${lua weather day1.sst}\
${goto 250} Sun: ${lua weather day2.sri} ${lua weather day2.sst}
Moon: ${lua weather day1.mri} ${lua weather day1.mst}\
${goto 250}Moon: ${lua weather day2.mri} ${lua weather day2.mst}
Moon Phase: ${lua weather day1.mph}\
${goto 250}Moon Phase: ${lua weather day2.mph}

I know you didn't "ask", you just mentioned it in passing, but giving you the solution might help others pondering the same thing.

Knowledge is only useful if you share the wealth!
Of course you realize I have to go do that in my weather conky now don't you - it will clean it up!!!  big_smile

Last edited by Sector11 (2011-12-31 14:14:27)

Offline

#898 2011-12-31 15:00:24

ichase
Member
Registered: 2011-02-10
Posts: 113

Re: conky configs and screenshots!

Greetings all, and I wish everyone a Happy 2012.

Got a question that is not a big deal but more of a curiousity.
The below line in my conky on both the desktop and laptop used to display the File System as Ext3, Ext4 ect (Ext3 for my partitions inparticular)  Now maybe at some point during updates I noticed the other day that Ext3 has been replaced with root file system or (rootfs) for short.
Here is the line in my conky that calls for the file system:

${voffset 2}${font StyleBats:size=10}${color2}o${voffset -1}${font}${color1}${offset 5}File System${alignr}${fs_type}

I did try a google search to see if anyone else had mentioned this and I did not find anything.  Like I said, it's no big deal but just curious as to what update (maybe kernel 3.1.5-1) affected the output of this line.

Thanks and again I wish everyone a wonderful and prosperous 2012

All the best,

Ian

Offline

#899 2011-12-31 15:41:04

ratcheer
Member
Registered: 2011-10-09
Posts: 506

Re: conky configs and screenshots!

Could someone point me to a conky tutorial that actually teaches me how to do things? I have found many conky "tutorials", but sof far, they all just say, "Here. Paste this into your .conkyrc. See!" Maybe that is the best way to do it, but it is not how I learn. I need explanation.

I have tried "man conky", too, but I quickly become lost.

Thanks,
Tim

Offline

#900 2011-12-31 16:41:44

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: conky configs and screenshots!

ratcheer wrote:

Could someone point me to a conky tutorial that actually teaches me how to do things? I have found many conky "tutorials", but sof far, they all just say, "Here. Paste this into your .conkyrc. See!" Maybe that is the best way to do it, but it is not how I learn. I need explanation.

I have tried "man conky", too, but I quickly become lost.

Thanks,
Tim

Hi Tim, Happy New Year!

Conky Setup Guide - Pretty old but 99% accurate even for today.

S11

Last edited by Sector11 (2011-12-31 16:42:01)

Offline

Board footer

Powered by FluxBB