You are not logged in.

#4641 Yesterday 15:09:31

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

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

loutch wrote:

Hello

Very good Job as well

Here mine in complety french

https://thumbs2.imgbox.com/1a/38/GO5IaQgj_t.png

Just ad this in ~/accuweather_marens_rss/rss.sh

### Traduction ####
sed -i -e 's/Temperature/Température/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Feels Like/Ressentie/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Forecast/Maxi et mini/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Visibility/Visibilité/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Pressure/Pression/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Humidity/Humidité/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Dew Point/Point de rosée/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Wind/Vent/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Latest Report:/Mise @ jour/g' $HOME/accuweather_marens_rss/now
sed -n  '4p' $HOME/accuweather_marens_rss/now | trans -brief :fr  >> $HOME/accuweather_marens_rss/now
sed -n '10p' $HOME/accuweather_marens_rss/now | trans -brief :fr  >> $HOME/accuweather_marens_rss/now

Mini-mini

https://thumbs2.imgbox.com/71/84/lVQ64UXH_t.png

@+

@loutch,
Pourquoi cela fonctionne-t-il chez toi ? Où as-tu placé le script ?

Chez moi, c'est « la fin du terrain » : https://forums.bunsenlabs.org/viewtopic … 93#p146193
Actuellement, j'ai activé ceci : https://forums.bunsenlabs.org/viewtopic … 06#p146306
XnLYJnht.png


Malheureusement, c'est très imprécis, car timeanddate obtient les données météorologiques avec le code OACI de l'aérodrome d'Altenburg-Nobis, qui se trouve à environ 40 km de chez moi.

===================================
@loutch,
Why does it work for you? Where do you have the script located?

For me, it's “game over”:
I currently have this activated:
--
Unfortunately, it's very inaccurate because timeanddate obtains the weather data using the ICAO code for the airport in Altenburg-Nobis, which is about 40 km away from me.

Offline

#4642 Yesterday 15:19:58

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

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

Hello

vor dem Bildteil

Der ganze script

#!/bin/bash


# Go to https://www.timeanddate.com/weather
# Find your address in the search field.

# Copy the address from the Firefox URL bar and paste it in the same form here instead of Paris, France.

address="https://www.timeanddate.com/weather/@6454374"

curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -s "$address" > $HOME/accuweather_marens_rss/weather_raw

#### NOW

cat $HOME/accuweather_marens_rss/weather_raw | grep 'height=80><div class=h2>' | awk -F'&nbsp;°C' '{print $1}' | awk -F'h2>' '{print $2}' > $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Feels Like: ' | awk -F'&nbsp;°C' '{print $2}' | awk -F'class=clear><p>' '{print $2}' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Forecast: ' | awk -F'&nbsp;°C' '{print $3}' | awk -F'">' '{print $2}' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Feels Like: ' | awk -F'&nbsp;°C' '{print $1}' | awk -F'"' '{print $4}' | sed 's/.$//' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Visibility:' | awk -F'&nbsp;km</td>' '{print $1}' | awk -F'</td></tr><tr><th>' '{print $4}' | sed 's/<\/th><td>//' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Pressure:' | awk -F'mbar</td></tr><tr><th>Humidity:' '{print $1}' | awk -F'</td></tr><tr><th>' '{print $5}' | sed 's/<\/th><td>//' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Visibility:' | awk -F'%' '{print $1}' | awk -F'mbar</td></tr><tr><th>' '{print $2}' | sed 's/<\/th><td>//' >> $HOME/accuweather_marens_rss/now

cat $HOME/accuweather_marens_rss/weather_raw | grep 'Visibility:' | awk -F'%' '{print $2}' | awk -F'&nbsp;°C' '{print $1}' | sed 's/<\/td><\/tr><tr><th>//' | sed 's/<\/th><td>//' >> $HOME/accuweather_marens_rss/now

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 '{print $1, $2, $3}' >> $HOME/accuweather_marens_rss/now

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/now

cat $HOME/accuweather_marens_rss/weather_raw | grep '</td></tr><tr><th>Latest Report:' | awk -F'</td></tr><tr><th>' '{print $3}' | sed 's/<\/th><td>//' >> $HOME/accuweather_marens_rss/now

sed -i -e '1s/$/ °C/' -e '1s/^/Temperature: /' -e '2s/$/ °C/' -e '3s/$/ °C/' -e '5s/$/ km/' -e '6s/$/mbar/' -e '7s/$/%/' -e '8s/$/ °C/' $HOME/accuweather_marens_rss/now

