You are not logged in.

#101 2025-11-23 02:31:47

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

Re: Conky TAD script

@marens, for some reason the date_and_phrase file no longer has text. 

It started last night, and this morning it's still the same.  Date of file is current, it gets re-generated by the tad script same time as the other files, but it's empty and no longer recognised as a text file.  When I double click on it, file manager is now asking me what program to use to open it.  Previously the default text editor just opens it without asking.

Offline

#102 2025-11-23 02:58:41

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

Re: Conky TAD script

^ I ran the tad script once from the terminal and everything is fine here.

tad-weather.png

Maybe a temporary problem with your location?
Visit the website and see the forecast table for the next 2 weeks.


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

Offline

#103 2025-11-23 04:37:06

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

Re: Conky TAD script

marens wrote:

^ I ran the tad script once from the terminal and everything is fine here.

https://i.postimg.cc/4HgK91cw/tad-weather.png

Maybe a temporary problem with your location?
Visit the website and see the forecast table for the next 2 weeks.


The website 14-day forecast is showing all the text weather conditions, but the date_and_phrase file is still generated as an empty non-textfile document.  I will observe for next 24 hours and see if it sorts itself out.  The date, image and temperatures text files are fine.

Offline

#104 2025-11-23 08:36:16

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

Re: Conky TAD script

@marens, good catch!

${goto 25}${execi 3600 sed -n '2p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}.\
${goto 110}${execi 3600 sed -n '3p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}.\
${goto 190}${execi 3600 sed -n '4p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}.

${image $HOME/time_and_date_conky_script/day_2.png -p 10,510 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_3.png -p 100,510 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_4.png -p 180,510 -s 40x40}

${goto 10}${execpi 3600 sed -n '2p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 90}${execpi 3600 sed -n '3p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 170}${execpi 3600 sed -n '4p'  $HOME/time_and_date_conky_script/temperatures}°C

Bildschirmfoto-2025-11-23-09-42-02.png

Last edited by unklar (2025-11-23 08:47:40)

Offline

#105 2025-11-23 12:54:20

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

Re: Conky TAD script

@asqwerth

Maybe you accidentally changed something in that part of the tad script.

This is what the original code looks like:

## Daily Date + Phrase - Next 7 Days

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $2}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' > $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $3}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $4}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $5}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $6}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $7}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $8}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' >> $HOME/time_and_date_conky_script/date_and_phrase

If it still doesn't work, I need your weather_raw file.

EDIT
This could also be the reason:

tad website wrote:

* Adjusted for Daylight Saving Time (7 places).

Sun = Sunday, 23 November 2025 (133 places).
Mon = Monday, 24 November 2025 (8 places).

https://www.timeanddate.com/weather/

Has something changed in your country (region)?
If so, the code probably needs to be modified.

Last edited by marens (2025-11-23 14:38:00)


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

Offline

#106 2025-11-24 12:28:30

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

Re: Conky TAD script

@marens,
The script I'd copied was fine.   

