You are not logged in.

#61 2025-10-28 19:38:59

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

Re: Conky TAD script

loutch wrote:

Hello

I have it , copy this line to create a french file nowfr

cat $HOME/accuweather_marens_rss/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk -F'>↑</span>' '{print $2}' | awk -F'</p><' '{print $1}' | sed 's/^[ \t]*//' > $HOME/accuweather_marens_rss/nowfr

So i can use your wind script to have wind_0.png and my translation script in conky file .

@+

Look at your file "now".
You already have that in line 10.


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

Offline

#62 2025-10-28 19:46:25

loutch
Member
Registered: 2015-12-12
Posts: 959

Re: Conky TAD script

Re

Yes in english for your wind rose & in nowfr for my conky

3hgn6rS3_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

#63 2025-10-28 20:16:40

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

Re: Conky TAD script

Yes.

Use different images of the wind rose.
It looks very nice, but I would use larger images in the daily/hourly section and maybe a smaller font.

loutch wrote:

Just ad wind compas , the script is not completly finish while i don't know how all the wind directions will be displayed in the now file, done this

I think the tad script is finally finished.  big_smile

Conclusion:

marens wrote:

However, I know from experience that web developers sometimes adapt the code and display content differently in some countries.

Unfortunately, this is true in our case.
Everyone who contributed to the testing had local changes.

Anyway, it was fun.
Thank you all once again.  smile

Last edited by marens (2025-10-28 23:52:20)


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

Offline

#64 2025-10-29 09:21:15

loutch
Member
Registered: 2015-12-12
Posts: 959

Re: Conky TAD script

Hello

@ marens

Conky work fine ,wind_0.png & french wind direction are good.

zD7TRBf0_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

#65 2025-10-29 13:34:20

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

Re: Conky TAD script

^ Excellent work.

Your wind rose is great.
@unklar sometimes uses something like this in his conkys:
https://forums.bunsenlabs.org/viewtopic … 31#p128131

It remains to test the image wind_0 when there is no wind (calm).
I based that part of the tad script on @sleekmason's 'now' file:
https://forums.bunsenlabs.org/viewtopic … 56#p146356

Anyway, it's easily solvable if the output here is different.

But first it has to happen.
It's always windy here.  smile


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

Offline

#66 2025-10-30 18:56:40

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

Re: Conky TAD script

Conky tad script

How to check the appearance of the new conky if you change the source?

If you're lazy like me tonight, take the old conky and just replace the icons (images).
Now I can copy conky's TEXT and replace everything else later (when I'm not lazy).  smile

* Simulation:

tad.png


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

Offline

#67 2025-10-31 02:44:53

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,162
Website

Re: Conky TAD script

^ That is just super cool looking:)  Thank you for showing this!  I like all your color selections for the different items.

Offline

#68 2025-10-31 17:32:40

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

Re: Conky TAD script

Conky tad script

There is no wind here right now.
Small corrections needed as I expected.

First in the  #### NOW   section of the tad script:

Replace:

cat $HOME/time_and_date_conky_script/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk '{print $1, $2, $3}' >> $HOME/time_and_date_conky_script/now

With:

cat $HOME/time_and_date_conky_script/weather_raw | grep '<span title="High and low forecasted temperature today">Forecast:' | awk -F'&nbsp;°C</span><br>' '{print $2}' | awk '{print $1, $2, $3}' | sed 's/<\/p><\/div><div//' >> $HOME/time_and_date_conky_script/now

Then replace the  ## Wind Direction   section with:

## Wind Direction
wd=$(sed -n '10p' $HOME/time_and_date_conky_script/now | sed 's/from //' | sed 's/North/N/g' | sed 's/north/N/g' |  sed 's/South/S/g' | sed 's/south/S/g' |  sed 's/East/E/g' | sed 's/east/E/g' | sed 's/West/W/g' | sed 's/west/W/g' | sed 's/-//' | sed 's/$/.png/')

  if [[ "$wd" == ".png" ]]; then
  
      cp $HOME/time_and_date_conky_script/wind/CLM.png $HOME/time_and_date_conky_script/wind_0.png

        else
    
           cp $HOME/time_and_date_conky_script/wind/$wd $HOME/time_and_date_conky_script/wind_0.png
      
  fi

