You are not logged in.

#281 Yesterday 13:04:20

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

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 (Yesterday 16:23:40)


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

Offline

#282 Yesterday 13:10:39

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

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 (Yesterday 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 Yesterday 13:39:12

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

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 Yesterday 14:14:00

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

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 Yesterday 14:22:57

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

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 Yesterday 14:25:10

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

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 Yesterday 14:38:34

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

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 Yesterday 14:54:13

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

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 Yesterday 14:55:17

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

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 Yesterday 15:12:40

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

Re: Conky Weather TAD script


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

Offline

#291 Yesterday 17:58:35

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

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 Yesterday 18:10:54

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

Re: Conky Weather TAD script

Re

it work finally

i6vecCF3_t.png



@+

Last edited by loutch (Yesterday 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 Yesterday 18:26:40

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

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

Board footer

Powered by FluxBB