Thankfully the date_and_phrase file is back to normal with the textual weather conditions.  It could have been just a momentary glitch or maybe the website upgrade did affect the data available for my location (although we don't have daylight savings time here).

Thanks.

Offline

#107 2025-11-24 13:37:55

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

Re: Conky TAD script

@marens, do you happen to have a index/key for the numbered weather icons you provided, so that I can work out what condition each stands for?

For instance. wt-1 to wt-7 all appear to be showing different levels of daytime cloudiness... except wt-3, which seems to be daytime smog/fog/mist.  But it seems weird to place a "misty" icon in the midst of "cloudy" icons.  Same with wt-14 (night time mistiness) in the midst of wt-13 to 17 which appear to be for night time cloud levels.

And what does wt-11 represent?  It looks like a sponge.  :-P

Right now I'm just guessing what each icon represents.  I can't seem to find the weather codes on the website, unlike for Accuweather and Openweathermap.

If I have the key/index or weather codes, I can adapt other weather icons to work with your tad script without the guesswork.

Last edited by asqwerth (2025-11-24 13:38:50)

Offline

#108 2025-11-24 14:19:21

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

Re: Conky TAD script

^ I found the weather icons on tad website.

I won't change them for now because they are different from the others.
If you want to get to know them better, use the table for the next 2 weeks (tooltip).

Just visit a few locations (winter/summer/day/night).

EDIT
You have 471 locations here:
https://www.timeanddate.com/weather/?low=4

Duststorm  is  wt-11   * Probably wt-3 is similar.
Ice fog    is  wt-10
...

Last edited by marens (2025-11-24 18:44:20)


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

Offline

#109 2025-11-25 05:11:07

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

Re: Conky TAD script

@marens, thanks for the very helpful link and the meaning of wt-10 and 11.

I was checking some locations last night, and the wt-14 icon (moon + mist) was used interchangeably for night time mist/fog conditions as well as "passing clouds".  I see no other moon + mist icon in the icon set.

On the other hand, I am guessing that wt-3 icon (sun + yellow tinged mist) is used solely for daytime cloudiness level because there is a very similar icon -- wt-9 (sun + white tinged mist) -- that is part of the wt-8 to 12 general mist/fog/dust section.

This is sufficient info for me to adapt icons.  Final little issue for me is whether any of the wt-8 to wt-12 icons are specifically used for night time mist/fog level as well.  But that's not so important, because I suspect t_a_d just uses the wt-14 icon interchangeably.

Here is my simple tad conky with the icons that came with TBG's Weather Underground script (RIP).

ztv63Z3.png

Offline

#110 2025-11-25 10:54:40

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

Re: Conky TAD script

asqwerth wrote:

On the other hand, I am guessing that wt-3 icon (sun + yellow tinged mist)...

The wt-3 icon is for HAZE.

I don't know if you've seen this:

marens wrote:

Also, you can see that sometimes the line under "High and Low:" is very long and I have divided it into three parts.

https://forums.bunsenlabs.org/viewtopic … 79#p147179


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

Offline

#111 2025-11-25 12:21:30

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

Re: Conky TAD script

marens wrote:
asqwerth wrote:

On the other hand, I am guessing that wt-3 icon (sun + yellow tinged mist)...

The wt-3 icon is for HAZE.

I don't know if you've seen this:

marens wrote:

Also, you can see that sometimes the line under "High and Low:" is very long and I have divided it into three parts.

https://forums.bunsenlabs.org/viewtopic … 79#p147179

Noted on wt-3.

As for the High and Low thing, I simply use the " | cut " command for the text weather conditions, and made it into 2 lines.  I skip the first few characters where the date (and space) is. 

${goto 72}${color6}${execi 600 sed -n '1p'  $HOME/time_and_date_conky_script/date_and_phrase | cut -c4-31}
${goto 72}${color6}${execi 600 sed -n '1p'  $HOME/time_and_date_conky_script/date_and_phrase | cut -c32-59}

Offline

#112 2025-11-25 12:52:20

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

Re: Conky TAD script

^ Yes, we've used that before.
The command fmt -w XX is better because it only prints whole words.

When you've tested your icons enough and set everything right, post them here:
https://workupload.com

Just compress the folder tad-icons2 as .tar.xz .

P.S.
I know it will take time, but there's no rush.

Last edited by marens (2025-11-25 13:08:21)


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

Offline

#113 2025-11-25 14:11:43

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

Re: Conky TAD script

A attempt on wayland/wayfire with the accuweather-script

20251125-13h55m59s-grim.png  20251125-13h54m09s-grim.png  Original 2023-03-21-16-43-48-scrot.png

-I excluded the sun and moon, as well as the hourly edition.
-So far I haven't been able to put a dark background behind the conky window. Neither with lua-scripte nor with the 'home remedies' from conky.

the accuweather script I used and the conkyrc
https://workupload.com/file/YadfSGJYepB

Offline

#114 2025-11-25 14:30:20

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

Re: Conky TAD script

^ Please remove the link to the accuWeather script.
I don't want my work to be found again on Github without asking me.

The link to the BL forum was never posted there.

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

Last edited by marens (2025-11-25 18:00:40)


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

Offline

#115 2025-11-25 16:47:01

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

Re: Conky TAD script

marens wrote:

^ Yes, we've used that before.
The command fmt -w XX is better because it only prints whole words.

I see. OK, I'm trying it out right now.


When you've tested your icons enough and set everything right, post them here:
https://workupload.com

Just compress the folder tad-icons2 as .tar.xz .

P.S.
I know it will take time, but there's no rush.

Will do.  I've always liked the Weather Underground icons. 

I will have to tweak a few icons (or borrow from elsewhere) to make them fit the T_A_D weather codes, when I have the time.

Offline

#116 2025-11-25 17:56:50

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

Re: Conky TAD script

asqwerth wrote:

I will have to tweak a few icons (or borrow from elsewhere) to make them fit the T_A_D weather codes, when I have the time.

It will not be easy or quick for you.

When I followed those 471 locations, I noticed that the wt-14 icon appeared somewhere as "Passing clouds" (night) and somewhere only as "Fog".
I'm sure there are many similar cases.
That's why it's good to have a text part of the weather forecast.

If it's too complicated, you can always go back to the official icons.


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

Offline

#117 2025-11-25 18:00:54

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

Re: Conky TAD script

marens wrote:

^ Please remove the link to the accuWeather script.
I don't want my work to be found again on Github without asking me.

The link to the BL forum was never posted there.

???  yikes
If you mean me, then I blocked the link out of respect for your work,

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

I hope you have a good and plausible explanation for this. hmm

Offline

#118 2025-11-25 18:50:20

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

Re: Conky TAD script

^ I've since edited the post, but you probably didn't see it.

marens wrote:

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

I'll try to explain it to you:
Some people from GitHub come here, copy/paste my fixes, and publish them as their own work on the script.

They don't leave a link to this forum anywhere, even though they found the solution here.
If they promoted BL forums, I wouldn't mind.

I always help everyone, but I don't want to help people like that.

P.S.
You decide what you will do.
I just asked you to think about it.

EDIT

unklar wrote:

I don't understand it because your name doesn't appear anywhere. It's @TBG's script, which some people, including me, have mangled, bent and straightened.

Ah.
We're not talking about the same accuweather script???
I meant the one that has been saved for the last 45 months without @TBG:

marens wrote:

My latest updates still work, and for those who use hourly forecast, I made my own version that also works (for now).

Anyway, you and I can be proud of our contributions here since @TBG left (about 45 months ago).

https://forums.bunsenlabs.org/viewtopic … 23#p146923
https://forums.bunsenlabs.org/viewtopic … 31#p128131
https://forums.bunsenlabs.org/viewtopic … 73#p132573
https://forums.bunsenlabs.org/viewtopic … 74#p132574
https://forums.bunsenlabs.org/viewtopic … 32#p145932
...

I'd love to see that accuweather script where my name doesn't appear anywhere.
Link?

Last edited by marens (2025-11-25 23:34:20)


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

Offline

#119 2025-11-26 02:04:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,913
Website

Re: Conky TAD script

marens wrote:

^ I've since edited the post, but you probably didn't see it.

marens wrote:

EDIT
This is a public forum and nothing is hidden, but let them at least try to find it themselves.

I'll try to explain it to you:
Some people from GitHub come here, copy/paste my fixes, and publish them as their own work on the script.

They don't leave a link to this forum anywhere, even though they found the solution here.
If they promoted BL forums, I wouldn't mind.

I always help everyone, but I don't want to help people like that.

Note, to everyone - BunsenLabs is part of the FOSS world. Our packages on GitHub are published under various open source licences, mostly GNU 2 or 3. That means anyone is free to copy the code and use it however they want, as long as they publish it with the same conditions. Any copyright declarations must be preserved, so previous authors of work continue to be credited. This means it's a good idea to put (dated) copyright headers in any piece of work that you consider important enough.

As for content published without any licence or copyright declaration, there may be some automatic copyright, but I don't think there's any obligation on the author to make content available, or not.

On this forum, we consider technical content published here to belong to the community as a whole (as is written in the rules, under "Deleting your data"). That said, of course users are able to edit their posts as they want, so we are mostly talking about a moral obligation to keep the content here useful.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#120 2025-11-26 06:19:47

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

Re: Conky TAD script

marens wrote:

.....
When I followed those 471 locations, I noticed that the wt-14 icon appeared somewhere as "Passing clouds" (night) and somewhere only as "Fog".
I'm sure there are many similar cases....

I already mentioned the wt-14 issue a few posts back.  I have no choice but to use an icon that can represent interchangeably mist/fog as well as (if you close one eye) light clouds.

So far I have not spotted wt-32 (3 blue wavy lines - water??) in the webpage with the 471 locations.  That is now the only icon left that I'm not sure about.

[ADDED]
OK, I did a web search for areas experiencing floods right now, the news said Hat Yai in Thailand, and wt-32 was used to indicate flash floods in that region.

Solved.

I will reuse the original wt32 icon for this.

Last edited by asqwerth (2025-11-26 06:30:35)

Offline

Board footer

Powered by FluxBB