You are not logged in.

#4661 Today 13:52:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 907

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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

#4662 Today 13:55:19

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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 fuck 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.

Offline

#4663 Today 14:14:50

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 907

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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

#4664 Today 15:07:27

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

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

#4665 Today 15:38:40

marens
Member
From: World without M$
Registered: 2023-02-02
Posts: 907

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ Always ask whatever you want.

If I can help, I always will.
The weather here has been bad (rainy) the last few days, so I took advantage of that to finish the tad script.

loutch wrote:

... thank you again for everything.

It sounds like I'm dead, but I'm not yet.  big_smile

P.S.
Thanks to @sleekmason, @loutch and @unklar for testing.

Last edited by marens (Today 15:54:20)


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

Offline

#4666 Today 16:27:35

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Re

I found a small speck of dust.

In hourly/time i have just one line the rest work great

hIhnSGMr_t.png

@+

Last edited by loutch (Today 16:27:57)


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

#4667 Today 16:32:24

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

marens wrote:

^ Always ask whatever you want.

If I can help, I always will.
The weather here has been bad (rainy) the last few days, so I took advantage of that to finish the tad script.

loutch wrote:

... thank you again for everything.

It sounds like I'm dead, but I'm not yet.  big_smile

P.S.
Thanks to @sleekmason, @loutch and @unklar for testing.

Yes, thank you for your work too.
It was a pleasure to know that I'm not the only one who's forgetful  tongue
---
Otherwise, I'll just say: ohnonot-syndrome

Offline

Board footer

Powered by FluxBB