[Risolto] Piccolo problema di configurazione conky

Installazione, configurazione e uso di programmi e strumenti.
Avatar utente
VitoDoc
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2061
Iscrizione: domenica 6 maggio 2012, 18:01
Desktop: plasma
Distribuzione: KUbuntu 18.04 LTS
Sesso: Maschile

[Risolto] Piccolo problema di configurazione conky

Messaggio da VitoDoc »

Salve a tutti,
Sto cercando di configurare un secondo file conkyrc seguendo questa guida .

Dovrei ottenere una cosa del genere
solar.gif
solar.gif (6.91 KiB) Visualizzato 311 volte
Invece ottengo questo
Screenshot_20180709_173319.png
Questo è il mio file di configurazione

Codice: Seleziona tutto

-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = true,
    border_width = 1,
    cpu_avg_samples = 1,
    default_color = '00FF00',
    default_outline_color = '',
    default_shade_color = '000000',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = true,
    extra_newline = false,
    font = 'DejaVu Sans Mono:size=14',
    gap_x = 50,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 1,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    own_window = true,
    own_window_class = 'conky',
    own_window_type = 'normal',
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager',
    show_graph_scale = false,
    show_graph_range = false,
    stippled_borders = 0,
    update_interval = 0.5,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
    
}

conky.text = [[
#
# Downloads data from http://www.hamqsl.com/solar.html and show is on the 
# desktop. 
#

background no 

use_xft yes

update_interval 10.0

own_window yes
own_window_type override
own_window_transparent = yes

# size of the image (width x height)
minimum_size 460 150

# 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 
gap_x 50
gap_y 50

# stuff after 'TEXT' will be formatted on screen
TEXT
${execi 300 wget http://www.hamqsl.com/solar101vhf.php -O /tmp/solar.gif}
${image /tmp/solar.gif}
]]
Come posso risolvere ?
Ultima modifica di VitoDoc il lunedì 9 luglio 2018, 22:06, modificato 1 volta in totale.
Avatar utente
Lo Zio
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1819
Iscrizione: mercoledì 16 settembre 2009, 23:51
Desktop: xfce / kde-plasma
Distribuzione: Debian 12 (bookworm) x86_64
Sesso: Maschile
Località: Torino
Contatti:

Re: Piccolo problema di configurazione conky

Messaggio da Lo Zio »

hai copiato male il conky e hai due parti riguardanti a TEXT
modificalo come segue:

Codice: Seleziona tutto

-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo

Any original torsmo code is licensed under the BSD license

All code written since the fork of torsmo is licensed under the GPL

Please see COPYING for details

Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
]]

conky.config = {
    alignment = 'top_left',
    background = true,
    border_width = 1,
    cpu_avg_samples = 1,
    default_color = '00FF00',
    default_outline_color = '',
    default_shade_color = '000000',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = false,
    draw_shades = true,
    extra_newline = false,
    font = 'DejaVu Sans Mono:size=14',
    gap_x = 50,
    gap_y = 50,
    minimum_height = 5,
    minimum_width = 5,
    net_avg_samples = 1,
    no_buffers = true,
    out_to_console = false,
    out_to_stderr = false,
    own_window = true,
    own_window_class = 'conky',
    own_window_type = 'normal',
    own_window_transparent = true,
    own_window_argb_visual = true,
    own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager',
    show_graph_scale = false,
    show_graph_range = false,
    stippled_borders = 0,
    update_interval = 0.5,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true,
   
}

conky.text = [[
${execi 300 wget http://www.hamqsl.com/solar101vhf.php -O /tmp/solar.gif}
${image /tmp/solar.gif}
]]
--> * Indice Wiki * Photoshop su Wine * Cerca su Ubuntu.it *

......ti accorgi che fa caldo quando dai come input "sudo" e il terminale ti da come output "Anche io"
Avatar utente
VitoDoc
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2061
Iscrizione: domenica 6 maggio 2012, 18:01
Desktop: plasma
Distribuzione: KUbuntu 18.04 LTS
Sesso: Maschile

Re: Piccolo problema di configurazione conky

Messaggio da VitoDoc »

Grazie per aver risposto :)
Ottengo questo

