You are not logged in.
Pages: 1
The TAD script works great.
However, there is a problem with locations.
Some locations are redirected to the nearest airport even though it is usually far from the city.
Some locations are updated very rarely on the website (every three hours at my place).
I did a little research and found the source that is used.
Updates are regular here and there is a lot more data for conky.
You can download MyForecast here:
https://www.mediafire.com/file/c9qquyyo … ar.xz/file
1) Extract MyForecast.tar.xz and get the MyForecast folder
2) Copy/Paste MyForecast folder in HOME
3) Open the folder and you will see the myforecast script (file)
4) Open it with a text editor
5) At the beginning of the script you will see that it is set to ## Paris, France as an example and you need to change the addresses (daily and hourly)
HOW?
1) Visit https://www.myforecast.com website
2) Type your location in the search field
3) Once you find your location (not the airport), click More Forecasts > Hourly
4) Right-click in the URL bar > Copy
5) Paste in address_hourly (it must be in the same format as for Paris, FR)
6) Click on the 'hamburger menu' (top right) > Current conditions
7) Right-click in the URL bar > Copy
8) Paste in address_daily (it must be in the same format as for Paris, FR)
Done.
Finally, open a terminal and run the myforecast script once:
bash $HOME/MyForecast/myforecastOpen the MyForecat folder and check if you get this:
Beautiful weather icons and lots of data for conky.
There is also information about the sun and moon.
It will take time for the new weather conky, but once you have it, share screenshots and code with others.
Enjoy. ![]()
Last edited by marens (2026-04-17 01:00:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline
my mistake, I wrote 'dayli' and 'horly' ![]()
done
Last edited by unklar (2026-04-17 09:09:56)
Offline
hello
great but possible to have it in french
@
+
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
More details
Spanish (instead of English) and °F (instead of °C) are available.
I haven't tried it, but I think it's only necessary to adjust the addresses (daily and hourly) with:
lang=spanish
and
metric=falseIf people would know how little brain is ruling the world, they would die of fear.
Offline
@marens
I can't seem to access the https://www.myforecast.com/ site. I get a '403 forbidden' message.
TAD script works well for me, but I'm certainly curious to test this new one out.
Offline
^ Try running the script with the default location (Paris, France).
If it works, give me your location so I can set up the correct addresses (hourly + daily) for you.
If people would know how little brain is ruling the world, they would die of fear.
Offline
^ Try running the script with the default location (Paris, France).
If it works, give me your location so I can set up the correct addresses (hourly + daily) for you.
Nope, running script with default location does not work either. I get lots of empty text files being generated, and no weather icons. Similar to the old TAD script during the weekend changeover of data.
Even doing a web search of "myforecast" in the browser and then clicking on the relevant myforecast links brought up by the search results, leads to 403 Forbidden.
It appears that my location is geoblocked. I enabled VPN and chose a Europe location -- website can be accessed. When I switched the VPN location back to my own country, access was forbidden.
Don't worry about it. I'll continue with TAD.
Offline
Offline
^ I haven't made a conky yet, but I can guess what's going on.
While writing the script, I had a problem getting the images.
Everything looked fine in the text editor (terminal), but I realized that a 'phantom' blank space appeared at the end.
Try to avoid this by using the awk command in conky and printing only the first word.
Example for wind direction:
Instead:
$ sed -n '5p' $HOME/MyForecast/now
NUse in conky:
$ sed -n '5p' $HOME/MyForecast/now | awk '{print $1}'
NThe first two words are required for the file time (hourly forecat):
Instead:
$ sed -n '1p' $HOME/MyForecast/hourly/time
7 AMUse in conky:
sed -n '1p' $HOME/MyForecast/hourly/time | awk '{print $1, $2}'
7 AMThe result is the same in the terminal but this should remove the 'phantom' blank space at the end of the line.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Don't worry about it. I'll continue with TAD.
If your location is updated regularly on the website, everything stays the same.
If you like the MyForecast icons just copy and paste them into TAD.
You just need to rename them by adding 'wt-' to the beginning of each one.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Offline
Remove 'phantom' empty box
I really don't know why it appears.
If you open the 'now' file and place the cursor at the end of line 5 (wind direction) and then use the right arrow, the cursor goes down to the beginning of line 6.
There is no such empty box in the text editor.
I found the solution in test conky.
Wind direction example:
${texeci 600 sed -n '5p' $HOME/MyForecast/now | sed 's/.$//'}Wherever you have an empty box, use the sed 's/.$//' command in MyForecast conky as in the example above.
P.S.
When I have time I will try to find a solution in the script that will remove all the 'phantom' characters.
If people would know how little brain is ruling the world, they would die of fear.
Offline
Remove 'phantom' empty box
OK.
First of all, thank you guys for finding the bug.
Everything worked as expected in the text editor and terminal, but a empty box appears in conky.
When I have time I will try to find a solution in the script that will remove all the 'phantom' characters.
I think a solution has been found.
Add this to the end of the myforecast script:
#### REMOVE ALL NON-PRINTABLE CHARACTERS
## Now
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/now
## Days
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/days
## Phrase (Daily)
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/phrase
## Sun
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/sun
## Moon
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/moon
## Temperature (Hourly)
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/hourly/temperature
## Phrase (Hourly)
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/hourly/phrase
## Time (Hourly)
sed -i 's/[^[:print:]]//g' $HOME/MyForecast/hourly/timeI checked all the above files in a test conky and the unexpected character was removed.
Note *
Those using my temporary solution with sed 's/.$//' must remove that command from conky
Thanks again and...
Enjoy. ![]()
Last edited by marens (Today 00:50:40)
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
Last edited by unklar (Today 08:36:29)
Offline
Pages: 1