SEARCH

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

You are not logged in.

#4551 2013-01-10 10:44:14

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

Sector11 wrote:
lwfitz wrote:

^Love it Sector! Great job as always!

Thank you, yours is mighty fine as well.

And you reminded my I forgot the code, thanks for that.


Thanks buddy  smile




Heres yet another......


taDBpcQ

Offline

Help fund CrunchBang, donate to the project!

#4552 2013-01-10 15:13:33

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

chepioq wrote:

http://pix.toile-libre.org/upload/thumb/1357715386.jpg

My desktop with 4 conky:
-- one for saint of the day
-- calendar with moon phase
--one classic with informations
--one with sun set and sun rise

The weather is a kde plasmoid (not a conky)

Very nice chepioq!!!   Would that wallpaper be available publicly?  I like...


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#4553 2013-01-10 16:16:43

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

lwfitz wrote:

Heres yet another......

http://ompldr.org/taDBpcQ

Monkey see, monkey do ... is that wall available for public use?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4554 2013-01-10 16:44:32

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

jed wrote:

Very nice chepioq!!!   Would that wallpaper be available publicly?  I like...

I take it here : http://wallpapers-3d.ru/fr/preview.php?hd=16452

Offline

#4555 2013-01-10 17:36:01

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

Re: Conky v1.9 Thread

Sector11 wrote:
lwfitz wrote:

Heres yet another......

http://ompldr.org/taDBpcQ

Monkey see, monkey do ... is that wall available for public use?


Here you go buddy

taDBvbA

Offline

#4556 2013-01-10 18:16:34

fog
#! CrunchBanger
From: Athens, Greece
Registered: 2012-05-11
Posts: 179
Website

Re: Conky v1.9 Thread

Hello conkymasters

I have my panel in autohide and i was looking for a way to have my current keyboard layout set to conky.
I didn't find a "layout" variable -maybe someone will soon write the code for this- so i tried to find another solution.
I'm not a coder, only minor modifications, so i don't know if this is right or if this is the best way to do this.
I'm changing  between us and gr layouts and  i noticed that when i run this:

xset -q | grep -A 0 'LED' | cut -c63

and my keyboard is set to default layout (us) the result is 0, when is on the greek layout the result is 1.
So i end up with this code witch works for me:

${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63}==0}us ${else}gr

Maybe someone will find this useful or maybe someone knows a better way how to do it.

Thank you.

2013-01-10--13578398191366x768scrot.png

2013-01-10--13578400681366x768scrot.png


Where there's a shell, there is a way.
photos || blog || dArt

Offline

#4557 2013-01-11 09:06:34

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Hello;
A simple horizontal v9000 forecast weather:
horizontalv9000

Last edited by ragamatrix (2013-01-11 09:07:36)

Offline

#4558 2013-01-11 09:09:48

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

could you please post the code of the weather forceast (and the radar)?

Offline

#4559 2013-01-11 11:37:53

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

fog wrote:

Hello conkymasters

I have my panel in autohide and i was looking for a way to have my current keyboard layout set to conky.
I didn't find a "layout" variable -maybe someone will soon write the code for this- so i tried to find another solution.
I'm not a coder, only minor modifications, so i don't know if this is right or if this is the best way to do this.
I'm changing  between us and gr layouts and  i noticed that when i run this:

xset -q | grep -A 0 'LED' | cut -c63

and my keyboard is set to default layout (us) the result is 0, when is on the greek layout the result is 1.
So i end up with this code witch works for me:

${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63}==0}us ${else}gr

Maybe someone will find this useful or maybe someone knows a better way how to do it.

Thank you.

Not a better way just a more complete way.  Start your conky in a terminal and see if you get an error.

For every ${if_something} you need an ${endif}

${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63}==0}us ${else}gr${endif}

Excellent idea for people that don't have a panel!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4560 2013-01-11 11:58:10

fog
#! CrunchBanger
From: Athens, Greece
Registered: 2012-05-11
Posts: 179
Website

Re: Conky v1.9 Thread

Sector11 wrote:
fog wrote:

Hello conkymasters

I have my panel in autohide and i was looking for a way to have my current keyboard layout set to conky.
I didn't find a "layout" variable -maybe someone will soon write the code for this- so i tried to find another solution.
I'm not a coder, only minor modifications, so i don't know if this is right or if this is the best way to do this.
I'm changing  between us and gr layouts and  i noticed that when i run this:

xset -q | grep -A 0 'LED' | cut -c63

and my keyboard is set to default layout (us) the result is 0, when is on the greek layout the result is 1.
So i end up with this code witch works for me:

${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63}==0}us ${else}gr

Maybe someone will find this useful or maybe someone knows a better way how to do it.

Thank you.

Not a better way just a more complete way.  Start your conky in a terminal and see if you get an error.

For every ${if_something} you need an ${endif}

${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63}==0}us ${else}gr${endif}

Excellent idea for people that don't have a panel!

Thank you very much Sector11  smile

At my conky (a dzen-based conky)  the layout part is like this, with ${endif} at the end -highlighted line in the second scrot - so there isn't errors:

 ^i(/home/fog/.conky/dzicons/info_02.xbm) ^fg(\#B9783E)${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63} == 0}us^fg()${else}gr^fg()${endif} 

Thank you again smile


Where there's a shell, there is a way.
photos || blog || dArt

Offline

#4561 2013-01-11 12:52:28

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

lionhead wrote:

could you please post the code of the weather forceast (and the radar)?

Here are the scripts; but I got a little error with the radar one; the map is updated correctly and displayed on screen.
I can't find what's wrong with convert and the png error...

Horizontal forecast weather:

template_meteo_barre.lua:

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbang.org/forums/viewtopic.php?id=16100

 the file:
 http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbang.org/forums/viewtopic.php?id=17246
]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Arial Rounded MT"--font must be in quotes
default_font_size=9
default_color=0xffffff	--white
default_alpha=1		--fully opaque
default_image_width=50
default_image_height=50
-- ## New Options ###
default_face="bold"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE

--[[ forecast
datay=450  --375
datayy=15 --datay+(datayy*1)

datafx1=20

imgx=35
imgy=575
imgyy=60 -- imgy+(imgyy*1)
]]
-- forecast
datay=450
datayy=15 --datay+(datayy*1)

datafx1=20

imgx=45
imgy=575
imgyy=60 -- imgy+(imgyy*1)

ih=60
iw=60
-- ======================================================================
-- SUN & MOON RISE ------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=20,y=35,txt="Lever Soleil "})
      out({c=0x00BFFF,a=1,x=30,y=50,txt=sun_rise_24[1]})
   out({c=0xFAFAEC,a=1,x=90,y=35,txt=" Lever Lune"})
      out({c=0x00BFFF,a=1,x=100,y=50,txt=moon_rise_24[1]})
-- SUN & MOON SET -------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=20,y=65,txt="Coucher Soleil "})
      out({c=0xFF8C00,a=1,x=35,y=80,txt=sun_set_24[1]})
   out({c=0xFAFAEC,a=1,x=100,y=65,txt=" Coucher Lune"})
      out({c=0xFF8C00,a=1,x=110,y=80,txt=moon_set_24[1]})
-- ======================================================================
-- MOON PHASE - CENTRE --------------------------------------------------
   image({x=170,y=20,w=50,h=50,file=moon_icon[1]})
-- image({x=170,y=170,w=120,h=120,file="/media/5/Conky/images/red+.png"})
   --out({c=0xFFFFFF,a=1.0,x=190,y=235,txt=moon_phase[1]})

-- ======================================================================
-- CURRENT FOR TODAY - SEE TOP LEFT -------------------------------------
   image({x=230,y=15,w=60,h=60,file=now["weather_icon"]})
-- image({x=110,y=100,w=60,h=60,file="/media/5/Conky/images/red+.png"})
   out({c=0xFAFAEC,a=1,x=245,y=15,txt="T: "})
      out({c=0xFF8C00,fs=10,a=1,x=260,y=15,txt=now["temp"].."°"})
   out({c=0xC0C0C0,a=1,x=245,y=80,txt="± "})
      out({c=0xC0C0C0,fs=10,a=1,x=260,y=80,txt=now["feels_like"].."°"})

