You are not logged in.
Good to know everything's settled unklar
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I just updated my conky config. It looks like this:
Here's the config is someone needs it:
https://github.com/morfikov/files/tree/ … fik/.conky
Offline
^That's kind of full. But I like it. Is that /var/log/messages? How do you do the output in conky?
I was thinking having that and maybe journalctl -xf as a background. Could there be anything else useful? Maybe .xsession-errors? I really dislike those silly 'bg_color' is not a valid color name messges, they're everywhere...
Offline
Logs aren't manged by conky. I have 5 different windows there: 4x conky (top, left, center and right) and 1x urxvt terminal with tmux on it with 8 tabs.
Logs come from different sources: systemd journal, FIFO devices managed by rsyslog daemon (local and remote) or messages sent via /etc/X11/Xsession script (exec >>"$ERRFILE" 2>&1 which gives me all the X session logs that usually go to .xsession-errors), etc. You basically can see the exact commands here (of course you have to do some filtering in rsyslog and redirect the messages to the FIFO devices).
Offline
^I see, thank you for the explanation.
I'm not sure, but I recall that I saw somewhere log messages shown in conky. I might be wrong though, maybe it was something else.
Offline
@morfik
Thanks for sharing your conky
@martix
I'm pretty sure you could print any log file with something like
${execpi 3600 less /path/to/file/filename.log|head -10}
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Since the openweathermap doesn't work reliably even with its own key, I converted the whole thing to Teo's reliable scripts today.
The image background in this archive is here
.conkyrc10 (code not cleaned up)
--April 2018 @unklar auf Basis von HTCSpill und 1_accuweather mit Forecast2016_Bilder
conky.config = {
-- Hintergrund
background = false,
update_interval = 2,--in Sekunden
-- Schrift
use_xft = true,
--font = 'terminus:size=8',--Schriftart
font = 'Liberation Mono:bold:size=8',
xftalpha = 0.2,
-- Aktualisierung und Fenster von Conky
total_run_times = 0,--Gesamtzahl der updates bis conky beendet wird; bei 0 laeuft endlos
own_window = true,--eigenes Fenster
own_window_type = 'normal',--Art des Fenster(normal=Standard,desktop=keine Fensterdekoration,panel=überdeckt das dm-panel,dock=immer oben,Sticky auf allen Fenstern)
-- override #wird nicht durch den Fenstermanager kontrolliert
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',--sticky,
own_window_class = 'conky',--damit conky bei bestimmten Fenstermanagern nicht verschwindet
own_window_argb_visual = true,
--own_window_argb_value 0 (durchsichtig)-255 (undurchsichtig)
--own_window_colour 000000 #wenn kein transparenter Hintergrund>Wahl der Hintergrundfarbe in hexadezimal(zB ffffff)
--own_window_title Teo-Weather #manuelles setzen des Fensternamen, Standard ist <hostname> -conky
-- Buffers
double_buffer = true,--bei eigenem Fenster, damit X-Server-Buffer nicht zu gross und kein Flackern auftritt
no_buffers = true,--damit der Arbeitsspeicher nicht überlaeuft
-- Aktualisierungsfrequenz von Prozessor und Netz
cpu_avg_samples = 2,
net_avg_samples = 2,
-- Rahmen
draw_shades = false,--Schatten um Text
draw_outline = false,
draw_borders = false,--Rahmen um Text
draw_graph_borders = false,--Rahmen um Graphen
border_inner_margin = 0,--Rahmenabstand in Pixeln
border_outer_margin = 0,--dito
stippled_borders = 0,--Abstaende gestrichelter Rahmen in Pixeln
-- Farben
default_color = 'white',--Ändern der Standardfarbe bei dunklen Hintergründen
default_color = 'black',--Ändern der Standardfarbe bei hellen Hintergründen
color0 = '#ffffff',--Beispiele
color1 = '#b22222',
-- Alignment #Ausrichtung auf dem Bildschirm
--alignment top_left #tl
--alignment top_right #tr
--alignment top_middle #tm
--alignment bottom_left #bl
--alignment bottom_right #br
--alignment bottom_middle #bm
--alignment middle_left #ml
--alignment middle_right #mr
--alignment middle_middle #mm
alignment = 'bottom_right',
uppercase = false,--Grossbuchstaben
use_spacer = 'none',--left,right or none nur mit Mono-Schriften, setzt Abstaende, damit das eine Objekt nicht das Andere verschiebt
text_buffer_size = 4096,--die Zahl bestimmt, dass conky nicht abgeschnitten wird
imlib_cache_size = 0,
override_utf8_locale = true,--damit Umlaute und Sonderzeichen korrekt erscheinen
-- Fenstergrösse
minimum_width = 235, minimum_height = 240,--minimale Fenstergrösse in Pixeln
--maximum_width 350 #maximale Breite in Pixeln
gap_x = 40,--Einstellung wenn conky oben
gap_y = 240,--Einstellung wenn conky unten
};
conky.text = [[
${execi 500 bash $HOME/1_accuweather/1_accuweather -f2016}\
${image $HOME/siduction_weather/images/base2.png -p -12,30 -s 260x145}\
${image $HOME/siduction_weather/images/base2.png -p -12,180 -s 260x62}\
${goto 28}${execpi 600 sed -n '4p' $HOME/1_accuweather/curr_cond|cut -c-13}\
${color0}${execpi 500 sed -n '1p' $HOME/1_accuweather/aktualisiert}${alignr 10}${font Liberation Mono:size=10}Today${font}
Wind ${execpi 600 sed -n '5p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${execpi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}° \
±${execpi 600 sed -n '3p' $HOME/1_accuweather/curr_cond}°
@ ${execpi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}\
${alignr 10}H ${execpi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${execpi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}\
${alignr 5}${color9}${execpi 600 sed -n '2p' $HOME/1_accuweather/first_days}° \
${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°
${image $HOME/1_accuweather/forecast_2016/wind_0.png -p 5,43 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_0.png -p 60,50 -s 120x115}\
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 5,175 -s 35x35}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 51,175 -s 35x35}\
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 97,175 -s 35x35}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 143,175 -s 35x35}\
${image $HOME/1_accuweather/forecast_2016/forecast_5.png -p 188,175 -s 35x35}\
${voffset 10}${alignc}Lichtenstein${voffset -8}
${goto 6}${font Liberation Mono:bold:size=8}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°\
${goto 52}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°\
${goto 99}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°\
${goto 144}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°/\
${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°\
${goto 190}${execpi 600 sed -n '3p' $HOME/1_accuweather/last_days}°/\
${execpi 600 sed -n '4p' $HOME/1_accuweather/last_days}° ${font}
${goto 12}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 58}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 105}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 150}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 196}${execpi 600 sed -n '1p' $HOME/1_accuweather/last_days|cut -c-3}
]];
Offline
Ok, thanks for posting it unklar.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Hello, Teo,
I just found a small bug in the 1_rss - archive.
In your .conkyrc_1_RSS you call the script with capital letters. The script itself is called 1_rss
Offline
@morfik
Thanks for sharing your conky@martix
I'm pretty sure you could print any log file with something like${execpi 3600 less /path/to/file/filename.log|head -10}
Thank you for the hint. I tried as an example
${execpi 3600 less /var/log/messages|head -10}
but there was no output for me (might be a permission issue as I start conky from userspace).
Meanwhile I found on gentoo wiki
${exec grep 'sudo' /var/log/messages | tail -n 4}
but for some reason it did not work either.
Offline
![]()
Hello, Teo,
I just found a small bug in the 1_rss - archive.
In your .conkyrc_1_RSS you call the script with capital letters. The script itself is called 1_rss
No, it's been 1_RSS since the latest update.
Thank you for the hint. I tried as an example
${execpi 3600 less /var/log/messages|head -10}
but there was no output for me (might be a permission issue as I start conky from userspace).
Meanwhile I found on gentoo wiki
${exec grep 'sudo' /var/log/messages | tail -n 4}
but for some reason it did not work either.
Are you sure there is a file called messages in your /var/log/ folder?
Cause in my system there isn't one.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Are you sure there is a file called messages in your /var/log/ folder?
There is one for me, I've got a longer output after
sudo cat /var/log/messages
Offline
When I try to read a text log file, everything's OK:
${execpi 3600 less /var/log/cups/error_log|head -10}
Maybe your messages file is a binary one?
Can you open it with a text editor (gedit, geany, etc.)?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
^Yes, I can open it with a text editor (as root). That must be a permission issue with conky. Otherwise that command works e.g. with:
${execpi 3600 less $HOME/.xsession-errors|head -10}
Offline
No, it's been 1_RSS since the latest update.
Teo,
I found the error.
With kernel 4.16 the support of the file system vfat was discontinued.
This leads to illogical phenomena in German (upper and lower case; umlauts; special characters) when using such a partition.
Here it was written in small letters during unpacking.
If the fstab option
iocharset=utf8
is inserted, everything is OK again.
I'm sorry I made the wrong assumption.
Offline
@martix
Interesting. On my system, everything's owned by root, but I can read all files, either in a terminal or with a text editor (can't make any changes and save though).
@unklar
Ah, right, I see. Good to know.
Last edited by TeoBigusGeekus (2018-04-21 22:37:47)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
hello,
i have a small problem with an error terminal that I'm not able to solve:
13:14 raphix > conky -c /home/raphix/1_accuweather/conkyHTChourlyTest.v10 < debian:pts/0:~
conky: desktop window (dc) is root window
conky: window type - override
conky: drawing to created window (0x2800001)
conky: drawing to double buffer
zsh: suspended (signal) conky -c /home/raphix/1_accuweather/conkyHTChourlyTest.v10
13:15 raphix > rm: impossible de supprimer '/home/raphix/1_accuweather/altogether16_2015': Aucun fichier ou dossier de ce type
rm: impossible de supprimer '/home/raphix/1_accuweather/altogether16_2016': Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/1_accuweather/altogether16_2015: Aucun fichier ou dossier de ce type
sed: impossible de lire /home/raphix/1_accuweather/altogether16_2016: Aucun fichier ou dossier de ce type
the conky:
conky.config = {
-- Create own window instead of using desktop (required in nautilus)
own_window = true,
own_window_type = 'override',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
-- Use double buffering (reduces flicker, may not work for everyone)
double_buffer = true,
no_buffers = true,
-- fiddle with window
use_spacer = 'none',
use_xft = true,
cpu_avg_samples = 2,
if_up_strictness = 'address',
-- Update interval in seconds
update_interval = 1,
-- Minimum size of text area
minimum_width = 235, minimum_height = 300,
maximum_width = 235,
override_utf8_locale = true,
-- Draw shades?
draw_shades = true,
-- Text stuff
draw_outline = true,-- amplifies text if yes
draw_borders = false,
--font freesans -12
font = 'Liberation Mono:bold:size=9',
uppercase = false,-- set to yes if you want all text to be in uppercase
override_utf8_locale = true,
text_buffer_size = 1000,
-- Stippled borders?
stippled_borders = 3,
-- border margins
--border_margin = '0',
-- border width
border_width = 10,
-- Default colors and also border colors, grey90 -- #e5e5e5
default_color = '#cbcbcb',
color1 = '#505454',
own_window_colour = 'brown',
own_window_transparent = true,
-- 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,
imlib_cache_size = 0,
-- stuff after 'TEXT' will be formatted on screen
};
conky.text = [[
${voffset -15}${execi 420 bash $HOME/1_accuweather/1_accuweather -f -h}\
${image $HOME/1_accuweather/HTCimages/base3.png -p -12,30 -s 260x145}\
${image $HOME/1_accuweather/HTCimages/base3.png -p -12,168 -s 260x70}
${image $HOME/1_accuweather/HTCimages/flip_bg.png -p 18,9 -s 100x110}\
${image $HOME/1_accuweather/HTCimages/flip_bg.png -p 118,9 -s 100x110}\
${image $HOME/1_accuweather/forecast_2015/forecast_0.png -p 55,98 -s 125x75}
${image $HOME/1_accuweather/HTCimages/base3.png -p -12,250 -s 260x70}
${font LED_Mono:size=60}${color1}${goto 24}${time %H}${goto 124}${time %M}${font}
${goto 28}${execi 600 sed -n '02p' $HOME/1_accuweather/curr_cond}°${goto 80}±${execi 600 sed -n '03p' $HOME/1_accuweather/curr_cond}°${color1}\
${goto 130}${time %a %e %b}${color}
${goto 4}Wind ${execi 600 sed -n '05p' $HOME/1_accuweather/curr_cond}\
${alignr 17}${execi 600 sed -n '04p' $HOME/1_accuweather/curr_cond|cut -c-16}
${goto 4}${execi 600 sed -n '06p' $HOME/1_accuweather/curr_cond}\
${alignr 17}${execi 600 sed -n '07p' $HOME/1_accuweather/curr_cond} Hum
${goto 4}UVI ${execi 600 sed -n '09p' $HOME/1_accuweather/curr_cond}\
${alignr 17}${execi 600 sed -n '10p' $HOME/1_accuweather/curr_cond} Cld
${goto 4}${execi 600 sed -n '08p' $HOME/1_accuweather/curr_cond}\
${alignr 17}${execi 600 sed -n '13p' $HOME/1_accuweather/curr_cond} Vis${color}
${goto 12}${execi 600 sed -n '05p' $HOME/1_accuweather/hourly1}\
${goto 58}${execi 600 sed -n '09p' $HOME/1_accuweather/hourly1}\
${goto 105}${execi 600 sed -n '13p' $HOME/1_accuweather/hourly1}\
${goto 150}${execi 600 sed -n '17p' $HOME/1_accuweather/hourly1}\
${goto 196}${execi 600 sed -n '05p' $HOME/1_accuweather/hourly2}
${color8}${goto 6}${execi 600 sed -n '08p' $HOME/1_accuweather/first_days}°\
${goto 52}${execi 600 sed -n '30p' $HOME/1_accuweather/hourly1}°\
${goto 99}${execi 600 sed -n '32p' $HOME/1_accuweather/hourly1}°\
${goto 144}${execi 600 sed -n '34p' $HOME/1_accuweather/hourly1}°\
${goto 190}${execi 600 sed -n '36p' $HOME/1_accuweather/hourly2}°
${image $HOME/1_accuweather/hourly_2015/hourly_2.png -p 5,195 -s 50x30}
${image $HOME/1_accuweather/hourly_2015/hourly_4.png -p 51,195 -s 50x30}\
${image $HOME/1_accuweather/hourly_2015/hourly_6.png -p 97,195 -s 50x30}\
${image $HOME/1_accuweather/hourly_2015/hourly_8.png -p 143,195 -s 50x30}\
${image $HOME/1_accuweather/hourly_2015/hourly_10.png -p 188,195 -s 50x30}${color}
${voffset 15}${goto 12}${execi 600 sed -n '06p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 58}${execi 600 sed -n '11p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 105}${execi 600 sed -n '16p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 150}${execi 600 sed -n '21p' $HOME/1_accuweather/first_days|cut -c-3}\
${goto 196}${execi 600 sed -n '01p' $HOME/1_accuweather/last_days|cut -c-3}
${color8}${goto 6}${execi 600 sed -n '08p' $HOME/1_accuweather/first_days}°\
${goto 52}${execi 600 sed -n '13p' $HOME/1_accuweather/first_days}°\
${goto 99}${execi 600 sed -n '18p' $HOME/1_accuweather/first_days}°\
${goto 144}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°\
${goto 190}${execi 600 sed -n '03p' $HOME/1_accuweather/last_days}°
${image $HOME/1_accuweather/forecast_2015/forecast_2.png -p 5,273 -s 50x30}\
${image $HOME/1_accuweather/forecast_2015/forecast_3.png -p 51,273 -s 50x30}\
${image $HOME/1_accuweather/forecast_2015/forecast_4.png -p 97,273 -s 50x30}\
${image $HOME/1_accuweather/forecast_2015/forecast_5.png -p 143,273 -s 50x30}\
${image $HOME/1_accuweather/forecast_2015/forecast_6.png -p 188,273 -s 50x30}
${voffset -10}${color3}${goto 6} ${execi 600 sed -n '09p' $HOME/1_accuweather/first_days}°\
${goto 52} ${execi 600 sed -n '14p' $HOME/1_accuweather/first_days}°\
${goto 99} ${execi 600 sed -n '19p' $HOME/1_accuweather/first_days}°\
${goto 144} ${execi 600 sed -n '24p' $HOME/1_accuweather/first_days}°\
${goto 185} ${execi 600 sed -n '04p' $HOME/1_accuweather/last_days}°${color}${voffset 10}
]];
by advance thanks
Offline
rm $HOME/1_accuweather/{altogether16,altogether16_2015,altogether16_2016}
This line in the script tries to delete all altogether files, whether they exist or not.
Just ignore the terminal warnings.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
oh ok thank you Teo.
Offline
Hello,
one more little thing... With the wunderground script I've got this error:
cp: impossible d'évaluer '/home/raphix/2_Wunderground_API/Forecast_Images/.png': Aucun fichier ou dossier de ce type
thanks
Offline