You are not logged in.

#261 2026-05-01 12:55:25

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

Re: [CLOSED] Conky Weather TAD script

It does appear to work, but access to data only happens roughly every 24 hours.

When I checked the time stamps of the text and image files in the folder for the past 2 days, the various text files got updated (with actual weather data) only at 2am + of each night.

Offline

#262 2026-05-01 13:19:40

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

Re: [CLOSED] Conky Weather TAD script

^ I'm sorry, but I don't see what's going on with the other location.

I am currently testing Paris, France and everything is working fine from my location.
If @loutch and @ceeslans confirm that the script doesn't work, I'll close the topic.


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

Offline

#263 2026-05-01 14:46:44

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

Re: [CLOSED] Conky Weather TAD script

Hello

Sorry marens tad don't work by me to

bash /mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b/Accuweather/time_and_date_conky_script/tad.sh
Impossible d’ouvrir le fichier des cookies ‘cookies.txt’ : Aucun fichier ou dossier de ce nom
--2026-05-01 16:36:38--  https://www.timeanddate.com/weather/@6454374
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-01 16:36:39 erreur 403 : Forbidden.

MyForecast work great.

IG6eoj6Y_t.png

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#264 2026-05-01 15:11:50

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

Re: [CLOSED] Conky Weather TAD script

Thanks @loutch.

We have a replacement that is better than the original.
I closed the topic.


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

Offline

#265 2026-05-01 15:29:56

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

Re: [CLOSED] Conky Weather TAD script

loutch wrote:

Hello

Sorry marens tad don't work by me to

bash /mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b/Accuweather/time_and_date_conky_script/tad.sh
Impossible d’ouvrir le fichier des cookies ‘cookies.txt’ : Aucun fichier ou dossier de ce nom
--2026-05-01 16:36:38--  https://www.timeanddate.com/weather/@6454374
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-01 16:36:39 erreur 403 : Forbidden.

MyForecast work great.

https://thumbs2.imgbox.com/5e/f7/IG6eoj6Y_t.png

@+

dito

Offline

#266 2026-05-01 17:23:00

ceeslans
Member
Registered: 2015-09-30
Posts: 217

Re: [CLOSED] Conky Weather TAD script

loutch wrote:

Hello

Sorry marens tad don't work by me to

MyForecast work great.@+

TAD fails on me too.
Already ditched it yesterday --> and happily using MyForecast now ...

Offline

#267 2026-05-01 17:24:12

ceeslans
Member
Registered: 2015-09-30
Posts: 217

Re: [CLOSED] Conky Weather TAD script

[double posting]

Last edited by ceeslans (2026-05-01 17:24:51)

Offline

#268 2026-05-01 17:57:12

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

Re: [CLOSED] Conky Weather TAD script

@loutch

Your TAD script is not updated.

Is this your address:

https://www.timeanddate.com/astronomy/weather/@6454374

I tried your location in the terminal for weather_raw (saved to HOME):

$ wget -O "$HOME/weather_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/astronomy/weather/@6454374" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374"
--2026-05-01 19:03:58--  https://www.timeanddate.com/weather/@6454374
Resolving www.timeanddate.com (www.timeanddate.com)... 104.18.20.57, 104.18.21.57
Connecting to www.timeanddate.com (www.timeanddate.com)|104.18.20.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: ignored [text/html]
Saving to: ‘/home/marens/weather_raw’

/home/marens/weather     [ <=>                ]  44.02K  --.-KB/s    in 0.01s   

2026-05-01 19:03:58 (4.19 MB/s) - ‘/home/marens/weather_raw’ saved [45080]

It works.

The wget command at the beginning of the TAD script (for weather_raw) in your case should be:

wget -O "/mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b/Accuweather/time_and_date_conky_script/weather_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/astronomy/weather/@6454374" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374"

Then your location in the terminal for date_raw (saved to HOME):

$ wget -O "$HOME/date_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/astronomy/weather/@6454374/ext" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374/ext"
--2026-05-01 19:29:47--  https://www.timeanddate.com/weather/@6454374/ext
Resolving www.timeanddate.com (www.timeanddate.com)... 104.18.20.57, 104.18.21.57
Connecting to www.timeanddate.com (www.timeanddate.com)|104.18.20.57|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: ignored [text/html]
Saving to: ‘/home/marens/date_raw’

/home/marens/date_ra     [ <=>                ]  44.82K  --.-KB/s    in 0.02s   

2026-05-01 19:29:47 (2.53 MB/s) - ‘/home/marens/date_raw’ saved [45893]

It works.

The wget command for date_raw (TAD script) in your case should be:

wget -O "/mnt/9d01359b-9705-43f9-be12-4d6d7f28b12b/Accuweather/time_and_date_conky_script/date_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/astronomy/weather/@6454374/ext" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374/ext"

The TAD script/conky works if I run them from here.
Please try replacing these two lines in the script.


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

Offline

#269 2026-05-01 17:58:18

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

Re: [CLOSED] Conky Weather TAD script

@ceeslans

See my post above for @loutch.
Just use your address.


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

Offline

#270 2026-05-01 18:31:45

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

Re: [CLOSED] Conky Weather TAD script

re

wget -O "$HOME/weather_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/astronomy/weather/@6454374" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374"
--2026-05-01 20:29:21--  https://www.timeanddate.com/weather/@6454374
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… 403 Forbidden
2026-05-01 20:29:21 erreur 403 : Forbidden.

Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#271 2026-05-01 18:41:02

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

Re: [CLOSED] Conky Weather TAD script

Thanks.

I really don't know why the wget command works for the TAD website when I run it from here.
Try the same command again in the terminal, just remove 'astronomy' from the header.

wget -O "$HOME/weather_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/weather/@6454374" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374"

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

Offline

#272 2026-05-01 18:54:02

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

Re: [CLOSED] Conky Weather TAD script

wget -O "$HOME/weather_raw" --ignore-length --force-html --header="Referer: https://www.timeanddate.com/weather/@6454374" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "https://www.timeanddate.com/weather/@6454374"
--2026-05-01 20:53:03--  https://www.timeanddate.com/weather/@6454374
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… 403 Forbidden
2026-05-01 20:53:03 erreur 403 : Forbidden.

Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Online

#273 2026-05-01 19:02:28

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

Re: [CLOSED] Conky Weather TAD script

OK.

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

Luckily, there is the MyForecast script and we can wait a long time.   big_smile


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

Offline

#274 2026-05-01 22:42:40

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

Re: [CLOSED] Conky Weather TAD script

@asqwerth

For me everything works even if I replace the line:

referer=$(echo $address | sed 's/timeanddate.com/timeanddate.com\/astronomy/')

With:

referer="https://www.timeanddate.com/weather/"

Try and see what happens when you restart conky.
I really have no idea why the same wget command works for me and not for others.


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

Offline

#275 Today 00:04:20

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

Re: [CLOSED] Conky Weather TAD script

^ Probably the last attempt.

This also works (for me).

Note *
The "referer line" is not needed because I used the full address

For weather_raw:

#referer="https://www.timeanddate.com/weather/"

wget -O "$HOME/time_and_date_conky_script/weather_raw" --ignore-length --force-html --header="Referer: $address" --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="Referer: $address/ext" --user-agent="Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0" "$address/ext"

I still don't know why my requests pass CloudFlare's check, while others get a  Error: 403 Forbidden  which is usually related to the user agent.

However, I tried again because I don't want to be the only user of the TAD script.
That would be pretty selfish of me.   lol


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

Offline

Board footer

Powered by FluxBB