-- FORECAST TODAY - SEE TOP RIGHT ---------------------------------------
	out({c=0xFAFAEC,a=1,x=300,y=25,txt="Tendance journée:"})
   image({x=395,y=10,w=30,h=30,file=weather_icon[1]})
-- image({x=285,y=100,w=60,h=60,file="/media/5/Conky/images/red+.png"})
   out({c=0xFF8C00,fs=10,a=1,x=435,y=25,txt="↑ "})
     out({c=0xFF8C00,fs=10,a=1,x=447,y=25,txt=high_temp[1].."°"})
   out({c=0x6892C6,fs=10,a=1,x=465,y=25,txt="↓ "})
     out({c=0x6892C6,fs=10,a=1,x=477,y=25,txt=low_temp[1].."°"})

-- ======================================================================
-- WIND INFORMATION - SEE BOTTOM ----------------------------------------
   image({x=520,y=5,w=30,h=30,file=now["wind_icon"]})
-- image({x=185,y=290,w=90,h=90,file="/media/5/Conky/images/red+.png"})
   out({c=0xffffff,a=1,x=500,y=15,txt=now["wind_deg"]})
   out({c=0xffffff,a=1,x=500,y=35,txt=now["wind_nesw"]})
--   out({c=0xffffff,a=1,x=333,y=295,txt="@"})
      out({c=0xFF8C00,a=1,x=500,y=45,txt=now["wind_km"]..""})

-- ======================================================================
-- BOTTOM LEFT
-- Barometric Pressure
   out({c=0xFAFAEC,a=1,x=300,y=45,txt="Pression:"})
	out({c=0xFF8C00,a=1,x=345,y=45,txt=now["pressure_mb"].." mb"})
-- Humidity -------------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=300,y=55,txt="Humidité:"})
      out({c=0xC0C0C0,a=1,x=350,y=55,txt=now["humidity"].."%"})
-- Dew Point ------------------------------------------------------------
   --out({c=0xFAFAEC,a=1,x=90,y=520,txt="DP:"})
      --out({c=0xC0C0C0,a=1,x=135,y=520,txt=now["dew_point"].."°"})
-- ======================================================================
-- BOTTOM RIGHT
-- Ceiling
   out({c=0xFAFAEC,a=1,x=300,y=65,txt="Plafond:"})
     out({c=0x227992,a=1,x=350,y=65,txt=now["ceiling"]})
-- Chance of Rain -------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=300,y=75,txt="Prob Préc:"})
      out({c=0xC0C0C0,a=1,x=355,y=75,txt=precipitation[1].."%"})
-- Cloud Cover
   out({c=0xFAFAEC,a=1,x=300,y=85,txt="Couv Nuages:"})
      out({c=0xC0C0C0,a=1,x=370,y=85,txt=cloud_cover[1].."%"})
-- ======================================================================
-- BOTTOM CENTRE
-- UV -------------------------------------------------------------------
   out({c=0xFAFAEC,a=1,x=170,y=84,txt="UV :"})
     out({c=0xC0C0C0,a=1,x=190,y=84,txt=uv_index_num[1]})
       out({c=0xC0C0C0,a=1,x=205,y=84,txt=uv_index_txt[1]})

-- ======================================================================
-- FORECAST FOR NEXT 3 HOURS --------------------------------------------
  --image({x=450,y=50,w=240,h=2,file="/home/climatix/.conky/conky37/red_1.png"})
out({c=0xFAFAEC,a=1,f="Arial",fs=10,x=415,y=55,txt="prochaines heures"})
 --out({c=0x227992,a=1,f="Arial",fs=16,x=400,y=30,txt="Hours"})
-- 1st hour
out({c=0xFF9600,x=410,y=65,txt=now["fc_hour1_time_24"]..":00"})
  image({w=30,h=30,x=410,y=65,file=now["fc_hour1_wicon"]})
 --image({w=60,h=60,x=20,y=475,file="/media/5/Conky/images/red+.png"})
out({c=0xAFAFAF,x=445,y=80,txt=now["fc_hour1_temp"] .."°"})
-- 2nd hour
--out({c=0xFF9600,x=212,y=470,txt=now["fc_hour2_time_24"]..":00"})
  --image({w=60,h=60,x=200,y=475,file=now["fc_hour2_wicon"]})
-- image({w=60,h=60,x=200,y=475,file="/media/5/Conky/images/red+.png"})
--out({c=0xAFAFAF,x=221,y=550,txt=now["fc_hour2_temp"] .."°"})
-- 3rd hour
out({c=0xFF9600,x=480,y=65,txt=now["fc_hour3_time_24"]..":00"})
  image({w=30,h=30,x=480,y=65,file=now["fc_hour3_wicon"]})
-- image({w=60,h=60,x=380,y=475,file="/media/5/Conky/images/red+.png"})
out({c=0xAFAFAF,x=515,y=80,txt=now["fc_hour3_temp"] .."°"})

-- ======================================================================
-- FORECAST for the next 9 days
-- Forecast day 2 -- x = l|r  y = u|d
out({c=0x9ACD32,a=1,x=573,y=20,txt=forecast_day_short[2]})
 out({c=0x9ACD32,a=1,x=595,y=20,txt=forecast_date[2]})
  --out({c=0x9ACD32,a=1,x=610,y=18,txt=forecast_month_short[2]})
image({w=40,h=40,x=570,y=25,file=weather_icon[2]})
-- image({w=iw,h=ih,x=imgx*0.6,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=615,y=35,txt=high_temp[2].."°"})
out({c=0x00BFFF,a=1,x=615,y=55,txt=low_temp[2].."°"})
 out({c=0x00BFFF,a=1,x=573,y=73,txt=sun_rise_24[2]})
 out({c=0xFF8C00,a=1,x=573,y=83,txt=sun_set_24[2]})
 -- out({c=0xC0C0C0,a=1,x=datafx1*4.6,y=datay+(datayy*11.5),txt=moon_rise_24[2]})
  --out({c=0xC0C0C0,a=1,x=datafx1*4.6,y=datay+(datayy*12.5),txt=moon_set_24[2]})
-- Forecast day 3 -- x = l|r  y = u|d
out({c=0x9ACD32,a=1,x=660,y=20,txt=forecast_day_short[3]})
 out({c=0x9ACD32,a=1,x=685,y=20,txt=forecast_date[3]})
  --out({c=0x9ACD32,a=1,x=datafx1*12.2,y=datay+(datayy*8),txt=forecast_month_short[3]})
image({w=40,h=40,x=655,y=25,file=weather_icon[3]})
-- image({w=iw,h=ih,x=imgx*4.15,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=700,y=35,txt=high_temp[3].."°"})
out({c=0x00BFFF,a=1,x=700,y=55,txt=low_temp[3].."°"})
 out({c=0x00BFFF,a=1,x=658,y=73,txt=sun_rise_24[3]})
 out({c=0xFF8C00,a=1,x=658,y=83,txt=sun_set_24[3]})
  --out({c=0xC0C0C0,a=1,x=datafx1*12.6,y=datay+(datayy*11.5),txt=moon_rise_24[3]})
  --out({c=0xC0C0C0,a=1,x=datafx1*12.6,y=datay+(datayy*12.5),txt=moon_set_24[3]})
-- Forecast day 4 -- x = l|r  y = u|d
out({c=0x9ACD32,a=1,x=747,y=20,txt=forecast_day_short[4]})
 out({c=0x9ACD32,a=1,x=772,y=20,txt=forecast_date[4]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=740,y=25,file=weather_icon[4]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=785,y=35,txt=high_temp[4].."°"})
out({c=0x00BFFF,a=1,x=785,y=55,txt=low_temp[4].."°"})
 out({c=0x00BFFF,a=1,x=743,y=73,txt=sun_rise_24[4]})
 out({c=0xFF8C00,a=1,x=743,y=83,txt=sun_set_24[4]})
  --out({c=0xC0C0C0,a=1,x=datafx1*20.3,y=datay+(datayy*11.5),txt=moon_rise_24[4]})
  --out({c=0xC0C0C0,a=1,x=datafx1*20.3,y=datay+(datayy*12.5),txt=moon_set_24[4]})
-- ======================================================================
-- Forecast day 5 -- x = l|r  y = u|d
  out({c=0x9ACD32,a=1,x=832,y=20,txt=forecast_day_short[5]})
 out({c=0x9ACD32,a=1,x=857,y=20,txt=forecast_date[5]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=825,y=25,file=weather_icon[5]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=867,y=35,txt=high_temp[5].."°"})
out({c=0x00BFFF,a=1,x=867,y=55,txt=low_temp[5].."°"})
 out({c=0x00BFFF,a=1,x=830,y=73,txt=sun_rise_24[5]})
 out({c=0xFF8C00,a=1,x=830,y=83,txt=sun_set_24[5]})
-- Forecast day 6 -- x = l|r  y = u|d
 out({c=0x9ACD32,a=1,x=917,y=20,txt=forecast_day_short[6]})
 out({c=0x9ACD32,a=1,x=942,y=20,txt=forecast_date[6]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=910,y=25,file=weather_icon[6]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=952,y=35,txt=high_temp[6].."°"})
out({c=0x00BFFF,a=1,x=952,y=55,txt=low_temp[6].."°"})
 out({c=0x00BFFF,a=1,x=917,y=73,txt=sun_rise_24[6]})
 out({c=0xFF8C00,a=1,x=917,y=83,txt=sun_set_24[6]})
-- Forecast day 7 -- x = l|r  y = u|d
 out({c=0x9ACD32,a=1,x=1002,y=20,txt=forecast_day_short[7]})
 out({c=0x9ACD32,a=1,x=1027,y=20,txt=forecast_date[7]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=995,y=25,file=weather_icon[7]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=1037,y=35,txt=high_temp[7].."°"})
out({c=0x00BFFF,a=1,x=1037,y=55,txt=low_temp[7].."°"})
 out({c=0x00BFFF,a=1,x=1002,y=73,txt=sun_rise_24[7]})
 out({c=0xFF8C00,a=1,x=1002,y=83,txt=sun_set_24[7]})
-- ======================================================================
-- Forecast day 8 -- x = l|r  y = u|d
    out({c=0x9ACD32,a=1,x=1087,y=20,txt=forecast_day_short[8]})
 out({c=0x9ACD32,a=1,x=1112,y=20,txt=forecast_date[8]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=1080,y=25,file=weather_icon[8]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=1122,y=35,txt=high_temp[8].."°"})
out({c=0x00BFFF,a=1,x=1122,y=55,txt=low_temp[8].."°"})
 out({c=0x00BFFF,a=1,x=1087,y=73,txt=sun_rise_24[8]})
 out({c=0xFF8C00,a=1,x=1087,y=83,txt=sun_set_24[8]})
-- Forecast day 9 -- x = l|r  y = u|d
    out({c=0x9ACD32,a=1,x=1172,y=20,txt=forecast_day_short[9]})
 out({c=0x9ACD32,a=1,x=1197,y=20,txt=forecast_date[9]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=1165,y=25,file=weather_icon[9]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=1207,y=35,txt=high_temp[9].."°"})
out({c=0x00BFFF,a=1,x=1207,y=55,txt=low_temp[9].."°"})
 out({c=0x00BFFF,a=1,x=1172,y=73,txt=sun_rise_24[9]})
 out({c=0xFF8C00,a=1,x=1172,y=83,txt=sun_set_24[9]})
-- Forecast day 10 -- x = l|r  y = u|d
   out({c=0x9ACD32,a=1,x=1257,y=20,txt=forecast_day_short[10]})
 out({c=0x9ACD32,a=1,x=1282,y=20,txt=forecast_date[10]})
  --out({c=0x9ACD32,a=1,x=datafx1*19.8,y=datay+(datayy*8),txt=forecast_month_short[4]})
image({w=40,h=40,x=1250,y=25,file=weather_icon[10]})
-- image({w=iw,h=ih,x=imgx*7.52,y=imgy,file="/media/5/Conky/images/red+.png"})
out({c=0xFF8C00,a=1,x=1292,y=35,txt=high_temp[10].."°"})
out({c=0x00BFFF,a=1,x=1292,y=55,txt=low_temp[10].."°"})
 out({c=0x00BFFF,a=1,x=1257,y=73,txt=sun_rise_24[10]})
 out({c=0xFF8C00,a=1,x=1257,y=83,txt=sun_set_24[10]})--]]

--#######################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################

conkybarre_v9000:

# -- Paramètres Conky Météo -- #
# Text alignment, other possible values are commented
alignment tl
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# -- Conky settings -- #
	background yes
	update_interval 1
	cpu_avg_samples 2
	net_avg_samples 2
	override_utf8_locale yes
	double_buffer yes
	no_buffers yes
	text_buffer_size 2048
	imlib_cache_size 0
	# -- Window specifications -- #
	own_window yes
	own_window_type override
	own_window_transparent yes
	own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
	show_graph_range no
	show_graph_scale no
	short_units yes
	own_window_class Conky
	border_inner_margin 0
	border_outer_margin 0
# -- Graphics settings -- #
	draw_shades no
	draw_outline no
	draw_borders no
	draw_graph_borders yes
# -- Couleurs -- #
default_color 645D5D
#color1 3B6702
#color2 645D5D
    color0 Cornsilk1#FFD700#GOLD#3b6702 # vert
    color1 black
    color2 white
    color3 EFEFEF # argile
    color4 LightGoldenrod3#vert_spring#645d5d # gris foncé
    color5 7FDD4C # vert clair
    color6 CC0000 # rouge
    color7 884DA7 # mauve
    color8 6892C6 # bleu ciel 2                                      
    color9 443AFF # bleu marine
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 150
gap_y 55
# Minimum size of text area
minimum_size 1900 87  #Taille minimum (px) ; largeur / hauteur
maximum_width 1900  #Largeur maximum (px)
#out_to_console no
# Force UTF8? note that UTF8 support required XFT
#override_utf8_locale yes
# Stippled borders?
#stippled_borders 0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
# set to yes if you want all text to be in uppercase
uppercase no
# Add spaces to keep things from moving about?  This only affects certain objects.
#use_spacer no
# -- Text settings -- #
# Use Xft?
use_xft yes
xftalpha 0.8 #0.4
xftfont DejaVu:style=Bold:size=6 #Helvetica LT Std:size=10 #MaiandraGD:size=10##DejaVu:style=Bold:size=6

# -- Lua load -- #
lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load ~/développement/revolutionary_clocks/template_meteo_barre.lua
lua_load ~/développement/revolutionary_clocks/draw_bg.lua
##############################################
#  Output#couleur bordeau EE0000
##############################################

TEXT

${goto 30}${font White Rabbit:style=bold:size=11}${color orange} Horgen
##### Heure #####
${voffset -17}${font Digitalk:size=75}${color DeepSkyBlue}${goto 1340}${time %H}:${goto 1480}${time %M}${font Digitalk:size=25}${color DodgerBlue3}${goto 1565} :${time %S}
${lua conky_draw_bg 15 10 5 540 87 0x000000 0.5}
${lua conky_draw_bg 15 560 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 645 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 730 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 815 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 900 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 985 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 1070 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 1155 5 75 87 0x000000 0.5}
${lua conky_draw_bg 15 1240 5 75 87 0x000000 0.5}
#${lua conky_draw_bg 15 870 5 300 87 0x000000 0.5}
#${lua conky_draw_bg 15 1180 5 300 87 0x000000 0.5}
${lua conky_draw_bg 15 1325 5 320 87 0x000000 0.5}
${voffset -500}

and the conky for the radar sat :
ConkyCentre:

# -- Paramètres Conky Météo -- #
# Text alignment, other possible values are commented
alignment mr
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# -- Conky settings -- #
	background yes
	update_interval 1
	cpu_avg_samples 2
	net_avg_samples 2
	override_utf8_locale yes
	double_buffer yes
	no_buffers yes
	text_buffer_size 2048
	imlib_cache_size 0
	# -- Window specifications -- #
	own_window yes
	own_window_type override
	own_window_transparent yes
	own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
	show_graph_range no
	show_graph_scale no
	short_units yes
	own_window_class Conky
	border_inner_margin 0
	border_outer_margin 0
