You are not logged in.

#4561 2025-02-24 13:57:35

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hello

BPBQMNmv_t.png

@+


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

#4562 2025-02-26 16:15:16

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Very nice loutch - as always.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4563 2025-03-01 07:48:58

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hello

Integration of saison conky

VkIz2jLA_t.png

@+


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

#4564 2025-03-01 08:35:13

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

loutch wrote:

Hello

Integration of saison conky

https://thumbs2.imgbox.com/d3/71/VkIz2jLA_t.png

@+

C'est une configuration géniale !
Puis-je te demander où tu as publié la configuration ? Je vais peut-être devoir installer *ubuntu*.  big_smile
-------------
That's an awesome configuration!
May I ask you where you published the configuration? I might have to install *ubuntu* after all.  big_smile

Last edited by unklar (2025-03-01 08:37:57)

Offline

#4565 2025-03-01 10:05:30

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Re

Here another version in lua

vWWWXfpJ_t.png

@ 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

#4566 2025-03-01 10:15:03

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@loutch,

OK,  wink

Offline

#4567 2025-03-01 19:16:05

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Still beautiful.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4568 2025-03-02 14:54:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@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

#4569 2025-03-03 09:03:09

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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

#4570 2025-03-04 16:44:43

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hello

A very very old conky (Shamen in 2011]migrated in 2020 years


RFVwyDjT_t.png


@+


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

#4571 2025-03-05 10:02:40

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Superb!  wink

@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

#4572 2025-03-05 10:42:09

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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

#4573 2025-03-05 16:08:43

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Re

pzIycoJs_t.png

@+


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

#4574 2025-03-05 16:20:23

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

loutch wrote:

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é  wink
https://github.com/brndnmtthws/conky/issues/1978

---------------------------
Thank you my friend!
I have found it   wink

Offline

#4575 2025-03-08 15:20:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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').

Acc-RSS.png

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

#4576 2025-03-12 16:21:21

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thanks!

I have implemented your solution ( 3 big_smile ).
However, I don't see my mistake...

vPrxbx9t.png

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

#4577 2025-03-12 18:01:29

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ 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

#4578 2025-03-12 23:52:22

GioD
New Member
From: Germany
Registered: 2023-11-05
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

marens wrote:

^ 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

#4579 2025-03-13 00:48:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 827

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Yes.
For a few characters.


If people would know how little brain is ruling the world, they would die of fear.

Offline

#4580 2025-03-13 07:58:30

GioD
New Member
From: Germany
Registered: 2023-11-05
Posts: 4

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

It's about ressourses and cleanness of code- Aber ihr jungen Dinger wisst ja eh alles besser…

Offline

Board footer

Powered by FluxBB