You are not logged in.

#81 2025-11-17 18:16:50

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

Re: Conky TAD script

@marens, I don't think we are talking about the same thing.

When I look at your 1st screenshot in the post above, which shows the table for "forecasts for the next 2 weeks", I can see that there is no daily weather forecast (as opposed to the current or "now" weather) for the 17th of Nov (current day).  The data starts from the following day, namely, 18th Nov.

Similarly, the textual weather condition provided in the date_and_phrase file starts from 18th Nov. 

It's easy to display the current ("Now") weather textually because it's in the "now" file.  It's easy to display tomorrow's text forecast because it's in the date and phrase file.

However, I can't figure out how to display today's text forecast because it's neither in the now or the date and phrase files.

In the website, the text forecast for today (or the rest of today) is displayed in the "forecast for the next 48 hours" table, per my 1st screenshot in https://forums.bunsenlabs.org/viewtopic … 90#p147090 .

I'm wondering where in the whole timeanddate.com site that piece of data can be found, and whether there is a way to extract it into a text file.

Offline

#82 2025-11-17 18:56:57

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

Re: Conky TAD script

You probably didn't understand me.

During the day in conky you will have:

Now (Current  -  skip line 3 in the "now" file)  *You already have it below

TODAY (From the table  -  "date" + "temperatures" files)

TOMORROW (From the table  -  "date" + "temperatures" files)

Today's forecast is not important in the evening hours.
That's why the website switches to tomorrow's forecast and you will get:

Now (Current  -  skip line 3 in the "now" file)

TOMORROW  -  (From the table  -  "date" + "temperatures" files)

DAY AFTER TOMORROW  -  (From the table  -  "date" + "temperatures" files)

After midnight (in the morning) everything is as usual again (case one).


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

Offline

#83 2025-11-18 05:36:38

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

Re: Conky TAD script

Ah so.  I get it.
Thanks, @maren.

Offline

#84 2025-11-18 21:16:40

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

Re: Conky TAD script

^ Your tad-conky reminds me of the acc_RSS script.

Simple with just a few data for a couple of days.
I went back in time for a moment:
https://forums.bunsenlabs.org/viewtopic … 81#p132081

tad-weather.png

Last edited by marens (2025-11-18 23:48:20)


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

Offline

#85 2025-11-19 13:54:12

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

Re: Conky TAD script

marens wrote:

^ Your tad-conky reminds me of the acc_RSS script.

Simple with just a few data for a couple of days.
...

Yes, I like simple.

My conkies don't show hourly weather.  And when I do use moongiant script, it is usually only to display the current moonphase visually (ie, just the icon).

I will probably use this TAD script in my acc_RSS conkies that no longer work. 

I could replace with accuweather_conky_script, but I want to reduce reliance on accuweather stuff, which might be cut off at any time.

Offline

#86 2025-11-19 14:32:50

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

Re: Conky TAD script

asqwerth wrote:

I will probably use this TAD script in my acc_RSS conkies that no longer work.

I created a TAD script to replace acc_RSS.

marens wrote:

We have lost the Accuweather_RSS_conky_script for now, but we hope to get it working again.

While we wait, try this:

https://forums.bunsenlabs.org/viewtopic … 05#p146305

I thought the "NOW" part would be enough.
Anyway, you now have a complete script (now + hourly + daily forecast).

Let everyone use what they like.
Enjoy.


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

Offline

#87 2025-11-19 15:02:47

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

Re: Conky TAD script

Thank you again.

Offline

#88 2025-11-20 01:16:40

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

Re: Conky TAD script

Conky tad script

Looking at @asqwerth's tad-conky, I thought it would be good to have the month in the "date" file as well.

tad-date.png

If you prefer this, the end of the TAD script should look like this:

## Daily Day + Date - Next 7 Days 
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -s "$address/ext" > $HOME/time_and_date_conky_script/date-raw

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $1}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' > $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $2}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $3}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $4}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $5}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $6}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep '"ds"' | awk -F'","icon"' '{print $7}' | awk -F'"ds":"' '{print $2}' | sed 's/\.//' >> $HOME/time_and_date_conky_script/date