# -- Graphics settings -- #
	draw_shades no
	draw_outline no
	draw_borders no
	draw_graph_borders yes
# -- Couleurs -- #
default_color 645D5D
#color1 3B6702
#color2 645D5D
    color0 Cornsilk1#FFD700#GOLD#3b6702 # vert
    color1 black
    color2 white
    color3 EFEFEF # argile
    color4 LightGoldenrod3#vert_spring#645d5d # gris foncé
    color5 7FDD4C # vert clair
    color6 CC0000 # rouge
    color7 884DA7 # mauve
    color8 6892C6 # bleu ciel 2                                      
    color9 443AFF # bleu marine
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 15
gap_y 0
# Minimum size of text area
minimum_size 305 305  #Taille minimum (px) ; largeur / hauteur
maximum_width 305  #Largeur maximum (px)
#out_to_console no
# Force UTF8? note that UTF8 support required XFT
#override_utf8_locale yes
# Stippled borders?
#stippled_borders 0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
# set to yes if you want all text to be in uppercase
uppercase no
# Add spaces to keep things from moving about?  This only affects certain objects.
#use_spacer no
# -- Text settings -- #
# Use Xft?
use_xft yes
xftalpha 0.8 #0.4
xftfont caviar dreams:style=Bold:size=9 #Helvetica LT Std:size=10 #MaiandraGD:size=10

TEXT

##RADAR_EUROPE
${execi 1200 /home/climatix/.conky/script/script_test_convert.sh}
${image /tmp/imagesat-couvnuage.png -p 0,0 -s 300x300 -f 60}

The bash script:
script_test_convert.sh:

#!/bin/bash

# Crée par JPDipsy 
# script de recupération imagesat couverture nuageuse http://www.sat24.com
# et mise en forme polaroïd imagemagick et pagecurl  doivent être installés
# ce script et le script pagecurl doivent être dans le même rep.
#----------------------------------------------------------------------------------
path=`dirname $0`
heuremodif=`date +%H`; minmodif=`date +%M`
# ce que vous voulez
fonte=White-Rabbit-Regular
nomimage=imagesat-couvnuage
tailleimage=60 # ceci est en pourcentage
tailledecoupe=400x400
rotation=0
libelle="Radar pluie infra rouge : "

wget -q -O  /tmp/$nomimage.gif "http://www.meteo-mc.fr/dedie/Images/sat/satireu1.gif"

function mise_en_forme_image {
convert  /tmp/$nomimage.png -background gray60 -bordercolor gray60  -border 2%  -gravity South -splice 0x22 -density 150 \
-font $fonte  -pointsize 8 -annotate 0x10-3+8 "$libelle $heuremodif h $minmodif"   /tmp/$nomimage.png
#creation coin et masque à l'aide du script pagecurl

#composition image finale
convert /tmp/$nomimage.png -background  none -alpha set -gravity SouthEast -define compose:outside-overlay=false \
-compose DstIn -composite -resize $tailleimage%  -virtual-pixel background  \
+distort ScaleRotateTranslate $rotation +repage /tmp/$nomimage.png
#rm /tmp/pagecurl_overlay.png ; rm /tmp/pagecurl_mask.png
##aqua effect
convert /tmp/$nomimage.png -alpha off -fill white -colorize 100% \
     -draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
     \( +clone -flip \) -compose Multiply -composite \
     \( +clone -flop \) -compose Multiply -composite \
     -background gray60 -alpha Shape    /tmp/thumbnail_mask.png
###aqua effect2
convert /tmp/thumbnail_mask.png -bordercolor None -border 1x1 \
          -alpha Extract -blur 0x10  -shade 130x30 -alpha On \
          -background gray60 -alpha background -auto-level \
          -function polynomial  3.5,-5.05,2.05,0.3 \
          \( +clone -alpha extract  -blur 0x2 \) \
          -channel RGB -compose multiply -composite \
          +channel +compose -chop 1x1 \
          /tmp/thumbnail_lighting.png
##final
convert /tmp/$nomimage.png -alpha Set /tmp/thumbnail_lighting.png \
          \( -clone 0,1 -alpha Opaque -compose Hardlight -composite \) \
          -delete 0 -compose In -composite \
          /tmp/imagesat-couvnuage.png
	
}

function ombre {
convert   /tmp/$nomimage.png  -background  red  \( +clone -shadow 60x4+2+2 \) +swap -background  none   -flatten /tmp/$nomimage.png	
}	

if [[ -e /tmp/$nomimage.gif ]] ; then
	# decoupage de la partie utile
	convert /tmp/$nomimage.gif -filter Lanczos -crop  $tailledecoupe+140+110\! /tmp/$nomimage.png
	mise_en_forme_image ; ombre ; rm /tmp/$nomimage.gif
else
	# comme ça votre conky aura toujours une image au cas ou 
	convert -size $tailledecoupe plasma:  /tmp/$nomimage.png
	libelle="Désolé pas d'image radar à "
	mise_en_forme_image ; ombre
fi

Last edited by ragamatrix (2013-01-11 12:55:01)

Offline

#4562 2013-01-11 13:18:36

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

currently i'm using the script that draws isometric bars (mady by mrpeachy). i modified the script a bit. it's now easier to change the color:

-- #########################################################
-- ## isometric bars by mrpeachy ###########################
-- ## modified by lionhead #################################
-- #########################################################

require 'cairo'

function bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face,alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

--line 1 settings end  
local a_num1=tonumber(conkyobject)
--local a_num=(height/100)*a_num1
local a_num=(height/100)*a_num1

local function convert(c,a)
return ( (c/0x10000) % 0x100)/255,( (c/0x100) % 0x100)/255,(c % 0x100)/255,a
end--local function

if framelines == 1 then
cairo_set_source_rgba (cr,convert(color_line,alpha_line));
cairo_set_line_width (cr, linethick)
cairo_translate (cr, bar_across, bar_down)
cairo_move_to (cr, width*0.5, -width*0.5)
cairo_rel_line_to (cr, 0, -height)
cairo_stroke (cr)
cairo_translate (cr, -bar_across, -bar_down)
end

--line 1 indicator front face
cairo_translate (cr, bar_across, bar_down)
cairo_move_to (cr, 0, 0);
cairo_rectangle (cr, 0, 0, width, -a_num);
cairo_set_source_rgba (cr,convert(color_face,alpha_face));
cairo_fill (cr)
cairo_translate (cr, -bar_across, -bar_down)
--line 1 indicator side face
cairo_translate (cr, bar_across, bar_down)
cairo_move_to (cr, 0, (linethick*0.1));
cairo_rel_line_to (cr, 0, -a_num)
cairo_rel_line_to (cr, -1*(width*0.5), -1*(width*0.5))
cairo_rel_line_to (cr, 0, a_num)
cairo_rel_line_to (cr, (width*0.5), (width*0.5))
cairo_close_path (cr)
cairo_set_source_rgba (cr,convert(color_face,alpha_face));
cairo_fill (cr)
cairo_translate (cr, -bar_across, -bar_down)

--line 1 indicator top face
cairo_translate (cr, bar_across, bar_down)
cairo_move_to (cr, 0, -a_num);
cairo_rel_line_to (cr, width, 0)
cairo_rel_line_to (cr, -1*(width*0.5), -1*(width*0.5))
cairo_rel_line_to (cr, -width, 0)
cairo_rel_line_to (cr, (width*0.5), (width*0.5))
cairo_close_path (cr)
cairo_set_source_rgba (cr,convert(color_face,alpha_face));
cairo_fill (cr)
cairo_translate (cr, -bar_across, -bar_down)

