[Risolto] Conky Meteo non è presente la mia città

Personalizzazione grafica del sistema: icone, temi, sfondi, suoni, eccetera.
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

[Risolto] Conky Meteo non è presente la mia città

Messaggio da ivantu »

Ora che viene visto in ConkyManager il mio conkyrc, ho il problema dei script Conky Meteo

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}°
Ultima modifica di ivantu il venerdì 22 luglio 2016, 17:15, modificato 1 volta in totale.
Buona giornata utenti del forum. :ciao: ivantu
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Conky Meteo non è presente la mia città

Messaggio da ivantu »

Ho [risolto] anche questo problema

Mancava alcuni parametri come '<dnam>' nel paragrafo TEXT

da sostituire la linea di codice

Codice: Seleziona tutto

${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}
con

Codice: Seleziona tutto

${offset 30}${color slate blue}${font Purisa:size=11}${execi 3600 grep "<dnam>" ~/.cache/conky.txt | cut -d '>' -f 2 |cut -d ',' -f 1}    ${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}
Prima di mettere il tag, avrei il problema che non è correttamente centrato e il nome_città viene posizionato sopra i parametri della temperatura.
Buona giornata utenti del forum. :ciao: ivantu
Avatar utente
UbuNuovo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4433
Iscrizione: sabato 12 dicembre 2009, 20:58
Desktop: Mate
Distribuzione: Ubuntu Mate 22.04.1 LTS
Sesso: Maschile
Contatti:

Re: Conky Meteo non è presente la mia città

Messaggio da UbuNuovo »

Cambia il valore di voffset per spostamenti verticali (offset orizzontali)
Salva l'Ucraina! 🇺🇦
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Conky Meteo non è presente la mia città

Messaggio da ivantu »

Ciao
ok da qui ci avevo già capito che il valore da modificare era su voffset, provato. Più di tanto non riesco, perchè nella visualizzazione non è corretta, o è sormontato con le altre voci, non mi permette un buona visualizzazione
Buona giornata utenti del forum. :ciao: ivantu
Avatar utente
UbuNuovo
Imperturbabile Insigne
Imperturbabile Insigne
Messaggi: 4433
Iscrizione: sabato 12 dicembre 2009, 20:58
Desktop: Mate
Distribuzione: Ubuntu Mate 22.04.1 LTS
Sesso: Maschile
Contatti:

Re: Conky Meteo non è presente la mia città

Messaggio da UbuNuovo »

Prova a intervenire anche sulle parti precedenti e successive.
A me il tuo conkyrc non visualizza nulla, quindi non posso provare, hai delle impostazioni che per il mio pc non vanno bene.
Salva l'Ucraina! 🇺🇦
ivantu
Rampante Reduce
Rampante Reduce
Messaggi: 6658
Iscrizione: sabato 8 giugno 2013, 9:25
Desktop: Ubuntu Lubuntu Budgie
Distribuzione: 20.04 LTS; 22.04 LTS
Sesso: Maschile

Re: Conky Meteo non è presente la mia città

Messaggio da ivantu »

capisco. grazie
Buona giornata utenti del forum. :ciao: ivantu
Scrivi risposta

Ritorna a “Personalizzazione dell'ambiente desktop”

Chi c’è in linea

Visualizzano questa sezione: 0 utenti iscritti e 11 ospiti