You are not logged in.
Hello
I thought the wunderground_conky script was dead.
Imagine my surprise when I saw that it still works. Well, some lines have changed places and I'm missing the current weather icons.
I'll have to keep looking.
My conky wunderground is working again today .
& conky
@+
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
Perhaps the script just needs a few tweaks to get it fully working again. As for the icons maybe they are in another location or their names have changed?
Real Men Use Linux
Offline
Re
Found it. Now all i have to do is check tomorrow morning to see what changes there will be during the day.
@+
Last edited by loutch (2025-12-16 18:44:40)
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
@loutch
A nice discovery.
I'm currently overloaded with work on weather forecast scripts.
I must admit that I have never used WU, but I can help with the original icons.
They are available on the website as .svg images (example):
https://www.wunderground.com/static/i/c/v4/26.svgFirst you need to download everything and convert it to .png
If people would know how little brain is ruling the world, they would die of fear.
Offline
Re
In this old pack, I have the real Wunderground icons, AccuWeather 2015, vfclouds, and those from the old Conky Weather.
Hourly work great
Last edited by loutch (2025-12-16 18:52:44)
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
^ That's good news.
Just check if there were any name changes.
If people would know how little brain is ruling the world, they would die of fear.
Offline
@ marens
oki-doki.
@+
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
Looks good @loutch and thanks for dusting off the old WU script and getting it working.
Real Men Use Linux
Offline
Online
If people would know how little brain is ruling the world, they would die of fear.
Offline
^ Great job.
Three years ago:
https://forums.bunsenlabs.org/viewtopic … 85#p124085
Looks like the resurrected WU script looks so much better than the original now thanks to @loutch's tinkering.
Real Men Use Linux
Offline
^ Always nice to see the old conky still working. ![]()
wunderground_conky_script dead or not dead ?
I found the script here:
https://gitlab.com/teobigusgeekus/Wunde … type=heads
The data is downloaded from api.weather.com and the apiKey appears.
Example:
---
#Current Conditions
address_CurrCond="https://api.weather.com/v3/wx/observations/current?language=en-US&apiKey=6532d6454b8aa370768e63d6ba5a832e&geocode=$latitude%2C$longitude&units=$units&format=json"
wget -o /dev/null -O $HOME/Wunderground_conky_script/curr_cond $address_CurrCond
---The reason why the script stopped working at some point (all files are empty) should be found here.
Maybe there were too many calls (same apiKey)?
Of course, I'm just guessing what happened.
EDIT
-o /dev/nullAlso, @TBG disabled log files from wget here (ie, wget-log, wget-log1, etc.).
You couldn't see what the problem was.
Last edited by marens (2025-12-19 02:20:40)
If people would know how little brain is ruling the world, they would die of fear.
Offline
There's a limit to the number of calls to the API per day with the free accounts I believe. Paid subscribers to the service would get a higher limit.
So my best bet would be to limit the updates so as not to make too many calls to the API, which I hope it's one call to API to update. If that's true then perhaps only update the weather info once every 30 to 60 minutes so as to call the API 24-48x a day assuming your computer is on 24x7.
Last edited by DeepDayze (2025-12-18 21:39:17)
Real Men Use Linux
Offline
marens wrote:^ Great job.
Three years ago:
https://forums.bunsenlabs.org/viewtopic … 85#p124085Looks like the resurrected WU script looks so much better than the original now thanks to @loutch's tinkering.
Where can I find the resurrected script?
Offline
Hello
If you want it , here mine , attention there is more then one part for translation in french .
#!/usr/bin/env bash
#Put the command that launches the conky configuration file that uses this script here #
weather_conky_launch_command="conky -c wu_didier"
#Put your WUnderground address here
address="https://www.wunderground.com/weather/fr/sarreguemines"
#Put your units of preference here
#m metric
#e english
units=m
#Put your hemisphere here: n for north, s for south
hemisphere=n
#Do you want to create 24hourly file ready for conky to use?
#If so, do you want it to show images or weather font characters?
#0 - Don't create the file, any value could be used except from i or f
#i - Images
#f - Weather font
hourly24_file=i
#function: test_image
test_image () {
case $1 in
44)
echo -
;;
1|2)
echo 2
;;
3|4|38)
echo m
;;
5|6|7)
echo x
;;
8|10|18)
echo u
;;
0)
echo 1
;;
9|11|39)
echo h
;;
12|40)
echo i
;;
13|14|16|42|43)
echo r
;;
15|25)
echo 8
;;
17)
echo u
;;
19|23|24)
echo 6
;;
20|21|22)
echo 9
;;
26)
echo e
;;
27)
echo D
;;
28)
echo d
;;
29|33)
echo C
;;
30|34)
echo c
;;
31)
echo A
;;
32|36)
echo a
;;
35)
echo v
;;
37)
echo k
;;
41)
echo o
;;
45)
echo G
;;
46)
echo O
;;
47)
echo K
;;
*)
echo -
;;
esac
}
#function: test_moon
test_moon () {
case $1 in
n-00|n-01|n-02|n-30|n-31|s-00|s-01|s-02|s-30|s-31)
echo *
;;
n-03|s-29)
echo A
;;
n-04|s-28)
echo B
;;
n-05|s-27)
echo C
;;
n-06|s-26)
echo D
;;
n-07|s-25)
echo E
;;
n-08|s-24)
echo F
;;
n-09|s-23)
echo G
;;
n-10|s-22)
echo H
;;
n-11|s-21)
echo I
;;
n-12|s-20)
echo J
;;
n-13|s-19)
echo K
;;
n-14|s-18)
echo L
;;
n-15|n-16|n-17|s-15|s-16|s-17)
echo @
;;
n-18|s-14)
echo O
;;
n-19|s-13)
echo P
;;
n-20|s-12)
echo Q
;;
n-21|s-11)
echo R
;;
n-22|s-10)
echo S
;;
n-23|s-09)
echo T
;;
n-24|s-08)
echo U
;;
n-25|s-07)
echo V
;;
n-26|s-06)
echo W
;;
n-27|s-05)
echo X
;;
n-28|s-04)
echo Y
;;
n-29|s-03)
echo Z
;;
*)
echo -
;;
esac
}
#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"
#Delete old forecast images
rm $HOME/Wunderground_conky_script/Forecast_Images/*.png
rm $HOME/Wunderground_conky_script/actuelle.png
#Extract moon data, latitude and longitude
wget -o /dev/null -O $HOME/Wunderground_conky_script/station_coordinates $address
grep moonPhase $HOME/Wunderground_conky_script/station_coordinates > $HOME/Wunderground_conky_script/moon_data
sed -i 's/\&q\;/"/g' $HOME/Wunderground_conky_script/moon_data
sed -i -e 's/\&q\;/"/g' -e 's/^.*moonPhase":\["//' -e 's/".*moonriseTimeLocal":\["/\n/' -e 's/".*moonsetTimeLocal":\["/\n/' -e 's/".*$//' $HOME/Wunderground_conky_script/moon_data
sed -i -e '2,3s/^.*T//' $HOME/Wunderground_conky_script/moon_data
sed -i '/geocode/!d' $HOME/Wunderground_conky_script/station_coordinates
sed -i 's/^.*geocode=//' $HOME/Wunderground_conky_script/station_coordinates
sed -i -e 's/&.*$//' -e 's/%2C/ /' $HOME/Wunderground_conky_script/station_coordinates
latitude=$(awk '{ print $1 }' $HOME/Wunderground_conky_script/station_coordinates)
longitude=$(awk '{ print $2 }' $HOME/Wunderground_conky_script/station_coordinates)
address_moon_icon="https://api.weather.com/v2/astro?apiKey=6532d6454b8aa370768e63d6ba5a832e&geocode=$latitude%2C$longitude&format=json&date=$(date "+%Y%m%d")&days=1"
wget -o /dev/null -O $HOME/Wunderground_conky_script/moon_icon $address_moon_icon
sed -i -e 's/^.*riseIcon"://' -e 's/,".*$//' $HOME/Wunderground_conky_script/moon_icon
if (( $(sed -n 1p $HOME/Wunderground_conky_script/moon_icon) < 10 )); then
sed -i '1s/^/0/' $HOME/Wunderground_conky_script/moon_icon
fi
cp $HOME/Wunderground_conky_script/WU_Moon/$hemisphere-$(sed -n 1p $HOME/Wunderground_conky_script/moon_icon).png $HOME/Wunderground_conky_script/Forecast_Images/Moon_phase.png
#Current Conditions
address_CurrCond="https://api.weather.com/v3/wx/observations/current?language=fr-FR&apiKey=6532d6454b8aa370768e63d6ba5a832e&geocode=$latitude%2C$longitude&units=$units&format=json"
wget -o /dev/null -O $HOME/Wunderground_conky_script/curr_cond $address_CurrCond
sed -i -e 's/,"/\n/g' -e 's/":/\n/g' -e 's/"//g' -e 's/{//g' -e 's/}//g' $HOME/Wunderground_conky_script/curr_cond
sed -i -e{44,48}'s/^.*T//' -e{44,48}'s/-\|+.*$//' $HOME/Wunderground_conky_script/curr_cond
cp $HOME/Wunderground_conky_script/WU_Images/$(sed -n 14p $HOME/Wunderground_conky_script/curr_cond).png $HOME/Wunderground_conky_script/actuelle.png
echo CURRENT > $HOME/Wunderground_conky_script/weather_font
echo $(test_image $(sed -n 14p $HOME/Wunderground_conky_script/curr_cond)) >> $HOME/Wunderground_conky_script/weather_font
echo MOON_PHASE >> $HOME/Wunderground_conky_script/weather_font
echo $(test_moon $hemisphere-$(sed -n 1p $HOME/Wunderground_conky_script/moon_icon)) >> $HOME/Wunderground_conky_script/weather_font
#10 days' forecast
address_10days="http://api.weather.com/v1/geocode/$latitude/$longitude/forecast/daypart/10day.json?apiKey=6532d6454b8aa370768e63d6ba5a832e&language=fr-FR&units=$units"
wget -o /dev/null -O $HOME/Wunderground_conky_script/10days $address_10days
sed -i 's/,"/\n/g' $HOME/Wunderground_conky_script/10days
sed -i -e '0,/thunder_enum/d' -e 's/":/\n/' -e 's/"//' -e 's/".*$//g' $HOME/Wunderground_conky_script/10days
echo DAILY >> $HOME/Wunderground_conky_script/weather_font
j=1
for (( i=22; i<=1982; i+=98 ))
do
cp $HOME/Wunderground_conky_script/WU_Images/$(sed -n ${i}p $HOME/Wunderground_conky_script/10days).png $HOME/Wunderground_conky_script/Forecast_Images/$j.png
echo $(test_image $(sed -n ${i}p $HOME/Wunderground_conky_script/10days)) >> $HOME/Wunderground_conky_script/weather_font
((j++))
done
# icone direction vent
wind_direction=$(sed -n 86p $HOME/Wunderground_conky_script/curr_cond)
if [[ $wind_direction == "S" ]]; then
cp $HOME/Wunderground_conky_script/vents/"02.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "South" ]]; then
cp $HOME/Wunderground_conky_script/vents/"02.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "SSO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"03.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "SO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"04.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "OSO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"05.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "O" ]]; then
cp $HOME/Wunderground_conky_script/vents/"06.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "West" ]]; then
cp $HOME/Wunderground_conky_script/vents/"06.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "ONO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"07.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "NO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"08.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "NNO" ]]; then
cp $HOME/Wunderground_conky_script/vents/"09.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "N" ]]; then
cp $HOME/Wunderground_conky_script/vents/"10.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "North" ]]; then
cp $HOME/Wunderground_conky_script/vents/"10.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "NNE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"11.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "NE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"12.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "ENE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"13.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "E" ]]; then
cp $HOME/Wunderground_conky_script/vents/"14.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "East" ]]; then
cp $HOME/Wunderground_conky_script/vents/"14.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "ESE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"15.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "SE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"16.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "SSE" ]]; then
cp $HOME/Wunderground_conky_script/vents/"17.png" $HOME/Wunderground_conky_script/v1.png
elif [[ $wind_direction == "Variable" ]]; then
cp $HOME/Wunderground_conky_script/vents/"00.png" $HOME/Wunderground_conky_script/v1.png
fi
#Hourly
address_Hourly="https://api.weather.com/v1/geocode/$latitude/$longitude/forecast/hourly/240hour.json?apiKey=6532d6454b8aa370768e63d6ba5a832e&units=$units&language=fr-FR"
wget -o /dev/null -O $HOME/Wunderground_conky_script/hourly $address_Hourly
sed -i 's/"fcst_valid_local":"/\n/g' $HOME/Wunderground_conky_script/hourly
sed -i -e 's/},{"class".*$//g' -e '1d' -e 's/":/\n/g' -e 's/,"/\n/g' -e 's/"//g' -e 's/}]}//' $HOME/Wunderground_conky_script/hourly
echo HOURLY >> $HOME/Wunderground_conky_script/weather_font
j=1
for (( i=21; i<=1700; i+=73 ))
do
cp $HOME/Wunderground_conky_script/WU_Images/$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly).png $HOME/Wunderground_conky_script/Forecast_Images/h$j.png
echo $(test_image $(sed -n ${i}p $HOME/Wunderground_conky_script/hourly)) >> $HOME/Wunderground_conky_script/weather_font
((j++))
done
#Create a 24h hourly forecast ready for conky to use
if [[ $hourly24_file == i || $hourly24_file == f ]]; then
rm $HOME/Wunderground_conky_script/24h_hourly
echo TIME > $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=1; i<=1680; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c12-16)
sed -i "1s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
if [[ $hourly24_file == i ]]; then
jump_to=1
for (( i=115; i<=1725; i+=70 ))
do
sed -i "1s/$/\${image \$HOME\/Wunderground_conky_script\/Forecast_Images\/h$jump_to\.png -p $i,70 -s 60x60}/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=1))
done
for (( i=1; i<=3; i+=1 ))
do
echo >> $HOME/Wunderground_conky_script/24h_hourly
done
elif [[ $hourly24_file == f ]]; then
echo '$color${font ConkyWeather:size=25}' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=135
for (( i=28; i<=51; i+=1 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/weather_font)
sed -i "2s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
for (( i=1; i<=2; i+=1 ))
do
echo >> $HOME/Wunderground_conky_script/24h_hourly
done
sed -i "2s/$/\${font}/" $HOME/Wunderground_conky_script/24h_hourly
fi
echo '${color FDB72E}FORECAST$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=25; i<=1704; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "5s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
jump_to=140
echo >> $HOME/Wunderground_conky_script/24h_hourly
for (( i=25; i<=1704; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c7-12)
sed -i "6s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '6s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'TEMPER.$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=7; i<=1686; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly)
sed -i "8s/$/\${goto $jump_to}$text°/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '8s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'REAL FEEL$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=15; i<=1694; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly)
sed -i "10s/$/\${goto $jump_to}$text°/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '10s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'WIND$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=51; i<=1730; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly)
j=$(($i-4))
text1=$(sed -n ${j}p $HOME/Wunderground_conky_script/hourly)
sed -i "12s/$/\${goto $jump_to}$text $text1/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '12s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'PRESSURE$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=59; i<=1738; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "14s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '14s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'PRECIPIT.$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=37; i<=1716; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "16s/$/\${goto $jump_to}$text%/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '16s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'RAIN$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=41; i<=1720; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "18s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '18s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'SNOW$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=43; i<=1722; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "20s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '20s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'VISIBILITY$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=57; i<=1736; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "22s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '22s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'CLOUD COV.$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=55; i<=1734; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "24s/$/\${goto $jump_to}$text%/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '24s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'UV INDEX$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=63; i<=1742; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "26s/$/\${goto $jump_to}$text/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '26s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'HUMIDITY$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=45; i<=1724; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "28s/$/\${goto $jump_to}$text%/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '28s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${goto 140}${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
echo 'DEW POINT$color' >> $HOME/Wunderground_conky_script/24h_hourly
jump_to=140
for (( i=9; i<=1688; i+=73 ))
do
text=$(sed -n ${i}p $HOME/Wunderground_conky_script/hourly|cut -c1-6)
sed -i "30s/$/\${goto $jump_to}$text°/" $HOME/Wunderground_conky_script/24h_hourly
((jump_to+=70))
done
sed -i '30s/$/\${color FDB72E}/' $HOME/Wunderground_conky_script/24h_hourly
echo '${hr 1}' >> $HOME/Wunderground_conky_script/24h_hourly
if [[ $hourly24_file == f ]]; then
sed -i '3,4d' $HOME/Wunderground_conky_script/24h_hourly
fi
## English to French moon
cp $HOME/Wunderground_conky_script/moon_data $HOME/Wunderground_conky_script/lune
if [[ -s $HOME/Wunderground_conky_script/lune ]]; then
sed -i -e 's/New Moon/Nouvelle Lune/g' -e 's/Waxing Crescent/Lune Montante/g' -e 's/First Quarter/Premier Quartier/g' -e 's/Waxing Gibbous/Gibeuse Croissante/g' -e 's/Full Moon/Pleine Lune/g' -e 's/Waning Gibbous/Gibeuse Décroissante/g' -e 's/Last Quarter/Dernier Quartier/g' -e 's/Waning Crescent/Lune Déscendante/g' /$HOME/Wunderground_conky_script/lune
fi
## Pression atmo sans virgule ou point
round_press=$(printf "%.0f\n" $(sed -n 28p $HOME/Wunderground_conky_script/curr_cond|sed 's/ mb//'|sed 's/\./\,/'))
sed -i "28s/.*/$round_press/" $HOME/Wunderground_conky_script/curr_cond
#### mise à jour unklar ####
date +%T > $HOME/Wunderground_conky_script/actualisation
#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"
fi@+
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
Thanks, @loutch
I removed the French conversion bits, and the script works, though as unklar stated, the old configurations don't work 100%, as the items in the curr_cond file have been rearranged. I think most of the other data files that are generated are still the same (though I haven't checked them fully). And thanks for adding the lines that create the wind direction icon.
It's great that the Wunderground script has been resurrected, though I'm pretty happy with the tad script. I will run both and see if I get hit by the WU API-call limit.
Offline