--line 1 indicator lines
cairo_set_line_width (cr, linethick);
cairo_translate (cr, bar_across, bar_down)
cairo_set_source_rgba (cr,convert(color_line,alpha_line));
--vertical, middle
cairo_move_to (cr, 0, 1*(linethick*0.5));
cairo_rel_line_to (cr, 0, -a_num-(linethick*0.5))
cairo_stroke (cr)
--vertical right
cairo_move_to (cr, width, 1*(linethick*0.5));
cairo_rel_line_to (cr, 0, -a_num-(linethick*0.5))
cairo_stroke (cr)
--left line
cairo_move_to (cr, -1*(width*0.5), (-1*(width*0.5))+(linethick));
cairo_rel_line_to (cr, 0, -a_num)
cairo_stroke (cr)
--bottom line
cairo_move_to (cr, -1*(linethick*0.5), (linethick*0.5))
cairo_rel_line_to (cr, width+linethick, 0)
cairo_stroke (cr)
--top of indicator
cairo_move_to (cr, 0, -a_num+(linethick*0.5))
cairo_rel_line_to (cr, width, 0)
cairo_stroke (cr)
--bottom diagonal
cairo_move_to (cr, -1*(linethick*0.15), (linethick*0.65))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
--topline
cairo_move_to (cr, (-1*(width*0.5))-(linethick*0.5), ((-1*(width*0.5))-a_num)+(linethick*0.5))
cairo_rel_line_to (cr, width+linethick, 0)
cairo_stroke (cr)
--top left diagonal
cairo_move_to (cr, 0, -a_num+(linethick*0.5))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
--top right diagonal
cairo_move_to (cr, width+(linethick*0.15), -a_num+(linethick*0.35))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
cairo_translate (cr, -bar_across, -bar_down)

-- txt 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,convert(color_txt,alpha_txt));
cairo_translate (cr, txt_across,txt_down)
cairo_move_to (cr, 0,0)
cairo_show_text (cr,title)
-- end txt title

--------------------------------------

--[[ 

-- absolute position below title (no framelines)
cairo_set_source_rgba (cr,convert(color_value,alpha_value));
cairo_move_to (cr, value_across,value_down)
cairo_show_text (cr,conkyobject..'%')

]]--

-- relative position above bar (no framelines)
ypos=(-a_num+(linethick*0.5))-40

cairo_set_source_rgba (cr,convert(color_value,alpha_value));
cairo_move_to (cr, value_across,ypos)
cairo_show_text (cr,conkyobject..'%')


--------------------------------------
cairo_translate (cr, -txt_across, -txt_down)

if framelines == 1 then
--frame lines
cairo_set_line_width (cr, linethick);
cairo_translate (cr, bar_across, bar_down)
cairo_set_source_rgba (cr,convert(color_line,alpha_line));
--vertical, middle
cairo_move_to (cr, 0, 1*(linethick*0.5));
cairo_rel_line_to (cr, 0, -height-(linethick*0.5))
cairo_stroke (cr)
--vertical right
cairo_move_to (cr, width, 1*(linethick*0.5));
cairo_rel_line_to (cr, 0, -height-(linethick*0.5))
cairo_stroke (cr)
--left line
cairo_move_to (cr, -1*(width*0.5), (-1*(width*0.5))+(linethick));
cairo_rel_line_to (cr, 0, -height)
cairo_stroke (cr)
--bottom line
cairo_move_to (cr, -1*(linethick*0.5), (linethick*0.5))
cairo_rel_line_to (cr, width+linethick, 0)
cairo_stroke (cr)
--top of indicator
cairo_move_to (cr, 0, -height+(linethick*0.5))
cairo_rel_line_to (cr, width, 0)
cairo_stroke (cr)
--bottom diagonal
cairo_move_to (cr, -1*(linethick*0.15), (linethick*0.65))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
--topline
cairo_move_to (cr, (-1*(width*0.5))-(linethick*0.5), ((-1*(width*0.5))-height)+(linethick*0.5))
cairo_rel_line_to (cr, width+linethick, 0)
cairo_stroke (cr)
--top left diagonal
cairo_move_to (cr, 0, -height+(linethick*0.5))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
--top right diagonal
cairo_move_to (cr, width+(linethick*0.15), -height+(linethick*0.35))
cairo_rel_line_to (cr, (-1*(width*0.5)), (-1*(width*0.5)))
cairo_stroke (cr)
cairo_translate (cr, -bar_across, -bar_down)
end
end



function conky_draw_shape ()

local schriftart="PF Tempesta Seven" -- font
local updates=conky_parse('${updates}')

local bar_vertical=410
local txt_vertical=430

update_num=tonumber(updates)

if update_num > 5 then
if conky_window==nil then return end
local w=tonumber(conky_window.width)
local h=tonumber(conky_window.height)
local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
cr=cairo_create(cs)

-- ##############################################
-- ### Prozessor (CPU #1) #######################
-- ##############################################

conkyobject=conky_parse('${cpu}')

title="cpu1"
font=schriftart
fontsize=8

framelines=0 -- no frameline=0, frameline=1
linethick=0.5 -- thick of the line

width=20 -- width of the bar
height=80 -- height of the bar

-- color frameline
color_line=0xE7E2E2
alpha_line=0.3

-- color bar
color_face=0xffff00
alpha_face=0.6

-- color txt title
color_txt=0xA45F2D
alpha_txt=1

-- color txt value
color_value=0xF6DE83
alpha_value=1

bar_across=60 -- position bar horizontal
bar_down=bar_vertical -- position bar vertical

txt_across=50-- position title horizontal
txt_down=txt_vertical -- position title vertical

value_across=0 -- position txt value horizontal
value_down=15 -- position txt value vertical

-- call of the function
bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face, alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

-- ##############################################
-- ### Prozessor (CPU #2) #######################
-- ##############################################

conkyobject=conky_parse('${cpu cpu1}')

title="cpu2"
font=schriftart
fontsize=8

framelines=0 -- no frameline=0, frameline=1
linethick=0.5 -- thick of the line

width=20 -- width of the bar
height=80 -- height of the bar

-- color frameline
color_line=0xE7E2E2
alpha_line=0.3

-- color bar
color_face=0xffff00
alpha_face=0.6

-- color txt title
color_txt=0xA45F2D
alpha_txt=1

-- color txt value
color_value=0xF6DE83
alpha_value=1

bar_across=100
bar_down=bar_vertical

txt_across=95
txt_down=txt_vertical

value_across=0
value_down=15
-- call of the function
bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face, alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

-- ##############################################
-- ### Arbeitsspeicher (RAM) ####################
-- ##############################################

conkyobject=conky_parse('${memperc}')

title="ram"
font=schriftart
fontsize=8

framelines=0 -- no frameline=0, frameline=1
linethick=0.5 -- thick of the line

width=20 -- width of the bar
height=80 -- height of the bar

-- color frameline
color_line=0xE7E2E2
alpha_line=0.3

-- color bar
color_face=0xffff00
alpha_face=0.6

-- color txt title
color_txt=0xA45F2D
alpha_txt=1

-- color txt value
color_value=0xF6DE83
alpha_value=1

bar_across=140
bar_down=bar_vertical

txt_across=140
txt_down=txt_vertical

value_across=-5
value_down=15

-- call of the function
bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face, alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

-- ##############################################
-- ### Prozessor (CPU #2) #######################
-- ##############################################

conkyobject=conky_parse('${cpu cpu1}')

title="cpu2"
font=schriftart
fontsize=8

framelines=0 -- no frameline=0, frameline=1
linethick=0.5 -- thick of the line

width=20 -- width of the bar
height=80 -- height of the bar

-- color frameline
color_line=0xE7E2E2
alpha_line=0.3

-- color bar
color_face=0xffff00
alpha_face=0.6

-- color txt title
color_txt=0xA45F2D
alpha_txt=1

-- color txt value
color_value=0xF6DE83
alpha_value=1

bar_across=100
bar_down=bar_vertical

txt_across=95
txt_down=txt_vertical

value_across=0
value_down=15
-- call of the function
bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face, alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

-- ##############################################
-- ### Arbeitsspeicher (RAM) ####################
-- ##############################################

conkyobject=conky_parse('${fs_used_perc /home/alexander}')

title="home"
font=schriftart
fontsize=8

framelines=0 -- no frameline=0, frameline=1
linethick=0.5 -- thick of the line

width=20 -- width of the bar
height=80 -- height of the bar

-- color frameline
color_line=0xE7E2E2
alpha_line=0.3

-- color bar
color_face=0xffff00
alpha_face=0.6

