You are not logged in.

#4681 Yesterday 09:48:47

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

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

Hello

@ marens great job as well, but don't work by me , i have wind direction in french , if i rest in english that work great .

in french i have du , d' instead of from

du Sud-ouest

d'Est

@+

Last edited by loutch (Yesterday 10:13:16)


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

#4682 Yesterday 14:16:20

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

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

^ Do the same as me.

$ echo 'du Sud-ouest' | sed 's/du //'  | sed 's/Sud/S/' | sed 's/ouest/W/' | sed 's/-//'
SW

For example, "ouest" can appear at the beginning with a capital letter, so it must be added:

sed 's/Ouest/W/'

Also, "Sud" can appear with a lowercase letter at the beginning:

sed 's/sud/S/'

You need to check all possible combinations in French and replace them with E, W, N or S using the sed command.

Last edited by marens (Yesterday 16:28:21)


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

Offline

#4683 Yesterday 17:44:21

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

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

loutch wrote:

Translation in french work great this morning .

Does your "now" file still look like this?
https://forums.bunsenlabs.org/viewtopic … 17#p146317

Température: 13 °C
Ressentie: 12 °C
Maxi et mini: 15 / 8 °C
Mostly cloudy
Visibilité: N/A km
Pression: 1001 mbar
Humidité: 94%
Point de rosée: 12 °C
Vent: 13 km/h
from Southwest
Mise @ jour 22 oct 2025, 09 h 30
Plutôt nuageux
du sud-ouest

Here you have wind direction in English (line 10).
Do not use the French translation (line 13) in the tad script.


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

Offline

#4684 Yesterday 19:20:41

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

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

Hello

I have it , copy this line to create a french file nowfr

cat $HOME/accuweather_marens_rss/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p><' '{print $1}' | sed 's/^[ \t]*//' > $HOME/accuweather_marens_rss/nowfr

So i can use your wind script to have wind_0.png and my translation script in conky file .

@+


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

#4685 Yesterday 19:38:59

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

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

loutch wrote:

Hello

I have it , copy this line to create a french file nowfr

cat $HOME/accuweather_marens_rss/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p><' '{print $1}' | sed 's/^[ \t]*//' > $HOME/accuweather_marens_rss/nowfr

So i can use your wind script to have wind_0.png and my translation script in conky file .

@+

Look at your file "now".
You already have that in line 10.


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

Offline

#4686 Yesterday 19:46:25

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

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

Re

Yes in english for your wind rose & in nowfr for my conky

3hgn6rS3_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

#4687 Yesterday 20:16:40

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

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

Yes.

Use different images of the wind rose.
It looks very nice, but I would use larger images in the daily/hourly section and maybe a smaller font.

loutch wrote:

Just ad wind compas , the script is not completly finish while i don't know how all the wind directions will be displayed in the now file, done this

I think the tad script is finally finished.  big_smile

Conclusion:

marens wrote:

However, I know from experience that web developers sometimes adapt the code and display content differently in some countries.

Unfortunately, this is true in our case.
Everyone who contributed to the testing had local changes.

Anyway, it was fun.
Thank you all once again.  smile

Last edited by marens (Yesterday 23:52:20)


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

Offline

Board footer

Powered by FluxBB