You are not logged in.

#21 2026-04-18 11:17:23

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

Re: Accuweather Conky Script

Hello

Update old Didier-t conky from Accuweather to open-meteo.com work great since a few days

2J2Lnxsj_t.png

9KAiP39U_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

Offline

#22 2026-06-26 16:22:49

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

Re: Accuweather Conky Script

Hot air from Africa has been flowing over southern Europe for a long time.
The worst is currently in Spain and France.

AccuWeather developers have added the Heat index.
That's nice, but the  curr-cond   file no longer works properly:

current1.png

Open the  accuweather   script and replace the line:

              sed -i -e 's/.*weathericons\///' -e 's/^.*>//g' -e 's/°.*$//g' -e '/RealFeel®/d' -e '/RealFeel Shade™/,+1d' -e '/RealFeel Shade/,+1d' -e '/Indoor Humidity/,+1d' -e '/^$/d' $HOME/Accuweather_conky_script/curr_cond_temp

with:

              sed -i -e 's/.*weathericons\///' -e 's/^.*>//g' -e 's/°.*$//g' -e '/RealFeel®/d' -e '/RealFeel Shade™/,+1d' -e '/RealFeel Shade/,+1d' -e '/Indoor Humidity/,+1d' -e '/^$/d' -e '/Heat Index/,+1d' $HOME/Accuweather_conky_script/curr_cond_temp

heat-index.png  accweather-conky.png

As you can see from the screenshots, 'beautiful' days with lots of sunshine are expected here.  smile

Note *
Please don't wait for the Heat Index to appear for your location, but update your  accuweather   script now.

Last edited by marens (2026-06-26 16:34:49)


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

Offline

#23 2026-07-03 00:32:39

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

Re: Accuweather Conky Script

This is becoming really frustrating.

It happened again.
This time they changed the Request Headers.

CURRENT FORECAST

Replace:

	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0' -H 'access-control-allow-origin: *' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.9' --compressed -H 'Connection: keep-alive' -H 'Sec-GPC: 1' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/curr_cond_raw "$curr_addr"

With:

        curl  --compressed   -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0'   -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'   -H 'Accept-Language: en-US,en;q=0.9'   -H 'Accept-Encoding: gzip, deflate, br, zstd'   -H 'DNT: 1'   -H 'Sec-GPC: 1'   -H 'Connection: keep-alive'   -H 'Upgrade-Insecure-Requests: 1'   -H 'Sec-Fetch-Dest: document'   -H 'Sec-Fetch-Mode: navigate'   -H 'Sec-Fetch-Site: same-origin'   -H 'Priority: u=0, i'   -H 'TE: trailers'  -o $HOME/Accuweather_conky_script/curr_cond_raw  "$curr_addr"

       
DAILY FORECAST

Replace:

	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0' -H 'access-control-allow-origin: *' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.9' --compressed -H 'Connection: keep-alive' -H 'Sec-GPC: 1' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/daily_forecast_raw "$daily_addr"

With:

        curl  --compressed   -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0'   -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'   -H 'Accept-Language: en-US,en;q=0.9'   -H 'Accept-Encoding: gzip, deflate, br, zstd'   -H 'DNT: 1'   -H 'Sec-GPC: 1'   -H 'Connection: keep-alive'   -H 'Upgrade-Insecure-Requests: 1'   -H 'Sec-Fetch-Dest: document'   -H 'Sec-Fetch-Mode: navigate'   -H 'Sec-Fetch-Site: same-origin'   -H 'Priority: u=0, i'   -H 'TE: trailers'  -o $HOME/Accuweather_conky_script/daily_forecast_raw "$daily_addr"

HOURLY FORECAST

Replace:

	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0' -H 'access-control-allow-origin: *' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.9' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/hourly_raw1 "$hourly_addr1"

With:

	curl  --compressed   -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0'   -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'   -H 'Accept-Language: en-US,en;q=0.9'   -H 'Accept-Encoding: gzip, deflate, br, zstd'   -H 'DNT: 1'   -H 'Sec-GPC: 1'   -H 'Connection: keep-alive'   -H 'Upgrade-Insecure-Requests: 1'   -H 'Sec-Fetch-Dest: document'   -H 'Sec-Fetch-Mode: navigate'   -H 'Sec-Fetch-Site: same-origin'   -H 'Priority: u=0, i'   -H 'TE: trailers'  -o $HOME/Accuweather_conky_script/hourly_raw1 "$hourly_addr1"