-- color txt title
color_txt=0xA45F2D
alpha_txt=1

-- color txt value
color_value=0xF6DE83
alpha_value=1

bar_across=180
bar_down=bar_vertical

txt_across=175
txt_down=txt_vertical

value_across=1 -- position txt value horizontal
value_down=15 -- position txt value vertical

-- call of the function
bar3d(conkyobject, linethick, width, height,color_line,alpha_line, color_face, alpha_face, bar_across, bar_down, title, framelines, font, fontsize, txt_across, txt_down,color_txt,alpha_txt,color_value,alpha_value,value_across,value_down,value_pos)

end
end

i'm overthinking if i should modify the script further! i really think that title is automatically centered below the bar. what do u think?

Offline

#4563 2013-01-11 14:26:41

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

fog wrote:
Sector11 wrote:

Excellent idea for people that don't have a panel!

Thank you very much Sector11  smile

At my conky (a dzen-based conky)  the layout part is like this, with ${endif} at the end -highlighted line in the second scrot - so there isn't errors:

 ^i(/home/fog/.conky/dzicons/info_02.xbm) ^fg(\#B9783E)${if_match ${execi 2 xset -q | grep -A 0 'LED' | cut -c63} == 0}us^fg()${else}gr^fg()${endif} 

Thank you again smile

Oh, you didn't show the compete code.
I still think it's an excellent idea for people with no panel.

It also shows that with a bit of thought/imagination and an ${if_something} statement conky can compare and show just about anything.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4564 2013-01-11 14:27:48

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

Hello;
A simple horizontal v9000 forecast weather:
horizontalv9000

Very VERY nice indeed!   Well done!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4565 2013-01-11 14:41:36

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Sector11 wrote:
ragamatrix wrote:

Hello;
A simple horizontal v9000 forecast weather:
horizontalv9000

Very VERY nice indeed!   Well done!

Thanks ! may be the v9000 is very usefull because of the changes of the accuweather "datas" website, the Meteo-Lua script from Didier-T doesn't work correctly anymore....Sad news 8.(

Offline

#4566 2013-01-11 17:03:18

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

here is my current screenshot: http://i.imgbox.com/acbJs6tQ.png

during the next days i will add another update to the script 'isometric bars'. the text below the bar is always centered:)

Offline

#4567 2013-01-11 20:52:52

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

Same Conky, new wallie, got a great moon shot!!!

screenshot-01112013-033225pm.png


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#4568 2013-01-11 22:21:25

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

jed wrote:

Same Conky, new wallie, got a great moon shot!!!

Which only goes to prove there is intelligent life on the moon!  Nice Jed.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4569 2013-01-11 22:35:14

jed
#! CrunchBanger
From: Detachment 7
Registered: 2012-08-28
Posts: 200
Website

Re: Conky v1.9 Thread

Sector11 wrote:
jed wrote:

Same Conky, new wallie, got a great moon shot!!!

Which only goes to prove there is intelligent life on the moon!  Nice Jed.

Thank-you very much Mr. Sector11!!!  Quiet day eh?


Proud user of VSDIO: Jedi!  You can download it from here...  I'm on  the web at NixNut.com!

Offline

#4570 2013-01-11 22:50:40

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

Thanks ! may be the v9000 is very usefull because of the changes of the accuweather "datas" website, the Meteo-Lua script from Didier-T doesn't work correctly anymore....Sad news 8.(

Well, there are Teo's scripts and the v9000 scripts.

I don't have a screen as wide as your so I had a shot at redoing your v9000 conky to fit my 1280 screen.  I added a white circle where the moon is.  it's a new moon today so the spot is empty.

Under construction:
ackVRjM9.jpg

And the finished work:
ragamatrix_2.jpg

I also put all the controls back in place so changing one number changes a whole "group" ----

The conkys above use:

-- horizontal calc added to each days "X" values
dataxp=85 -- ???+(dataxp*1)

change that one number:

-- horizontal calc added to each days "X" values
dataxp=75 -- ???+(dataxp*1)

and things move closer:
abekV4e6.jpg

Unfortunately it's not as easy with the draw-bg.lua script.  I also dropped the ${voffset -500} line from the conky by putting all the lua calls on one line. The ending \ is what does that.

The conky:

# killall conky && conky -c /media/5/conky/conkybarre_v9000 &
# by ragamatrix - Jan 2013
# -- Paramètres Conky Météo -- #
# Text alignment, other possible values are commented
alignment tl
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# -- Conky settings -- #
	background yes
	update_interval 1
	cpu_avg_samples 2
	net_avg_samples 2
	override_utf8_locale yes
	double_buffer yes
	no_buffers yes
	text_buffer_size 265 #2048
	imlib_cache_size 0
	# -- Window specifications -- #
	own_window yes
	own_window_type override
	own_window_transparent yes
	own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
	show_graph_range no
	show_graph_scale no
	short_units yes
	own_window_class Conky
	border_inner_margin 0
	border_outer_margin 0
# -- Graphics settings -- #
	draw_shades no
	draw_outline no
	draw_borders no
	draw_graph_borders yes
# -- Colours -- #
default_color 00BFFF #  0 191 255	DeepSkyBlue
color0 FFDEAD #255 222 173	NavajoWhite
color1 7FFF00 #127 255   0	Chartreuse
color2 778899 #119 136 153	LightSlateGray
color3 FF8C00 #255 140   0	DarkOrange
color4 B0E0E6 #Powder Blue #F0FFFF #240 255 255	Azure
color5 FFDEAD #255 222 173	NavajoWhite
color6 7B68EE #123 104 238	MediumSlateBlue
color7 00FFFF #  0 255 255	Cyan
color8 FFFF00 #255 255   0	Yellow
color9 FF0000 #255   0   0	Red
# Gap between borders of screen and text
# same thing as passing -x at command line

gap_x 5	# left-right
gap_y 5	# up-down
# Minimum size of text area

minimum_size 1900 86  #Taille minimum (px) ; largeur / hauteur
maximum_width 1900  #Largeur maximum (px)
#out_to_console no
# Force UTF8? note that UTF8 support required XFT
#override_utf8_locale yes
# Stippled borders?
#stippled_borders 0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
# set to yes if you want all text to be in uppercase
uppercase no

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right #left right none

# -- Text settings -- #
# Use Xft?
use_xft yes
xftalpha 1.0 
#xftfont DejaVu:style=Bold:size=6
xftfont Monofur:bold:size=12

# -- Lua load -- #
lua_load ~/v9000/v9000.lua
lua_draw_hook_pre weather
lua_load /media/5/conky/LUA/template_meteo_barre.lua
lua_load /media/5/Conky/LUA/draw-bg.lua
##############################################

TEXT
${lua conky_draw_bg 15 0 0 480 87 0x000000 0.5}\
${lua conky_draw_bg 15 482 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 567 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 652 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 737 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 822 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 907 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 992 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 1076 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 15 1160 0 75 87 0x000000 0.5}\
${lua conky_draw_bg 30 105 5 60 60 0xffffff 0.2}

and the LUA script (with the 85 back in place), imagine my surprise when I saw it - one of mine modified.  big_smile

--[[
 The latest script is a lua only weather script. aka: v9000
 http://crunchbang.org/forums/viewtopic.php?id=16100

 the file:
 http://dl.dropbox.com/u/19008369/weatheragain9000.lua.tar.gz

 mrppeachys LUA Tutorial
 http://crunchbang.org/forums/viewtopic.php?id=17246
]]
_G.weather_script = function()--#### DO NOT EDIT THIS LINE ##############
--these tables hold the coordinates for each repeat do not edit #########
top_left_x_coordinate={}--###############################################
top_left_y_coordinate={}--###############################################
--#######################################################################
--SET DEFAULTS ##########################################################
--set defaults do not localise these defaults if you use a seperate display script
default_font="Monofur"--font must be in quotes
default_font_size=12
default_color=0xB0E0E6	--Powder Blue
default_alpha=1		--fully opaque
default_image_width=40
default_image_height=40
-- ## New Options ###
default_face="bold"
-- "normal" for normal/normal
-- "bold" for normal/bold
-- "italic" for italic/normal
-- "bolditalic" for italic/bold
--END OF DEFAULTS #######################################################
--START OF WEATHER CODE -- START OF WEATHER CODE -- START OF WEATHER CODE

