You are not logged in.
The 6th line in the curr_cond file is the wind speed, the wind direction is in the 5th line.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
not in mine
1
23
25
Ensoleillé
9km/h ENE
60 %
1016.20mbar
4.0
0 %
4328m
15
16km
06:46
20:17
13:31
EMPTY LINE FOR COMPATIBILITY OITH THE OLD CONKYRC FILES
07:42
21:16
13:34
EMPTY LINE FOR COMPATIBILITY OITH THE OLD CONKYRC FILES
a
:46
:17
:42
: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
Strange. Why's that?
Is it because you use the French version of the site?
Do you have the latest version of the script?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
if i use
address="http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050"
line 5 is empty
if i use that
address="http://www.accuweather.com/en/fr/sarreguemines/135050/weather-forecast/135050"
ther is wind direction in line 5 but curr_coond & daily forecast are in english
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
yes i think i have the latest version
here
#!/usr/bin/env bash
#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"
#####################################
# Put your Accuweather address here #
#####################################
#address="http://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894"
#address="https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192"
address="http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050"
#address="http://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261"
#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"
#function: test_image
test_image () {
case $1 in
1)
echo a
;;
2|3)
echo b
;;
4|5)
echo c
;;
6)
echo d
;;
7)
echo e
;;
8)
echo f
;;
11)
echo 0
;;
12)
echo h
;;
13|14)
echo g
;;
15)
echo m
;;
16|17)
echo k
;;
18)
echo i
;;
19)
echo q
;;
20|21|23)
echo o
;;
22)
echo r
;;
24|31)
echo E
;;
25)
echo v
;;
26)
echo x
;;
29)
echo y
;;
30)
echo 5
;;
32)
echo 6
;;
33)
echo A
;;
34|35)
echo B
;;
36|37)
echo C
;;
38)
echo D
;;
39|40)
echo G
;;
41|42)
echo K
;;
43|44)
echo O
;;
*)
echo -
;;
esac
}
############################
# Check the user arguments #
############################
if (( $# < 1 || $# > 15 )); then
echo "Invalid arguments!"
exit
fi
forecast0=0
forecast2015=0
forecast2016=0
hourly0=0
hourly2015=0
hourly2016=0
h_24hours=1
h_real=1
h_wind=1
h_rain=1
h_snow=1
h_ice=1
h_uv=1
h_cloud=1
h_humid=1
h_dew=1
h_visib=1
for i in $*
do
if [[ $i != -f && $i != -f2015 && $i != -f2016 && $i != -h && $i != -h2015 && $i != -h2016 && $i != -h_12h && $i != -h_no_real && $i != -h_no_wind && $i != -h_no_rain && $i != -h_no_snow && $i != -h_no_ice && $i != -h_no_uv && $i != -h_no_cloud && $i != -h_no_humid && $i != -h_no_dew && $i != -h_no_visib ]]; then
echo "Invalid arguments!"
exit
fi
case $i in
-f)
forecast0=1
;;
-f2015)
forecast2015=1
;;
-f2016)
forecast2016=1
;;
-h)
hourly0=1
;;
-h2015)
hourly2015=1
;;
-h2016)
hourly2016=1
;;
-h_12h)
h_24hours=0
;;
-h_no_real)
h_real=0
;;
-h_no_wind)
h_wind=0
;;
-h_no_rain)
h_rain=0
;;
-h_no_snow)
h_snow=0
;;
-h_no_ice)
h_ice=0
;;
-h_no_uv)
h_uv=0
;;
-h_no_cloud)
h_cloud=0
;;
-h_no_humid)
h_humid=0
;;
-h_no_dew)
h_dew=0
;;
-h_no_visib)
h_visib=0
;;
esac
done
if [[ $forecast0 == 1 ]]; then
forecast2015=0
forecast2016=0
fi
if [[ $hourly0 == 1 ]]; then
hourly2015=0
hourly2016=0
fi
last_number=$(echo $address|sed 's/^.*\///')
#############################################################
# NORMAL FORECAST: -f, -f2015 or -f2016 passed as arguments #
#############################################################
if [[ $forecast0 == 1 || $forecast2015 == 1 || $forecast2016 == 1 ]]; then
#function: convert_time
convert_time ()
{
hours=$(echo $1|awk -F ":| " '{print $1}')
minutes=$(echo $1|awk -F ":| " '{print $2}')
am_or_pm=$(echo $1|awk -F ":| " '{print $3}')
if [[ $am_or_pm == AM ]]; then
if (( $hours < 10 )); then
hours_24=0$hours
fi
if (( $hours == 10 || $hours == 11 )); then
hours_24=$hours
fi
if (( $hours == 12 )); then
hours_24=00
fi
elif [[ $am_or_pm == PM ]]; then
if (( $hours != 12 )); then
hours_24=$((hours+12))
fi
if (( $hours == 12 )); then
hours_24=12
fi
fi
time_24=$hours_24:$minutes
echo $time_24
}
#function: test_wind
test_wind () {
case $1 in
CLM)
echo -
;;
S)
echo 1
;;
SSW)
echo 2
;;
SW)
echo 3
;;
WSW)
echo 4
;;
W)
echo 5
;;
WNW)
echo 6
;;
NW)
echo 7
;;
NNW)
echo 8
;;
N)
echo 9
;;
NNE)
echo :
;;
NE)
echo ;
;;
ENE)
echo \<
;;
E)
echo =
;;
ESE)
echo \>
;;
SE)
echo ?
;;
SSE)
echo @
;;
esac
}
curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
w3m -dump_source "$curr_addr" -o accept_encoding='identity;q=0' > $HOME/1_accuweather/curr_cond_raw
daily_addr="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
w3m -dump_source "$daily_addr" -o accept_encoding='identity;q=0' > $HOME/1_accuweather/daily_forecast
if [[ $forecast2015 == 1 ]]; then
rm $HOME/1_accuweather/forecast_2015/forecast_*.png
fi
if [[ $forecast2016 == 1 ]]; then
rm $HOME/1_accuweather/forecast_2016/forecast_*.png
fi
#current conditions
if [[ -s $HOME/1_accuweather/curr_cond_raw ]]; then
sed -i '/var sunMoon\|var curCon/!d' $HOME/1_accuweather/curr_cond_raw
sed -i -e 's/^.*extended":{"//' -e 's/^.*moon":{"//' -e 's/,/:/g' -e 's/{"category.*value":/"/' -e 's/}:/":/g' -e 's/icon":/icon":"/' -e 's/:"now/":"now/' -e 's/"};//' -e 's/windDeg":/windDeg":"/' -e 's/°//g' -e 's/":"sun":{/:/' -e 's/"}};//' $HOME/1_accuweather/curr_cond_raw
awk 'FNR==2 { print $24 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw > $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $32 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $30 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $28 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $20 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw|awk '{ print $3 }' >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $20 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw|awk '{ print $1, $2 }' >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $10 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $12 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $16 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $4 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $2 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $6 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==2 { print $18 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $10 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $12 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $8 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $4 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $6 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
awk 'FNR==1 { print $2 }' FS="\":\"" $HOME/1_accuweather/curr_cond_raw >> $HOME/1_accuweather/curr_cond
echo 'EMPTY LINE FOR COMPATIBILITY WITH THE OLD CONKYRC FILES' >> $HOME/1_accuweather/curr_cond
image=$(sed -n 1p $HOME/1_accuweather/curr_cond)
echo $(test_image $image) >> $HOME/1_accuweather/curr_cond
sunrise_time=$(sed -n 14p $HOME/1_accuweather/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/1_accuweather/curr_cond
sunrise_time=$(sed -n 15p $HOME/1_accuweather/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/1_accuweather/curr_cond
sunrise_time=$(sed -n 18p $HOME/1_accuweather/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/1_accuweather/curr_cond
sunrise_time=$(sed -n 19p $HOME/1_accuweather/curr_cond)
echo $(convert_time "$sunrise_time") >> $HOME/1_accuweather/curr_cond
wind=$(sed -n 5p $HOME/1_accuweather/curr_cond)
echo $(test_wind $wind) >> $HOME/1_accuweather/curr_cond
if (( $(sed -n 14p /$HOME/1_accuweather/curr_cond|wc -c) == 8 )); then
sed -i '14s/^/0/' $HOME/1_accuweather/curr_cond
fi
if (( $(sed -n 15p /$HOME/1_accuweather/curr_cond|wc -c) == 8 )); then
sed -i '15s/^/0/' $HOME/1_accuweather/curr_cond
fi
if (( $(sed -n 18p /$HOME/1_accuweather/curr_cond|wc -c) == 8 )); then
sed -i '18s/^/0/' $HOME/1_accuweather/curr_cond
fi
if (( $(sed -n 19p /$HOME/1_accuweather/curr_cond|wc -c) == 8 )); then
sed -i '19s/^/0/' $HOME/1_accuweather/curr_cond
fi
if [[ $forecast2015 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2015/$(sed -n 1p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/forecast_2015/forecast_0.png
cp $HOME/1_accuweather/Forecast_Images_2015/$(sed -n 5p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/forecast_2015/wind_0.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/forecast_2016/forecast_0.png
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n 5p $HOME/1_accuweather/curr_cond).png $HOME/1_accuweather/forecast_2016/wind_0.png
fi
fi
#AJOUT remplacement des accents
sed -i -e 's/\ê/ê/g' -e 's/\é/é/g' -e 's/\ô/ô/g' -e 's/\è/è/g' -e 's/\'/'"'"'/g' $HOME/1_accuweather/curr_cond
sed -i -e 's/NW/NO/g' -e 's/WNW/ONO/g' -e 's/NNW/NNO/g' -e 's/W/O/g' -e 's/SSW/SSO/g' -e 's/SW/SO/g' -e 's/WSW/OSO/g' -e 's/W/O/g' $HOME/1_accuweather/curr_cond
#Daily forecast
if [[ -s $HOME/1_accuweather/daily_forecast ]]; then
sed -i '/var dailyForecast/!d' $HOME/1_accuweather/daily_forecast
sed -i -e 's/var dailyForecast = \[//' -e 's/","\|":"/\n/g' -e 's/icon":/icon\n/g' -e 's/,"phrase/\nphrase/g' -e 's/temp":/temp\n/g' -e 's/},"dow/\ndow/g' -e 's/":{"dTemp/\ndTemp/g' $HOME/1_accuweather/daily_forecast
sed -i -e 's/}}.*,"date/\ndate/' -e 's/}}];//g' -e '1s/^.*$/date/' -e 's/°//g' $HOME/1_accuweather/daily_forecast
sed -i '601,$d' $HOME/1_accuweather/daily_forecast
for (( i=9; i<=569; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/daily_forecast)
echo $(test_image $image) >> $HOME/1_accuweather/daily_forecast
done
for (( i=30; i<=590; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/daily_forecast)
echo $(test_image $image) >> $HOME/1_accuweather/daily_forecast
done
if [[ $forecast0 == 0 ]]; then
j=1
for (( i=9; i<=569; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2015/$(sed -n ${i}p $HOME/1_accuweather/daily_forecast).png $HOME/1_accuweather/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/daily_forecast).png $HOME/1_accuweather/forecast_2016/forecast_$j.png
fi
((j++))
done
for (( i=30; i<=590; i+=40 ))
do
if [[ $forecast2015 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2015/$(sed -n ${i}p $HOME/1_accuweather/daily_forecast).png $HOME/1_accuweather/forecast_2015/forecast_$j.png
fi
if [[ $forecast2016 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/daily_forecast).png $HOME/1_accuweather/forecast_2016/forecast_$j.png
fi
((j++))
done
fi
fi
fi
# icone direction vent
wind_direction=$(sed -n 1p $HOME/1_accuweather/vent)
if [[ $wind_direction == "S" ]]; then
cp $HOME/1_accuweather/vents/"02.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == " South" ]]; then
cp $HOME/1_accuweatherI/vents/"02.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SSO" ]]; then
cp $HOME/1_accuweather/vents/"03.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SO" ]]; then
cp $HOME/1_accuweather/vents/"04.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "OSO" ]]; then
cp $HOME/1_accuweather/vents/"05.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "O" ]]; then
cp $HOME/1_accuweather/vents/"06.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == " West" ]]; then
cp $HOME/1_accuweather/vents/"06.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "ONO" ]]; then
cp $HOME/1_accuweather/vents/"07.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NO" ]]; then
cp $HOME/1_accuweather/vents/"08.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NNO" ]]; then
cp $HOME/1_accuweather/vents/"09.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "N" ]]; then
cp $HOME/1_accuweather/vents/"10.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "North" ]]; then
cp $HOME/1_accuweather/vents/"10.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NNE" ]]; then
cp $HOME/1_accuweather/vents/"11.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "NE" ]]; then
cp $HOME/1_accuweather/vents/"12.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "ENE" ]]; then
cp $HOME/1_accuweather/vents/"13.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == " E" ]]; then
cp $HOME/1_accuweather/vents/"14.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "East" ]]; then
cp $HOME/1_accuweather/vents/"14.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == " ESE" ]]; then
cp $HOME/1_accuweather/vents/"15.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SE" ]]; then
cp $HOME/1_accuweather/vents/"16.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "SSE" ]]; then
cp $HOME/1_accuweather/vents/"17.png" $HOME/1_accuweather/Wind1.png
elif [[ $wind_direction == "Variable" ]]; then
cp $HOME/1_accuweather/vents/"00.png" $HOME/1_accuweather/Wind1.png
fi
#############################################################
# HOURLY FORECAST: -h, -h2015 or -h2016 passed as arguments #
#############################################################
if [[ $hourly0 == 1 || $hourly2015 == 1 || $hourly2016 == 1 ]]; then
#Hourly: 24h
if [[ $hourly2015 == 1 ]]; then
rm $HOME/1_accuweather/hourly_2015/hourly_*.png
fi
if [[ $hourly2016 == 1 ]]; then
rm $HOME/1_accuweather/hourly_2016/hourly_*.png
fi
hourly_addr1="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"
hourly_addr2="$(echo $address|sed 's/weather-forecast.*$//')"hourly-weather-forecast/"$last_number"?day=1
w3m -dump_source "$hourly_addr1" -o accept_encoding='identity;q=0' > $HOME/1_accuweather/hourly_raw1
w3m -dump_source "$hourly_addr2" -o accept_encoding='identity;q=0' > $HOME/1_accuweather/hourly_raw2
if [[ -s $HOME/1_accuweather/hourly_raw1 && -s $HOME/1_accuweather/hourly_raw2 ]]; then
sed -i '/var hourlyForecast/!d' $HOME/1_accuweather/hourly_raw1
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/1_accuweather/hourly_raw1
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/1_accuweather/hourly_raw1
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/1_accuweather/hourly_raw1
sed -i '/var hourlyForecast/!d' $HOME/1_accuweather/hourly_raw2
sed -i -e 's/var hourlyForecast = \[//' -e 's/","\|":"/\n/g' $HOME/1_accuweather/hourly_raw2
sed -i -e 's/°.*ceiling/\nceiling/g' -e 's/{"extended":{"//' -e 's/":{"category//g' $HOME/1_accuweather/hourly_raw2
sed -i -e 's/":\|},"/\n/g' -e 's/,"localDate/\nlocaldate/g' -e 's/"}];//g' -e 's/°//g' -e 's/ km\/h\| mph//g' $HOME/1_accuweather/hourly_raw2
cat $HOME/1_accuweather/hourly_raw1 $HOME/1_accuweather/hourly_raw2 > $HOME/1_accuweather/hourly
sed -i '961,$d' $HOME/1_accuweather/hourly
for (( i=28; i<=948; i+=40 ))
do
image=$(sed -n "${i}"p $HOME/1_accuweather/hourly)
echo $(test_image $image) >> $HOME/1_accuweather/hourly
done
if [[ $hourly0 == 0 ]]; then
j=1
for (( i=28; i<=948; i+=40 ))
do
if [[ $hourly2015 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2015/$(sed -n ${i}p $HOME/1_accuweather/hourly).png $HOME/1_accuweather/hourly_2015/hourly_$j.png
fi
if [[ $hourly2016 == 1 ]]; then
cp $HOME/1_accuweather/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather/hourly).png $HOME/1_accuweather/hourly_2016/hourly_$j.png
fi
((j++))
done
fi
fi
# Full info, next 24h - altogether24 file
rm $HOME/1_accuweather/{altogether24,altogether24_2015,altogether24_2016}
#TIME
echo "\${color1}TIME\${goto 100}$(sed -n 32p $HOME/1_accuweather/hourly)" > $HOME/1_accuweather/altogether24
jump_to=160
for (( i=72; i<=472; i+=40 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=512; i<=952; i+=40 ))
do
time=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "1s/$/\${goto $jump_to}$time/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
sed -i '1s/$/\n\n\n/' $HOME/1_accuweather/altogether24
#FORECAST
echo "\${color1}FORECAST\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly|awk '{print $1}'|cut -c1-8)
sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
sed -i '5s/$/\n/' $HOME/1_accuweather/altogether24
jump_to=100
for (( i=34; i<=474; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=514; i<=954; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly|awk '{print $2}'|cut -c1-8)
sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#TEMPERATURE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "TEMPER.\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=40; i<=480; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=520; i<=960; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#REAL FEEL
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "REAL FEEL\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=38; i<=478; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=518; i<=958; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#WIND
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "WIND\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=24; i<=464; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=504; i<=944; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#RAIN
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "RAIN\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=14; i<=454; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=494; i<=934; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#SNOW
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "SNOW\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=16; i<=456; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=496; i<=936; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#ICE
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "ICE\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=12; i<=452; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=492; i<=932; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#UV INDEX
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "UV INDEX\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=20; i<=460; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=500; i<=940; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#CLOUD COVER
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "CLOUD COV.\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=4; i<=444; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=484; i<=924; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#HUMIDITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "HUMIDITY\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=10; i<=450; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=490; i<=930; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "24s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#DEW POINT
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "DEW POINT\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=6; i<=446; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=486; i<=926; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "26s/$/\${goto $jump_to}$messg°/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#VISIBILITY
echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/1_accuweather/altogether24
echo "VISIBILITY\${color}" >> $HOME/1_accuweather/altogether24
jump_to=100
for (( i=22; i<=462; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=502; i<=942; i+=40 ))
do
messg=$(sed -n ${i}p $HOME/1_accuweather/hourly)
sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
#IMAGES
if [[ $hourly0 == 0 ]]; then
if [[ $hourly2015 == 1 ]]; then
jump_to=75
cp $HOME/1_accuweather/altogether24 $HOME/1_accuweather/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
jump_to=85
cp $HOME/1_accuweather/altogether24 $HOME/1_accuweather/altogether24_2016
fi
rm $HOME/1_accuweather/altogether24
hours=$((12+$h_24hours*12))
for (( i=1; i<=$hours; i+=1 ))
do
if [[ $hourly2015 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/1_accuweather\/hourly_2015\/hourly_$i.png -s 60x36 -p $jump_to,49}/" $HOME/1_accuweather/altogether24_2015
fi
if [[ $hourly2016 == 1 ]]; then
sed -i "4s/$/\${image \$HOME\/1_accuweather\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/1_accuweather/altogether24_2016
fi
((jump_to+=60))
done
fi
#CONKYFONT
if [[ $hourly0 == 1 ]]; then
sed -i '4s/$/\${color}\${font conkyweather:size=35}/' $HOME/1_accuweather/altogether24
jump_to=95
for (( i=961; i<=972; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/1_accuweather/hourly)/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
if [[ $h_24hours == 1 ]]; then
for (( i=973; i<=984; i+=1 ))
do
sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/1_accuweather/hourly)/" $HOME/1_accuweather/altogether24
((jump_to+=60))
done
fi
sed -i '4s/$/\${font}/' $HOME/1_accuweather/altogether24
sed -i '2,3d' $HOME/1_accuweather/altogether24
fi
#DELETE UNWANTED VARIABLES
if [[ $h_real == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '7,8s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_wind == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '9,10s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_rain == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '11,12s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_snow == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '13,14s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_ice == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '15,16s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_uv == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '17,18s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_cloud == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '19,20s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_humid == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '21,22s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_dew == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '23,24s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
if [[ $h_visib == 0 ]]; then
if [[ $hourly0 == 1 ]]; then
sed -i '25,26s/^.*$/VOID/' $HOME/1_accuweather/altogether24
elif [[ $hourly2015 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2015
elif [[ $hourly2016 == 1 ]]; then
sed -i '27,28s/^.*$/VOID/' $HOME/1_accuweather/altogether24_2016
fi
fi
sed -i '/VOID/d' $HOME/1_accuweather/{altogether24,altogether24_2015,altogether24_2016}
#### Alerts ####
lynx --source -accept_all_cookies > $HOME/2b_Wunderground_API/Alertes http://www.accuweather.com/fr/fr/sarreguemines/135050/weather-forecast/135050
sed -i 's/\r//' $HOME/1_accuweather/Alertes
message1=$(sed -n '/<span>Perspectives<\/span>/ { n;p; }' $HOME/1_accuweather/Alertes)
message2=$(sed -n '/^[ \t]*<em>.*<\/em>$/p' $HOME/1_accuweather/Alertes)
echo $message1 > $HOME/1_accuweather/Alertes
echo $message2 >> $HOME/1_accuweather/Alertes
sed -i -e 's/<p>//' -e 's/<\/p>.*$//' -e 's/<em>//' -e 's/<\/em>//' $HOME/1_accuweather/Alertes
char_1rst_line=$(sed -n 1p $HOME/1_accuweather/Alertes|wc -c)
if (( $char_1rst_line <= 1 )); then
sed -i '1s/^$/RAS/' $HOME/1_accuweather/Alertes
fi
char_2nd_line=$(sed -n 2p $HOME/1_accuweather/Alertes|wc -c)
if (( $char_2nd_line <= 1 )); then
sed -i '2s/^$/RAS/' $HOME/1_accuweather/Alertes
fi
fi
#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"
Last edited by loutch (2019-08-31 08:44:30)
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
Ah, talking about lost in translation...
In that case use awk instead of sed:
${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond | awk '{ print $2 }' > $HOME/1_accuweather/vent}
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Workkkkkkkkkkkk
many tanks
@+
Last edited by loutch (2019-08-31 08:59:14)
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
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
You can in fact use only awk if you want to
${execi 90 awk 'FNR==6 { print $2 }' $HOME/1_accuweather/curr_cond > $HOME/1_accuweather/vent}
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Okay
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
Théo i have another problem
i ad this line for daily_forecast
sed -i -e 's/\ê/ê/g' -e 's/\é/é/g' -e 's/\ô/ô/g' -e 's/\è/è/g' -e 's/\'/'"'"'/g' $HOME/1_accuweather/daily_forecast
because i have this
l\u0027après-midi
that must be this
l'après-midi
i try more things but nothing work
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
@Teo
I only read back a few pages, as my 6yo is bugging me to play a game with her... as usual...lol
But I think it's a great idea to use github/gitlab. I've been using both for a long time now to handle my android dev projects... But the down fall is, when you change your location in the sccript, git will pick up that the repo has changed. If it is not committed, then you can run in to errors using git pull, i.e. detaching from ~HEAD, mis-merges, and failing the even execute git pull. A simpel solution to that is replace the address location line to a script that calls a file that allows the user to modify without breaking the repo. Much like .conkyrc calls the weather script.
For the users that have knowledge/experience with git, we could fork your repo, commit our changes to our own repo then use git pull or even git cherry-pick option to keep pulling updates. But again, that is based on the premise that everyone knows how to use git commands.
So again, I think using a commands to call the location from another file that is local to the users machine would probably be the better solution.
Great work though!
On another note, I'm rewriting my conkyrc to sed the correct lines and I no longer have low/high temps, or atleast the output isn't pulling them correctly.
I like for mine to show as:
icon day: low/high
Sunny (or whatever it's suppose to be on that day.
But looking at the daily_forecast output, it's only showing the high and reel feel temps.
8/31
dateTime
2019-08-31T07:00:00-05:00
day
dTemp
96
icon
3
phrase
Partly sunny
longPhrase
Partly sunny
precip
25%
realFeel
106
temp
96.0
dow
Sat
lDOW
Saturday
lDate
August 31
night
dTemp
74
icon
34
phrase
Mainly clear
longPhrase
Mainly clear
precip
25%
realFeel
79
temp
74.0
date
https://drive.google.com/open?id=1c2GLb … MJXVJD_ncU
accuweather web page show a high/lo
Last edited by seatommyboy (2019-08-31 14:21:49)
Offline
Dear friends, here's the "conky-wu-rotary-phone-hours" Teo helped me to find the name
![]()
It's well pass with differents light backgrounds wall:
NOW That is awesome. KUDOS ragamatrix!
@ Teo, love the name - ragamatrix always creates beauty.
When the new BL come in here It will have conky v1.10 and I will be keeping a version of BL "OOTB" to aid with questions etc. This conky will become a part of that install.
Meantime I grab is and wrap it up in Cv1.9.
SUPER work ragamatrix!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Another "classic" beauty.
Nice conversion loutch
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@loutch
Try escaping the semicolon (;) as well.
@seatommyboy
Thanks for the suggestion. Maybe in the future; baby steps for the time being.
As for the high/low temp values, you have to go to the night section of the specific date to find the low value.
@S11
I completely agree with you, ragamatrix's is an awesome configuration.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@ Théo
great MASTER
it work
sed -i -e 's/\ê/ê/g' -e 's/\é/é/g' -e 's/\ô/ô/g' -e 's/\è/è/g' -e 's/\\u0027/'"'"'/g' $HOME/1_accuweather/daily_forecast
Last edited by loutch (2019-08-31 14:54:09)
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
But you didn't escape the semicolon.
What I meant was
sed -i -e 's/\ê\;/ê/g' -e 's/\é\;/é/g' -e 's/\ô\;/ô/g' -e 's/\è\;/è/g' -e 's/\\u0027/'"'"'/g' $HOME/1_accuweather/daily_forecast
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@seatommyboy
Thanks for the suggestion. Maybe in the future; baby steps for the time being.
As for the high/low temp values, you have to go to the night section of the specific date to find the low value.
got it sorted... thanks! working on a script for you now...
https://drive.google.com/open?id=1R20lf … NlBfwGtXbV
Last edited by seatommyboy (2019-08-31 20:09:43)
Offline
But you didn't escape the semicolon.
What I meant wassed -i -e 's/\ê\;/ê/g' -e 's/\é\;/é/g' -e 's/\ô\;/ô/g' -e 's/\è\;/è/g' -e 's/\\u0027/'"'"'/g' $HOME/1_accuweather/daily_forecast
yes not everywhere just here
-e 's/\\u0027/'"'"'/g'
the rest work great i have é è
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