You are not logged in.

#4681 2025-10-28 09:48:47

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

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

Hello

@ marens great job as well, but don't work by me , i have wind direction in french , if i rest in english that work great .

in french i have du , d' instead of from

du Sud-ouest

d'Est

@+

Last edited by loutch (2025-10-28 10:13:16)


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

#4682 2025-10-28 14:16:20

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

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

^ Do the same as me.

$ echo 'du Sud-ouest' | sed 's/du //'  | sed 's/Sud/S/' | sed 's/ouest/W/' | sed 's/-//'
SW

For example, "ouest" can appear at the beginning with a capital letter, so it must be added:

sed 's/Ouest/W/'

Also, "Sud" can appear with a lowercase letter at the beginning:

sed 's/sud/S/'

You need to check all possible combinations in French and replace them with E, W, N or S using the sed command.

Last edited by marens (2025-10-28 16:28:21)


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

Offline

#4683 2025-10-28 17:44:21

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

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

loutch wrote:

Translation in french work great this morning .

Does your "now" file still look like this?
https://forums.bunsenlabs.org/viewtopic … 17#p146317

Température: 13 °C
Ressentie: 12 °C
Maxi et mini: 15 / 8 °C
Mostly cloudy
Visibilité: N/A km
Pression: 1001 mbar
Humidité: 94%
Point de rosée: 12 °C
Vent: 13 km/h
from Southwest
Mise @ jour 22 oct 2025, 09 h 30
Plutôt nuageux
du sud-ouest

Here you have wind direction in English (line 10).
Do not use the French translation (line 13) in the tad script.


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

Offline

#4684 2025-10-28 19:20:41

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

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

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 .

@+


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

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

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

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

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

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

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

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

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

Offline

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

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

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

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

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

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

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

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

Offline

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

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

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

^ 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

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

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

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

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

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

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

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

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

Offline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

^ 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

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

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

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

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

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

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

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

^ 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

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

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

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

@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

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

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

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

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

#4700 Yesterday 10:48:09

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

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

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 (Yesterday 11:06:31)

Offline

Board footer

Powered by FluxBB