Done.

calm.png  no-wind.png

Last edited by marens (2025-10-31 19:05:20)


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

Offline

#69 2025-10-31 18:02:40

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

Re: Conky TAD script

sleekmason wrote:

^ That is just super cool looking:)  Thank you for showing this!  I like all your color selections for the different items.

Thanks.

Your Lildog wallpaper and desktop look great here:
https://postimg.cc/NyC4BRhC

P.S.
I don't know if you noticed that my plugin creates a visibility  file in the Moongiant folder.
I always show when the Moon is  'Under Horizon'  like in the screenshot above.


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

Offline

#70 2025-11-08 14:32:40

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

Re: Conky TAD script

Conky tad script

This is a tad-conky  based on @loutch's:
https://forums.bunsenlabs.org/viewtopic … 29#p146529

weather.png

You should have this in your configuration (old syntax):

minimum_size 450 425
imlib_cache_size 0
default_color D4D4D4

TEXT is here:

${execpi 900 $HOME/time_and_date_conky_script/tad}\
${voffset 5}${color 48bcff}${goto 10}Weather${alignr 10}${font :size=10}${color gold}${texeci 600 date -r $HOME/time_and_date_conky_script/now -R | awk '{print $5}'}${font}${color}
${alignc}${color 48bcff}${time %H} : ${time %M}${color}

${goto 25}${color gold}${execpi 600 sed -n '1p'  $HOME/time_and_date_conky_script/now | awk '{print $2, $3}'}  ${color 48bcff}(${execpi 600 sed -n '2p'  $HOME/time_and_date_conky_script/now | awk '{print $3}'} °C)${color}${goto 180}Today: ${execpi 600 sed -n '3p'  $HOME/time_and_date_conky_script/now | awk '{print $2, $3, $4, $5}'}
${goto 180}Now: ${color 48bcff}${execpi 600 sed -n '4p' $HOME/time_and_date_conky_script/now}${color}
${goto 180}${execpi 600 sed -n '6p'  $HOME/time_and_date_conky_script/now}
${goto 180}${execpi 600 sed -n '7p'  $HOME/time_and_date_conky_script/now}
${goto 180}${execpi 600 sed -n '5p'  $HOME/time_and_date_conky_script/now}
${goto 180}${execpi 600 sed -n '8p'  $HOME/time_and_date_conky_script/now}
${goto 180}${execpi 600 sed -n '9p'  $HOME/time_and_date_conky_script/now}
${goto 180}${color 2ae8ff}@${color}\
${if_match "${execpi 600 sed -n '10p' $HOME/time_and_date_conky_script/now | sed 's/from //'}" == ""} Calm\
${else} ${execpi 600 sed -n '10p' $HOME/time_and_date_conky_script/now | sed 's/from //'}${endif}
${hr 1}${font :size=10}
${color 48bcff}\
${goto 15}${execpi 600 sed -n '1p' $HOME/time_and_date_conky_script/hourly/time}\
${goto 110}${execpi 600 sed -n '2p' $HOME/time_and_date_conky_script/hourly/time}\
${goto 205}${execpi 600 sed -n '3p' $HOME/time_and_date_conky_script/hourly/time}\
${goto 300}${execpi 600 sed -n '4p' $HOME/time_and_date_conky_script/hourly/time}\
${goto 395}${execpi 600 sed -n '5p' $HOME/time_and_date_conky_script/hourly/time}${color}\

${goto 15}${execpi 600 sed -n '1p'  $HOME/time_and_date_conky_script/hourly/temperature}\
${goto 110}${execpi 600 sed -n '2p'  $HOME/time_and_date_conky_script/hourly/temperature}\
${goto 205}${execpi 600 sed -n '3p'  $HOME/time_and_date_conky_script/hourly/temperature}\
${goto 300}${execpi 600 sed -n '4p'  $HOME/time_and_date_conky_script/hourly/temperature}\
${goto 395}${execpi 600 sed -n '5p'  $HOME/time_and_date_conky_script/hourly/temperature} 