Codice: Seleziona tutto

conky: can't parse X color ''
conky: desktop window (1e0000a) is subwindow of root window (1e1)
conky: window type - normal
conky: drawing to created window (0x7000002)
conky: drawing to double buffer
conky: forked to background, pid is 32276
e questo
Screenshot_20180709_210116.png
Screenshot_20180709_210116.png (4.72 KiB) Visualizzato 289 volte
Avatar utente
Lo Zio
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1819
Iscrizione: mercoledì 16 settembre 2009, 23:51
Desktop: xfce / kde-plasma
Distribuzione: Debian 12 (bookworm) x86_64
Sesso: Maschile
Località: Torino
Contatti:

Re: Piccolo problema di configurazione conky

Messaggio da Lo Zio »

l'errore adesso riguarda:

Codice: Seleziona tutto

conky: can't parse X color ''
ovvero manca un colore nella parte

Codice: Seleziona tutto

default_outline_color = '',
modifica in

Codice: Seleziona tutto

default_outline_color = 'white',
per ottenere il bianco 'black' per nero,etc...

Codice: Seleziona tutto

conky: desktop window (1e0000a) is subwindow of root window (1e1)
conky: window type - normal
conky: drawing to created window (0x7000002)
conky: drawing to double buffer
conky: forked to background, pid is 32276
invece riguarda le trasparenze del conky sul desktop,quindi devi cercare i parametri in base al tuo ambiente grafico,ad esempio su xfce i parametri trasparenza sono:

Codice: Seleziona tutto

 own_window = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_transparent = true,
own_window_class = 'conky',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
e dovrai modificare quei parametri in base al tuo ambiente grafico. (ogni ambiente ha la sua trasparenza).

Anche le dimensioni mi sembrano sbagliate.Prova a controllare i parametri

Codice: Seleziona tutto

minimum_width = 220,
 maximum_width = 220,
e aumenta le dimensioni di visualizzazione del conky
--> * Indice Wiki * Photoshop su Wine * Cerca su Ubuntu.it *

......ti accorgi che fa caldo quando dai come input "sudo" e il terminale ti da come output "Anche io"
Avatar utente
VitoDoc
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 2061
Iscrizione: domenica 6 maggio 2012, 18:01
Desktop: plasma
Distribuzione: KUbuntu 18.04 LTS
Sesso: Maschile

Re: Piccolo problema di configurazione conky

Messaggio da VitoDoc »

Per quanto riguarda la trasparenza era un falso errore dato che era avviato kodi che disattiva tutto il mondo :D
Ho modificato la larghezza e l'altezza come da te suggerito ed è ok :)
Grazie mille.
Screenshot_20180709_220511.png
EDIT: una curiosità...nel cfg che mi ha dato non c'è il refresh dell'immagine....come fa adesso ad aggiornarsi ?
Avatar utente
Lo Zio
Entusiasta Emergente
Entusiasta Emergente
Messaggi: 1819
Iscrizione: mercoledì 16 settembre 2009, 23:51
Desktop: xfce / kde-plasma
Distribuzione: Debian 12 (bookworm) x86_64
Sesso: Maschile
Località: Torino
Contatti:

Re: Piccolo problema di configurazione conky

Messaggio da Lo Zio »

VitoDoc [url=https://forum.ubuntu-it.org/viewtopic.php?p=5068936#p5068936][img]https://forum.ubuntu-it.org/images/icons/icona-cita.gif[/img][/url] ha scritto:una curiosità...nel cfg che mi ha dato non c'è il refresh dell'immagine....come fa adesso ad aggiornarsi ?
il refresh c'è ;)

Codice: Seleziona tutto

  
update_interval = 0.5,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
è impostato a mezzo secondo dal parametro update_interval
--> * Indice Wiki * Photoshop su Wine * Cerca su Ubuntu.it *

......ti accorgi che fa caldo quando dai come input "sudo" e il terminale ti da come output "Anche io"
Scrivi risposta

Ritorna a “Applicazioni”

Chi c’è in linea

Visualizzano questa sezione: Bing [Bot], caturen e 13 ospiti