pinkblue님이 올린글을 보고 저도 따라해봤는데여 viewtopic.php?p=30043
우선 제 .conkyrc 스크립트 입니다.
[quote:ev80j3t8]# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
Update interval in seconds
update_interval 1
This is the number of times Conky will update before quitting.
Set to zero to run forever.
total_run_times 0
Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
Minimum size of text area
minimum_size 180 0
#maximum_width 200
Draw shades?
draw_shades no
Draw outlines?
draw_outline no
Draw borders around text
draw_borders no
Stippled borders?
stippled_borders 0
border margins
border_margin 5
border width
border_width 1
Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white
Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
Gap between borders of screen and text
same thing as passing -x at command line
gap_x 20
gap_y 50
Subtract file system buffers from used memory?
no_buffers yes
set to yes if you want all text to be in uppercase
uppercase no
number of cpu samples to average
set to 1 to disable averaging
cpu_avg_samples 2
number of net samples to average
set to 1 to disable averaging
net_avg_samples 2
Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
SYSTEM ${hr 2}
${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}q${font} Upt(Tmp): ${alignr}${uptime}(${acpitemp})
${voffset 4}${font PizzaDude Bullets:size=14}a${font} IP Address: ${alignr}${addr eth0}
Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107 cccccc ffffff} ${alignr}${upspeedgraph eth0 25,107 cccccc ffffff}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}
HDD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
WEATHER ${hr 2}
${if_existing /proc/net/route eth0}
${voffset-10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600conkyForecast --location=KSXX0007 --datatype=WF}${font}
${voffset-50}${font Weather:size=40}y${font} ${voffset -38}${font ArialBlack:size=26}${execi 600 conkyForecast --location=KSXX0007–datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600conkyForecast --location=KSXX0007 --datatype=DW --startday=1–shortweekday} ${alignc 8}${execpi 600 conkyForecast–location=KSXX0007 --datatype=DW --startday=2 --shortweekday} ${alignc-29}${execpi 600 conkyForecast --location=KSXX0007 --datatype=DW–startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast–location=KSXX0007 --datatype=DW --startday=4 --shortweekday}
${voffset0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast–location=KSXX0007 --datatype=WF --startday=1 --endday=4–spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc48}${execpi 600 conkyForecast --location=KSXX0007 --datatype=HT–startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast–location=KSXX0007 --datatype=LT --startday=1 --hideunits–centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast–location=KSXX0007 --datatype=HT --startday=2 --hideunits–centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0007–datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc-40}${execpi 600 conkyForecast --location=KSXX0007 --datatype=HT–startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast–location=KSXX0007 --datatype=LT --startday=3 --hideunits–centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast–location=KSXX0007 --datatype=HT --startday=4 --hideunits–centeredwidth=3}/${execpi 600 conkyForecast --location=KSXX0007–datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${voffset 0}Station: ${alignr}${execpi 600 conkyForecast --location=KSXX0007 --datatype=OB}
${voffset 0}Precipitation: ${alignr}${execpi 600 conkyForecast --location=KSXX0007 --datatype=PC}
${voffset0}UV Rays: ${alignr}${execpi 600 conkyForecast --location=KSXX0007–datatype=UI} - ${execpi 600 conkyForecast --location=KSXX0007–datatype=UT}
${voffset 0}Wind: ${alignr}${execpi 600 conkyForecast–location=KSXX0007 --datatype=WS} - ${execpi 600 conkyForecast–location=KSXX0007 --datatype=WD}
${voffset 0}Visibility: ${alignr}${execpi 600 conkyForecast --location=KSXX0007 --datatype=VI}
${voffset 0}Humidity: ${alignr}${execpi 600 conkyForecast --location=KSXX0007 --datatype=HM}
${voffset 0}Dew Point: ${alignr}${execpi 600 conkyForecast --location=KSXX0007 --datatype=DP}
${voffset0}Bar: ${alignr}${execpi 600 conkyForecast --location=KSXX0007–datatype=BR} - ${execpi 600 conkyForecast --location=KSXX0007–datatype=BD}
${voffset 0}Sunrise/Set: ${alignr}${execpi 600conkyForecast --location=KSXX0007 --datatype=SR} / ${execpi 600conkyForecast --location=KSXX0007 --datatype=SS}
${voffset 0}Moon:${alignr}${execpi 600 conkyForecast --location=KSXX0007–datatype=MP}${else}${font PizzaDude Bullets:size=14}4${font} Weather Unavailable${endif}
DATE ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${font NanumGothic:pixelsize=14}${alignc}${time %Y년 %m월 %d일 %A}${font}
${alignc 12}${font OpenLogos:size=20}u${font}
${alignc}"Linux for Human Beings"
${alignc}Ubuntu 9.04 Jaunty Jackalope[*][/quote:ev80j3t8]
이쪽 사이트에서 download Source 에서 92328-conky_colors.tar.gz 을 받아서
/usr/share/fonts/truetype/myfonts 폰트 파일 바꾸고 conkyforecast_2.04_all.deb 이 위에 압축파일
안에 있다고 하는데 아무리 찾아도 없더군요.http://ubuntuforums.org/showthread.php?t=869328 사이트 아래에 보니까
conkyforecast_2.05_all.deb 요게 있어서 요거 다운받아서 설치하고 날씨 사이트에서 인증키 받아서
빈칸 채워 놓고 저는 청주 사니까 KSXX0010 이껄로 .conkyrc 파일 수정해주고요
혹시 몰라서 사이트에 나온거 저것도 해주구요
$sudo aptitude install conky python-statgrab ttf-liberation hddtemp sensors-applet
$sudo chmod u+s /usr/sbin/hddtemp
$sudo sensors-detect #answering Yes (default) to all questions, even that last one that defaults to No
날씨 사이트에서 인증키 받아서 홈 폴더에 있는 홈폴더에 있는 .conkyForecast.config랑
conky 폴더에 있는 .conkyForecast.config랑 둘다 이렇게 수정해줬구요
[quote:ev80j3t8]# config settings for conkyForecast.py
CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %Y-%m-%d
LOCALE =
XOAP_PARTNER_ID = 1133xxxxxx
XOAP_LICENCE_KEY = 56f9840d7axxxxx[/quote:ev80j3t8]
지금 홈폴더에 설치 되있는게
src 폴더 (92328-conky_colors.tar.gz)
.conky 폴더 (92328-conky_colors.tar.gz)
.conkyForecast.config
혹시 머가 빠진게 있나여?
터미널 실행 하니까 이렇게 나오구요
[quote:ev80j3t8]Conky: unknown variable voffset-10
Conky: unknown variable voffset-50
Conky: unknown variable alignc-29
Conky: unknown variable voffset0
Conky: unknown variable alignc48
Conky: unknown variable alignc-40
Conky: unknown variable voffset0
Conky: unknown variable voffset0
Conky: desktop window (18000a7) is subwindow of root window (80)
Conky: window type - override
Conky: drawing to created window (0x4200001)
Conky: drawing to double buffer
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=HT is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=HT is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
Usage: conkyForecast.py [options]
conkyForecast.py: error: option --startday: invalid integer value: ‘1–shortweekday’
sh: conkyForecast–location=KSXX0007: not found
ERROR: Unknown datatype requested: DW–startday=3
sh: conkyForecast–location=KSXX0007: not found
sh: conkyForecast–location=KSXX0007: not found
ERROR: Unknown datatype requested: HT–startday=1
sh: conkyForecast–location=KSXX0007: not found
sh: conkyForecast–location=KSXX0007: not found
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=LT is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=LT is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
ERROR: Unknown datatype requested: HT–startday=3
sh: conkyForecast–location=KSXX0007: not found
sh: conkyForecast–location=KSXX0007: not found
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=LT is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=LT is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=UI is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=UI is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=UT is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=UT is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
sh: conkyForecast–location=KSXX0007: not found
sh: conkyForecast–location=KSXX0007: not found
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=BR is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=BR is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=BD is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=BD is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
ERROR: Error reading weather data: Invalid location provided.
ERROR: Location KSXX0007–datatype=MP is not in cache.
ERROR: Failed to load the location cache
ERROR: Location KSXX0007–datatype=MP is not in cache.
Traceback (most recent call last):
File "/usr/share/conkyforecast/conkyForecast.py", line 1553, in <module>
main()
File "/usr/share/conkyforecast/conkyForecast.py", line 1550, in main
forecastinfo.writeOutput()
File "/usr/share/conkyforecast/conkyForecast.py", line 1416, in writeOutput
output = self.getDatasetOutput(self.options.location, self.options.datatype, self.options.startday, self.options.endday, self.options.night, self.options.shortweekday, self.options.imperial, self.options.beaufort, self.options.hideunits, self.options.hidedegreesymbol, self.options.spaces, self.options.minuteshide, self.options.centeredwidth)
File "/usr/share/conkyforecast/conkyForecast.py", line 1199, in getDatasetOutput
self.logger.error("Failed to load the location cache")
AttributeError: ForecastInfo instance has no attribute ‘logger’
^CConky: received SIGINT or SIGTERM to terminate. bye!
[/quote:ev80j3t8]
[attachment=0:ev80j3t8]screenshot1.png[/attachment:ev80j3t8]
뭐가 뭔지 잘 모르겠네여 열심히 따라해보고 이것저것 참고해봤는데 고수님들의 자문 부탁드립니다.