${hr 1}
${color 48bcff}\
${goto 20}${execi 600 sed -n '1p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}th\
${goto 115}${execi 600 sed -n '2p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}th\
${goto 210}${execi 600 sed -n '3p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}th\
${goto 305}${execi 600 sed -n '4p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}th\
${goto 400}${execi 600 sed -n '5p'  $HOME/time_and_date_conky_script/date_and_phrase | awk '{print$1}'}th${color}\

${goto 10}${execpi 600 sed -n '1p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 105}${execpi 600 sed -n '2p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 200}${execpi 600 sed -n '3p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 295}${execpi 600 sed -n '4p'  $HOME/time_and_date_conky_script/temperatures}°C\
${goto 390}${execpi 600 sed -n '5p'  $HOME/time_and_date_conky_script/temperatures}°C


${hr 1}
${color 48bcff}${alignc}${execpi 600 sed -n '11p' $HOME/time_and_date_conky_script/now}

${image $HOME/time_and_date_conky_script/0.png -p 40,100 -s 80x80}\
${image $HOME/time_and_date_conky_script/wind_0.png -p 340,156 -s 60x60}
${image $HOME/time_and_date_conky_script/hourly/hourly_1.png -p 10,268 -s 40x40}
${image $HOME/time_and_date_conky_script/hourly/hourly_2.png -p 105,268 -s 40x40}
${image $HOME/time_and_date_conky_script/hourly/hourly_3.png -p 200,268 -s 40x40}
${image $HOME/time_and_date_conky_script/hourly/hourly_4.png -p 295,268 -s 40x40}
${image $HOME/time_and_date_conky_script/hourly/hourly_5.png -p 390,268 -s 40x40}

${image $HOME/time_and_date_conky_script/day_1.png -p 10,353 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_2.png -p 105,353 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_3.png -p 200,353 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_4.png -p 295,353 -s 40x40}\
${image $HOME/time_and_date_conky_script/day_5.png -p 390,353 -s 40x40}\
${voffset -1000}

EDIT
In the top right corner you have the time when the tad script was last run (retrieval time):

Last edited by marens (2025-11-08 22:24:20)


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

Offline

#71 2025-11-08 18:36:20

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

Re: Conky TAD script

^ I continued testing tad-conky  and compared the results with the website.
Although the daily forecast showed today's date (as the starting date) all day, tonight it was moved to tomorrow.

The code above has been updated to match the data on the website.

EDIT
It just so happens that there is no wind at the moment and tad-conky  is improved again.

tad-weather.png

Last edited by marens (2025-11-08 22:26:40)


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

Offline

#72 2025-11-09 15:11:02

il.harun
Member
Registered: 2020-06-04
Posts: 55

Re: Conky TAD script

Hello  marens
Fork of Accuweather_conky_script.
Beta version of Accuweather_conky_script.
2 versions of data storage and processing:
1) curr_cond,    daily_forecast,   hourly
2) n_forecast..., d_forecast...., h_forecast.... in the data_w directory
one parameter - one file
The script was divided into functional blocks
See my google disk

Offline

#73 2025-11-09 18:18:20

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

Re: Conky TAD script

^ I'm glad you're here again, @il.harun.

Maybe you didn't follow, but like you, I discontinued support for Accuweather_conky_script a long time ago.
My latest updates still work, and for those who use hourly forecast, I made my own version that also works (for now).

Anyway, you and I can be proud of our contributions here since @TBG left (about 45 months ago).

il.harun wrote:

See my google disk

I'm not sure if I still have that link.

EDIT
I can confirm.

On the backup partition, I have two of your folders with many conkys, but I don't have a saved link:
Accuweather_conky_script_16_04_2022
Accuweather_conky_script_ 15.05.2022

I won't ask you to repost it because I know you don't want it available to everyone.

Thanks @il.harun.

Last edited by marens (2025-11-09 23:56:20)


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

Offline

#74 2025-11-10 19:04:40

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

Re: Conky TAD script

@loutch

I think the best solution for the day and date has been found.
Just add this to the end of the tad script and check the date file:

## Day + Date - Next 7 Days 
curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -s "$address/ext" > $HOME/time_and_date_conky_script/date-raw

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $1}' | awk -F'"ts":"' '{print $2}' > $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $2}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $3}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $4}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $5}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $6}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

