Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: CONKY  (Přečteno 474167 krát)

jamaica

  • Návštěvník
  • Příspěvků: 64
    • http://www.jptuning.net
Re: CONKY
« Odpověď #225 kdy: 10 Června 2008, 12:41:22 »
Dava - Tvoje conky se mi vubec nepodařilo rozběhnout.Teda líp řečeno conky jelo ale nenačítalo mi žádné informace z HDD a z počasí. Tohle je na mě asi moc vysoká liga. :-\
« Poslední změna: 10 Června 2008, 12:43:07 od jamaica »
Bůh odpouští, JÁ NE!!!

Dava

  • Aktivní člen
  • *
  • Příspěvků: 121
    • http://www.pohori.cz
Re: CONKY
« Odpověď #226 kdy: 10 Června 2008, 16:59:58 »
jamaica:  Ale blbooost! Zadna vysoka liga.  ;) Kdyz jsem to zvladnul ja, tak to dokazes take... Info z HDD se ti nenacitalo, protoze mas jinou konfiguraci PC - presneji jine diskove oddily. Ja tam mam odkaz i na druhy disk na kterem me bezi XP a ktery pouzivam i jako odkladiste dat. Pocasi by ale jet melo, protoze to maji vsichni vicemene stejne.

jamaica

  • Návštěvník
  • Příspěvků: 64
    • http://www.jptuning.net
Re: CONKY
« Odpověď #227 kdy: 10 Června 2008, 19:35:58 »
Tak to vložení toho kódu pomohlo.Už se vše zobrazuje ok.
Bůh odpouští, JÁ NE!!!

jamaica

  • Návštěvník
  • Příspěvků: 64
    • http://www.jptuning.net
Re: CONKY
« Odpověď #228 kdy: 10 Června 2008, 21:28:13 »
Mam ale ještě jeden problém.Conky se nespouštěj automaticky po startu.Přidal sem do sezení ten soubor ve kterém je nastavené to opoždění spuštění conky.Je to správně? Nastavil sem čas 45 a stejně se nespouští.
Bůh odpouští, JÁ NE!!!

Jari

  • Aktivní člen
  • *
  • Příspěvků: 348
  • skill: newbie
    • ...pro radost :)
Re: CONKY
« Odpověď #229 kdy: 10 Června 2008, 21:34:11 »
Mam ale ještě jeden problém.Conky se nespouštěj automaticky po startu.Přidal sem do sezení ten soubor ve kterém je nastavené to opoždění spuštění conky.Je to správně? Nastavil sem čas 45 a stejně se nespouští.

Dal jsi mu ve Vlastnostech/Oprávnění/Povolit spuštění souboru jako programu ?
Ubuntu HH na Acer TravelMate 4102WLMi (bez Windows || nefunguje infrared, ale ani jsem se o to nepokoušel, jinak v cajku)
Ubuntu LL na Dell  LATITUDE | D 510 (bez Windows || vše funguje rovnou)
 malý blog pro radost :)

jamaica

  • Návštěvník
  • Příspěvků: 64
    • http://www.jptuning.net
Re: CONKY
« Odpověď #230 kdy: 10 Června 2008, 21:43:16 »
No samozřejmě že nedal :-[ :o Omlouvám se za blbost a zbytečný dotaz.
Bůh odpouští, JÁ NE!!!

Pampuch

  • Návštěvník
  • Příspěvků: 3
Re: CONKY
« Odpověď #231 kdy: 16 Června 2008, 20:39:51 »
Tak já sem přidávám svoje conky.. Mám tam jen to co je pro mě důležité :)
Jsou tu 2 důležitý fonty - StyleBats a PizzaDude Bullets pak ještě jeden xspiralmental (to kolečko u verze jádra :) )

Screenshot:

.conkyrc:
Kód: [Vybrat]
use_xft yes
xftfont verdana:size=10
alignment middle_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_shade_color grey
default_outline_color white
default_color white
use_spacer no
no_buffers yes
uppercase no


TEXT
   ${font PizzaDude Bullets:size=16}v${font}   Up. ${upspeed eth0} Kb/s
   ${font PizzaDude Bullets:size=16}r${font}   Dow. ${downspeed eth0} Kb/s

   ${font PizzaDude Bullets:size=16}M${font}   Upload. ${totalup eth0}
   ${font PizzaDude Bullets:size=16}S${font}   Download. ${totaldown eth0}
   
   ${font StyleBats:size=18}A${font}   CPU:  ${cpu}%
   ${font PizzaDude Bullets:size=16}J${font}   $mem / $memmax

   ${font StyleBats:size=18}P${font}   Work:  ${uptime_short}
   ${font StyleBats:size=18}4${font}   ${time %A %d %B}

   ${font xspiralmental:size=17}E${font}   ${kernel}

   ${font PizzaDude Bullets:size=16}g${font}   Linux: ${fs_free /} free
          Windows: ${fs_free /mnt/Windows} free
          Data: ${fs_free /mnt/Data} free

njoy!

mk33

  • Aktivní člen
  • *
  • Příspěvků: 300
Re: CONKY
« Odpověď #232 kdy: 17 Června 2008, 11:36:31 »
Při nainstalování 8.04 jsem narazil na problém s conky při měření teplot a otáček. starý konfigurák
Kód: [Vybrat]
${color black}${color black}Teplota ${hr 1}$color
${color black} CPU: ${alignr}${color black}${font}${acpitemp}°C${color}
${color black} MB : ${alignr}${color black}${i2c 9191-0290 temp 1} °C
${color black} HDD: ${alignr}${execi 30 hddtemp -n /dev/sda} °C
${color black}${color black}Větráky ${hr 1}$color
${color black} CPU: ${color black}${alignr}${i2c 9191-0290 fan 1} RPM
${color black} fan1: ${color black}${alignr}${i2c 9191-0290 fan 2} RPM
${color black} fan2: ${color black}${alignr}${i2c 9191-0290 fan 3} RPM

nejde použít i když sensors chodí jak má.

Kód: [Vybrat]
mk@mk-desktop:/sys/bus$ sensors
it8712-isa-0290
Adapter: ISA adapter
VCore 1:     +1.46 V  (min =  +0.00 V, max =  +4.08 V)
VCore 2:     +1.46 V  (min =  +0.00 V, max =  +4.08 V)
+3.3V:       +3.36 V  (min =  +0.00 V, max =  +4.08 V)
+5V:         +5.08 V  (min =  +0.00 V, max =  +6.85 V)
+12V:       +12.22 V  (min =  +0.00 V, max = +16.32 V)
-12V:       -19.14 V  (min = -27.36 V, max =  +3.93 V)
-5V:         +3.54 V  (min = -13.64 V, max =  +4.03 V)
Stdby:       +5.03 V  (min =  +0.00 V, max =  +6.85 V)
VBat:        +3.36 V
fan1:        912 RPM  (min =    0 RPM, div = 8)
fan2:       1328 RPM  (min =    0 RPM, div = 8)
fan3:       1350 RPM  (min =    0 RPM, div = 8)
M/B Temp:    +36.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = transistor
CPU Temp:    +37.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = transistor
Temp3:       -55.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor = transistor
cpu0_vid:   +1.525 V

Nemá někdo stejný problém??? zkoušel jsem zaměnit i2c 9191-0290 fan 1 za it8712-isa-0290 fan 1 ale nic.
začínám tak trpělivost a pevné nervy :-) since  21. Listopad 2006
-------------------------------------------------------------------------
|Aopen MX4SGI-4DN2|P4 2,8GHz HT|2x512MB RAM|ATI 9550|Linux Mint 9 Isadora|  |Asus P4B533|P4 1,8GHz|3x256 MB RAM|ATI 7500|Ubuntu 7.04|  |IBM Thinkpad T40p|Ubuntu 9.04|  |Lenovo Thinkpad T61|Linux Mint 9 Isadora|Lenovo Thinkpad T410|Linux Mint 13

tomato

  • Aktivní člen
  • *
  • Příspěvků: 155
Re: CONKY
« Odpověď #233 kdy: 18 Června 2008, 15:18:36 »
Tak já sem přidávám svoje conky.. Mám tam jen to co je pro mě důležité :)
Moc pekny, hlavne ty ikonky.. co je to za bar dole? cairo? ze je tak pekne rozdelenej..?

Kazekage

  • Aktivní člen
  • *
  • Příspěvků: 256
  • Stand or Die
Re: CONKY
« Odpověď #234 kdy: 19 Června 2008, 21:06:27 »
.conkyrc:
Kód: [Vybrat]
use_xft yes
xftfont verdana:size=10
alignment middle_right
xftalpha 0.8
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
border_margin 4
border_width 1
default_shade_color grey
default_outline_color white
default_color white
use_spacer no
no_buffers yes
uppercase no


