You are not logged in.
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
^ Do the same as me.
$ echo 'du Sud-ouest' | sed 's/du //' | sed 's/Sud/S/' | sed 's/ouest/W/' | sed 's/-//'
SWFor 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
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-ouestHere 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
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' °C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p><' '{print $1}' | sed 's/^[ \t]*//' > $HOME/accuweather_marens_rss/nowfrSo 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
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' °C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p><' '{print $1}' | sed 's/^[ \t]*//' > $HOME/accuweather_marens_rss/nowfrSo 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
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.
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. ![]()
Conclusion:
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. ![]()
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