Replace:

	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0' -H 'access-control-allow-origin: *' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.9' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/hourly_raw2 "$hourly_addr2"

With:

	curl  --compressed   -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0'   -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'   -H 'Accept-Language: en-US,en;q=0.9'   -H 'Accept-Encoding: gzip, deflate, br, zstd'   -H 'DNT: 1'   -H 'Sec-GPC: 1'   -H 'Connection: keep-alive'   -H 'Upgrade-Insecure-Requests: 1'   -H 'Sec-Fetch-Dest: document'   -H 'Sec-Fetch-Mode: navigate'   -H 'Sec-Fetch-Site: same-origin'   -H 'Priority: u=0, i'   -H 'TE: trailers'  -o $HOME/Accuweather_conky_script/hourly_raw2 "$hourly_addr2"

I don't know who's crazier here.
Either it's the AccuWeather developers or me, because I fixed the script again?

People, it's summer — go somewhere and relax.  big_smile

accuweather1.png  accuweather2.png


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

Offline

#24 2026-07-03 06:40:35

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

Re: Accuweather Conky Script

I don't know who's crazier here.
Either it's the AccuWeather developers or me, because I fixed the script again?

Probably you.... but know we love you for it!

Offline

#25 2026-07-03 08:49:48

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

Re: Accuweather Conky Script

ceeslans wrote:

I don't know who's crazier here.
Either it's the AccuWeather developers or me, because I fixed the script again?

Probably you.... but know we love you for it!

Thanks!

Offline

#26 2026-07-06 08:26:30

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

Re: Accuweather Conky Script

Thanks, marens, although I note that the script is also showing the wrong info for other current weather items, eg wind direction icon (I get a weather condition icon), wind speed (I get "max UV" or other UV info), humidity, pressure. 

The weather condition/forecast icons/text, temperatures, are working.

No worries if you don't feel like doing more patching though.  I was not going to mention anything, except that you just posted some fixes.  :-)

Last edited by asqwerth (2026-07-06 08:38:00)

Offline

#27 2026-07-06 13:02:40

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

Re: Accuweather Conky Script

^ I think you missed fixing this:
https://forums.bunsenlabs.org/viewtopic … 73#p151573

Everything works fine here (for now):
accuweather1.png  accuweather2.png


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

Offline

#28 2026-07-07 15:26:49

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

Re: Accuweather Conky Script

marens wrote:

^ I think you missed fixing this:
https://forums.bunsenlabs.org/viewtopic … 73#p151573

Everything works fine here (for now):

oops, I did indeed miss that.

Thanks.

Offline

#29 2026-08-07 15:48:40

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

Re: Accuweather Conky Script

#### Marens Hourly

As you know, I don't use the hourly forecast with the accuweather script.
However, as the author, I sometimes check whether it works.

I have an error in the terminal today:

$ bash $HOME/Accuweather_conky_script/accuweather -h2015
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 48356    0 48356    0     0   147k      0 --:--:-- --:--:-- --:--:--  147k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 49777    0 49777    0     0   157k      0 --:--:-- --:--:-- --:--:--  157k
cp: cannot stat '/home/marens/Accuweather_conky_script/Forecast_Images_2015/<p.png': No such file or directory
cp: cannot stat '/home/marens/Accuweather_conky_script/Forecast_Images_2015/<p.png': No such file or directory
cp: cannot stat '/home/marens/Accuweather_conky_script/Forecast_Images_2015/<p.png': No such file or directory
cp: cannot stat '/home/marens/Accuweather_conky_script/Forecast_Images_2015/<p.png': No such file or directory
cp: cannot stat '/home/marens/Accuweather_conky_script/Forecast_Images_2015/<p.png': No such file or directory

I found the reason.
A 'Yellow Warning for Wind' appears for my location (for the next few hours).
The error has been fixed and the  #Wind   section now looks like this:

