Tra le stringhe lunghe non riesco a ricercare dove c'è il guasto o se manca qualcosa.
Il che, lo avvio sia da ConkyManager (conky-start.sh) o sia da terminale (conky -D -c ~/.conky/mio_conky/conkyrc) non c'è il nome della mia città
Codice: Seleziona tutto
# Release date: December, 24 2015
# Updates date: May, 28 2016
# Feel free to modity this script ;)
own_window_type override
own_window yes
own_window_title
own_window_class Conky
#own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
background yes
cpu_avg_samples 2
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
update_interval 3
#update_interval_on_battery
use_spacer none
times_in_seconds no
#append_file
#disable_auto_reload
#diskio_avg_samples
#display
#top_name_width
#top_cpu_separate true
####################################################
# ------ aspetto ------
#default_bar_size
default_color 8c9ea1
color1 0077ff
color2 7ac7b8
uppercase no
draw_borders no
border_width 2
#border_inner_margin
#border_outer_margin
draw_outline no
default_outline_color 3e3e3e
draw_shades yes
default_shade_color 000000
draw_graph_borders no
stippled_borders no
show_graph_scale yes
show_graph_range no
#default_gauge_size 25 25
#default_graph_size 0 25
#extra_newline
####################################################
# ------ fonts ------
use_xft yes
xftfont Worstveld Sling Extra:size=12
font Worstveld Sling Extra:size=12
#format_human_readable
xftalpha 0.8
total_run_times 0
override_utf8_locale yes
TEXT
###############
#---METEO---
${font Purisa:size=12} ${voffset -10}${color3}METEO»${font}
${execi 300 curl -s "http://wxdata.weather.com/wxdata/weather/local/ITXX0158?cc=*&dayf=2&unit=m" -o ~/.cache/conky.txt} # <---- change your city code ONLY ITXX0158
${offset 30}${color white}${font Purisa:size=10}${execi 600 grep '<tmp>' ~/.cache/conky.txt | cut -d ">" -f 2 | cut -d "<" -f 1}° ${voffset -20}${font ConkyWeather:size=40}${color white}${execi 900 ~/.ppw.sh}${font}
${offset 100}${voffset -45}${color white}${execi 500 ~/.pplang.sh}
${offset 40}${color darkgreen}Vento ${color lightgreen}${execi 500 awk 'NR==35' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1} Km/s ${execi 500 awk 'NR==38' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1} $alignc${offset 40}${color darkgreen}Umidita' ${color lightgreen}${execi 500 awk 'NR==40' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1}%
${offset 40}${color darkgreen}Alba ${color lightgreen} ${execi 3600 awk 'NR==16' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1} $alignc${offset 40}${color darkgreen}Tramonto${color lightgreen} ${execi 3600 awk 'NR==17' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1}
${offset 70}${voffset 16}${color darkgreen}Domani${color lightgreen} ${font ConkyWeather:size=35}${voffset -18}${execi 1000 ~/.ppday2.sh}${font}${voffset -18} ${execi 3600 awk 'NR==88' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1}° ${execi 3600 awk 'NR==87' ~/.cache/conky.txt | cut -d '>' -f2 | cut -d '<' -f1}°