You will probably get the names of the days and months in the local language.
If you want a different format (or language), it's pretty easy to do by adding one long 'sed' line to the end of the TAD script.


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

Offline

#89 2025-11-20 02:17:23

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

Re: Conky TAD script

Nice, the new date script works well.

Previously I was using the "date -d +1day..." command to display more detailed dates, but the '1p' forecast details  wouldn't have been accurate in the daytime, per your explanation in https://forums.bunsenlabs.org/viewtopic … 95#p147095 .


2HTh9L5.png

Thanks.

Last edited by asqwerth (2025-11-20 02:17:51)

Offline

#90 2025-11-20 13:54:20

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

Re: Conky TAD script

^ Yes.
That's wrong.

If you look at the 'Forecast for the next 2 weeks' table on the website and compare it with the "date" and "temperatures" files, you will see that the data is the same.

In the evening it is much more useful to see tomorrow's forecast (first day in conky) because we already have "NOW" data until midnight.
It was unusual for me too, but now I think it's smart and logical.
After midnight, the data is displayed again in conky as we are used to.

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

${goto 100}${color ff8080}High and Low:${color}  ${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/temperatures}  °C
${goto 100}${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/date_and_phrase | sed 's/[^ ]* *//' | fmt -w 25 | sed -n '1p'}
${goto 100}${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/date_and_phrase | sed 's/[^ ]* *//' | fmt -w 25 | sed -n '2p'}
${goto 100}${execpi 90 sed -n '1p' $HOME/time_and_date_conky_script/date_and_phrase | sed 's/[^ ]* *//' | fmt -w 25 | sed -n '3p'}

The command "fmt -w 25" sets the width.
You can change "25" and set it as you want.

Note*
Maybe the third part is not necessary, but it remains to be tested.


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

Offline

#91 2025-11-21 09:14:41

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

Re: Conky TAD script

@marens

^This is my now file.

Temperature: -3 °C
Feels Like: -3 °C
Forecast: 1 / -7 °C
Partly sunny
Visibility: N/A
Pressure: 1020 hPa
%
Dew Point: -4 °C
from North
Latest Report: 21. Nov 2025, 09:20

After I wasn't there for three weeks, I tried to add the wind to the tad script yesterday. The result is poor.

I'm just wondering whether it wouldn't be better to place additions/improvements/changes to the script in a central location?
Similar to what @TBG did, your scripts are in a specific location. It's just damn annoying to find the individual posts.
I think @johnraff definitely doesn't mind.  wink

@marens, please think about it... 
yes, and the entire current tad script wouldn't be bad for me now.  tongue   Thanks!

Offline

#92 2025-11-21 12:36:20

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

Re: Conky TAD script

^ The TAD script works fine for your city when I run it from here.

Your file "now" doesn't look like it should.
We have already established that the tad website does not work the same in all countries.

I need your weather_raw file.

EDIT
That could have been fixed a long time ago, but ...
https://forums.bunsenlabs.org/viewtopic … 06#p146306
https://forums.bunsenlabs.org/viewtopic … 07#p146307

Last edited by marens (2025-11-21 13:14:00)


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

Offline

#93 2025-11-21 14:16:44

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

Offline

#94 2025-11-21 15:26:20

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

Re: Conky TAD script

^ The first 6 'cat' lines are OK.

These are the remaining 5:

cat $HOME/time_and_date_conky_script/weather_raw | grep 'Visibility:' | awk -F'%' '{print $1}' | awk -F'mbar</td></tr><tr><th>' '{print $2}' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep 'Visibility:' | awk -F'%' '{print $1}' | awk -F'hPa</td></tr><tr><th>' '{print $2}' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk '{print $1, $2, $3}' | sed 's/<\/p><\/div><div//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw  | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p></div><div' '{print $1}' | sed 's/^[ \t]*//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep '</td></tr><tr><th>Latest Report:' | awk -F'</td></tr><tr><th>' '{print $3}' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

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

Offline

#95 2025-11-21 16:37:05

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

Re: Conky TAD script

^^I'm sorry my friend, but this doesn't work.

Without taking your post above into account, I have now rebuilt the entire script here on wayfire/wayland with the individual steps in your posts.

This is the content in Thunar:  20251121-17h17m40s-grim.png

This is the now:

Temperature: -2 °C
Feels Like: -2 °C
Forecast: 1 / -6 °C
Passing clouds
Visibility: N/A km
Pressure: 1023 hPambar
Dew Point: -5
from North °C
Latest Report: 21. Nov 2025, 16:50

This is the bug in terminal: 

bash $HOME/time_and_date_conky_script/tad
cp: -r wurde nicht angegeben, daher wird das Verzeichnis '/home/unklar/time_and_date_conky_script/wind/' ausgelassen

and here ist die raw:  https://workupload.com/file/WrwSGUkGW6D

Offline

#96 2025-11-21 18:38:30

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

Re: Conky TAD script

^ Sorry, I tested in HOME.
I probably made a mistake somewhere.

These are "cat" lines 7, 8, 9, 10, 11:

cat $HOME/time_and_date_conky_script/weather_raw | grep 'Visibility:' | awk -F'%' '{print $1}' | awk -F'hPa</td></tr><tr><th>' '{print $2}' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep 'Visibility:' | awk -F'%' '{print $2}' | awk -F'&nbsp;°C' '{print $1}' | sed 's/<\/td><\/tr><tr><th>//' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk '{print $1, $2, $3}' | sed 's/<\/p><\/div><div//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw  | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p></div><div' '{print $1}' | sed 's/^[ \t]*//' >> $HOME/time_and_date_conky_script/now

cat $HOME/time_and_date_conky_script/weather_raw | grep '</td></tr><tr><th>Latest Report:' | awk -F'</td></tr><tr><th>' '{print $3}' | sed 's/<\/th><td>//' >> $HOME/time_and_date_conky_script/now

Also remove  -e '6s/$/mbar/'  from the tad script.


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

Offline

#97 2025-11-22 08:04:34

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

Re: Conky TAD script

^^perfect !!  Thanks.  big_smile  no bug's

20251122-09h00m14s-grim.png

Temperature: -4 °C
Feels Like: -4 °C
Forecast: 1 / -9 °C
Overcast
Visibility: N/A km
Pressure: 1028 hPa
Humidity: 86
Dew Point: -6 °C
Wind: 4 km/h
from North
Latest Report: 22. Nov 2025, 08:20

Offline

#98 2025-11-22 09:21:12

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

Re: Conky TAD script

carbon-new

Due to limited space in the configuration, somewhat squashed.
required fonts: FiraMono and neuropolitical

Have fun!  big_smile

Bildschirmfoto-2025-11-22-09-54-26.png

https://workupload.com/file/BeeRXDSBgkU

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

Offline

#99 2025-11-22 13:04:20

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

Re: Conky TAD script

^ Very nice.

Just to warn you that in the evening the website will show the dates 24, 25, 26 (instead of 23, 24, 25) in the daily forecast.
I think that's OK because there are only a few hours left until midnight.

When you followed the advice I gave for the second location, you lost the ' % ' sign (Humidity).
Just add to the long sed line (below the cat lines):

-e '7s/$/%/'

Enjoy.   smile


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

Offline

#100 2025-11-22 18:45:40

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

Re: Conky TAD script

@unklar

This part is wrong:

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

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

If you want a daily forecast for TOMORROW + 2 DAYS, then use the images day_2, day_3, day_4.

My advice is to use the first three lines of the file date_and_phrase and keep images day_1, day_2, day_3 (TODAY + 2 DAYS).
Why?
Because the site automatically switches to tomorrow's forecast (in the evening hours), as it is more useful than the forecast until midnight.

* 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

Board footer

Powered by FluxBB