You are not logged in.

#21 2026-04-19 17:46:22

loutch
Member
Registered: 2015-12-12
Posts: 1,052

Re: MyForecast Script

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

#22 2026-04-19 17:54:49

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

^ 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.  big_smile


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

Offline

#23 2026-04-20 06:57:08

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

Re: MyForecast Script

unklar wrote:

^^Thanks for your work, it works.  smile

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

#24 2026-04-20 08:21:00

loutch
Member
Registered: 2015-12-12
Posts: 1,052

Re: MyForecast Script

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

#25 2026-04-21 00:26:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

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:

TAD:                                        MyForecast:
tad-site.png  mf-site.png

MF Conky:
mf-conky.png

Pictures speak louder than words.


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

Offline

#26 2026-04-21 16:48:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

I just finished mf-conky.

MF-conky.png

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 290}${font :size=9}${color ff8080}\
${texeci 90 sed -n '5p' $HOME/.conky/SM*AccuWeather*Icons/MyForecast/now}${color}${font}${voffset -28}

${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 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

EDIT
Removed a few things related to the TAD script.

Last edited by marens (2026-04-26 13:44:40)


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

Offline

#27 2026-04-21 18:08:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

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/images

EDIT
mf-conky.png

Last 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

#28 2026-04-23 00:42:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

Testing MyForecast Conky (Improvements)

Testing is the only way to improve something or remove bugs.
Two interesting things happened tonight.


Missing image for current weather conditions

I easily found the reason when I looked at the "now" file (line 1).

now.png

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

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/now

This is how it looks in Conky:

not-available.png


No Wind (Calm)

I expected that to happen, but I didn't know what it looked like on the website.

site.png  mf-conky.png

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
      
  fi

From 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:

mf-calm.png

Enjoy.  smile

P.S.
Testing continues.


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

Offline

#29 2026-04-23 14:26:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

Test MF Conky

Removed a few things related to the TAD script:
https://forums.bunsenlabs.org/viewtopic … 93#p150293


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

Offline

#30 2026-04-23 15:14:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

Testing MyForecast Conky

mf.png

Here's a comparison with other:

Accuweather:                           Gis Weather:
accuweather.png  gis.png

This is my local source from a nearby city park that updates every hour:
local.png

I'm pretty sure the last one is the most accurate.
The automated weather station is a few hundred meters away from me.  smile


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

Offline

#31 2026-04-24 13:20:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

Testing MyForecast Conky

Testing is complete.
Everything works as expected.

mf-conky.png

If special cases arise, take a screenshot and display the contents of the corresponding file (now, phrase, images...).

Enjoy.  smile

P.S.
I visited my location on the TAD website and everything is the same except for the NOW section which is not updated (as always).  big_smile

Last edited by marens (2026-04-24 13:38:20)


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

Offline

#32 2026-04-26 13:10:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

About MyForecast

Visit the website > Menu (Top right) > About Us

MyForecast wrote:

MyForecast is provided by CustomWeather Inc. Since 2000, CustomWeather’s forecasting services and products have been used by businesses around the world. This site is created by and designed for weather lovers everywhere who are seeking a site that finally offers complete coverage and accurate forecasts!

California-based CustomWeather, Inc. is a leading provider of syndicated weather content for businesses worldwide. With unique technological advances, CustomWeather has been able to serve its customers with a new level of technical competence and forecasting accuracy.


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

Offline

#33 2026-04-27 07:50:36

asqwerth
Member
Registered: 2015-10-08
Posts: 67

Re: MyForecast Script

@marens

I emailed MyForecast about the geoblocking, and they have sorted it out.  Apparently they were having some attacks from my location and so had blocked it temporarily.  I've now tested your script (amended to my location) with your test conky and it works just fine.

When I have more time I'll convert my own TAD conkies to use the mf script, as your recent fixes to the TAD script just don't work for me.

Offline

#34 2026-04-27 12:04:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

^ Yes.
I'm glad you joined us.

The TAD website uses MyForecast as its main source.
Everything is the same except that updates are regular and there is no longer a redirection to the nearest airport.


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

Offline

#35 Yesterday 18:32:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

asqwerth wrote:

When I have more time I'll convert my own TAD conkies to use the mf script, as your recent fixes to the TAD script just don't work for me.

You probably won't have to do that.
It looks like you'll be able to choose which conky/script to use.

Look here:
https://forums.bunsenlabs.org/viewtopic … 53#p150453


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

Offline

#36 Yesterday 23:14:20

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 1,196

Re: MyForecast Script

MyForecast Icons

The original mf-icons look great.

I think the moon icon 13.png (Clear) is too big and moved up.
mf1.png

I made it smaller and better centered using Inkscape.
Then I checked how it looks in conky.

Note *
The icon  hourly_3.png  (03:00) has been simulated to examine the alignment

mf2.png

If you like it, you can download the new icon 13.png here:
https://i.postimg.cc/ZnjXPCM9/13.png

Rename the old icon 13.png to 13_orig.png, then just copy/paste the new one into the  myforecast-icons  folder.


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

Offline

Board footer

Powered by FluxBB