Ciao a tutti, questa sera ho avuto un po' di tempo a disposizione e ho cercato di configurare conkyForecast per avere le previsioni del meteo sul mio desktop. Avverto: è la prima volta che uso conky.
Per fare il tutto, ho seguito questa guida.
Dunque:
- Ho installato Conky e Conkyforecast
- Ho copiato nella mia home i file conkyForecast.config e conkyrc che ho trovato in /usr/share/conkyForecast/example e ho creato (sempre nella home) una cartella .script dove ho copiato al suo interno il file conkyForecast.template.
- In conkyForecast.config ho sostituito i codici XOAP_PARTNER_ID, XOAP_LICENCE_KEY e DEFAULT_LOCATION
- In .conkyrc ho inserito il codice della mia location e sostituito il percorso del template
Avviandolo, sul desktop mi ritrovo solo la scritta "weather", ma nessuna previsione meteo e da terminale vi viene restituito quanto segue:
brando@Yoda:~$ conky -c .conkyrc Conky: .conkyrc: 56: no such configuration: 'border_margin' Conky: desktop window (1c000a7) is subwindow of root window (15d) Conky: window type - override Conky: drawing to created window (0x6000001) Conky: drawing to double buffer sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found sh: conkyForecast: not found
Non capisco se è conkyrc che non trova conkyForecast.config oppure è conkyforecast che non riesce a connettersi a weather.com.
Di seguito riporto anche i contenuti dei file suddetti:
conkyrc:
# conky configuration # edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com> # set to yes if you want Conky to be forked in the background background no # X font when Xft is disabled, you can pick one with program xfontsel #font 5x7 #font 6x10 #font 7x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* # Use Xft? use_xft yes # Xft font when Xft is enabled xftfont Bitstream Vera Sans Mono:size=9 # Text alpha when using Xft xftalpha 0.8 # Update interval in seconds update_interval 1.0 # 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 no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # Minimum size of text area minimum_size 300 0 maximum_width 300 # Draw shades? draw_shades yes # Draw outlines? draw_outline no # Draw borders around text draw_borders no draw_graph_borders yes # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color white default_shade_color black default_outline_color white # own window options own_window yes own_window_transparent yes own_window_type override own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager # 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 10 gap_y 35 # 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 right # colours color1 white # light blue color2 6892C6 # orange #E77320 color3 FC8820 # green color4 78BF39 # red color5 CC0000 text_buffer_size 2048 # variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen TEXT ${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font} ${hr}${color1} ${color3}Template Output:${color1} ${execpi 1800 conkyForecast --location=ITLM2237 --template=/home/brando/.script/conkyForecast.template} ${color3}Standard Output:${color1} ${font Bitstream Vera Sans Mono:size=14}${execi 1800 conkyForecast --location=ITLM2237 --datatype=CT}${font} ${font ConkyWeather:style=Bold:size=40}${execi 1800 conkyForecast --location=ITLM2237 --datatype=WF} ${font ConkyWindNESW:size=40}${execi 1800 conkyForecast --location=ITLM2237 --datatype=BS}${font} ${execi 1800 conkyForecast --location=ITLM2237 --datatype=HT --centeredwidth=4}/${execi 1800 conkyForecast --location=ITLM2237 --datatype=LT --centeredwidth=4} ${execi 1800 conkyForecast --location=ITLM2237 --datatype=WS --imperial} - ${execi 1800 conkyForecast --location=ITLM2237 --datatype=WD}
conkyForecast.config:
# config settings for conkyForecast.py CACHE_FOLDERPATH = /tmp/ CONNECTION_TIMEOUT = 5 EXPIRY_MINUTES = 30 TIME_FORMAT = %H:%M DATE_FORMAT = %Y-%m-%d LOCALE = it XOAP_PARTNER_ID = xxxxxxxxx XOAP_LICENCE_KEY = xxxxxxxxxxx DEFAULT_LOCATION = ITLM2237 MAXIMUM_DAYS_FORECAST = 4 AUTO_NIGHT = False BASE_XOAP_URL = http://xoap.weather.com/weather/local/<LOCATION>?cc=*&dayf=5&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m #BASE_XOAP_URL = http://xml.weather.com/weather/local/<LOCATION>?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m PROXY_HOST = PROXY_PORT = 8080 PROXY_USERNAME = PROXY_PASSWORD =
conkyForecast.template:
${voffset 5}${goto 10}${font ConkyWeather:style=Bold:size=40}[--datatype=WF]${font} ${voffset 5}${goto 20}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3] ${voffset 10}${goto 10}${font ConkyWindNESW:size=40}[--datatype=BS]${font} ${voffset 5}${goto 10}[--datatype=WS --imperial] - [--datatype=WD] ${voffset -145}${goto 100}${color1}${font Bitstream Vera Sans Mono:style=Bold:size=14}[--datatype=CT]${font} ${voffset 10}${goto 100}${color3}Station: ${color1}[--datatype=OB] ${goto 100}${color3}Rain: ${color1}[--datatype=PC] ${goto 100}${color3}UV: ${color1}[--datatype=UI] - [--datatype=UT] ${goto 100}${color3}Humidity: ${color1}[--datatype=HM] ${goto 100}${color3}Dew Point: ${color1}[--datatype=DP] ${goto 100}${color3}Sunrise/Set: ${color1}[--datatype=SR] / [--datatype=SS] ${goto 100}${color3}Bar: ${color1}[--datatype=BR] - [--datatype=BD] ${goto 100}${color3}Moon: ${color1}[--datatype=MP] ${voffset 25}${goto 25}[--datatype=DW --startday=1 --shortweekday]${goto 100}[--datatype=DW --startday=2 --shortweekday]${goto 175}[--datatype=DW --startday=3 --shortweekday]${goto 250}[--datatype=DW --startday=4 --shortweekday] ${voffset 10}${goto 10}${font ConkyWeather:size=32}[--datatype=WF --startday=1 --endday=4 --spaces=3]${font} ${voffset 15}${goto 15}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 90}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 170}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 245}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3] ${color3}${font Bitstream Vera Sans Mono:size=7}${alignr 20}Last Update: [--datatype=LU]${font}
Ho anche provato ad installare questo conkyweather, ma anche per questo vedo solo la grafica con l'orologio ma nessuna previsione meteo
.
Sapreste dirmi qualcosa?
Grazie a chi mi dedica un briciolo di tempo.
.theShort 






Attached images: