You are not logged in.

#281 2026-05-06 13:04:20

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

Re: Conky Weather TAD script

@johnraff

Yes, I agree.
As already said:

marens wrote:

Now we know what we need.
Expert in wget commands.

https://forums.bunsenlabs.org/viewtopic … 16#p150516

Although most have switched to the MyForecast script, I haven't given up yet.
I just tried the command which works here, only the user agent is moved to the headers.

Paris, France:

$ wget --ignore-length --force-html --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"
--2026-05-06 14:23:07--  https://www.timeanddate.com/weather/france/paris
Resolving www.timeanddate.com (www.timeanddate.com)... 104.18.21.57, 104.18.20.57
Connecting to www.timeanddate.com (www.timeanddate.com)|104.18.21.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: ignored [text/html]
Saving to: ‘paris’

paris                   [ <=>                ]  44.74K  --.-KB/s    in 0.1s    

2026-05-06 14:23:07 (313 KB/s) - ‘paris’ saved [45814]

I got the  paris  file in HOME.
I opened it with a text editor and all the necessary data is there.

Try it guys.
If it works, we can easily modify the TAD script.

Last edited by marens (2026-05-06 16:23:40)


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

Offline

#282 2026-05-06 13:10:39

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

Hello

wget --ignore-length --force-html --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"
--2026-05-06 15:10:04--  https://www.timeanddate.com/weather/france/paris
Résolution de www.timeanddate.com (www.timeanddate.com)… 104.18.20.57, 104.18.21.57
Connexion à www.timeanddate.com (www.timeanddate.com)|104.18.20.57|:443… connecté.
requête HTTP transmise, en attente de la réponse… 403 Forbidden
2026-05-06 15:10:04 erreur 403 : Forbidden.

I think that, despite all your efforts, it’s definitely dead for me.

@+

Last edited by loutch (2026-05-06 13:12:33)


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

#283 2026-05-06 13:39:12

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

Re: Conky Weather TAD script

^ This is a list of Request Headers:

{
	"requestHeaders": {
		"headers": [
			{
				"name": "Accept",
				"value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
			},
			{
				"name": "Accept-Encoding",
				"value": "gzip, deflate, br, zstd"
			},
			{
				"name": "Accept-Language",
				"value": "en-US,en;q=0.9"
			},
			{
				"name": "Connection",
				"value": "keep-alive"
			},
			{
				"name": "DNT",
				"value": "1"
			},
			{
				"name": "Host",
				"value": "www.timeanddate.com"
			},
			{
				"name": "Priority",
				"value": "u=0, i"
			},
			{
				"name": "Referer",
				"value": "https://www.timeanddate.com/weather/"
			},
			{
				"name": "Sec-Fetch-Dest",
				"value": "document"
			},
			{
				"name": "Sec-Fetch-Mode",
				"value": "navigate"
			},
			{
				"name": "Sec-Fetch-Site",
				"value": "same-origin"
			},
			{
				"name": "Sec-GPC",
				"value": "1"
			},
			{
				"name": "TE",
				"value": "trailers"
			},
			{
				"name": "Upgrade-Insecure-Requests",
				"value": "1"
			},
			{
				"name": "User-Agent",
				"value": "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
			}
		]
	}
}

Try adding more to the  wget  command, but in the same form as Referer:

--header="Referer: https://www.timeanddate.com/weather/"

Example:

wget --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"

This also works (for me):

$ wget --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"
--2026-05-06 15:31:14--  https://www.timeanddate.com/weather/france/paris
Resolving www.timeanddate.com (www.timeanddate.com)... 104.18.21.57, 104.18.20.57
Connecting to www.timeanddate.com (www.timeanddate.com)|104.18.21.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: ignored [text/html]
Saving to: ‘paris’

paris                   [ <=>                ]  44.67K  --.-KB/s    in 0.09s   

2026-05-06 15:31:15 (479 KB/s) - ‘paris’ saved [45740]

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

Offline

#284 2026-05-06 14:14:00

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

wget --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"
--2026-05-06 16:13:26--  https://www.timeanddate.com/weather/france/paris
Résolution de www.timeanddate.com (www.timeanddate.com)… 104.18.21.57, 104.18.20.57
Connexion à www.timeanddate.com (www.timeanddate.com)|104.18.21.57|:443… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : ignoré [text/html]
Enregistre : ‘paris’

paris                                     [ <=>                                                                    ]  46,09K  --.-KB/s    ds 0,02s   

2026-05-06 16:13:26 (2,47 MB/s) - ‘paris’ enregistré [47200]

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

#285 2026-05-06 14:22:57

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

Re: Conky Weather TAD script

This also works (for me) in the terminal:

				
wget --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Sec-GPC: 1" --header="Upgrade-Insecure-Requests: 1" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/france/paris"

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

Offline

#286 2026-05-06 14:25:10

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

Re: Conky Weather TAD script

^^is the crucial point

marens wrote:
{
	"requestHeaders": {
		"headers": [
			{
				"name": "Accept",
				"value": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
			},
			{
				"name": "Accept-Encoding",
				"value": "gzip, deflate, br, zstd"
			},
			{
				"name": "Accept-Language",
				"value": "en-US,en;q=0.9"
			},
			{
				"name": "Connection",
				"value": "keep-alive"
			},
			{
				"name": "DNT",
				"value": "1"
			},
			{
				"name": "Host",
				"value": "www.timeanddate.com"
			},
			{
				"name": "Priority",
				"value": "u=0, i"
			},
			{
				"name": "Referer",
				"value": "https://www.timeanddate.com/weather/"
			},
			{
				"name": "Sec-Fetch-Dest",
				"value": "document"
			},
			{
				"name": "Sec-Fetch-Mode",
				"value": "navigate"
			},
			{
				"name": "Sec-Fetch-Site",
				"value": "same-origin"
			},
			{
				"name": "Sec-GPC",
				"value": "1"
			},
			{
				"name": "TE",
				"value": "trailers"
			},
			{
				"name": "Upgrade-Insecure-Requests",
				"value": "1"
			},
			{
				"name": "User-Agent",
				"value": "Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
			}
		]
	}
}

Bildschirmfoto-2026-05-06-16-17-30.png

Offline

#287 2026-05-06 14:38:34

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

Re: Conky Weather TAD script

@loutch

Finally.

Open the  tad  script with a text editor and replace commands:

For weather_raw:

wget -O "$HOME/time_and_date_conky_script/weather_raw" --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "$address"

For date_raw:

wget -O "$HOME/time_and_date_conky_script/date_raw" --ignore-length --force-html --header="Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" --header="Accept-Language: en-US,en;q=0.9" --header="Connection: keep-alive" --header="Referer: https://www.timeanddate.com/weather/" --header="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "$address/ext"

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

Offline

#288 2026-05-06 14:54:13

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

re

which means I have to rebuild my entire TAD file from scratch, as I deleted the old one (perhaps a bit too hastily)


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

#289 2026-05-06 14:55:17

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

re

which means I have to rebuild my entire TAD folder from scratch, as I deleted the old one (perhaps a bit too hastily)


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

#290 2026-05-06 15:12:40

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

Re: Conky Weather TAD script


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

Offline

#291 2026-05-06 17:58:35

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

Re: Conky Weather TAD script

It finally works again.  Except for the "date" file of course, which is no longer generated and can't be referenced by conkies.

Let's see how the script runs for the rest of the week.

Thanks, marens.

Offline

#292 2026-05-06 18:10:54

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

Re

it work finally

i6vecCF3_t.png



@+

Last edited by loutch (2026-05-06 18:11:45)


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

#293 2026-05-06 18:26:40

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

Re: Conky Weather TAD script

^ As already said:

marens wrote:

Now we know what we need.
Expert in wget commands.

Looks like we have an expert now.  big_smile

The title has been changed and the topic has been reopened.
Once the testing is complete, the warning will be removed.

Thanks guys!


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

Offline

#294 Yesterday 12:56:20

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

Re: Conky Weather TAD script

asqwerth wrote:

It finally works again.  Except for the "date" file of course, which is no longer generated and can't be referenced by conkies.

Did you mean the date_and_phrase file?

That file was removed five months ago:
https://forums.bunsenlabs.org/viewtopic … 76#p147576

The file "date" is part of the TAD script and works fine:

$ cat ~/time_and_date_conky_script/date
Thu 7 May
Fri 8 May
Sat 9 May
Sun 10 May
Mon 11 May
Tue 12 May
Wed 13 May

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

Offline

#295 Yesterday 13:12:20

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

Re: Conky Weather TAD script

loutch wrote:

The original "thunder" icons look good in your conky.
I had to replace them.

Have you tried this:
https://forums.bunsenlabs.org/viewtopic … 04#p150504


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

Offline

#296 Yesterday 15:58:31

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

Re: Conky Weather TAD script

marens wrote:
asqwerth wrote:

It finally works again.  Except for the "date" file of course, which is no longer generated and can't be referenced by conkies.

Did you mean the date_and_phrase file?

That file was removed five months ago:
https://forums.bunsenlabs.org/viewtopic … 76#p147576

The file "date" is part of the TAD script and works fine:

$ cat ~/time_and_date_conky_script/date
Thu 7 May
Fri 8 May
Sat 9 May
Sun 10 May
Mon 11 May
Tue 12 May
Wed 13 May

No, I'm referring to the "date" file.  I kept getting an empty file with no info.  But I checked the script more carefully when you said your date file was fine.

Turns out there was a typo in this line:

cat $HOME/time_and_date_conky_script/date-raw | grep -o '[,^]"ds":"[^"]*' | sed 's/,"ds":"//g' | sed 's/\.//g' | sed -n '1,7p' > $HOME/time_and_date_conky_script/date

the "cat $HOME/time_and_date_conky_script/date-raw" shows a hyphen instead of an underscore before the "raw".  Once I corrected it, it works again.

I'm just puzzled how I got the hyphen, since I always copy and paste the exact lines from your forum posts.

Offline

#297 Yesterday 16:15:35

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

Re: Conky Weather TAD script

^I can confirm this error if you copy the script from this page  https://forums.bunsenlabs.org/viewtopic … 76#p147776   instead of getting it from workupload. I fell for it too. smile

Offline

#298 Yesterday 16:28:41

loutch
Member
Registered: 2015-12-12
Posts: 1,062

Re: Conky Weather TAD script

Hello Conky's friends

by me to must change - for _ & now it work

Jeu. 7 Mai
Ven. 8 Mai
Sam. 9 Mai
Dim. 10 Mai
Lun. 11 Mai
Mar. 12 Mai
Mer. 13 Mai

 

@+


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

#299 Yesterday 17:30:21

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

Re: Conky Weather TAD script

@asqwerth

Yes, typo.
The script has just been fixed (updated):
https://forums.bunsenlabs.org/viewtopic … 76#p147776

Thanks for catching it.

EDIT
More details:
The new wget command downloads data to the file  $HOME/time_and_date_conky_script/date_raw.
The curl command was downloading data to the file  $HOME/time_and_date_conky_script/date-raw.

I fixed it here when the TAD script wasn't working properly for others and I forgot about it.

Last edited by marens (Yesterday 18:12:40)


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

Offline

#300 Yesterday 18:40:20

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

Re: Conky Weather TAD script

^ Now that you are using the wget command for  date_raw,  delete the  date-raw  file from the TAD folder.


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

Offline

Board footer

Powered by FluxBB