#Wind
        cat $HOME/Accuweather_conky_script/hourly | grep 'Wind<' | sed 's/^[ \t]*//' | sed 's/<p>Wind<span class="value">//g' | sed 's/<\/span><\/p>//g' | sed '/<p/d' > $HOME/Accuweather_conky_script/marens_hourly/wind

hourly-forecast.png

Note *
Please do not wait for an error to appear for your location; update your accuweather script immediately.


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

Offline

#30 Yesterday 03:02:15

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

Re: Accuweather Conky Script

@marens
Coincidentally, for the first time ever, I decided to incorporate the "marens_hourly" hourly elements into a test conky just 2 days ago. 

It didn't work until I realised I had to delete an old "hourly" subfolder because the script was trying to create an "hourly" text file and the existence of that subfolder prevented that.

Also tested your "convert icons" script for the weatherfont hourly data.

All working fine.

Offline

#31 Yesterday 15:20:10

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

Re: Accuweather Conky Script

^ Thanks for the feedback.
I'm glad everything is working well.

About the "hourly" subfolder?
That subfolder is not located in my  Accuweather_conky_script  and  marens_hourly  folders.

marens-hourly.png  weatherfont.png

When you finish test-conky (icons, weatherfont), show us the screenshots.
I'm sure it looks great.

Enjoy.  smile


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

Offline

#32 Today 03:50:36

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

Re: Accuweather Conky Script

marens wrote:

^ Thanks for the feedback.
I'm glad everything is working well.

About the "hourly" subfolder?
That subfolder is not located in my  Accuweather_conky_script  and  marens_hourly  folders.
....

I've no idea where that folder came from.  Maybe I had messed around with the accuw script in the past


....
When you finish test-conky (icons, weatherfont), show us the screenshots.
I'm sure it looks great.

...

It was nothing fancy or original.  I just modified the default 7-day conky config that came with TeoBigusGeekus' accuweather script to convert the bottom row of 4 days into hourly forecasts of the next 4 hours.

What fired this round of activity was that I had been digging through an old archive of TBG's accuw conky script, and noticed that there was a subfolder called "conkyconfig" that contained a whole bunch of weather icon themes that I had never seen before, all of which were 146x108 in size.  There were also 2 wind direction themes that were provided in a sub-subfolder called "vent".

I found a few weather icon themes that were pretty nice, though the resolution isn't the best.
[ADDED NOTE - a few of the weather themes may have one or two mis-numbered icons; you will need to check them before use]
 
So anyway I decided to tweak the default conky for these specific-proportioned icons, and play with the marens_hourly data at the same time. Seemed fine, so of course the next step was to check out the convert_icons script.  :-)


Weather theme = Droplets
Wind icons are modified from a wind dial graphic that I found in the windtheme called windicons1 in that "vent" sub-subfolder. It's really weird because the windicons1 wind theme does NOT use that wind dial at all (and it's a totally different style).

TwFb2Gqs.png   
https://imgur.com/TwFb2Gq


weatherfont
LPCsZxos.png
https://imgur.com/LPCsZxo

Last edited by asqwerth (Today 03:56:45)

Offline

#33 Today 10:05:26

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

Re: Accuweather Conky Script

asqwert wrote:

What fired this round of activity was that I had been digging through an old archive of TBG's accuw conky script, and noticed that there was a subfolder called "conkyconfig" that contained a whole bunch of weather icon themes that I had never seen before, all of which were 146x108 in size.  There were also 2 wind direction themes that were provided in a sub-subfolder called "vent".

^"vent" is French and I think it introduced @loutch in the relevant configurations.  big_smile

Offline

#34 Today 13:10:54

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

Re: Accuweather Conky Script

@asqwerth

Very nice screenshots.

I recognized @TBG's old conky.
It is a good idea to replace the last row with the hourly weather forecast.

The website no longer displays the Moon's duration, but rather its phase.
A few years ago, I created a script to calculate the duration of the Moon:
https://forums.bunsenlabs.org/viewtopic … 83#p132483

Now it is possible to restore the old look.

In any case, great job with the 'new' icons.
Weatherfont also looks great, as always.


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

Offline

Board footer

Powered by FluxBB