You are not logged in.
@marens: thanks a lot for updating us on those script changes !
Online
Offline
^^Good to know! Thanks! ![]()
Offline
Thanks for the script updates, @marens!
Offline
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/nowThe 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/nowAs I said, nothing special.
Please update the script.
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
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.
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_tempWith:
## 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/temperatureWith:
## 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/temperatureP.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
Here is my variation of this script with 15 days forecast support.
This is what it looks like when used with conky htcspill:
.
Last edited by arof (Yesterday 22:42:01)
Offline
^ It looks great.
I assume you're intentionally not using square weather icons in Conky?
A very interesting and creative approach. ![]()
Here is my variation of this script with 15 days forecast support. ...
Yes.
I wrote the script in a way that is understandable to most people.
Members of our forum are familiar with weather forecast scripts and have a lot of experience with them.
Last edited by marens (Today 00:43:36)
If people would know how little brain is ruling the world, they would die of fear.
Offline
I assume you're intentionally not using square weather icons in Conky?
Of course. There’s no problem with changing that, after all.
Offline
Current/RealFeel Temperature
OK, it happened again.
The “-” sign appears before zero, including for the comfort level (RealFeel).
I assume that it will be the same for the current temperature.
It is time to remove it.
Open myforecast script > section #### NOW FORECAST.
That part should look like this:
## Temperature
cat $HOME/MyForecast/weather_raw | grep 'mt-2 primary-txt">' | awk -F'</' '{print $1}' | sed -e 's/<div class="display-2 roboto-condensed-700 m-lg-0 mt-2 primary-txt">//' -e 's/^[ \t]*//' -e "s/<span class='csuper'>//" -e 's/-0/0/' >> $HOME/MyForecast/now
## Comfort Level
cat $HOME/MyForecast/weather_raw | grep -A 2 'Comfort Level' | grep 'class' | sed -e 's/^[ \t]*//' -e 's/<p class="my-2">//' -e "s/<span class='csuper'>//" -e 's/<\/span><\/p>//' -e 's/-0/0/' >> $HOME/MyForecast/nowDone.
P.S.
The myforecast script has been updated:
https://forums.bunsenlabs.org/viewtopic … 80#p150180
Last edited by marens (Today 14:05:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline