You are not logged in.

#21 2025-10-24 16:04:02

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

Re: Conky TAD script

@marens  Hello and good day! 

It looks good, but the Dew Point (line 8) is gone or did you remove it?
I don't know what happened but I tried to extract it from your weather_raw file again.

Yep. I figured you had just left the blank line removal out, along with the extra '%' in the humidity line, so removed both.  One with a simple sed removal line, and the other through adjustment.  I was unaware of the dew point display, and thought you just left a blank line.  I'll need to adjust it further when I get a chance I guess.

the images should look something like this:

In order for my conky to look like yours, I will need your conky.conf.  I do not know where that is located.  Looked through the previous pages a bit but didn't see where you linked to it, or indicated where it could be found. 

Lots of people don't like sharing, so I don't bother asking anymore.  The original moon script doesn't look like yours either.

The illuminated part of the Moon should be at the same tilt as in conky (or in the sky).

If you look at the screenshot I provided in the post from yesterday, you will see that the moons have a angled line for the indication.  Is that supposed to be there?

Then, in this screenshot below, the borders around the moons are off. The images are not smooth.

moon3.png

Thanks for all your help, but please don't worry about this any longer.  I've spent enough of your time, and have other items that need attention as well.  I'll do more when I get a chance. smile

Offline

#22 2025-10-24 18:08:20

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

Re: Conky TAD script

sleekmason  wrote:

Lots of people don't like sharing, so I don't bother asking anymore.  The original moon script doesn't look like yours either.

I'm more interested in scripts than conky.

I love @TBG's work, but I always make conky my own way.
I don't have conky-all installed and I'm still using the old syntax.
That's why I never share configuration, only TEXT.

I managed to find my post from two years ago:
https://forums.bunsenlabs.org/viewtopic … 47#p129047

I really don't know why your images of the Moon look different?
Please check the Moongiant_conky_script folder.

I know @unklar sometimes uses a similar conky as you and will definitely know what's wrong.


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

Offline

#23 2025-10-24 20:36:40

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

Re: Conky TAD script

Conky tad script

The script has been improved tonight.
The icons are better converted and are located in the tad-icons folder.

You can download the folder here:
https://workupload.com/file/BsqSChFWxse

1) Right-click on the file ~/Downloads/tad-icons.tar.xz  >  Extract Here

2) Copy ~/Downloads/tad-icons and paste inside the time_and_date_conky_script folder

3) Open the tad script and replace the lines:

day_0=$(sed -n '1p' $HOME/time_and_date_conky_script/images)

curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -s -o $HOME/time_and_date_conky_script/0.png "$day_0"

convert $HOME/time_and_date_conky_script/0.png -transparent white $HOME/time_and_date_conky_script/0.png

with:

day_0=$(sed -n '1p' $HOME/time_and_date_conky_script/images | awk -F'svg/' '{print $2}' | sed 's/svg/png/')

cp $HOME/time_and_date_conky_script/tad-icons/$day_0 $HOME/time_and_date_conky_script/0.png

Done.

tad-icons.png


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

Offline

#24 2025-10-25 01:20:40

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

Re: Conky TAD script

Conky tad script

OK.

The game is over.
I think I have a forecast for the next 7 days.

Note *
First look at the post above

Find the last line of the tad script:

> $HOME/time_and_date_conky_script/images

Then add below:

## Daily Date + Phrase - Next 7 Days

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

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

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

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

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

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

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

## Daily Forecast Images - Next 7 Days

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '19q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' > $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '20q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '21q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '22q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '23q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '24q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '25q;d' | sed 's/ src="/https:/' | sed 's/.$//' | awk -F'svg/' '{print $2}' | sed 's/svg/png/' >> $HOME/time_and_date_conky_script/images

  j=1
                       
    for (( i=1; i<=7; i+=1 ))
			
      do
		    	
        cp $HOME/time_and_date_conky_script/tad-icons/$(sed -n ${i}p $HOME/time_and_date_conky_script/images) $HOME/time_and_date_conky_script/day_$j.png
    
  ((j++))
  
  done
    
## Temperatures - Next 7 days 

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[^ ]*width=60 height=60><p>[^&nbsp;]*' | sed 's/width=60 height=60><p>//' | sed 7q > $HOME/time_and_date_conky_script/temperatures

Done.

Run the script once in the terminal:

$ bash $HOME/time_and_date_conky_script/tad

Open the time_and_date_conky_script folder and check if you get:

  • icons for 7 days (day_1, day_2...)

  • date_and_phrase file

  • temperatures file

tad.png


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

Offline

#25 2025-10-25 02:45:07

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

Re: Conky TAD script

marens wrote: I managed to find my post from two years ago:
https://forums.bunsenlabs.org/viewtopic … 47#p129047

I really don't know why your images of the Moon look different?
Please check the Moongiant_conky_script folder.

Thank you for sharing your latest link.  More fun stuff to try in the future.

As far as the moons go, commenting out 'More Yellow Moon Images' in favor of 'Old Moon Images', and keeping your nifty script changes in Moongiant took care of the artifact issue and now everything is working really well:)


Newmoon2.png

Last edited by sleekmason (2025-10-25 02:56:52)

Offline

#26 2025-10-25 12:46:13

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

Re: Conky TAD script

marens wrote:

I know @unklar sometimes uses a similar conky as you and will definitely know what's wrong.

Without the code, he doesn't know what's going on.  wink

Offline

#27 2025-10-25 12:53:54

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

Re: Conky TAD script

marens wrote:

Conky tad script

https://forums.bunsenlabs.org/viewtopic … 96#p146396

result
lrMwHvKt.png

Offline

#28 2025-10-25 13:30:21

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

Re: Conky TAD script

^ I don't like your result.

Six days without sun.  big_smile

P.S.
Thanks for testing.  smile


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

Offline

#29 2025-10-25 13:55:30

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

Re: Conky TAD script

@sleekmason

I'm glad it works now and that you located the 'problem'.
Both convert (ImageMagick) commands are very similar and I don't know why the second one doesn't work for you:

#Images 
for szFile in $HOME/Moongiant_conky_script/*.png
do
#    convert "$szFile" -background 'none' -virtual-pixel 'none' -distort SRT $illumination_angle $HOME/Moongiant_conky_script/"$(basename "$szFile")" ;

#More Yellow  
    convert "$szFile" -background 'none' -virtual-pixel 'none' +level-colors ,#ddd480 -distort SRT $illumination_angle $HOME/Moongiant_conky_script/"$(basename "$szFile")" ; 

done

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

Offline

#30 2025-10-25 14:34:27

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

Re: Conky TAD script

marens wrote:

^ I don't like your result.

Six days without sun.  big_smile

P.S.
Thanks for testing.  smile

Rumor has it that November weather has been swapped with October weather.  XyIP1DT.png
Just kidding.
---------------
I have two errors:
1. “0.png” has been displayed correctly in Thunar (I think) from the beginning. In the configuration, I always have the impression that it is not being updated.
I have tried the command in various places—no change.
Hqxt7Wvt.png

${image $HOME/timeanddate_conky_script/0.png -p 50,280 -s 60x60}

2. After the changes you suggested a few days ago (@sleekmason), “now” shows me this

Temperature: 10 °C
Feels Like: 7 °C
Forecast: 9 / 4 °C
Light rain. Partly sunny
Visibility: N/A
Pressure: 997 hPa
Dew Point: 7
Wind: 30 km/h °C    <-----
from Southwest
Latest Report: 25. Okt 2025, 15:50

At the moment, I'm using the cut command to exclude the “°C”.

Offline

#31 2025-10-25 14:51:39

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

Re: Conky TAD script

Marens wrote:
I'm glad it works now and that you located the 'problem'.
Both convert (ImageMagick) commands are very similar and I don't know why the second one doesn't work for you...

I know, right?  I will have some checking to do there. In the end, I probably still wont use the "more yellow" moons, but I sure would like having the option.  When I figure the issue out, I'll post the solution here.

Life is too short and there are not enough hours in a day! Ha!  smile

Offline

#32 2025-10-25 15:01:27

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

Re: Conky TAD script

unklar wrote:
Without the code, he doesn't know what's going on...

lol, very true.  I jumped into that exchange for the scripting part cause it looked fun.  Starting to get a grip on all of it, but there is a LOT there. Now I gotta work on the associated conky too!

After the changes you suggested a few days ago (@sleekmason), “now” shows me this

Those were @marens fixes, I was just going along for the ride:)  Pretty dang neat.  You guys have supplied loads of cool things to explore.  I have much to learn.

Offline

#33 2025-10-25 15:04:01

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

Re: Conky TAD script

@unklar

1) You forgot to set imlib_cache_size to 0 or restart conky.
2) Give me 5 lines of code above the line:

#### Images

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

Offline

#34 2025-10-25 15:12:40

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

Re: Conky TAD script

sleekmason wrote:

Life is too short and there are not enough hours in a day! Ha!  smile

Of course.
There is no pressure here to do something immediately.

It's actually relaxing.  smile


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

Offline

#35 2025-10-26 08:57:35

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

Re: Conky TAD script

sleekmason wrote:

unklar wrote:
Without the code, he doesn't know what's going on...

lol, very true.  I jumped into that exchange for the scripting part cause it looked fun.  Starting to get a grip on all of it, but there is a LOT there. Now I gotta work on the associated conky too!

After the changes you suggested a few days ago (@sleekmason), “now” shows me this

Those were @marens fixes, I was just going along for the ride:)  Pretty dang neat.  You guys have supplied loads of cool things to explore.  I have much to learn.

That's wrong.
You have to look at my entire post and quote it.
The correct version is:

unklar wrote:
marens wrote:

    I know @unklar sometimes uses a similar conky as you and will definitely know what's wrong.

Without the code, he doesn't know what's going on.  wink

Then the meaning of my sentence becomes clear. You haven't provided your faulty code yet. That's why this is just for show:

sleekmason wrote:

Lots of people don't like sharing, so I don't bother asking anymore.  The original moon script doesn't look like yours either.

Offline

#36 2025-10-26 09:03:57

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

Re: Conky TAD script

marens wrote:

@unklar

1) You forgot to set imlib_cache_size to 0 or restart conky.
2) Give me 5 lines of code above the line:

#### Images

Oh man!
Sorry about that.
I remember you already answering me about this once, and I forgot again.  yikes

imlib_cache was not included in this particular Conky.

Offline

#37 2025-10-26 13:52:40

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

Re: Conky TAD script

unklar wrote:

I remember you already answering me about this once, and I forgot again.  yikes

This happens to 'young guys' like us.

Last night I was working on an hourly forecast and trying to figure out why the date command wasn't working properly.
This morning my wife asked me if I had set the clock because daylight saving time is over.  big_smile


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

Offline

#38 2025-10-26 13:55:19

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

Re: Conky TAD script

unklar wrote:
sleekmason wrote:

unklar wrote:
Without the code, he doesn't know what's going on...

lol, very true.  I jumped into that exchange for the scripting part cause it looked fun.  Starting to get a grip on all of it, but there is a LOT there. Now I gotta work on the associated conky too!

After the changes you suggested a few days ago (@sleekmason), “now” shows me this

Those were @marens fixes, I was just going along for the ride:)  Pretty dang neat.  You guys have supplied loads of cool things to explore.  I have much to learn.

That's wrong.
You have to look at my entire post and quote it.
The correct version is:

unklar wrote:
marens wrote:

    I know @unklar sometimes uses a similar conky as you and will definitely know what's wrong.

Without the code, he doesn't know what's going on.  wink

Then the meaning of my sentence becomes clear. You haven't provided your faulty code yet. That's why this is just for show:

sleekmason wrote:

Lots of people don't like sharing, so I don't bother asking anymore.  The original moon script doesn't look like yours either.

Excuse me?  Not sure what the **** you are talking about.  Get a grip.  I can do, or not do whatever I feel like.
First off, I don't have any issues with the "code"  It's all easy enough to understand.

If you actually followed the discussion, you would see that our exchange was about his old conky with the old format that I could not locate within the thread.  He explained it, and we were done.

The only issue I had was with the second convert command not allowing proper transparency without artifacts.  This too you would know if you actually read the posts instead of silly attacks on things I write.  Arrogance is not a virtue.

It's posts like yours that drive people away.

MOD EDIT: Language

Offline

#39 2025-10-26 14:14:50

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

Re: Conky TAD script

Conky tad script  -  Hourly

1) Create a folder ~/time_and_date_conky_script/hourly.

2) At the end of the tad script, add:

#### HOURLY

## Images
cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | awk -F'svg/' '{print $2}' | sed -n '3,7p' | sed 's/.$//' | sed 's/svg/png/' > $HOME/time_and_date_conky_script/hourly/images

## Temperature
cat $HOME/time_and_date_conky_script/weather_raw | grep 'tr class="h2 soft"' | awk -F'height=80></td></tr><tr class="h2 soft" ><td>' '{print $2}' | awk -F'</td><td>' '{print $2}' | sed 's/&nbsp;/ /' > $HOME/time_and_date_conky_script/hourly/temperature

cat $HOME/time_and_date_conky_script/weather_raw | grep 'tr class="h2 soft"' | awk -F'height=80></td></tr><tr class="h2 soft" ><td>' '{print $2}' | awk -F'</td><td>' '{print $3}' | sed 's/&nbsp;/ /' >> $HOME/time_and_date_conky_script/hourly/temperature

cat $HOME/time_and_date_conky_script/weather_raw | grep 'tr class="h2 soft"' | awk -F'height=80></td></tr><tr class="h2 soft" ><td>' '{print $2}' | awk -F'</td><td>' '{print $4}' | sed 's/&nbsp;/ /' >> $HOME/time_and_date_conky_script/hourly/temperature

cat $HOME/time_and_date_conky_script/weather_raw | grep 'tr class="h2 soft"' | awk -F'height=80></td></tr><tr class="h2 soft" ><td>' '{print $2}' | awk -F'</td><td>' '{print $5}' | sed 's/&nbsp;/ /' >> $HOME/time_and_date_conky_script/hourly/temperature

cat $HOME/time_and_date_conky_script/weather_raw | grep 'tr class="h2 soft"' | awk -F'height=80></td></tr><tr class="h2 soft" ><td>' '{print $2}' | awk -F'</td><td>' '{print $6}' | sed 's/&nbsp;/ /' | awk -F'</td></tr>' '{print $1}' >> $HOME/time_and_date_conky_script/hourly/temperature

## Hourly Time
cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]class=h2 ><td>Now</td><td>[^ ]*' | awk -F'</td><td>' '{print $2}' > $HOME/time_and_date_conky_script/hourly/time

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]class=h2 ><td>Now</td><td>[^ ]*' | awk -F'</td><td>' '{print $3}' >> $HOME/time_and_date_conky_script/hourly/time

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]class=h2 ><td>Now</td><td>[^ ]*' | awk -F'</td><td>' '{print $4}' >> $HOME/time_and_date_conky_script/hourly/time

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]class=h2 ><td>Now</td><td>[^ ]*' | awk -F'</td><td>' '{print $5}' >> $HOME/time_and_date_conky_script/hourly/time

cat $HOME/time_and_date_conky_script/weather_raw | grep -o '[ ^]class=h2 ><td>Now</td><td>[^ ]*' | awk -F'</td><td>' '{print $6}' | sed 's/<\/td><\/tr><tr//' >> $HOME/time_and_date_conky_script/hourly/time

## Icons
  j=1
                       
    for (( i=1; i<=5; i+=1 ))
			
      do
		    	
        cp $HOME/time_and_date_conky_script/tad-icons/$(sed -n ${i}p $HOME/time_and_date_conky_script/hourly/images) $HOME/time_and_date_conky_script/hourly/hourly_$j.png
    
  ((j++))
  
  done

Done.

Run the tad script once in the terminal:

$ bash $HOME/time_and_date_conky_script/tad

Check the hourly folder.

hourly.png


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

Offline

#40 2025-10-26 15:07:27

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

Re: Conky TAD script

Hello

@ marens

Well, there you go, I didn't dare ask.

I know I'm repeating myself, but thank you again for everything.

@+


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

Board footer

Powered by FluxBB