You are not logged in.
Very nice loutch - as always.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
C'est une configuration géniale !
Puis-je te demander où tu as publié la configuration ? Je vais peut-être devoir installer *ubuntu*.
-------------
That's an awesome configuration!
May I ask you where you published the configuration? I might have to install *ubuntu* after all.
Last edited by unklar (2025-03-01 08:37:57)
Offline
Re
Here another version in lua
@ unklar
Nein, ich warte noch ein paar Tage, da ich einige Fehler in der Konsole habe.
---------------
No, I'll wait a few more days as I have some bugs in the console.
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
@loutch,
OK,
Offline
Still beautiful.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@loutch
This probably has nothing to do with errors in the terminal, but ...
Based on what I've seen on another forum, I can tell you haven't updated the moongiant script properly.
You are using both of my illumination angle plugins at the same time.
One must be removed.
If you are using real time, visit the site and select your location (Moon):
https://www.timeanddate.com/astronomy
The image of the moon (illumination angle) must be the same as in conky (sky).
I could be wrong, but I haven't seen the my Blue Moon plugin.
It's a natural phenomenon that rarely happens and @TBG didn't know that at the time he was making the script:
https://www.timeanddate.com/astronomy/m … -moon.html
Also sometimes there is a bug which I fixed.
I remember @unklar confirming that.
You'll have to go back maybe a dozen (or more) pages if you want to update the moongiant script.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hello
It since good , no errors since a few days .
Extract in your $HOME .
It using accuweather_conky_script with marens_french_translation .
Look here :
https://www.mediafire.com/file/d6cn21ur … ar.gz/file
launcher for original conky
1BHL
#!/bin/bash
PROG_NAME="conky -c /home/$USER/Bleyshori/logan" # Nom du programme à démarrer/arrêter.
PROCESSPID=$(pgrep -f /home/$USER/Bleyshori/logan) # Récupère le PID du processus.
if [[ "$PROCESSPID" != "" ]]; then # Si les deux processus existe alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
else # Si aucun processus on démarre le programme.
kill $PROCESSPID
$PROG_NAME &
echo "Start $PROG_NAME"
if [[ "$PROCESSPID" == "" ]]; then # Si un des processus n'existe pas alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
echo "Il y a eu un souci au lancement tout a été coupé"
fi
fi
3BHL
#!/bin/bash
PROG_NAME1="conky -c /home/$USER/Bleyshori/gauche/logan" # Nom du programme à démarrer/arrêter.
PROG_NAME2="conky -c /home/$USER/Bleyshori/logan"
PROG_NAME3="conky -c /home/$USER/Bleyshori/droite/logan"
PROCESSPID1=$(pgrep -f /home/$USER/Bleyshori/gauche/logan) # Récupère le PID du processus.
PROCESSPID2=$(pgrep -f /home/$USER/Bleyshori/logan)
PROCESSPID3=$(pgrep -f /home/$USER/Bleyshori/droite/logan)
if [[ "$PROCESSPID1" != "" && "$PROCESSPID2" != "" && "$PROCESSPID3" != "" ]]; then # Si les deux processus existe alors on le(s) kill.
kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
kill $PROCESSPID2 && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
kill $PROCESSPID3 && echo "Stop $PROG_NAME3 (PID: $PROCESSPID3)"
else # Si aucun processus on démarre le programme.
kill $PROCESSPID1
$PROG_NAME1 &
echo "Start $PROG_NAME1"
kill $PROCESSPID2
$PROG_NAME2 &
echo "Start $PROG_NAME2"
kill $PROCESSPID3
$PROG_NAME3 &
echo "Start $PROG_NAME3"
if [[ "$PROCESSPID1" == "" || "$PROCESSPID2" == "" || "$PROCESSPID3" == "" ]]; then # Si un des processus n'existe pas alors on le(s) kill.
kill $PROCESSPID1 && echo "Stop $PROG_NAME1 (PID: $PROCESSPID1)"
kill $PROCESSPID2 && echo "Stop $PROG_NAME2 (PID: $PROCESSPID2)"
kill $PROCESSPID3 && echo "Stop $PROG_NAME3 (PID: $PROCESSPID3)"
echo "Il y a eu un souci au lancement tout a été coupé"
fi
fi
BHmeteo
#!/bin/bash
PROG_NAME="conky -c /home/$USER/Bleyshori/meteo" # Nom du programme à démarrer/arrêter.
PROCESSPID=$(pgrep -f /home/$USER/Bleyshori/meteo) # Récupère le PID du processus.
if [[ "$PROCESSPID" != "" ]]; then # Si les deux processus existe alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
else # Si aucun processus on démarre le programme.
kill $PROCESSPID
$PROG_NAME &
echo "Start $PROG_NAME"
if [[ "$PROCESSPID" == "" ]]; then # Si un des processus n'existe pas alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
echo "Il y a eu un souci au lancement tout a été coupé"
fi
fi
Bhsaison
#!/bin/bash
PROG_NAME="conky -c /home/$USER/Bleyshori/saison/conkyrc" # Nom du programme à démarrer/arrêter.
PROCESSPID=$(pgrep -f /home/$USER/Bleyshori/saison/conkyrc) # Récupère le PID du processus.
if [[ "$PROCESSPID" != "" ]]; then # Si les deux processus existe alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
else # Si aucun processus on démarre le programme.
kill $PROCESSPID
$PROG_NAME &
echo "Start $PROG_NAME"
if [[ "$PROCESSPID" == "" ]]; then # Si un des processus n'existe pas alors on le(s) kill.
kill $PROCESSPID && echo "Stop $PROG_NAME (PID: $PROCESSPID)"
echo "Il y a eu un souci au lancement tout a été coupé"
fi
fi
enjoy
@+
P.S. Launch 1Bhl or 3BHL before the others , they launch accuweather_script.
Last edited by loutch (2025-03-03 09:07:07)
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Superb!
@loutch,
comme tu travailles actuellement beaucoup avec d'anciens scripts Lua 1.9's qui fonctionnent alors aussi dans la syntaxe 1.10 (spécialement les anneaux), je voulais te demander si ce message d'erreur te semblait familier:
conky: llua_do_call: function conky_main execution failed: /home/unklar/.conky/conky_jetsex4/scripte/Hud0.lua:600: attempt to call a nil value (global 'cairo_xlib_surface_create')
...attempt to call a nil value (global 'cairo_xlib_surface_create')
----------
Superb !
@loutch,
since you are currently working a lot with old 1.9 Lua scripts, which then also work in syntax 1.10 (especially rings), I wanted to ask if this error message sounds familiar to you:
Last edited by unklar (2025-03-05 10:04:02)
Offline
Hello
Nein nie so etwas gehabt, meine Fehler sind in der Regel ein Rechenfehler mit der Zeile, die angegeben wird.
Wie diese :
conky: llua_do_call: function conky_loader_lua execution failed: /home/loutch/.conky/baro/lua/baro.lua:146: attempt to perform arithmetic on a nil value (local 'value')
----------------------------------------------------------------
no, I've never had anything like this happen, my mistakes are usually a calculation error with the line that is shown.
like this
@+
Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX
Offline
Hello
Nein nie so etwas gehabt, meine Fehler sind in der Regel ein Rechenfehler mit der Zeile, die angegeben wird.
Wie diese :
conky: llua_do_call: function conky_loader_lua execution failed: /home/loutch/.conky/baro/lua/baro.lua:146: attempt to perform arithmetic on a nil value (local 'value')
----------------------------------------------------------------
no, I've never had anything like this happen, my mistakes are usually a calculation error with the line that is shown.like this
@+
Merci mon ami !
Je l'ai trouvé
https://github.com/brndnmtthws/conky/issues/1978
---------------------------
Thank you my friend!
I have found it
Offline
Acc_RSS conky script - cut or fmt command ?
As you know, @TBG uses the cut command to split a long phrase into two lines.
In this case, cut -c21-40 and cut -c41-60.
The weather tomorrow:
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather|cut -c21-40
Partly sunny and war
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather|cut -c41-60
m
I think there is a better way.
Let's go from here to get a full weather description.
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7-
Partly sunny and warm
Then split it into two lines with the fmt command:
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'
Partly sunny
$ sed -n '7p' $HOME/.conky/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'
and warm
As you can see, perfect alignment is achieved and only whole words are used.
In my Acc-RSS conky it looks like this:
${goto 100}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 100}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
Do the same for today's forecast (sed -n '4p').
EDIT
Fixed path.
Last edited by marens (2025-03-08 15:42:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Thanks!
I have implemented your solution ( 3 ).
However, I don't see my mistake...
Currently: Showers: 2C
h
3/12/2025 Forecast
High: 8 C Low: 2 C Clouds, showers; cooler
h
3/13/2025 Forecast
High: 7 C Low: 1 C Cloudy with a shower in spots
h
conky.text = [[
${execi 600 bash $HOME/Accuweather_RSS_conky_script/acc_RSS}
${font conkyweather:size=20}${execpi 600 sed -n '2p' $HOME/Accuweather_RSS_conky_script/weather}${font}
${goto 45}${voffset -25}${execpi 600 sed -n '1p' $HOME/Accuweather_RSS_conky_script/weather|cut -c1-22}
${goto 45}${execpi 600 sed -n '1p' $HOME/Accuweather_RSS_conky_script/weather|cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 45}${execpi 600 sed -n '1p' $HOME/Accuweather_RSS_conky_script/weather|cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
${execi 600 sed -n '3p' $HOME/Accuweather_RSS_conky_script/weather}
${font conkyweather:size=20}${execpi 600 sed -n '5p' $HOME/Accuweather_RSS_conky_script/weather}${font} \
${goto 45}${voffset -25}${execpi 600 sed -n '4p' $HOME/Accuweather_RSS_conky_script/weather|cut -c1-22}
${goto 45}${execpi 600 sed -n '4p' $HOME/Accuweather_RSS_conky_script/weather |cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 45}${execpi 600 sed -n '4p' $HOME/Accuweather_RSS_conky_script/weather |cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
${execi 600 sed -n '6p' $HOME/Accuweather_RSS_conky_script/weather}
${font conkyweather:size=20}${execpi 600 sed -n '8p' $HOME/Accuweather_RSS_conky_script/weather}${font} \
${goto 45}${voffset -25}${execpi 600 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather|cut -c1-22}
${goto 45}${execpi 600 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather |cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 45}${execpi 600 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather |cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
]];
Offline
^ Line 7:
${goto 45}${voffset -25}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | awk '{print $1, $2}'}°C ${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | awk '{print $4, $5}'}°C
${goto 45}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 45}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
Or (shorter):
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | awk '{print $1, $2"°C", $4, $5"°C"}'
High: 22°C Low: 9°C
Conky:
${goto 45}${voffset -25}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | awk '{print $1, $2"°C", $4, $5"°C"}'}
${goto 45}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '1p'}
${goto 45}${execpi 90 sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | cut -d ' ' -f7- | fmt -w 20 | sed -n '2p'}
Do the same for today's forecast (sed -n '4p').
EDIT
About a dozen pages ago, I fixed a long-standing bug with the display of °C for the current temperature.
You have 2C:
Currently: Showers: 2C
If you're interested, go back a little and you'll easily find.
Last edited by marens (2025-03-12 19:50:00)
If people would know how little brain is ruling the world, they would die of fear.
Offline
^ Line 7:
Or (shorter):
$ sed -n '7p' $HOME/Accuweather_RSS_conky_script/weather | awk '{print $1, $2"°C", $4, $5"°C"}' High: 22°C Low: 9°C
you can shorten this one even more by just using awk
awk 'NR==7 {print $1, $2"°C", $4, $5"°C"}' $HOME/.conky/weatherbit/curr_cond
NR==7 is the seventh line ;-)
Offline
^ Yes.
For a few characters.
If people would know how little brain is ruling the world, they would die of fear.
Offline
It's about ressourses and cleanness of code- Aber ihr jungen Dinger wisst ja eh alles besser…
Offline