-- ======================================================================
-- SUN & MOON RISE ------------------------------------------------------
   out({fs=15,x=10,y=14,txt="Sun"})
     out({fs=15,x=50,y=14,txt="|"})
     out({fs=15,x=60,y=14,txt="Moon"})
   out({c=0xF0FFFF,x=10,y=30,txt="Rise "})
     out({c=0xF0FFFF,fs=15,x=50,y=30,txt="|"})
      out({c=0xFFFF00,x=10,y=45,txt=sun_rise_24[1]})
   out({c=0xF0FFFF,x=60,y=30,txt="Rise"})
     out({c=0xFFFF00,fs=15,x=50,y=45,txt="|"})
      out({c=0xFFFF00,x=60,y=45,txt=moon_rise_24[1]})
-- SUN & MOON SET -------------------------------------------------------
   out({c=0xF0FFFF,x=10,y=65,txt="Set"})
     out({c=0xF0FFFF,fs=15,x=50,y=65,txt="|"})
      out({x=10,y=80,txt=sun_set_24[1]})
   out({c=0xF0FFFF,x=60,y=65,txt="Set"})
     out({fs=15,x=50,y=80,txt="|"})
      out({x=60,y=80,txt=moon_set_24[1]})
-- ======================================================================
-- MOON PHASE - CENTRE --------------------------------------------------
   image({x=105,y=05,w=60,h=60,file=moon_icon[1]})
--   image({x=105,y=05,w=60,h=60,file="/media/5/Conky/images/red+x.png"})
   --out({c=0xF0FFFF.0,x=190,y=235,txt=moon_phase[1]})
-- ======================================================================
-- CURRENT FOR TODAY - SEE TOP LEFT -------------------------------------
   image({x=170,y=05,w=60,h=60,file=now["weather_icon"]})
--   image({x=170,y=05,w=60,h=60,file="/media/5/Conky/images/red+x.png"})
   out({x=170,y=70,txt="T"})
      out({c=0xFF8C00,x=180,y=70,txt=now["temp"]})
   out({x=205,y=70,txt="±"})
      out({c=0xF0FFFF,x=215,y=70,txt=now["feels_like"]})
-- ======================================================================
-- FORECAST FOR TODAY ---------------------------------------------------
	out({fs=15,x=240,y=14,txt="Forecast"})
   image({x=300,y=20,w=50,h=50,file=weather_icon[1]})
--   image({x=300,y=20,w=50,h=50,file="/media/5/Conky/images/red+x.png"})
-- out({c=0xF0FFFF,x=300,y=23,txt="↑ "})
     out({c=0xFF8C00,fs=14,x=300,y=23,txt=high_temp[1]})
-- out({c=0xF0FFFF,x=330,y=23,txt="↓ "})
     out({c=0x00BFFF,fs=14,x=330,y=23,txt=low_temp[1]})
-- Humidity -------------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=30,txt="Hum"})
      out({x=270,y=30,txt=now["humidity"].."%"})
-- Dew Point ------------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=42,txt="DP"})
      out({x=270,y=42,txt=now["dew_point"].."°"})
-- Chance of Rain -------------------------------------------------------
   out({c=0xF0FFFF,x=240,y=54,txt="CR?"})
      out({x=270,y=54,txt=precipitation[1].."%"})
-- Cloud Cover
   out({c=0xF0FFFF,x=240,y=66,txt="CC"})
      out({x=270,y=66,txt=cloud_cover[1].."%"})
-- Ceiling
--   out({c=0xF0FFFF,x=240,y=65,txt="Ceil"})
--     out({x=270,y=65,txt=now["ceiling"]})
-- BOTTOM
-- UV -------------------------------------------------------------------
   out({c=0xF0FFFF,x=100,y=82,txt="UVI"})
     out({x=130,y=82,txt=uv_index_num[1]})
       out({x=155,y=82,txt=uv_index_txt[1]})
-- Barometric Pressure --------------------------------------------------
   out({c=0xF0FFFF,x=220,y=82,txt="BarP"})
	out({x=260,y=82,txt=now["pressure_mb"].." mb"})
-- ======================================================================
-- FORECAST FOR NEXT 3 HOURS --------------------------------------------
-- 1st hour
  image({w=30,h=30,x=360,y=10,file=now["fc_hour1_wicon"]})
--  image({w=30,h=30,x=360,y=10,file="/media/5/Conky/images/red+x.png"})
  out({x=360,y=12,txt=now["fc_hour1_time_24"]..":00"})
  out({c=0xF0FFFF,x=365,y=45,txt=now["fc_hour1_temp"]})
-- 2nd hour
  image({w=30,h=30,x=400,y=10,file=now["fc_hour2_wicon"]})
--  image({w=30,h=30,x=400,y=10,file="/media/5/Conky/images/red+x.png"})
  out({x=400,y=12,txt=now["fc_hour2_time_24"]..":00"})
  out({c=0xF0FFFF,x=405,y=45,txt=now["fc_hour3_temp"]})
-- 3rd hour
  image({w=30,h=30,x=440,y=10,file=now["fc_hour3_wicon"]})
--  image({w=30,h=30,x=440,y=10,file="/media/5/Conky/images/red+x.png"})
out({x=440,y=12,txt=now["fc_hour3_time_24"]..":00"})
out({c=0xF0FFFF,x=445,y=45,txt=now["fc_hour3_temp"]})
-- ======================================================================
-- WIND INFORMATION for today--------------------------------------------
   image({w=30,h=30,x=360,y=50,file=now["wind_icon"]})
-- image({w=30,h=30,x=360,y=50,file="/media/5/Conky/images/red+x.png"})
   out({fs=14,x=400,y=61,txt=now["wind_deg"]})
   out({fs=14,x=442,y=62,txt=now["wind_nesw"]})
--   out({x=333,y=265,txt="@"})
      out({fs=14,x=400,y=76,txt=now["wind_km"]})

---------------------------------------------- END FORECAST FOR TODAY ---
-- ======================================================================

-- forecast calculations
-- horizontal text calcs
dataxm=497
dataxn=527
dataxd=510
dataxt=535
dataxrs=503
-- vertical text calcs
dataymd=13
datayn=25
datayh=35
datayl=60
datayr=73
datays=83
-- image calcs
imx=490
imy=25
-- horizontal calc added to each days "X" values
dataxp=85 -- ???+(dataxp*1)

-- FORECAST for the next 9 days

-- Forecast day 2 -- x = l|r  y = u|d
out({x=dataxm,y=dataymd,txt=forecast_month_short[2]})
 out({x=dataxn,y=dataymd,txt=forecast_date[2]})
  out({x=dataxd,y=datayn,txt=forecast_day_short[2]})
 image({x=imx,y=imy,file=weather_icon[2]})
-- image({x=imx,y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt,y=datayh,txt=high_temp[2]})
out({c=0x00BFFF,x=dataxt,y=datayl,txt=low_temp[2]})
 out({c=0xFFFF00,x=dataxrs,y=datayr,txt=sun_rise_24[2]})
 out({x=dataxrs,y=datays,txt=sun_set_24[2]})

-- Forecast day 3 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*1),y=dataymd,txt=forecast_month_short[3]})
 out({x=dataxn+(dataxp*1),y=dataymd,txt=forecast_date[3]})
  out({x=dataxd+(dataxp+1),y=datayn,txt=forecast_day_short[3]})
 image({x=imx+(dataxp*1),y=imy,file=weather_icon[3]})
-- image({x=imx+(dataxp*1),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*1),y=datayh,txt=high_temp[3]})
out({c=0x00BFFF,x=dataxt+(dataxp*1),y=datayl,txt=low_temp[3]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*1),y=datayr,txt=sun_rise_24[3]})
 out({x=dataxrs+(dataxp*1),y=datays,txt=sun_set_24[3]})

-- Forecast day 4 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*2),y=dataymd,txt=forecast_month_short[4]})
 out({x=dataxn+(dataxp*2),y=dataymd,txt=forecast_date[4]})
  out({x=dataxd+(dataxp*2),y=datayn,txt=forecast_day_short[4]})
 image({x=imx+(dataxp*2),y=imy,file=weather_icon[4]})
