You are not logged in.
Re
not so
Sprinkles late must be Quelques averses en fin de journée & not arrose tard
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
^ I assumed it was because MyForecast has a different weather description style than Accuweather.
That's why I always use English.
I know all the phrases well, even though my English is bad. ![]()
If people would know how little brain is ruling the world, they would die of fear.
Offline
^^Thanks for your work, it works.
https://forums.bunsenlabs.org/viewtopic … 49#p150249
------------------------------
https://workupload.com/file/ZNrf2FHDRez
In my configuration the time data needs to be changed like this:
line 85
${voffset -60}${goto 20}${time %H} h\
${goto 95}${tztime GMT-3 %H} h\
${goto 170}${tztime GMT-4 %H} h\in
${voffset -60}${goto 20}${tztime GMT-3 %H} h\
${goto 95}${tztime GMT-4 %H} h\
${goto 170}${tztime GMT-5 %H} h\Offline
Hello
As usual, your script works a treat. As for the translation, I’m adding this, and then at some point I’ll have them all .
##### traduction moi forecast #######
sed -i -e 's/Sprinkles early. Breaks of sun late. Mild./Quelques averses en début de journée. Éclaircies en fin de journée./' $HOME/MyForecast/phrase
sed -i -e 's/Mostly cloudy. Mild./Ciel couvert./' $HOME/MyForecast/phrase
sed -i -e 's/Overcast. Mild./Quelques averses en début de journée. Éclaircies en fin de journée./' $HOME/MyForecast/phrase
sed -i -e 's/Sunny. Mild./Ensoleillé./' $HOME/MyForecast/phrase
sed -i -e 's/Broken clouds. Mild./Ciel partiellement nuageux./' $HOME/MyForecast/phrase
sed -i -e 's/Mostly sunny. Mild./Principalement ensoleillé./' $HOME/MyForecast/phrase
sed -i -e 's/Sunny. Mild./Ensoleillé./' $HOME/MyForecast/phrase
sed -i -e "s/Afternoon clouds. Mild./Nuageux en fin d'après-midi./" $HOME/MyForecast/phrase
sed -i -e "s/Cloudy. Mild./Nuageux./" $HOME/MyForecast/phrase
sed -i -e "s/Increasing cloudiness. Mild./De plus en plus couvert./" $HOME/MyForecast/phrase
sed -i -e "s/Scattered clouds. Mild./Partiellement nuageux./" $HOME/MyForecast/phrase
do the same for now & hourly.
@+
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
Why MyForecast?
There are two main reasons:
Redirect to the nearest airport
Rare update
My location is not redirected to the airport, but is updated every three hours.
This is happening to me:
Pictures speak louder than words.
If people would know how little brain is ruling the world, they would die of fear.
Offline
I just finished mf-conky.
It takes time to complete testing, but so far everything looks good.
This conky is based on my tad-conky:
https://forums.bunsenlabs.org/viewtopic … 40#p149340
As you know, I use the old syntax/format and share with you only text.
If you want, you can test with me.
You need to set in the configuration:
1) text_buffer_size 1024
2) minimum_size 460 0
${voffset 8}${goto 10}${color 48bcff}WEATHER${color}\
${texeci 1800 bash $HOME/MyForecast/myforecast}\
${font :size=8:italic}${goto 285}\
${scroll 30 5 \
${color 48bcff} Humidity: ${color}${texeci 90 sed -n '9p' $HOME/MyForecast/now}\
${color 48bcff} Pressure: ${color}${texeci 90 sed -n '10p' $HOME/MyForecast/now}\
${color 48bcff} Dew Point: ${color}${texeci 90 sed -n '7p' $HOME/MyForecast/now}\
${color 48bcff} Visibility: ${color}${texeci 90 sed -n '8p' $HOME/MyForecast/now}\
${color 48bcff} Source: ${color ff8080} ☀${color e4ce2d} MyForecast}${font}
${goto 120}${voffset 8}Currently ${color 3460a4}▼${color}${goto 270}Wind ${color 3460a4}▼${color}
${color fedf08}${voffset 15}${font :size=18}${goto 120}\
${if_match ${texeci 90 sed -n '2p' $HOME/MyForecast/now | sed 's/°C//'}<=29}${color fedf08}\
${else}${if_match ${texeci 90 sed -n '2p' $HOME/MyForecast/now | sed 's/°C//'}<=34}${color orange}\
${else}${color ff4040}${endif}${endif}\
${texeci 90 sed -n '2p' $HOME/MyForecast/now | sed 's/°C//'}° ${color 48bcff}(${texeci 90 sed -n '3p' $HOME/MyForecast/now | sed 's/°C//'}°)${font}${color}${voffset -10}\
${goto 270}${color 2ae8ff}@${color} ${offset 2}\
${if_match ${texeci 90 sed -n '6p' $HOME/MyForecast/now | sed 's/No/0/' | sed 's/N\/A /0/' | awk '{print $1}'}<=29}${color}\
${else}${if_match ${texeci 90 sed -n '6p' $HOME/MyForecast/now | sed 's/No/0/' | sed 's/N\/A /0/' | awk '{print $1}'}<=49}${color orange}\
${else}${color ff4040}${endif}${endif}\
${texeci 90 sed -n '6p' $HOME/MyForecast/now | sed 's/No/0/' | sed 's/N\/A /0/'}
${goto 270}${font :size=9}${color ff8080}\
${goto 290}${if_match "${texeci 90 sed -n '5p' $HOME/MyForecast/now | sed 's/from //'}" == ""}Not available${color}${font}${voffset -28}\
${else}${texeci 90 sed -n '5p' $HOME/MyForecast/now}${color}${font}${voffset -28}${endif}
${voffset 30}${alignc}${texeci 90 sed -n '4p' $HOME/MyForecast/now | sed 's/\. /\. /'}
${color 48bcff}\
${goto 35}${texeci 90 date -d '+1 hour' '+%H:00'}\
${goto 125}${texeci 90 date -d '+2 hour' '+%H:00'}\
${goto 215}${texeci 90 date -d '+3 hour' '+%H:00'}\
${goto 305}${texeci 90 date -d '+4 hour' '+%H:00'}\
${goto 395}${texeci 90 date -d '+5 hour' '+%H:00'}${color}
${voffset 5}\
${if_match "${texeci 90 sed -n '1p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/' | awk '{print length}'}" == "4"}${goto 38}${texeci 90 sed -n '1p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${else}${goto 35}${texeci 90 sed -n '1p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${endif}\
${if_match "${texeci 90 sed -n '2p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/' | awk '{print length}'}" == "4"}${goto 128}${texeci 90 sed -n '2p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${else}${goto 125}${texeci 90 sed -n '2p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${endif}\
${if_match "${texeci 90 sed -n '3p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/' | awk '{print length}'}" == "4"}${goto 218}${texeci 90 sed -n '3p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${else}${goto 215}${texeci 90 sed -n '3p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${endif}\
${if_match "${texeci 90 sed -n '4p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/' | awk '{print length}'}" == "4"}${goto 308}${texeci 90 sed -n '4p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${else}${goto 305}${texeci 90 sed -n '4p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${endif}\
${if_match "${texeci 90 sed -n '5p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/' | awk '{print length}'}" == "4"}${goto 398}${texeci 90 sed -n '5p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${else}${goto 395}${texeci 90 sed -n '5p' $HOME/MyForecast/hourly/temperature | sed 's/°/ °/'}${endif}
${goto 15}${if_match "${texeci 90 date '+%a'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${texeci 90 sed -n '1p' date '+%a'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${texeci 90 date '+%a %d'}\
${goto 105}${if_match "${texeci 90 date -d '+1 day' '+%a'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${texeci 90 date -d '+1 day' '+%a'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${texeci 90 date -d '+1 day' '+%a %d'}\
${goto 195}${if_match "${texeci 90 date -d '+2 day' '+%a'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${texeci 90 date -d '+2 day' '+%a'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${texeci 90 date -d '+2 day' '+%a %d'}\
${goto 285}${if_match "${texeci 90 date -d '+3 day' '+%a'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${texeci 90 date -d '+3 day' '+%a'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${texeci 90 date -d '+3 day' '+%a %d'}\
${goto 375}${if_match "${texeci 90 date -d '+4 day' '+%a'}" == "Sat"}${color ff8080}\
${else}\
${if_match "${texeci 90 date -d '+4 day' '+%a'}" == "Sun"}${color ff8080}\
${else}${color 48bcff}${endif}${endif}\
${texeci 90 date -d '+4 day' '+%a %d'}${color}
${voffset 5}${font :size=9}${goto 70}${texeci 90 sed -n '1p' $HOME/MyForecast/high_temp}${goto 160}${texeci 90 sed -n '2p' sed -n '2p' $HOME/MyForecast/high_temp}${goto 250}${texeci 90 sed -n '3p' $HOME/MyForecast/high_temp}${goto 340}${texeci 90 sed -n '4p' $HOME/MyForecast/high_temp}${goto 430}${texeci 90 sed -n '5p' $HOME/MyForecast/high_temp}
${color 0080ff}${goto 75}/${texeci 90 sed -n '1p' $HOME/MyForecast/low_temp}${goto 165}/${texeci 90 sed -n '2p' $HOME/MyForecast/low_temp}${goto 255}/${texeci 90 sed -n '3p' $HOME/MyForecast/low_temp}${goto 345}/${texeci 90 sed -n '4p' $HOME/MyForecast/low_temp}${goto 435}/${texeci 90 sed -n '5p' $HOME/MyForecast/low_temp}
${image $HOME/MyForecast/0.png -p 10,35 -s 80x80}\
${image $HOME/MyForecast/wind_0.png -p 354,54 -s 60x60}\
${image $HOME/MyForecast/day_1.png -p 10,278 -s 55x55}\
${image $HOME/MyForecast/day_2.png -p 100,278 -s 55x55}\
${image $HOME/MyForecast/day_3.png -p 190,278 -s 55x55}\
${image $HOME/MyForecast/day_4.png -p 280,278 -s 55x55}\
${image $HOME/MyForecast/day_5.png -p 370,278 -s 55x55}\
${image $HOME/MyForecast/hourly/hourly_1.png -p 18,170 -s 60x60}\
${image $HOME/MyForecast/hourly/hourly_2.png -p 108,170 -s 60x60}\
${image $HOME/MyForecast/hourly/hourly_3.png -p 198,170 -s 60x60}\
${image $HOME/MyForecast/hourly/hourly_4.png -p 288,170 -s 60x60}\
${image $HOME/MyForecast/hourly/hourly_5.png -p 378,170 -s 60x60}Note *
When/If special cases arise, I will change the script or conky
If people would know how little brain is ruling the world, they would die of fear.
Offline
Hourly Images Bug
When the hourly forecast shows images after midnight, the image for tomorrow's daily forecast appears.
The bug has been fixed.
This is what that part of the myforecast script should look like:
#### HOURLY FORECAST
## Images
cat $HOME/MyForecast/hourly/hourly_raw | grep 'src="assets/img/icons/' | sed -n '2,10p' | sed -e 's/^[ \t]*//' -e 's/<td> <img src="assets\/img\/icons\///' -e 's/<img src="assets\/img\/icons\///' -e 's/" style="width:30px;"\/><\/td>//' -e '/36px/d'| sed 's/\(.png\).*/\1/' > $HOME/MyForecast/hourly/imagesLast edited by marens (2026-04-21 18:35:20)
If people would know how little brain is ruling the world, they would die of fear.
Offline
Testing MyForecast Conky (Improvements)
Testing is the only way to improve something or remove bugs.
Two interesting things happened tonight.
I easily found the reason when I looked at the "now" file (line 1).
There is no such image (cw_no_report_icon.png) inside the myforecast-icons folder.
I remembered that the tad-icons folder contains the corresponding image (wt-36.png)
Here you can download 36.png image:
https://i.postimg.cc/vHDjQ10h/36.png
Just Copy/Paste into the myforecast-icons.
Now you need to change the myforecast script.
This part should look like this:
#### NOW FORECAST
## Image
cat $HOME/MyForecast/weather_raw | grep 'src="assets/img/icons' | sed -n '1p' | sed -e 's/^[ \t]*//' -e 's/<img src="assets\/img\/icons\///' -e 's/"//' | awk '{print $1}' | sed 's/cw_no_report_icon/36/' > $HOME/MyForecast/nowThis is how it looks in Conky:
I expected that to happen, but I didn't know what it looked like on the website.
As you can see, the wind speed is 0 km/h, but the wind direction (N) is still shown.
I decided to play around a bit with the myforecast script and try to display everything in Conky the way we're used to.
This part should look like this:
## Wind Icon
ws=$(sed -n '6p' $HOME/MyForecast/now | sed 's/ .*//')
wd=$(cat $HOME/MyForecast/weather_raw | grep '<sup>' | sed -n '1p' | sed 's/.*<sup>/<sup>/' | sed 's/<\/sup>.*//' | sed 's/<sup>//')
if [[ "$ws" == "0" ]]; then
cp $HOME/MyForecast/wind/CLM.png $HOME/MyForecast/wind_0.png
sed -i '5d' $HOME/MyForecast/now
sed -i "5s/^/N\/A\n/" $HOME/MyForecast/now
sed -i '6d' $HOME/MyForecast/now
sed -i "6s/^/Calm\n/" $HOME/MyForecast/now
else
cp $HOME/MyForecast/wind/$wd.png $HOME/MyForecast/wind_0.png
fiFrom the myforecast script I modified the "now" file to get what I want.
I won't go into details, it's best to see the result because a picture speaks louder than words:
Enjoy. ![]()
P.S.
Testing continues.
If people would know how little brain is ruling the world, they would die of fear.
Offline