### Traduction ####
sed -i -e 's/Temperature/Température/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Feels Like/Ressentie/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Forecast/Maxi et mini/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Visibility/Visibilité/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Pressure/Pression/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Humidity/Humidité/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Dew Point/Point de rosée/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Wind/Vent/g' $HOME/accuweather_marens_rss/now
sed -i -e 's/Latest Report:/Mise @ jour/g' $HOME/accuweather_marens_rss/now
sed -n  '4p' $HOME/accuweather_marens_rss/now | trans -brief :fr  >> $HOME/accuweather_marens_rss/now
sed -n '10p' $HOME/accuweather_marens_rss/now | trans -brief :fr  >> $HOME/accuweather_marens_rss/now

#### Images

cat $HOME/accuweather_marens_rss/weather_raw | grep -o '[ ^]src="//c.tadst.com/gfx/w/svg[^ ]*' | sed '1q;d' | sed 's/ src="/https:/' | sed 's/.$//' > $HOME/accuweather_marens_rss/images

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

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

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

> $HOME/accuweather_marens_rss/images

exit

-------------------------

before the images part.

@+


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

#4643 Yesterday 15:27:52

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

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

Ah, désolé, j'ai mal compris -->

cat $HOME/accuweather_marens_rss/weather_raw...

Si c'est timeanddate.com, ça ne m'aide pas non plus. 

------------
Ah, sorry, I misunderstood -->
If it's timeanddate.com, then it's not any more accurate for me either.

Offline

#4644 Yesterday 15:36:30

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

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

Re

ya es ist timeanddate.com.


Ich habe auch dies mit accuweather_fr für einen Anschein von accuweather.rss

${execpi 3600 bash $HOME/Accuweather_conky_script_fr/accuweather -f2015}
${voffset -16}${color 48bcff}${goto 70}Sarreguemines $color}
${goto 75}${execi 600 sed -n '2p' $HOME/Accuweather_conky_script_fr/curr_cond}°C (${execi 600 sed -n '3p' $HOME/Accuweather_conky_script_fr/curr_cond}°C)
${goto 75}${execi 600 sed -n '4p' $HOME/Accuweather_conky_script_fr/curr_cond} 


${color 48bcff}Aujourd'hui  ${execi 3600 date --date="0 day" | awk '{print $1""$2}'}$color${voffset 20}
${goto 75}Max: ${execpi 600 sed -n  '4p' $HOME/Accuweather_conky_script/daily_forecast}°C   Min: ${execpi 600 sed -n  '5p' $HOME/Accuweather_conky_script/daily_forecast}°C ${voffset 10}
${goto 15}${execi 600 sed -n '6p' $HOME/Accuweather_conky_script_fr/daily_forecast | fmt -w 75 | sed -n '1p'}
${goto 15}${execi 600 sed -n '2p' $HOME/Accuweather_conky_script_fr/daily_forecast | fmt -w 75 | sed -n '2p'}
${goto 15}${execi 600 sed -n '2p' $HOME/Accuweather_conky_script_fr/daily_forecast | fmt -w 75 | sed -n '3p'}

${lua fDrawImage $HOME/Accuweather_conky_script_fr/forecast_2015/forecast_0.png  0 015 83 50}
${lua fDrawImage $HOME/Accuweather_conky_script_fr/forecast_2015/forecast_1.png  0 076 83 50}






@+

Last edited by loutch (Yesterday 16:02:25)


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

#4645 Yesterday 16:04:02

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

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

@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

#4646 Yesterday 18:08:20

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

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

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

#4647 Yesterday 20:36:40

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

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

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

#4648 Today 01:20:40

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

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

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

#4649 Today 02:45:07

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

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

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 (Today 02:56:52)

Offline

#4650 Today 12:46:13

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

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

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

#4651 Today 12:53:54

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

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

marens wrote:

Conky tad script

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

result
lrMwHvKt.png

Offline

#4652 Today 13:30:21

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

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

^ 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

#4653 Today 13:55:30

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

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

@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

#4654 Today 14:34:27

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

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

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

#4655 Today 14:51:39

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

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

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

#4656 Today 15:01:27

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

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

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

#4657 Today 15:04:01

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

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

@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

#4658 Today 15:12:40

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

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

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

Board footer

Powered by FluxBB