You are not logged in.

#61 2026-11-11 14:42:05

ceeslans
Member
Registered: 2015-09-30
Posts: 235

Re: Conky Weather: MyForecast Script

@marens: thanks a lot for updating us on those script changes !

Offline

#62 2026-11-11 17:45:46

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

Re: Conky Weather: MyForecast Script

^I see "skyscrapers" in the clouds here. I have no idea where they came from...   big_smile
803597522_bildschirmfoto_2026-11-11_18-38-37.png

Offline

#63 2026-11-11 18:04:20

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

Re: Conky Weather: MyForecast Script

^ That is one of the fog icons (8.png, 9.png, 10.png, 12.png).

It’s similar here at the moment:
myforecast.png

Last edited by marens (2026-11-11 18:14:19)


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

Offline

#64 2026-11-11 18:33:55

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

Re: Conky Weather: MyForecast Script

^^Good to know! Thanks!  big_smile

Offline

#65 2026-11-12 06:26:33

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

Re: Conky Weather: MyForecast Script

Thanks for the script updates, @marens!

Offline

#66 2026-11-14 00:08:20

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

Re: Conky Weather: MyForecast Script

Changes within  #### NOW FORECAST

Bad weather sometimes helps to stay home and do something useful.
I made a couple of 'cosmetic' changes, nothing special.

Removed the line after  ## Wind Speed:

sed -i -e '/><\/i>/d' $HOME/MyForecast/now

The command for  ### Wind direction  is now more efficient and looks like this:

## Wind Direction
cat $HOME/MyForecast/weather_raw | grep -A 2 'Wind:' | sed -e 's/.* //' -e 's/<sup>//' -e 's/<\/sup>//' -e '/Wind:/d' -e '/fill/d' | sed -n '$p' >> $HOME/MyForecast/now

As I said, nothing special.
Please update the script.

mf-conky.png

Note *
I would like to remind you that daylight saving time has ended.
Make changes in mf-conky for the hourly forecast if you are not using the only correct solution:
https://forums.bunsenlabs.org/viewtopic … 56#p151756

P.S.
The myforecast script has been updated:
https://forums.bunsenlabs.org/viewtopic … 80#p150180

Last edited by marens (2026-11-14 00:22:40)


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

Offline

#67 Today 01:22:20

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

Re: Conky Weather: MyForecast Script

Daily and Hourly Temperature

As you know, I created the script for MyForecast in the middle of April (Spring).
It was expected that changes would occur when colder days arrived.

The MyForecast website uses "-0°" for temperature in the daily and hourly forecast.

mf-site.png

I don't like that way and the script has been changed.
The “-” sign is simply removed.

#### DAILY FORECAST

Replace:

## High Temerature
cat $HOME/MyForecast/weather_raw | grep -A 1 '<h2 class="roboto-condensed-700 me-2 primary-txt">' | sed -e 's/^[ \t]*//' -e '/--/d' -e '/class/d' -e 's/<\/h2>//' -e 's/ .*//' > $HOME/MyForecast/high_temp

## Low Temerature
cat $HOME/MyForecast/weather_raw | grep -A 1 '<h4 class="roboto-condensed-400 mt-lg-2 text-body-tertiary" style="margin-top:3px;">' | sed -e 's/^[ \t]*//' -e '/--/d' -e '/class/d' -e 's/<\/h4>//' -e 's/ .*//' > $HOME/MyForecast/low_temp

With:

## High Temerature
cat $HOME/MyForecast/weather_raw | grep -A 1 '<h2 class="roboto-condensed-700 me-2 primary-txt">' | sed -e 's/^[ \t]*//' -e '/--/d' -e '/class/d' -e 's/<\/h2>//' -e 's/ .*//' -e' s/-0/0/' > $HOME/MyForecast/high_temp

## Low Temerature
cat $HOME/MyForecast/weather_raw | grep -A 1 '<h4 class="roboto-condensed-400 mt-lg-2 text-body-tertiary" style="margin-top:3px;">' | sed -e 's/^[ \t]*//' -e '/--/d' -e '/class/d' -e 's/<\/h4>//' -e 's/ .*//' -e' s/-0/0/' > $HOME/MyForecast/low_temp

#### HOURLY FORECAST

Replace:

## Temperature
cat $HOME/MyForecast/hourly/hourly_raw | grep -A 1 '<th scope="row">' | grep '<td>'| sed -n '1,8p' | sed -e 's/^[ \t]*//' -e 's/<td>//' -e's/<\/td>//' > $HOME/MyForecast/hourly/temperature

With:

## Temperature
cat $HOME/MyForecast/hourly/hourly_raw | grep -A 1 '<th scope="row">' | grep '<td>'| sed -n '1,8p' | sed -e 's/^[ \t]*//' -e 's/<td>//' -e 's/<\/td>//' -e' s/-0/0/' > $HOME/MyForecast/hourly/temperature

Before:
daily1.png

After:
daily2.png

P.S.
The myforecast script has been updated:
https://forums.bunsenlabs.org/viewtopic … 80#p150180


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

Offline

Board footer

Powered by FluxBB