TEXT
   ${font PizzaDude Bullets:size=16}v${font}   Up. ${upspeed eth0} Kb/s
   ${font PizzaDude Bullets:size=16}r${font}   Dow. ${downspeed eth0} Kb/s

   ${font PizzaDude Bullets:size=16}M${font}   Upload. ${totalup eth0}
   ${font PizzaDude Bullets:size=16}S${font}   Download. ${totaldown eth0}
   
   ${font StyleBats:size=18}A${font}   CPU:  ${cpu}%
   ${font PizzaDude Bullets:size=16}J${font}   $mem / $memmax

   ${font StyleBats:size=18}P${font}   Work:  ${uptime_short}
   ${font StyleBats:size=18}4${font}   ${time %A %d %B}

   ${font xspiralmental:size=17}E${font}   ${kernel}

   ${font PizzaDude Bullets:size=16}g${font}   Linux: ${fs_free /} free
          Windows: ${fs_free /mnt/Windows} free
          Data: ${fs_free /mnt/Data} free




Tak mne nechce nacitat tie kolieska ako upload, kernel a tie ostatne co tam mas, len nejake pismena mi namiesto nich hodi.


UPDATE CPU, WORK A DATUM MI NACITA ALE TIE OSTATNE NIE, KAM SI UMIESTNIL TIE FONTY A AKU MAJU KONCOVKU????
« Poslední změna: 19 Června 2008, 21:28:41 od Kazekage »
Asus_F3KA_Ubuntu_8.04_32bit
Desk:A8n32_sli_deluxe, 3700+ Amd_OC, 2GB_ram, 1950xt_ati_radeon: Ferdora_9, Win_XP_pro
Xbox_360_Premium :) flash Nokia_E61_Symbian_S60_3rd_edition Ghost_In_The_Shell Star_Wars_fan  HTC_HD_user

Pampuch

  • Návštěvník
  • Příspěvků: 3
Re: CONKY
« Odpověď #235 kdy: 19 Června 2008, 22:02:56 »
Tak já sem přidávám svoje conky.. Mám tam jen to co je pro mě důležité :)
Moc pekny, hlavne ty ikonky.. co je to za bar dole? cairo? ze je tak pekne rozdelenej..?

ten bar je je přes adesklets upravenej yab.. a ty ikonky.. musíte si stáhnout ty fonty pak to půjde ;)

Pampuch

  • Návštěvník
  • Příspěvků: 3
Re: CONKY
« Odpověď #236 kdy: 19 Června 2008, 22:14:37 »
lidi lidi.. neznáte google?
Kód: [Vybrat]
http://uloz.to/509259/X-SPIRAL.TTF
http://uloz.to/509261/STYLBCC_.TTF
http://uloz.to/509260/PIZZADUDEBULLETS.ttf

Doufám že jsou to vony mám je z /home/user/.fonts/ 

Kazekage

  • Aktivní člen
  • *
  • Příspěvků: 256
  • Stand or Die
Re: CONKY
« Odpověď #237 kdy: 19 Června 2008, 22:42:41 »
uz to ide. poznam google. len ja som tie fonty dal este do adresara trutype a preto asi nesli
Asus_F3KA_Ubuntu_8.04_32bit
Desk:A8n32_sli_deluxe, 3700+ Amd_OC, 2GB_ram, 1950xt_ati_radeon: Ferdora_9, Win_XP_pro
Xbox_360_Premium :) flash Nokia_E61_Symbian_S60_3rd_edition Ghost_In_The_Shell Star_Wars_fan  HTC_HD_user

Richie

  • Návštěvník
  • Příspěvků: 65
Re: CONKY
« Odpověď #238 kdy: 25 Června 2008, 18:47:12 »
Zdravím,
Chtěl bych poprosit o radu. Takhle vypadá moje conky:
http://neodoxy.wz.cz/moje/conky1.png
A konfigurák:
Kód: [Vybrat]
stippled_borders 0
border_margin 6
border_width 0


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

double_buffer yes

use_spacer yes
use_xft yes

update_interval 1.0

draw_shades no

draw_outline no
draw_borders yes

xftfont ae_AlMothnna:size=7

uppercase no

#default_color ff9730

alignment top_right

text_buffer_size 150

gap_x 20
gap_y 40


TEXT