-- image({x=imx+(dataxp*2),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*2),y=datayh,txt=high_temp[4]})
out({c=0x00BFFF,x=dataxt+(dataxp*2),y=datayl,txt=low_temp[4]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*2),y=datayr,txt=sun_rise_24[4]})
 out({x=dataxrs+(dataxp*2),y=datays,txt=sun_set_24[4]})

-- Forecast day 5 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*3),y=dataymd,txt=forecast_month_short[5]})
 out({x=dataxn+(dataxp*3),y=dataymd,txt=forecast_date[5]})
  out({x=dataxd+(dataxp*3),y=datayn,txt=forecast_day_short[5]})
 image({x=imx+(dataxp*3),y=imy,file=weather_icon[5]})
-- image({x=imx+(dataxp*3),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*3),y=datayh,txt=high_temp[5]})
out({c=0x00BFFF,x=dataxt+(dataxp*3),y=datayl,txt=low_temp[5]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*3),y=datayr,txt=sun_rise_24[5]})
 out({x=dataxrs+(dataxp*3),y=datays,txt=sun_set_24[5]})

-- Forecast day 6 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*4),y=dataymd,txt=forecast_month_short[6]})
 out({x=dataxn+(dataxp*4),y=dataymd,txt=forecast_date[6]})
  out({x=dataxd+(dataxp*4),y=datayn,txt=forecast_day_short[6]})
 image({x=imx+(dataxp*4),y=imy,file=weather_icon[6]})
-- image({x=imx+(dataxp*4),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*4),y=datayh,txt=high_temp[6]})
out({c=0x00BFFF,x=dataxt+(dataxp*4),y=datayl,txt=low_temp[6]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*4),y=datayr,txt=sun_rise_24[6]})
 out({x=dataxrs+(dataxp*4),y=datays,txt=sun_set_24[6]})

-- Forecast day 7 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*5),y=dataymd,txt=forecast_month_short[7]})
 out({x=dataxn+(dataxp*5),y=dataymd,txt=forecast_date[7]})
  out({x=dataxd+(dataxp*5),y=datayn,txt=forecast_day_short[7]})
 image({x=imx+(dataxp*5),y=imy,file=weather_icon[7]})
-- image({x=imx+(dataxp*5),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*5),y=datayh,txt=high_temp[7]})
out({c=0x00BFFF,x=dataxt+(dataxp*5),y=datayl,txt=low_temp[7]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*5),y=datayr,txt=sun_rise_24[7]})
 out({x=dataxrs+(dataxp*5),y=datays,txt=sun_set_24[7]})

-- Forecast day 8 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*6),y=dataymd,txt=forecast_month_short[8]})
 out({x=dataxn+(dataxp*6),y=dataymd,txt=forecast_date[8]})
  out({x=dataxd+(dataxp*6),y=datayn,txt=forecast_day_short[8]})
 image({x=imx+(dataxp*6),y=imy,file=weather_icon[8]})
-- image({x=imx+(dataxp*6),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*6),y=datayh,txt=high_temp[8]})
out({c=0x00BFFF,x=dataxt+(dataxp*6),y=datayl,txt=low_temp[8]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*6),y=datayr,txt=sun_rise_24[8]})
 out({x=dataxrs+(dataxp*6),y=datays,txt=sun_set_24[8]})

-- Forecast day 9 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*7),y=dataymd,txt=forecast_month_short[9]})
 out({x=dataxn+(dataxp*7),y=dataymd,txt=forecast_date[9]})
  out({x=dataxd+(dataxp*7),y=datayn,txt=forecast_day_short[9]})
 image({x=imx+(dataxp*7),y=imy,file=weather_icon[9]})
-- image({x=imx+(dataxp*7),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*7),y=datayh,txt=high_temp[9]})
out({c=0x00BFFF,x=dataxt+(dataxp*7),y=datayl,txt=low_temp[9]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*7),y=datayr,txt=sun_rise_24[9]})
 out({x=dataxrs+(dataxp*7),y=datays,txt=sun_set_24[9]})

-- Forecast day 10 -- x = l|r  y = u|d
out({x=dataxm+(dataxp*8),y=dataymd,txt=forecast_month_short[10]})
 out({x=dataxn+(dataxp*8),y=dataymd,txt=forecast_date[10]})
  out({x=dataxd+(dataxp*8),y=datayn,txt=forecast_day_short[10]})
 image({x=imx+(dataxp*8),y=imy,file=weather_icon[10]})
-- image({x=imx+(dataxp*8),y=imy,file="/media/5/Conky/images/red+x.png"})
out({c=0xFF8C00,x=dataxt+(dataxp*8),y=datayh,txt=high_temp[10]})
out({c=0x00BFFF,x=dataxt+(dataxp*8),y=datayl,txt=low_temp[10]})
 out({c=0xFFFF00,x=dataxrs+(dataxp*8),y=datayr,txt=sun_rise_24[10]})
 out({x=dataxrs+(dataxp*8),y=datays,txt=sun_set_24[10]})

--]]
--#######################################################################
--END OF WEATHER CODE ----END OF WEATHER CODE ----END OF WEATHER CODE ---
--#######################################################################
end--of weather_display function do not edit this line ##################
--#######################################################################

Last edited by Sector11 (2014-04-07 22:12:08)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#4571 2013-01-12 13:06:41

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

this is the content of the sh-file:

#!/bin/bash
wget  -q -O  /tmp/vlt.gif "http://www.eso.org/public/webcams/vlt.jpg"
convert /tmp/vlt.gif /tmp/vlt.jpg

although the 'original-webcam-image' reloads my conky still displays the old image.

and this is my conky-config:

#-----Conky settings
background no
no_buffers yes
#	out_to_console yes
top_cpu_separate no
#	cpu_avg_samples 10
#	net_avg_samples 10
#	max_port_monitor_connections 10
update_interval 1
total_run_times 0

#-----Text setings
use_xft yes
xftfont Mono:bold:size=10
xftalpha 0.8
#	uppercase no
override_utf8_locale yes
#	format_human_readable no
#	short_units
#	max_user_text 64
#	text_buffer_size 1024

#-----Window settings
own_window yes
own_window_type desktop
#	own_window_argb_visual no
#	own_window_argb_value 0
own_window_transparent yes
own_window_colour green
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_class Conky
own_window_title Conky

#----Layout settings
minimum_size 200 200
maximum_width 750

alignment br
use_spacer right

gap_x 20
gap_y 20

#-----Graphics settings
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
#	border_inner_margin 16
border_width 1
double_buffer yes
#	max_specials 64
#	imlib_cache_size 0

#-----Color settings
default_color white
default_shade_color black
default_outline_color black

TEXT
${execi 60 /home/alexander/v9000/vlt.sh}
${image /tmp/vlt.jpg -p 0,0 -s 200x200}

the image within the temp-folder is uptodate but not within conky!

whats wrong here? please help me to fix this problem.

Last edited by lionhead (2013-01-12 13:09:03)

Offline

#4572 2013-01-12 15:45:10

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

Either set "imlib_cache_size" to 0 (but that will result in reloading image from /tmp every second) or set cache refresh to same interval as wget execi (it would be a better idea to run it through ${texeci} - threaded execi):

${image /tmp/vlt.jpg -p 0,0 -s 200x200 -f 60}

Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#4573 2013-01-12 16:00:40

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

thank you, that was the solution of my problem. smile thanks a lot

it seems that the image was in cache (for hours)!

Offline

#4574 2013-01-12 16:05:58

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

well... that's what's cache for.


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

Be excellent to each other!

#4575 2013-01-12 16:37:21

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

dk75 wrote:

well... that's what's cache for.

here a screenshot: http://i.imgbox.com/aclz0fVE.png

yes, i know. it's really interessting that there is so much difference when u change a little setting sad

btw: the webcam shows the vlt (very large telescope) in paranal/argentinia.

Last edited by lionhead (2013-01-12 16:55:58)

Offline

Board footer

Powered by FluxBB

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

Debian Logo