cat $HOME/time_and_date_conky_script/date-raw | grep ',"ts":"' | awk -F'","ds"' '{print $7}' | awk -F'"ts":"' '{print $2}' >> $HOME/time_and_date_conky_script/date

date.png

Last edited by marens (2025-11-10 19:14:51)


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

Offline

#75 2025-11-11 12:56:43

seatommyboy
Member
Registered: 2016-09-12
Posts: 66

Re: Conky TAD script

Haven't visited this site in quite a long time. Any updates to the accuweather script since June 2023? If so, can I get a link. I tried to search for it, but was not very successful, and there are so many posts since June 2023.

Offline

#76 2025-11-13 10:48:09

seatommyboy
Member
Registered: 2016-09-12
Posts: 66

Re: Conky TAD script

accuweather script stopped working this morning. Isn't pulling any weather data.
Disregard, it randomly started working again after I opened accuweather in a browser.

Last edited by seatommyboy (2025-11-13 11:06:31)

Offline

#77 2025-11-17 13:32:56

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

Re: Conky TAD script

@marens
thanks for this new tad script.

Is there a way to pull in the forecast (not current condition) for the current day? I tried adding

cat $HOME/time_and_date_conky_script/weather_raw | grep 'View historic weather' | awk -F'ext&#39;)"><div class=wt-dn>' '{print $1}' | awk -F'"' '{print $1, $2}' | sed 's/<\/div><img class=mtt title=/ /' > $HOME/time_and_date_conky_script/date_and_phrase

to the tad script, but today's forecast was not generated in date_and_phrase file. I believe that's because it's not in "Forecast for next 2 weeks" (view historical weather) table.

I see today's forecast (or what's left of the day) in the "Forecast for the next 48 hours" table on the same webpage, just above the Forecast for next 2 weeks table , but I have no idea how to go about pulling that information into a file.

Last edited by asqwerth (2025-11-17 13:34:15)

Offline

#78 2025-11-17 14:56:40

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

Re: Conky TAD script

^ I have already noticed that the data from the website is displayed in an 'unusual' way.
It changes in the evening hours:

marens wrote:

The code above has been updated to match the data on the website.

https://forums.bunsenlabs.org/viewtopic … 97#p146897

It looks like line 3 in the "now" file is the forecast for tomorrow:
now.png  next.png


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

Offline

#79 2025-11-17 15:30:28

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

Re: Conky TAD script

marens wrote:

^ I have already noticed that the data from the website is displayed in an 'unusual' way.
It changes in the evening hours:

marens wrote:

The code above has been updated to match the data on the website.

https://forums.bunsenlabs.org/viewtopic … 97#p146897

It looks like line 3 in the "now" file is the forecast for tomorrow:
https://i.postimg.cc/2VWLzBDz/now.png  https://i.postimg.cc/k4v868tS/next.png

When you say the code has been updated, are you referring to your tad-conky, or the tad script?

With regard to the forecast for the current day, I was referring to this bit on the website:

NfrI3Nh.png

Yes, I have noticed that even though it's still Mon night here, it is now showing as early Tues in the table (it didn't do so earlier this evening).  But I don't think the info for the current day forecast in this 48 hours table comes from the historical weather table, since even earlier this evening, that only started from Tuesday 18th Nov.  Nothing was showing in the 17th Nov cell.

My hope is to be able to add the current day forecast into this conky:

JsYQKN8.png

Last edited by asqwerth (2025-11-17 16:03:45)

Offline

#80 2025-11-17 17:34:21

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

Re: Conky TAD script

asqwerth wrote:

When you say the code has been updated, are you referring to your tad-conky, or the tad script?

In the tad-conky.

This is the best way:
https://forums.bunsenlabs.org/viewtopic … 33#p146933

During the day, data for "TODAY" will be displayed, and in the evening hours, it will be switched to "TOMORROW".

tad.png  temperature.png

You will probably get local names for the days in the "date" file, but everything is aligned with the table (next 2 weeks).

Last edited by marens (2025-11-17 17:46:50)


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

Offline

Board footer

Powered by FluxBB