You are not logged in.
@johnraff
Yes, I agree.
As already said:
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
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
^ 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
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
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
^^is the crucial point
{ "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" } ] } }
Offline
@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
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
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
The TAD script has been updated:
https://forums.bunsenlabs.org/viewtopic … 76#p147776
If people would know how little brain is ruling the world, they would die of fear.
Offline
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.
Online
^ As already said:
Now we know what we need.
Expert in wget commands.
Looks like we have an expert now. ![]()
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
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 MayIf people would know how little brain is ruling the world, they would die of fear.
Offline
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
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#p147576The 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/datethe "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.
Online
^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. ![]()
Offline
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
@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
^ 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