${color #000000}Linux  ${fs_free /}  ${alignr} ${fs_used /} / ${fs_size /}
${fs_bar 6 /}$color
${color #000000}Windows Vista      ${fs_free /media/sda1} ${alignr}  ${fs_used /media/sda1} / ${fs_size /media/sda1}
${fs_bar 6 /media/sda1}$color
${color #000000}Music ${fs_free /media/Music} ${alignr} ${fs_used /media/Music} / ${fs_size /media/Music}
${fs_bar 6 /media/Music}$color
${color #000000}Entertainment ${fs_free /media/Entertainment} ${alignr} ${fs_used /media/Entertainment} / ${fs_size /media/Entertainment}
${fs_bar 6 /media/Entertainment}$color

${color #000000}CPU: ${color #000000}${cpu}%
${cpubar cpu0 10,250} ${alignr}
${cpugraph cpu0 30,250 000000 ffffff } ${alignr}

${color 000000}NETWORK  ${hr 1}$color
${color #000000}IP addres:${alignr}${addr eth0}
${color #000000}Down: ${color #000000} ${downspeed eth0} ${color #000000} KiB/s ${alignr} Up: ${color #000000}${upspeed eth0}${color #000000} KiB/s
${color #000000}Down: ${totaldown eth0} ${alignr}Up:  ${totalup eth0}
${color #000000}${downspeedgraph eth0 40,120 000000 ffffff}${alignr}${upspeedgraph eth0 40,120 000000 ffffff}

${color 000000}Procesy ${hr 1}$color
${color 000000}Total: $processes ${alignr}Running: $running_processes
${color 000000}Top Procesy${hr 1}
${color 000000}Jméno              ${alignr}     CPU%
${color 000000}${top name 1}      ${alignr} ${top cpu 1}
${color 000000}${top name 2}      ${alignr} ${top cpu 2}
${color 000000}${top name 3}      ${alignr} ${top cpu 3}
${color 000000}${top name 4}      ${alignr} ${top cpu 4}
Až po sem jsem s tím neměl žádný problém, ale chtěl bych tam ještě počasí. Zkoušel jsem obšlehnout skript od WERa.
Konfigurák jsem upravil takhle:
Kód: [Vybrat]
stippled_borders 0
border_margin 6
border_width 0


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

double_buffer yes

use_spacer yes
use_xft yes

update_interval 1.0

draw_shades no

draw_outline no
draw_borders yes

xftfont ae_AlMothnna:size=7

uppercase no

#default_color ff9730

alignment top_right

text_buffer_size 150

gap_x 20
gap_y 40


TEXT

Počasí $hr
${Font bauhaus:pixelsize=9}${execi 900 perl ~/.conky/weather.pl update_info EZXX0034 m 6}

               ${goto   5}${execi 900 perl ~/.conky/weather.pl temperature 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl temperature 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl temperature 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl temperature 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl temperature 5 0}
${voffset -102}${goto  20}${Font bauhaus:pixelsize=25}${execi 900 perl ~/.conky/weather.pl cc_temperature}
${voffset  -92}${goto  15}${Font weather:size=65}${execi 900 perl ~/.conky/weather.pl cc_symbol}
${voffset  -63}${goto 215}${Font weather:size=25}${execi 900 perl ~/.conky/weather.pl cc_moon}
${voffset   15}${goto   5}${execi 900 perl ~/.conky/weather.pl symbol 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl symbol 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl symbol 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl symbol 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl symbol 5 0}$font
${voffset  -63}Předpověď $stippled_hr

${color #000000}Linux  ${fs_free /}  ${alignr} ${fs_used /} / ${fs_size /}
${fs_bar 6 /}$color
${color #000000}Windows Vista      ${fs_free /media/sda1} ${alignr}  ${fs_used /media/sda1} / ${fs_size /media/sda1}
${fs_bar 6 /media/sda1}$color
${color #000000}Music ${fs_free /media/Music} ${alignr} ${fs_used /media/Music} / ${fs_size /media/Music}
${fs_bar 6 /media/Music}$color
${color #000000}Entertainment ${fs_free /media/Entertainment} ${alignr} ${fs_used /media/Entertainment} / ${fs_size /media/Entertainment}
${fs_bar 6 /media/Entertainment}$color

${color #000000}CPU: ${color #000000}${cpu}%
${cpubar cpu0 10,250} ${alignr}
${cpugraph cpu0 30,250 000000 ffffff } ${alignr}

${color 000000}NETWORK  ${hr 1}$color
${color #000000}IP addres:${alignr}${addr eth0}
${color #000000}Down: ${color #000000} ${downspeed eth0} ${color #000000} KiB/s ${alignr} Up: ${color #000000}${upspeed eth0}${color #000000} KiB/s
${color #000000}Down: ${totaldown eth0} ${alignr}Up:  ${totalup eth0}
${color #000000}${downspeedgraph eth0 40,120 000000 ffffff}${alignr}${upspeedgraph eth0 40,120 000000 ffffff}

${color 000000}Procesy ${hr 1}$color
${color 000000}Total: $processes ${alignr}Running: $running_processes
${color 000000}Top Procesy${hr 1}
${color 000000}Jméno              ${alignr}     CPU%
${color 000000}${top name 1}      ${alignr} ${top cpu 1}
${color 000000}${top name 2}      ${alignr} ${top cpu 2}
${color 000000}${top name 3}      ${alignr} ${top cpu 3}
${color 000000}${top name 4}      ${alignr} ${top cpu 4}

A výsledek:
http://neodoxy.wz.cz/moje/conky2.png
Vůbec se mi to nedaří přizpůsobit. Je to rozházené, roztáhlé.. no prostě to nevypadá dobře. Můžete mi prosím poradit. Děkuju :)
« Poslední změna: 25 Června 2008, 19:14:35 od Richie »

Pepe999

  • Stálý člen
  • **
  • Příspěvků: 775
Re: CONKY
« Odpověď #239 kdy: 26 Června 2008, 01:40:12 »
Pokud chces mit pocasi v Conky, tak to musis udelat krapet jinak. Projed tuhle diskusi poradne. Musi si vytvorit adresar ".conky" v domovskem adresari a tam zadat 2 scripty:
weather.template
Kód: [Vybrat]
${wString weather} $hr
${alignr 3}${font bauhaus:pixelsize=8}$wLocation
${wString as_of}: $wSuplTime, $wSuplDate ${alignr 3}${wString update}: $wUpdateTime
  ${wConditions}
${voffset -5}${goto 20}${Font weather:size=65}$wConditionsSymbol
${voffset -70}${goto 13}${Font bauhaus:pixelsize=25}$wTemperature$wUnitTemperature
${voffset -20}${font weather:size=25}${alignr 20}$wMoonSymbol${font bauhaus:pixelsize=9}${voffset -107}
                                 ${wString pressure  }: ${wBarTendencySymbol} $wPressure$wUnitPressure
                                 ${wString wind      }: ${wWindSpeed        }$wUnitSpeed $wWindDirection ($wWindAzimuth˚)
                                 ${wString humidity  }: ${wHumidity         } %
                                 ${wString visibility}: ${wVisibility       }$wUnitDistance
                                 ${wString sunrise   }: ${wSunrise          }
                                 ${wString sunset    }: ${wSunset     }
                                 ${wString moon      }: ${wMoon             }$font


${voffset -10}${wString forecast} $stippled_hr

${goto 11}${ wDayName_Short  1 }${goto 61}${wDayName_Short 2 }${goto 111}${wDayName_Short 3}${goto 161}${wDayName_Short 4}${goto 211}${wDayName_Short 5}
${font weather:size=25}${goto 8}${wDayPartConditionsSymbol 1 0}${goto 58}${wDayPartConditionsSymbol 2 0}${goto 108}${wDayPartConditionsSymbol 3 0}${goto 158}${wDayPartConditionsSymbol 4 0}${goto 208}${wDayPartConditionsSymbol 5 0}
${voffset -20}${font bauhaus:pixelsize=9}${goto 5}${wDayHighestTemperature 1}/${wDayLowestTemperature 1}$wUnitTemperature${goto 55}${wDayHighestTemperature 2}/${wDayLowestTemperature 2}$wUnitTemperature${goto 105}${wDayHighestTemperature 3}/${wDayLowestTemperature 3}$wUnitTemperature${goto 155}${wDayHighestTemperature 4}/${wDayLowestTemperature 4}$wUnitTemperature${goto 205}${wDayHighestTemperature 5}/${wDayLowestTemperature 5}$wUnitTemperature
                               
a
weather.pl
Kód: [Vybrat]
#!/usr/bin/perl
=help

CONKY WEATHER SCRIPT v2.0

USAGE:

perl weather.pl code language units template output

PARAMETERS:

code

The weather.com city code.
See http://xoap.weather.com/search/search?where=%s where %s stands for your location.

The codes for most of the Czech and Slovak locations are available at the end of this file.
For these locations, you can use even the name as written in the first column.

language

"EN" for English, "CZ" for Czech, "SK" for Slovak. (The parameter is case-insensitive.)

units

System of units: "s" for standard aka imperial, "m" for metric. (The parameter is case-insensitive.)

template

A textfile with the template. The format is identical with the Conky format, but these new variables
are available:
__________________________________________________________________________________________________
Variables without arguments

wBarTendency, wBarTendencySymbol, wCode, wConditions, wConditionsSymbol, wCountry,
wDewPoint,wWindSpeed, wFlik, wHumidity, wLatitude, wLocation, wLongitude, wMoon,
wMoonSymbol, wObservation, wObservationCountry, wPressure, wSunrise, wSunset, wSuplDate,
wSuplTime, wTemperature, wUnitDistance, wUnitLatitude, wUnitLongitude, wUnitPressure,
wUnitSpeed, wUnitTemperature, wUpdateTime, wUVIndex, wUVLevel, wVisibility, wWindAzimuth,
wWindDirection, wZone

EXAMPLE: $wCode or ${wCode }
__________________________________________________________________________________________________
Variables with one numeric argument standing for the number of the day starting with "0" for today

wDayDate, wDayHighestTemperature, wDayLowestTemperature, wDayMonth, wDayName_Short,
wDayName, wDaySunrise, wDaySunset

EXAMPLE: ${wDayHighestTemperature 8}
__________________________________________________________________________________________________
Variables with two numeric arguments, the first standing for the number of the day starting with "0"
for today and the latter for the day part, "0" for day and "1" for night.

wDayPartConditions, wDayPartConditions_Long, wDayPartConditions_Short, wDayPartHumidity,
wDayPartPrecipitation, wDayPartConditionsSymbol, wDayPartWindAzimuth, wDayPartWindDirection,
wDayPartWindSpeed

EXAMPLE: ${wDayPartWindSpeed 3  0}
__________________________________________________________________________________________________
Variable "wString" with one string argument. It returns the translation of this string as given
in the string table at the line 443 of this file. You can add your own strings, but the string
in the table should be lower-case. Use "_" instead of spaces.

This variable is usable for multilingual templates.

EXAMPLE: ${ wString Humidity }

All the variables and arguments are case-insensitive.

The variable wDayConditions_Long is always in English, the variable wDayPartConditions_Short is partly
translated.

The variables wConditionsSymbol, wMoonSymbol and wDayPartConditionsSymbol return the character corresponding
to the symbol in the weather font.

output

A file where the output of the script is stored. To make the script lightweight, the file is updated
if and only if new data are successfully downloaded, thus don't use /tmp/ to store this file - it could
be deleted by the system.
The script tries to download new data if and only if the current data are not for the current hour.

USAGE IN CONKY:

To not to disturb Conky, it is preferable to run this script in a separate thread using the command
$texeci. You can display the output file in Conky using the $execi or $execpi command and "cat".
You have to use the $execpi variant whenever there are some Conky variables in the template.

EXAMPLE:

${texeci 300 perl ~/.conky/weather.pl EZXX0012 CZ M ~/.conky/weather.template ~/.conky/weather.conky}
${execpi 240 cat ~/.conky/weather.conky}

=cut

use XML::Simple;

$xmlfile = "$ENV{HOME}/.conky/weather.xml";
$tempfile = "$ENV{HOME}/.conky/weather.tmp";

$code = $ARGV[0];
$language = $ARGV[1];
$unit = $ARGV[2];
$templatefile = $ARGV[3];
$outputfile = $ARGV[4];
$language =~ tr/EN/en/;
$unit =~ tr/MS/ms/;

########################################################################################################

if(-e $xmlfile){
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
($xmon, $xday, $xyear, $xhour) = lsup($xmlfile);
$update = !($xmon == $mon + 1 && $xday == $mday && $xyear == $year - 100 && $xhour == $hour);
}
else {$update = TRUE};
if ($update) {
open (THISFILE, $0);
while (<THISFILE>) {
if (m/^#\s/) {
my @line = split /\s*#\s*|\s*\n/;
shift @line;
my $key = shift @line;
$dictionary->{$key} = [@line];
}
}
close (THISFILE);
$code = &translate($code, 0);
`wget -O $tempfile "http://xoap.weather.com/weather/local/$code?unit=$unit&dayf=10&dayd=10&cc=*"`;
if (-s "$tempfile" > 0) {
my ($tmon, $tday, $tyear, $thour) = lsup($tempfile);
unless ($tmon == $xmon && $tday == $xday && $tyear == $xyear && $thour == $xhour) {
`mv -f $tempfile $xmlfile`;
&parse_template
}
}
}

########################################################################################################

sub lsup {
open (XMLFILE, $_[0]);
while (<XMLFILE>) {
if (my ($xmon, $xday, $xyear, $xhour, $xdaypart) = m/^\s*\<lsup\>(\d*)\/(\d*)\/(\d*)\s(\d*):\d*\s([A|P])/) {
if ($xhour   == 12 ) {$xhour  = 0 };
if ($xdaypart eq "P") {$xhour += 12};
return ($xmon, $xday, $xyear, $xhour);
last
}
};
close (XMLFILE);
}

sub parse_template{
my $temp = $/;
undef $/;
open (TEMPLATEFILE, $templatefile) || die "Can't open template.";
$template = <TEMPLATEFILE>;
close (TEMPLATEFILE);
$/ = $temp;

if    ($language eq "en") {$language_index = 0; $time = sub {$_[0]};  $date = sub {$_[0]."/" .$_[1]. "/20".$_[2]}}
elsif ($language eq "cz") {$language_index = 1; $time = \&time_en_24; $date = sub {$_[1].". ".$_[0].". 20".$_[2]}}
elsif ($language eq "sk") {$language_index = 2; $time = \&time_en_24; $date = sub {$_[1].". ".$_[0].". 20".$_[2]}}
                             $symbol_index = 3;

$xml = new XML::Simple;
$weather = $xml->XMLin($xmlfile);

$template =~ s/\$\{\s*wString\s*(\w*)\s*\}/&translate($1, $language_index)/ieg;

foreach $conky_key (wCode, wLatitude, wLongitude, wZone, wTemperature, wFlik, wPressure, wVisibility, wHumidity, wDewPoint,wWindSpeed,
    wWindAzimuth, wSunset, wSunrise, wConditionsSymbol, wConditions, wMoonSymbol, wMoon, wWindDirection, wBarTendencySymbol, wBarTendency,
    wUnitSpeed, wUnitDistance, wUnitTemperature, wUnitPressure, wUnitLatitude, wUnitLongitude, wObservationCountry, wObservation,
    wLocation, wCountry, wSuplTime, wSuplDate, wUpdateTime, wUVIndex, wUVLevel){
if ($template =~ m/\$\{\s*$conky_key\s*\}|\$$conky_key/i) {
$template =~ s/\$\{\s*$conky_key\s*\}|\$$conky_key/&conky_value($conky_key)/ieg;
}
}

for ($day = 0; $day < 10; $day++) {
foreach $conky_key (wDayHighestTemperature, wDayLowestTemperature, wDayName_Short,wDayName, wDaySunset, wDaySunrise, wDayMonth, wDayDate) {
if ($template =~ m/\$\{\s*$conky_key\s*$day\s*\}/i) {
$template =~ s/\$\{\s*$conky_key\s*$day\s*\}/&conky_day($conky_key, $day)/ieg;
};
};
for ($day_part = 0; $day_part < 2; $day_part++) {
foreach $conky_key (wDayPartWindSpeed, wDayPartWindAzimuth, wDayPartWindDirection, wDayPartPrecipitation, wDayPartHumidity,
    wDayPartConditionsSymbol, wDayPartConditions_Short, wDayPartConditions_Long, wDayPartConditions) {
if ($template =~ m/\$\{\s*$conky_key\s*$day\s*$day_part\s*\}/i) {
$template =~ s/\$\{\s*$conky_key\s*$day\s*$day_part\s*\}/&conky_day_part($conky_key, $day, $day_part)/eig;
}
}
}
};

open (OUT, ">$outputfile") || die "Can't open output file";
print OUT $template;
close (OUT);
}

sub conky_day { # $_[0] key, $_[] day
my $r = \$conky->{Day}[$_[1]]->{$_[0]};
unless ($$r) {
my $w = \$weather->{dayf}->{day}[$_[1]];
if    ($_[0] eq "wDayHighestTemperature") {$$r = $$w->{hi}}
elsif ($_[0] eq "wDayLowestTemperature") {$$r = $$w->{low}}
elsif ($_[0] eq "wDayName_Short") {$$r = &translate(substr($$w->{t},0,3), $language_index)}
elsif ($_[0] eq "wDayName") {$$r = &translate($$w->{t}, $language_index)}
elsif ($_[0] eq "wDaySunset") {$$r = &$time($$w->{suns})}
elsif ($_[0] eq "wDaySunrise") {$$r = &$time($$w->{sunr})}
elsif ($_[0] eq "wDayMonth" || $_[0] eq "wDayDate") {
my @temp = split " ", $weather->{dayf}->{day}[$_[1]]->{dt};
$conky->{Day}[$_[1]]->{wDayMonth} = &translate($temp[0], $language_index);
$conky->{Day}[$_[1]]->{wDayDate} = $temp[1];
}
}
return $$r
}

sub conky_day_part { # $_[0] key, $_[1] day, $_[2] day part
my $r = \$conky->{Day}[$_[1]]->{Part}[$_[2]]->{$_[0]};
unless ($$r) {
my $w = \$weather->{dayf}->{day}[$_[1]]->{part}[$_[2]];
if    ($_[0] eq "wDayPartWindSpeed") {$$r = $$w->{wind}->{s}}
elsif ($_[0] eq "wDayPartWindAzimuth") {$$r = $$w->{wind}->{d}}
elsif ($_[0] eq "wDayPartPrecipitation") {$$r = $$w->{ppcp}}
elsif ($_[0] eq "wDayPartHumidity") {$$r = $$w->{hmid}}
elsif ($_[0] eq "wDayPartWindDirection") {$$r = &translate($$w->{wind}->{t}, $language_index)}
elsif ($_[0] eq "wDayPartConditionsSymbol") {$$r = &translate($$w->{icon}, 1)}
elsif ($_[0] eq "wDayPartConditions") {$$w->{t} =~ tr/A-Z/a-z/;
$$r = &translate($$w->{t}, $language_index)}
elsif ($_[0] eq "wDayPartConditions_Short") {$$w->{bt} =~ tr/A-Z/a-z/;
$$r = &translate($$w->{bt}, $language_index)}
elsif ($_[0] eq "wDayPartConditions_Long") {
$w = \$weather->{dayd}->{day}[$_[1]]->{part};
if (ref($$w) eq "ARRAY") {
$$r = $weather->{dayd}->{day}[$_[1]]->{part}[$_[2]]->{t};
}
elsif   (($weather->{dayd}->{day}[$_[1]]->{part}->{p} eq "d" && $_[2] == 0)
                              || ($weather->{dayd}->{day}[$_[1]]->{part}->{p} eq "n" && $_[2] == 1)) {
$$r = $weather->{dayd}->{day}[$_[1]]->{part}->{t}
}
else { $$r = ""};
}
}
return $$r
}

sub conky_value { # $_[0] key
my $r = \$conky->{$_[0]};
unless ($$r) {
if    ($_[0] eq "wCode") {$$r = $code}
elsif ($_[0] eq "wLatitude") {$$r = $weather->{loc}->{lat}}
elsif ($_[0] eq "wLongitude") {$$r = $weather->{loc}->{lon}}
elsif ($_[0] eq "wZone") {$$r = $weather->{loc}->{zone}}
elsif ($_[0] eq "wTemperature") {$$r = $weather->{cc}->{tmp}}
elsif ($_[0] eq "wFlik") {$$r = $weather->{cc}->{flik}}
elsif ($_[0] eq "wPressure") {$$r = $weather->{cc}->{bar}->{r}}
elsif ($_[0] eq "wVisibility") {$$r = $weather->{cc}->{vis}}
elsif ($_[0] eq "wHumidity") {$$r = $weather->{cc}->{hmid}}
elsif ($_[0] eq "wDewPoint") {$$r = $weather->{cc}->{dewp}}
elsif ($_[0] eq "wWindSpeed") {$$r = $weather->{cc}->{wind}->{s}}
elsif ($_[0] eq "wWindAzimuth") {$$r = $weather->{cc}->{wind}->{d}}
elsif ($_[0] eq "wUVIndex") {$$r = $weather->{cc}->{uv}->{i}}
elsif ($_[0] eq "wWindAzimuth") {$$r = $weather->{cc}->{wind}->{d}}
elsif ($_[0] eq "wUpdateTime") {$$r = &$time($weather->{loc}->{tm})}
elsif ($_[0] eq "wSunset") {$$r = &$time($weather->{loc}->{suns})}
elsif ($_[0] eq "wSunrise") {$$r = &$time($weather->{loc}->{sunr})}
elsif ($_[0] eq "wConditionsSymbol") {$$r = &translate($weather->{cc}->{icon}, 1)}
elsif ($_[0] eq "wUVLevel") {$$r = &translate($weather->{cc}->{uv}->{t}, $language_index)}
elsif ($_[0] eq "wMoon") {$$r = &translate($weather->{cc}->{moon}->{t}, $language_index)}
elsif ($_[0] eq "wMoonSymbol") {$$r = &translate($weather->{cc}->{moon}->{t}, $symbol_index)}
elsif ($_[0] eq "wWindDirection") {$$r = &translate($weather->{cc}->{wind}->{t}, $language_index)}
elsif ($_[0] eq "wBarTendency") {$$r = &translate($weather->{cc}->{bar}->{d}, $language_index)}
elsif ($_[0] eq "wBarTendencySymbol") {$$r = &translate($weather->{cc}->{bar}->{d}, $symbol_index)}
elsif ($_[0] eq "wUnitSpeed") {$$r = &translate($weather->{head}->{us}, $language_index)}
elsif ($_[0] eq "wUnitDistance") {$$r = &translate($weather->{head}->{ud}, $language_index)}
elsif ($_[0] eq "wUnitTemperature") {$$r = &translate($weather->{head}->{ut}, $language_index)}
elsif ($_[0] eq "wUnitPressure") {$$r = &translate($weather->{head}->{up}, $language_index)}
elsif ($_[0] eq "wUnitLatitude") {$$r = &translate("unit_latitude", $language_index)}
elsif ($_[0] eq "wUnitLongitude") {$$r = &translate("unit_longitude", $language_index)}
elsif ($_[0] eq "wConditions") {$weather->{cc}->{t} =~ tr/A-Z/a-z/;
$$r = &translate($weather->{cc}->{t}, $language_index)}
elsif ($_[0] eq "wObservation" || $_[0] eq "wObservationCountry") {
my @temp = split ", ", $weather->{cc}->{obst};
$conky->{wObservation} = &translate($temp[0], 1);
$conky->{wObservationCountry} = &translate($temp[1], $language_index);
}
elsif ($_[0] eq "wLocation" || $_[0] eq "wCountry") {
my @temp = split ", ", $weather->{loc}->{dnam};
$conky->{wLocation} = &translate($temp[0], 1);
$conky->{wCountry} = &translate($temp[1], $language_index);
}
elsif ($_[0] eq "wSuplTime" || $_[0] eq "wSuplDate") {
my @temp = split /\s|\//, $weather->{cc}->{lsup};
$conky->{wSuplTime} = &$time($temp[3]." ".$temp[4]);
$conky->{wSuplDate} = &$date($temp[0],$temp[1],$temp[2]);
}
}
return $$r
}

sub translate {
if ($dictionary->{$_[0]}) {return $dictionary->{$_[0]}[$_[1]]}
else {return $_[0]}
}

sub time_en_24 {
my @temp = split /\:|\s/, $_[0];
if ($temp[0] == 12) {$temp[0] = 0};
if ($temp[2] eq "PM") {$temp[0] += 12};
return "$temp[0]".":"."$temp[1]";
}

########################################################################################################
## TRANSLATION TABLES
##
########################################################################################################

########################################################################################################
## COUNTRY
## value # en
########################################################################################################
# Czech Republic # Czech Republic
# Germany # Germany
# Hungary # Hungary
# Poland # Poland
# Slovakia # Slovakia

########################################################################################################
## DAY
## value # en
########################################################################################################
# Monday # Monday
# Tuesday # Tuesday
# Wednesday # Wednesday
# Thursday # Thursday
# Friday # Friday
# Saturday # Saturday
# Sunday # Sunday

########################################################################################################
## DAY_SHORT
## value # en
########################################################################################################
# Mon # Mon
# Tue # Tue
# Wed # Wed
# Thu # Thu
# Fri # Fri
# Sat # Sat
# Sun # Sun

########################################################################################################
## Month
## value # en # symbol
########################################################################################################
# Jan # January # 1
# Feb # February # 2
# Mar # March # 3
# Apr # April # 4
# May # May # 5
# Jun # June # 6
# Jul # July # 7
# Aug # August # 8
# Sep # September # 9
# Oct # October # 10
# Nov # November # 11
# Dec # December # 12

########################################################################################################
## WIND
## value # en
########################################################################################################
# N # N
# E # E
# S # S
# W # W
# NE # NE
# SE # SE
# SW # SW
# NW # NW
# NNE # NNE
# ENE # ENE
# ENE # ENE
# SSE # SSE
# NNW # NNW
# WNW # WNW
# WSW # WSW
# SSW # SSW
# VAR # variable

########################################################################################################
## UNIT
## space-separated units start with a hard space
## value # en
#########################################################################################################
# C #  °C
# km #  km
# km/h #  km/h
# mb #  mb
# mm #  mm
# F #  °F
# mi #  mi
# mph #  mph
# in #  in
# unit_latitude #  N
# unit_longitude #  E

########################################################################################################
## PREASURE
## value # en # symbol
#######################################################################################################
# rising # rising # ↑
# falling # falling # ↓
# steady # steady # =

########################################################################################################
## LUNAR PHASE
## value # en # symbol
########################################################################################################
# New # New # 9
# Waxing Crescent # Waxing Crescent # 7
# First Quarter # First Quarter # 0
# Waxing Gibbous # Waxing Gibbous # 3
# Full # Full # 1
# Waning Gibbous # Waning Gibbous # 3 # (left <-> right)
# Last Quarter # Last Quarter # 0 # (left <-> right)
# Third Quarter # Third Quarter # 0 # (left <-> right)
# Waning Crescent # Waning Crescent # 7 # (left <-> right)

########################################################################################################
## UV Index
## value # en # symbol
########################################################################################################
# Extreme # extrem
# Very high # very high
# High # high
# Moderate # moderate
# Low # low

########################################################################################################
## STRING
## value # en # symbol
########################################################################################################
# weather # Weather
# forecast # Forecast
# as_of # as of
# update # Update
# pressure # Pressure
# wind # Wind
# dew_point # Dew point
# visibility # Visibility
# sunrise # Sunrise
# sunset # Sunset
# moon # Moon
# humidity # Humidity
# uv # UV index

########################################################################################################
## CONDITIONS
## value # en # symbol
########################################################################################################
# blowing dust # Blowing dust
# blowing dust and windy # Blowing dust and windy
# blowing snow # Blowing snow
# blowing snow and windy # Blowing snow and windy
# clear # Clear
# clear and windy # Clear and windy
# cloudy # Cloudy
# cloudy and windy # Cloudy and windy
# drifting snow # Drifting snow
# drizzle # Drizzle
# fair # Fair
# fair and windy # Fair and windy
# fog # Fog
# fog and windy # Fog and windy
# haze # Haze
# haze and windy # Haze and windy
# heavy drizzle # Heavy drizzle
# heavy rain # Heavy rain
# heavy rain and windy # Heavy rain and windy
# heavy rain shower # Heavy rain shower
# heavy rain shower and windy # Heavy rain shower and windy
# heavy snow # Heavy snow
# heavy snow and windy # Heavy snow and windy
# heavy snow shower # Heavy snow shower
# heavy t-storm # Heavy t-storm
# heavy t-storm and windy # Heavy t-storm and windy
# light drizzle # Light drizzle
# light drizzle and windy # Light drizzle and windy
# light freezing drizzle # Light freezing drizzle
# light freezing drizzle and fog# Light freezing drizzle and fog
# light freezing rain # Light freezing rain
# light rain # Light rain
# light rain shower # Light rain shower
# light rain shower and windy # Light rain shower and windy
# light rain and fog # Light rain and fog
# light rain and freezing rain # Light rain and freezing rain
# light rain with thunder # Light rain with thunder
# light rain and windy # Light rain and windy
# light snow # Light snow
# light snow grains # Light snow grains
# light snow shower # Light snow shower
# light snow shower and windy # Light snow shower and windy
# light snow and sleet # Light snow and sleet
# light snow and windy # Light snow and windy
# mist # Mist
# mostly cloudy # Mostly cloudy
# mostly cloudy and windy # Mostly cloudy and windy
# partial fog # Partial fog
# partly cloudy # Partly cloudy
# partly cloudy and windy # Partly cloudy and windy
# patches of fog # Patches of fog
# rain # Rain
# rain and sleet # Rain and sleet
# rain and snow # Rain and snow
# rain shower # Rain shower
# rain shower and windy # Rain shower and windy
# rain and fog # Rain and fog
# rain and freezing rain # Rain and freezing rain
# rain and windy # Rain and windy
# sand # Sand
# sand and windy # Sand and windy
# shallow fog # Shallow fog
# showers in the vicinity # Showers in the vicinity
# sleet # Sleet
# smoke # Smoke
# snow # Snow
# snow and fog # Snow and fog
# snow and freezing rain # Snow and freezing rain
# snow grains # Snow grains
# snow showers # Snow showers
# snow and windy and fog # Snow and windy and fog
# squalls # Squalls
# squalls and windy # Squalls and windy
# sunny # Sunny
# sunny and windy # Sunny and windy
# t-storm # T-Storm
# t-storm and windy # T-Storm and windy
# thunder # Thunder
# thunder and wintry mix # Thunder and wintry mix
# thunder in the vicinity # Thunder in the vicinity
# unknown precip # Unknown precip
# widespread dust # Widespread dust
# widespread dust and windy # Widespread dust and windy
# wintry mix # Wintry mix
########################################################################################################
##     ICONS
## Nr. # Yahoo description # symbol
########################################################################################################
# 0 # tornado # i
# 1 # tropical storm # h
# 2 # hurricane # h
# 3 # severe thunderstorms # i
# 4 # thunderstorms # i
# 5 # mixed rain and snow # k
# 6 # mixed rain and sleet # h
# 7 # mixed snow and sleet # k
# 8 # freezing drizzle # g
# 9 # drizzle # g
# 10 # freezing rain # h
# 11 # showers # g
# 12 # showers # h
# 13 # snow flurries # j
# 14 # light snow showers # k
# 15 # blowing snow # j
# 16 # snow # k
# 17 # hail # i
# 18 # sleet # h
# 19 # dust # v
# 20 # foggy # v
# 21 # haze # v
# 22 # smoky # v
# 23 # blustery # w
# 24 # windy # w
# 25 # cold # j
# 26 # cloudy # d
# 27 # mostly cloudy (night) # d
# 28 # mostly cloudy (day) # c
# 29 # partly cloudy (night) # b
# 30 # partly cloudy (day) # b
# 31 # clear (night) # 1
# 32 # sunny # a
# 33 # fair (night) # 1
# 34 # fair (day) # b
# 35 # mixed rain and hail # i
# 36 # hot # l
# 37 # isolated thunderstorms # f
# 38 # scattered thunderstorms # f
# 39 # scattered thunderstorms # h
# 40 # scattered showers # h
# 41 # heavy snow # k
# 42 # scattered snow showers # k
# 43 # heavy snow # k
# 44 # partly cloudy # b
# 45 # thundershowers # h
# 46 # snow showers # k
# 47 # isolated thundershowers # g
# na # not available # ~

########################################################################################################
## United Kingdom
## loc dnam             # UKXX0092      # Manchester
Do samotneho scriptu ".conkyrc" pak staci pridat tyhle lajny..
Kód: [Vybrat]
${texeci 360 perl ~/.conky/weather.pl UKXX0092 en m ~/.conky/weather.template ~/.conky/weather.conky}
${execpi 247 cat ~/.conky/weather.conky}
Nevim, zda mas nainstalovane fonty, v tom pripade hledej dale ve vlakne.
Moje scripty jsou pouze pro anglictinu, takze si je radsi okopiruj od wera a samozrejme si zmen lokalitu...

Richie

  • Návštěvník
  • Příspěvků: 65
Re: CONKY
« Odpověď #240 kdy: 26 Června 2008, 06:57:58 »
Pepe999: Já ten adresář /home/.conky vytvořený mám a v něm je soubor weather.pl (stáhnutý od WERa) plus nějaký xml soubor, který se tam vytvořil sám, což, jak sem se dočetl, udělat měl. Diskuzi jsem si samozřejmě projel. Jde mě jenom o tohle - bez toho počasí se to zobrazuje tak jak chci, ale jakmile nakopíruju do svého konfiguráku tohle:
Kód: [Vybrat]
Počasí $hr
${Font bauhaus:pixelsize=9}${execi 900 perl ~/.conky/weather.pl update_info EZXX0034 m 6}

               ${goto   5}${execi 900 perl ~/.conky/weather.pl temperature 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl temperature 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl temperature 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl temperature 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl temperature 5 0}
${voffset -102}${goto  20}${Font bauhaus:pixelsize=25}${execi 900 perl ~/.conky/weather.pl cc_temperature}
${voffset  -92}${goto  15}${Font weather:size=65}${execi 900 perl ~/.conky/weather.pl cc_symbol}
${voffset  -63}${goto 215}${Font weather:size=25}${execi 900 perl ~/.conky/weather.pl cc_moon}
${voffset   15}${goto   5}${execi 900 perl ~/.conky/weather.pl symbol 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl symbol 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl symbol 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl symbol 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl symbol 5 0}$font
${voffset  -63}Předpověď $stippled_hr
Celé se to rozhází a posune tam, kde nechci.
K čemu je vlastně ten soubor weather.template ?? Je vůbec potřeba k té WERově verzi? ..Jinak co se týče fontů, s tím problémy nejsou...

Pepe999

  • Stálý člen
  • **
  • Příspěvků: 775
Re: CONKY
« Odpověď #241 kdy: 26 Června 2008, 13:50:04 »
Pepe999: Já ten adresář /home/.conky vytvořený mám a v něm je soubor weather.pl (stáhnutý od WERa) plus nějaký xml soubor, který se tam vytvořil sám, což, jak sem se dočetl, udělat měl. Diskuzi jsem si samozřejmě projel. Jde mě jenom o tohle - bez toho počasí se to zobrazuje tak jak chci, ale jakmile nakopíruju do svého konfiguráku tohle:
Kód: [Vybrat]
Počasí $hr
${Font bauhaus:pixelsize=9}${execi 900 perl ~/.conky/weather.pl update_info EZXX0034 m 6}

               ${goto   5}${execi 900 perl ~/.conky/weather.pl temperature 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl temperature 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl temperature 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl temperature 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl temperature 5 0}
${voffset -102}${goto  20}${Font bauhaus:pixelsize=25}${execi 900 perl ~/.conky/weather.pl cc_temperature}
${voffset  -92}${goto  15}${Font weather:size=65}${execi 900 perl ~/.conky/weather.pl cc_symbol}
${voffset  -63}${goto 215}${Font weather:size=25}${execi 900 perl ~/.conky/weather.pl cc_moon}
${voffset   15}${goto   5}${execi 900 perl ~/.conky/weather.pl symbol 1 0}${goto 55}${execi 900 perl ~/.conky/weather.pl symbol 2 0}${goto 105}${execi 900 perl ~/.conky/weather.pl symbol 3 0}${goto 155}${execi 900 perl ~/.conky/weather.pl symbol 4 0}${goto 205}${execi 900 perl ~/.conky/weather.pl symbol 5 0}$font
${voffset  -63}Předpověď $stippled_hr
Celé se to rozhází a posune tam, kde nechci.
K čemu je vlastně ten soubor weather.template ?? Je vůbec potřeba k té WERově verzi? ..Jinak co se týče fontů, s tím problémy nejsou...
Fajn, ale precti si to cele. Musis si tam udelat jeste ten script weather.template. Ten totiz urcuje, jak bude to pocasi v conky vypadat!!!!!!
Do samotneho konfiguraku conky(.conkyrc) se pak zadavaji pouze a jenom ty 2 lajny co jsem uz pastnul. Pomoci tech radku se tvoje conky na plose online spoji se serverem pocasi a ten odesle data do tveho pc, kde se za pomoci tech udelanych scriptu prevedou na graficke conky, co uvidis na plose.
V tom adresari .conky budou weather.pl, weather.xml, weather.template a weather.conky, kterej sa tam vytvori asi jako temp script pro ten weather.template, pac je uplne stejnej.. :)
Abys videl ze nelzu, davam sem moje conky:
Kód: [Vybrat]
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

double_buffer yes

use_spacer no
use_xft yes

update_interval 1.0

minimum_size 150 5

draw_shades no

draw_outline no
draw_borders no

text_buffer_size 1500

xftfont ae_AlMothnna:size=8

uppercase no

default_color ff9730

alignment top_right

maximum_width 310

gap_x 9
gap_y 9

TEXT
$color
${color 80d62b}SYSTEM ${hr 1}
${color ff9730}pepe999 $sysname $kernel on $machine
${color 80d62b}CPU ${hr 1}
${color ff9730}CPU1: ${cpu cpu0}% ${alignr} CPU2: ${cpu cpu1}% 
${cpubar cpu0 10,150} ${alignr}${cpubar cpu1 10,150}
${cpugraph cpu0 27,150 ff841f 80d62b } ${alignr}${cpugraph cpu1 27,150 ff841f 80d62b}
CPU Temp: ${acpitemp}C HDD Temp: ${hddtemp /dev/sda localhost 7634}  
${color 80d62b}Top Processes ${hr 1}
${color 80d62b}Name               ${alignr}     CPU%
${color ff9730}${top name 1}      ${alignr} ${top cpu 1}
${color ff9730}${top name 2}      ${alignr} ${top cpu 2}
${color ff9730}${top name 3}      ${alignr} ${top cpu 3}
${color 80d62b}UPTIME ${hr 1} $color
${color ff9730}${alignc} $uptime
${color 80d62b}MEMORY / SWAP ${hr 1}
${color ff9730}RAM: ${alignc}  $mem ${alignr}  max: $memmax
${color ff9730}${membar 6}$color
${color ff9730}Swap: ${alignc} $swap  ${alignr}  max: $swapmax
${color ff9730}${swapbar 6}$color
${color 80d62b}USAGE HDD ${hr 1}$color
${color ff9730}System:  ${fs_free /}  ${alignr} ${fs_used /} / ${fs_size /}
${fs_bar 6 /}$color
${color ff9730}Home:    ${fs_free /home} ${alignr}  ${fs_used /home} / ${fs_size /home}
${fs_bar 6 /home}$color
${color 80d62b}PROCESSES ${hr 1}$color
${color ff9730}Total: $processes ${alignr}Running: $running_processes
${color 80d62b}NETWORK ${hr 1}$color 
ESSID: ${wireless_essid wlan0} ${alignr}Signal Strength: ${wireless_link_qual_perc wlan0}
${color ff9730}IP address: ${alignr}${addr wlan0}
${color ff9730}Down: ${color 80d62b} ${downspeed wlan0} ${color ff9730} KiB/s ${alignr} Up: ${color 80d62b}${upspeed wlan0}${color ff9730} KiB/s
${color ff9730}Down: ${totaldown wlan0} ${alignr}Up:  ${totalup wlan0}
${downspeedgraph wlan0 27,150 ff841f 80d62b} ${alignr}${upspeedgraph wlan0 27,150 ff841f 80d62b}
${color ff9730}BATTERY PERCENT/TIME ${hr 1} $color
${color 000000}REMAINING: ${battery_percent}% ${alignr} $battery_time
${texeci 360 perl ~/.conky/weather.pl UKXX0092 en m ~/.conky/weather.template ~/.conky/weather.conky}
${execpi 247 cat ~/.conky/weather.conky}

Richie

  • Návštěvník
  • Příspěvků: 65
Re: CONKY
« Odpověď #242 kdy: 26 Června 2008, 14:05:11 »
 :) vpořádku, vždyť já ti věřím. Nechtěl jsem aby to vyznělo nějak hanlivě, jen jsem chtěl víc informací. Vždycky mě zajímá jak co funguje a tak.. každopádně dík za pomoc, vážím si toho. hned se do toho pustím a budu zkoušet:)

Pepe999

  • Stálý člen
  • **
  • Příspěvků: 775
Re: CONKY
« Odpověď #243 kdy: 26 Června 2008, 22:52:00 »
:) vpořádku, vždyť já ti věřím. Nechtěl jsem aby to vyznělo nějak hanlivě, jen jsem chtěl víc informací. Vždycky mě zajímá jak co funguje a tak.. každopádně dík za pomoc, vážím si toho. hned se do toho pustím a budu zkoušet:)
Vpohode, jenom jsem dojem, ze jsem to asi prvne vysvetlil spatne.. :)

Richie

  • Návštěvník
  • Příspěvků: 65
Re: CONKY
« Odpověď #244 kdy: 27 Června 2008, 07:39:41 »
Asi to se mnou nebude tak jednoduché. Takže tohle je nejlepší výsledek, kterého se mi prozatim podařilo dosáhnout ..no jak je vidět,nic moc:)
http://neodoxy.wz.cz/moje/conky3.png
takže v adresáři /home/richie/.conky je:
weather.pl, weather.xml, weather.template, weather.conky - weather.template a weather.conky jsem vytvořil a v obou dvou souborech je tohle:
Kód: [Vybrat]
${wString weather} $hr
${alignr 3}${font bauhaus:pixelsize=8}$wLocation
${wString as_of}: $wSuplTime, $wSuplDate ${alignr 3}${wString update}: $wUpdateTime
  ${wConditions}
${voffset -5}${goto 20}${Font weather:size=65}$wConditionsSymbol
${voffset -70}${goto 13}${Font bauhaus:pixelsize=25}$wTemperature$wUnitTemperature
${voffset -20}${font weather:size=25}${alignr 20}$wMoonSymbol${font bauhaus:pixelsize=9}${voffset -107}
                                 ${wString pressure  }: ${wBarTendencySymbol} $wPressure$wUnitPressure
                                 ${wString wind      }: ${wWindSpeed        }$wUnitSpeed $wWindDirection ($wWindAzimuth˚)
                                 ${wString humidity  }: ${wHumidity         } %
                                 ${wString visibility}: ${wVisibility       }$wUnitDistance
                                 ${wString sunrise   }: ${wSunrise          }
                                 ${wString sunset    }: ${wSunset     }
                                 ${wString moon      }: ${wMoon             }$font


${voffset -10}${wString forecast} $stippled_hr

${goto 11}${ wDayName_Short  1 }${goto 61}${wDayName_Short 2 }${goto 111}${wDayName_Short 3}${goto 161}${wDayName_Short 4}${goto 211}${wDayName_Short 5}
${font weather:size=25}${goto 8}${wDayPartConditionsSymbol 1 0}${goto 58}${wDayPartConditionsSymbol 2 0}${goto 108}${wDayPartConditionsSymbol 3 0}${goto 158}${wDayPartConditionsSymbol 4 0}${goto 208}${wDayPartConditionsSymbol 5 0}
${voffset -20}${font bauhaus:pixelsize=9}${goto 5}${wDayHighestTemperature 1}/${wDayLowestTemperature 1}$wUnitTemperature${goto 55}${wDayHighestTemperature 2}/${wDayLowestTemperature 2}$wUnitTemperature${goto 105}${wDayHighestTemperature 3}/${wDayLowestTemperature 3}$wUnitTemperature${goto 155}${wDayHighestTemperature 4}/${wDayLowestTemperature 4}$wUnitTemperature${goto 205}${wDayHighestTemperature 5}/${wDayLowestTemperature 5}$wUnitTemperature
spustitelný příznak má pouze weather.pl.

weather.pl je stáhnutý od WERa z jeho prvního přízpěvku. konkrétně je to tady tato:
Kód: [Vybrat]
#!/usr/bin/perl

use Switch;
use XML::Simple;

$action = $ARGV[0];

# parameters for "update_info"
$code = $ARGV[1]; # weather.com city code;
# see http://xoap.weather.com/search/search?where=%s where %s stands for your location
$units = $ARGV[2]; # s = standard/imperial, m = metric
$forecast = $ARGV[3]; # number of days for the forecast

# parameters for "symbol"
$day = $ARGV[1]; # day displayed
$day_part = $ARGV[2]; # 0 for day, 1 for night

# parameters for "temperature"
$day = $ARGV[1]; # day displayed

$day_space = "             "; # space between short day names in day_names_cz_short

$file = "/tmp/weather.xml"; # data file
$tempfile = "/tmp/weather.tmp"; # temporary download file
$directory = "~/.conky";

#====================================================================================

switch($action){
case "cc_symbol" {
&load_data;
print(&translate($weather->{cc}->{icon},2));
}
case "cc_temperature" {
&load_data;
print $weather->{cc}->{tmp}." ˚C";
}
case "cc_moon" {
&load_data;
print &translate($weather->{cc}->{moon}->{t},3);
}
case "symbol" {
&load_data;
print &translate($weather->{dayf}->{day}[$day]->{part}[$day_part]->{icon},2);
}
case "temperature" {
&load_data;
print $temperature_space.$weather->{dayf}->{day}[$day]->{hi}."/".$weather->{dayf}->{day}[$day]->{low}."˚C";
}
case "update_info"{
&update_load;
&info;
}
}

#====================================================================================

sub update_load {
if(-e $file ){ # File does exist
&load_data;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time);
split /\/|\s|\:/, $weather->{cc}->{lsup};
if ($_[3] == 12) {$_[3] = 0};
if ($_[5] eq "PM") {$_[3] += 12};
$update = !($_[0] == $mon + 1 && $_[1] == $mday && $_[2] == $year - 100 && $_[3] == $hour);
}
else {$update = TRUE};
if ($update) {
`wget -O $tempfile "http://xoap.weather.com/weather/local/$code?dayf=$forecast&unit=$units&cc=*"`;
if (-s $tempfile > 0) {
`mv -f $tempfile $file`;
&load_data
}
}
}

sub info {
split ",", $weather->{loc}->{dnam};
print "  ".$_[0]." (".$weather->{loc}->{lat}." s. š.,  ".$weather->{loc}->{lon}." v. d.)\n";
split /\/|\s|\:/, $weather->{cc}->{lsup};
if ($_[3] == 12) {$_[3] = 0};
if ($_[5] eq "PM") {$_[3] += 12};
print "  Stav:   ".$_[3].":".$_[4].",   ".$_[1].". ".$_[0].". 20".$_[2]."             Update: ".&time12_24($weather->{loc}->{tm})."\n"
     ."                              Tlak: ".&translate($weather->{cc}->{bar}->{d},2)." ".$weather->{cc}->{bar}->{r}." hPa\n"
     ."                              Vítr: ".$weather->{cc}->{wind}->{s}." km/h  ".&translate($weather->{cc}->{wind}->{t},2)." (".$weather->{cc}->{wind}->{d}."˚)\n"
     ."                              Vlhkost: ".$weather->{cc}->{hmid}." \%\n"
     ."                              Rosný bod: ".$weather->{cc}->{dewp}." ˚C\n"
     ."                              Viditelnost: ".$weather->{cc}->{vis}." km\n"
     ."                              Východ: ".&time12_24($weather->{loc}->{sunr})."       Západ: ".&time12_24($weather->{loc}->{suns})."\n"
     ."                              Měsíc: ".&translate($weather->{cc}->{moon}->{t},2)."\n\n"
     ."   ".&day_names_cz_short(5)."\n\n\n";
}

sub load_data {
$xml = new XML::Simple;
$weather = $xml->XMLin($file);
}

sub time12_24 {
split /\:|\s/, $_[0];
if ($_[0] == 12) {$_[0] = 0};
if ($_[2] eq "PM") {$_[0] += 12};
return "$_[0]".":"."$_[1]";
}

sub day_names_cz_short {
# $_[0]; # number of days displayed, starting from the next day
my $text = &translate($weather->{dayf}->{day}[1]->{t},3);
for ($i = 2; $i < $_[0]+1; ++$i){
$text .= $day_space.&translate($weather->{dayf}->{day}[$i]->{t},3);
}
return $text;
}

sub translate {
#$_[0] String to be translated
#$_[1] Column with translation
my $temp = `cat $directory/weather.pl | grep -x "#\\s*$_[0]\\s*#.*\n"`;
if ($temp eq ""){return $_[0]}
else {return (split /\s*#\s*|\s*\n/,$temp)[$_[1]]};
}

######################################
#                                    #
#       TRANSLATION TABLES           #
#                                    #
######################################

# DAYS

# Monday # Pondělí # Po
# Tuesday # Úterý # Út
# Wednesday # Středa # St
# Thursday # Čtvrtek # Čt
# Friday # Pátek # Pá
# Saturday # Sobota # So
# Sunday # Neděle # Ne

# WINDS

# N # S
# E # V
# S # J
# W # Z
# NE # SV
# SE # JV
# SW # JZ
# NW # SZ
# NNE # SSV
# ENE # VSV
# ESE # VJV
# SSE # JJV
# NNW # SSZ
# WNW # ZSZ
# WSW # ZJZ
# SSW # JJZ

# CONDITIONS

# Mostly Sunny # a
# Mostly Clear # a
# Fair # b
# Partly Cloudy # c
# Clouds Early / Clearing Late # c
# Mostly Cloudy # d
# Cloudy # d
# Light Rain Early # g
# Few Showers # g
# Showers # g
# Light Rain # g
# PM Light Rain # g
# Rain # h
# Rain / Wind # h
# Rain / Snow # k
# Rain / Snow Showers # k
# Light Snow # k
# PM Light Snow # k
# Scattered T-Storms # f
# N/A
# Fair and Windy

# LUNAR PHASES
# Codes are for a white font.
# New # Nov # 9
# Waxing Crescent # Dorůstající srpek # 7
# First Quarter # První čtvrť # 0
# Waxing Gibbous # Dorůstající měsíc # 3
# Full # Úplněk # 1
# Waning Gibbous # Couvající měsíc # 3 # (left <-> right)
# Last Quarter # Poslední čvrť # 0 # (left <-> right)
# Third Quarter # Poslední čvrť # 0 # (left <-> right)
# Waning Crescent # Ubývající srpek # 7 # (left <-> right)

# PREASURE

# rising # ↑
# falling # ↓
# steady # =

# ICONS

# 0 # i
# 1 # h
# 2 # h
# 3 # i
# 4 # i
# 5 # k
# 6 # h
# 7 # k
# 8 # g
# 9 # g
# 10 # h
# 11 # g
# 12 # h
# 13 # j
# 14 # k
# 15 # j
# 16 # k
# 17 # i
# 18 # h
# 19 # v # dust
# 20 # v # fog
# 21 # v # haze
# 22 # v # smoke
# 23 # w
# 24 # w
# 25 # j
# 26 # d
# 27 # d
# 28 # c
# 29 # b
# 30 # b
# 31 # 1
# 32 # a
# 33 # 1
# 34 # b
# 35 # i
# 36 # l
# 37 # f
# 38 # f
# 39 # h
# 40 # h
# 41 # k
# 42 # k
# 43 # k
# 44 # b
# 45 # h
# 46 # k
# 47 # g
# na # ~

V .conkyrc ten skript volám pomocí:
Kód: [Vybrat]
${execi 900 perl ~/.conky/weather.pl update_info EZXX0016 m 6 >/tmp/weather.template}${exec head -14 /tmp/weather.conky}
${execpi 247 cat ~/.conky/weather.conky}

Když použiju to cos mi radil, tedy:
Kód: [Vybrat]
${texeci 360 perl ~/.conky/weather.pl UKXX0092 en m ~/.conky/weather.template ~/.conky/weather.conky}
${execpi 247 cat ~/.conky/weather.conky}
místo jakéhokoliv počasí, se mi zobrazí jen ${execpi}
Verze Conky je 1.4.7 a Ubunty v. 7.10
knihovny, které jsem instaloval:
libxml-parser-perl
libxml-twig-perl
libxml-simple-perl

a poslední věc, font weather.ttf (původně se jmenoval wef_____.ttf a přepsal jsem ho na weather.ttf) jsem nakopíroval do
/usr/share/fonts/truetype/msttcorefonts/

Udělal jsem něco špatně?? začínám z toho být špatný :-\

Pepe999

  • Stálý člen
  • **
  • Příspěvků: 775
Re: CONKY
« Odpověď #245 kdy: 27 Června 2008, 22:03:41 »
To je prave jeden font a ty potrebujes ten, cos prepsal jako original(asi). Ja mam ten wef____.ttf i ten weather.ttf. Tvuj dalsi problem je verze Conky. Pocasi prej funguje az od verze 1.5.1 a ta je az v Hardy, nebo si ji budes muset zkompilovat.. :)

hoffmann

  • Aktivní člen
  • *
  • Příspěvků: 396
  • Linux user number: 480304
Re: CONKY
« Odpověď #246 kdy: 28 Června 2008, 12:17:13 »
Nejak mi to nejede. Vite nekdo co s tim?

Kód: [Vybrat]
kuratko@kuratko-laptop:~$ conky
Conky: use_spacer should have an argument of left, right, or none.  'no' seems to be some form of 'false', so defaulting to none.
Conky: statfs '/media/winlin': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: desktop window (10000b6) is subwindow of root window (87)
Conky: window type - normal
Conky: drawing to created window (4800001)
Conky: drawing to double buffer
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/winlin': No such file or directory
Missing right curly or square bracket at /home/kuratko/.conky/rates.pl line 27, at end of line
syntax error at /home/kuratko/.conky/rates.pl line 27, at EOF
Execution of /home/kuratko/.conky/rates.pl aborted due to compilation errors.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/weather.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/weather.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Can't locate XML/Simple.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /home/kuratko/.conky/tv.pl line 4.
BEGIN failed--compilation aborted at /home/kuratko/.conky/tv.pl line 4.
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/winlin': No such file or directory
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/winlin': No such file or directory
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/winlin': No such file or directory
Conky: statfs '/media/KINGSTON': No such file or directory
Conky: statfs '/media/data/': No such file or directory
Conky: statfs '/media/data': No such file or directory
Conky: statfs '/media/winlin/': No such file or directory
Conky: statfs '/media/winlin': No such file or directory
Debian Jessie | Kernel 3.16.0-4-amd64 | XFCE 4.10,
- notebook HP630 Intel Pentium Dual Core B960 2,2 GHz | 6 GB DDR3 1333 MHz | Intel HD Graphics | HDD Toshiba 320 GB 5400 RPM S-ATA | DVD+/-RW SuperMulti DL s LightScribe 
- is dead notebook Asus A9RP Celeron M440 1,86 GHz | grafika ATI Radeon Xpress 200m | HD 60 GB | pamet DDR II 1024 MB | DVDRAM GSA-T40N HL-DT-ST | Wi-Fi ASUS

Richie

  • Návštěvník
  • Příspěvků: 65
Re: CONKY
« Odpověď #247 kdy: 28 Června 2008, 12:29:23 »
Musíš upravit cestlu k diskům v souboru .conkycr
podle toho výpisu nemůže najít disk winlin a data. Přepiš cestu a mělo by to jet. S těma skriptama na počasí a měny ti bohužel neporadím. taky mi to nejde

hoffmann

  • Aktivní člen
  • *
  • Příspěvků: 396
  • Linux user number: 480304
Re: CONKY
« Odpověď #248 kdy: 28 Června 2008, 12:30:19 »
to je v pohode, ale nejede mi to pocasi a tv.
Debian Jessie | Kernel 3.16.0-4-amd64 | XFCE 4.10,
- notebook HP630 Intel Pentium Dual Core B960 2,2 GHz | 6 GB DDR3 1333 MHz | Intel HD Graphics | HDD Toshiba 320 GB 5400 RPM S-ATA | DVD+/-RW SuperMulti DL s LightScribe 
- is dead notebook Asus A9RP Celeron M440 1,86 GHz | grafika ATI Radeon Xpress 200m | HD 60 GB | pamet DDR II 1024 MB | DVDRAM GSA-T40N HL-DT-ST | Wi-Fi ASUS

Pepe999

  • Stálý člen
  • **
  • Příspěvků: 775
Re: CONKY
« Odpověď #249 kdy: 28 Června 2008, 15:20:10 »
to je v pohode, ale nejede mi to pocasi a tv.
Mas doinstalovane ty baliky, libxml-simple-perl atd??

 

Provoz zaštiťuje spolek OpenAlt.