You are not logged in.

#2676 2019-08-30 07:51:59

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

ohnonot wrote:

Feel free to look at my own git repos, maybe esp. my weather conky.

Thanks ohnonot, I appreciate it.

Found some info on the execpi issue
https://github.com/brndnmtthws/conky/issues/870
Fortunately it's been labeled as a bug, which means that it is going to be addressed in the future (let's at least hope).
We'll see...


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

#2677 2019-08-30 11:18:06

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

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

@ Théo

I permice me to ad any wind direction icon .

ATTENTION IS IN FRENCH

here the section in 1_accuweather script



# 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

in hour conkyrc you must ad this to make vent file


${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond |cut -c10-14 > $HOME/1_accuweather/vent}

& don't forget to ad any wind_icon folder

1567170079.png


1567163643.png

Last edited by loutch (2019-08-31 07:44:11)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2678 2019-08-30 13:22:47

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

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

Dear friends, here's the "conky-wu-rotary-phone-hours" Teo helped me to find the name  cool
It's well pass with differents light backgrounds wall:
2019-08-30-15-09-30_scrot.th.png2019-08-30-15-14-35_scrot.th.png2019-08-30-15-13-02_scrot.th.png
It was a nightmare with ${voffset values}
conky-wu-rotary-phone-hours:

conky.config = {
-- Create own window instead of using desktop (required in nautilus)
	own_window = true,
	own_window_type = 'normal',
	--own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
	own_window_argb_visual = true,
	own_window_argb_value = 0,
-- Use double buffering (reduces flicker, may not work for everyone)
	double_buffer = true,
	text_buffer_size = 2048,
-- fiddle with window
	use_spacer = 'none',
	use_xft = true,
	background = true,
-- Update interval in seconds
	update_interval = 1,
	cpu_avg_samples = 2,
	net_avg_samples = 2,
-- Minimum size of text area
	minimum_width = 400, minimum_height = 400,
	maximum_width = 400,

	override_utf8_locale = true,

-- Draw shades?
	draw_shades = false,
	default_shade_color = '#000000',
	draw_outline = true,
	default_outline_color = '#000000',
-- Text stuff
	draw_outline = true,-- amplifies text if yes
	draw_borders = false,
--font freesans -12
	--fonts tests:
--JD LCD Rounded:style=Bold
--LCDMono2
--Lucida Sans
--Neogrey
--PF Tempesta Five Condensed
--PF Tempesta Five Compressed
--Visitor TT1 BRK:Medium:size=9
--Anonymous Pro:Medium:size=8
--Terminus
--Fira Mono
	font = 'Fira Mono:size=10', --important for shades
	template0 = 'Fira Mono:size=11',
	template1 = 'Fira Mono:size=11',

	uppercase = false,-- set to yes if you want all text to be in uppercase

-- Stippled borders?
	stippled_borders = 3,

--border_inner_margin = '9',
-- border width
	border_width = 10,

-- Default colors and also border colors, grey90 == #e5e5e5
	--default_color = '#cbcbcb',
	--color1  = '#505454', 
	--own_window_colour = 'brown',
	--own_window_transparent = true,
-- color
	default_color = 'cbcbcb',
	color0 = '98FB98', --PaleGreen
	color1 = '778899', --LightSlateGray
	color2 = 'FFD700', --Gold
	color3 = 'B0E0E6', --PowderBlue
	color4 = 'F4A460', --SandyBrown
	color5 = 'DEB887', --BurlyWood
	color6 = '00BFFF', --DeepSkyBlue 8ED1E9
	color7 = '5F9EA0', --CadetBlue
	color8 = 'FFA500', --Orange
	color9 = 'FF4500', --OrangeRed
	

-- Text alignment, other possible values are commented
--alignment top_right
--alignment top_left
	alignment = 'top_left',
--alignment bottom_left
--alignment bottom_right

-- Gap between borders of screen and text
	gap_x = 30,
	gap_y = 50,

	imlib_cache_size = 0,
-- script lua	
	lua_load = '~/.conky/script/image.lua',
--[[
#${lua conky_draw_bg 4 0 0 0 155 0x000000 0.3}\
#${lua conky_draw_bg 4 0 165 0 50 0x000000 0.3}\
#${lua conky_draw_bg 4 0 225 0 65 0x000000 0.3}\
#${lua conky_draw_bg 4 0 0 0 290 0x000000 0.4}\
--]]
};

conky.text = [[
${lua fDrawImage $HOME/2_Wunderground/BG-Imagemagick.png 0 0 422 422}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/Moon_phase.png 190 265 40 40}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/current.png 170 110 75 75}
${execi 600 bash $HOME/2_Wunderground/2_wun}\
${voffset -35}${goto 200}${execi 600 echo `date --date "1 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 188}${execpi 600  sed -n '110p' $HOME/2_Wunderground/10days}°|${color8}${goto 220}${execpi 600 sed -n '112p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/2.png 197 42 30 30}\
${voffset -17}${goto 295}${execi 600 echo `date --date "2 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 17}${color3}${goto 283}${execi 600  sed -n '208p' $HOME/2_Wunderground/10days}°|${color8}${goto 315}${execi 600  sed -n '210p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/3.png 297 75 30 30}\
${voffset 20}${goto 140}${execpi 600 sed -n '88p' $HOME/2_Wunderground/curr_cond|cut -c1-20}\
${font Fira Mono:Style=Bold:size=15}${voffset 20}${goto 140}${if_match ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}<5}°${color lightblue}${blink ${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°}${else}${color orange}${execpi 600 sed -n '52p' $HOME/2_Wunderground/curr_cond}°${endif}${font}${color}\
${goto 230}Wind ${execpi 600 sed -n '82p' $HOME/2_Wunderground/curr_cond} \
${voffset 17}${goto 130}± ${execpi 600 sed -n '58p' $HOME/2_Wunderground/curr_cond}°\
${goto 230}${execpi 600 sed -n '86p' $HOME/2_Wunderground/curr_cond} km/h
${goto 115}${execpi 600 sed -n '22p' $HOME/2_Wunderground/curr_cond} mm Prec\
${goto 230}${execpi 600 sed -n '36p' $HOME/2_Wunderground/curr_cond} % Hum

##--bloc heures##
${voffset -15}${color6}${goto 115}${execi 600 echo `date --date "2 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 165}${execi 600 echo `date --date "4 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 215}${execi 600 echo `date --date "6 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${goto 265}${execi 600 echo `date --date "8 hour" +%H:%M|sed -e 's/\(.\{1\}\)/\U\1/'`}${color}\
${voffset 33}${color8}${goto 125}${execpi 600  sed -n '80p' $HOME/2_Wunderground/hourly}°\
${goto 175}${execi 600  sed -n '226p' $HOME/2_Wunderground/hourly}°\
${goto 225}${execi 600  sed -n '372p' $HOME/2_Wunderground/hourly}°\
${goto 275}${execi 600  sed -n '518p' $HOME/2_Wunderground/hourly}°${color}\
${voffset 45}${goto 190}${font Open Sans:size=7}${execpi 600 sed -n '1p' $HOME/2_Wunderground/moon_data}${font}
${voffset 10}${font :size=7}${goto 80}UV Index: ${execpi 600 sed -n '72p' $HOME/2_Wunderground/curr_cond}
${goto 100}${execpi 600 sed -n '30p' $HOME/2_Wunderground/curr_cond} mb
${goto 120}Sunrise: ${color8}${execpi 600 sed -n '44p' $HOME/2_Wunderground/curr_cond|cut -c1-5} 
${goto 140}${color}Sunset: ${color1}${execpi 600 sed -n '48p' $HOME/2_Wunderground/curr_cond|cut -c1-5}${font}${color}

${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h2.png 123 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h4.png 173 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h6.png 223 225 30 30}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/h8.png 273 225 30 30}${color}
##-fin-bloc heures#
${voffset -310}${goto 350}${execi 600 echo `date --date "3 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 335}${execi 600  sed -n '306p' $HOME/2_Wunderground/10days}°|${color8}${goto 368}${execi 600  sed -n '308p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/4.png 347 167 30 30}\
${voffset 49}${goto 332}${execi 600 echo `date --date "4 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}
${voffset 18}${color3}${goto 315}${execi 600  sed -n '404p' $HOME/2_Wunderground/10days}°|${color8}${goto 348}${execi 600  sed -n '406p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/5.png 330 265 30 30}\
${voffset 13}${goto 250}${execi 600 echo `date --date "5 day" +%a|sed -e 's/\(.\{1\}\)/\U\1/'`}\
${voffset 35}${color3}${goto 238}${execi 600  sed -n '502p' $HOME/2_Wunderground/10days}°|${color8}${goto 270}${execi 600  sed -n '504p' $HOME/2_Wunderground/10days}°${color}
${lua fDrawImage $HOME/2_Wunderground/Forecast_Images/6.png 247 333 30 30}\

]];

The bg:
BG-Imagemagick.th.png

Last edited by ragamatrix (2019-08-30 13:27:31)

Offline

#2679 2019-08-31 06:38:24

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

@loutch
Very beautiful my friend, congrats!!!

@ragamatrix
I'm speechless!!! That's a thing of beauty! This one almost tempted me to install conky-lua (almost).


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

#2680 2019-08-31 07:48:45

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

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

Hello

This mornig that don't work because in the first line in vent file sometime there is a space before the wind direction, you must make a change in accuweather script

"N" no space
" ENE" space

etc ....

Last edited by loutch (2019-08-31 07:50:42)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2681 2019-08-31 08:01:49

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

Is it in the hourly file?


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

#2682 2019-08-31 08:19:23

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

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

no in vent file

i use this to create it

${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond |cut -c10-14 > $HOME/1_accuweather/vent}

Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2683 2019-08-31 08:26:33

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

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

#2684 2019-08-31 08:28:00

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

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

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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2685 2019-08-31 08:40:15

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

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

#2686 2019-08-31 08:41:16

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

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

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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2687 2019-08-31 08:42:42

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

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

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/\&#234;/ê/g' -e 's/\&#233;/é/g' -e 's/\&#244;/ô/g' -e 's/\&#232;/è/g' -e 's/\&#39;/'"'"'/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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2688 2019-08-31 08:47:25

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

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

#2689 2019-08-31 08:55:33

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

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

Workkkkkkkkkkkk

many tanks

@+

Last edited by loutch (2019-08-31 08:59:14)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2690 2019-08-31 09:11:26

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

wink


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

#2691 2019-08-31 09:13:39

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

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

1567242849.png


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2692 2019-08-31 09:27:00

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

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

#2693 2019-08-31 13:43:57

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

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

Okay


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2694 2019-08-31 13:47:18

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

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

Théo i have another problem

i ad this line for daily_forecast

sed -i -e 's/\&#234;/ê/g' -e 's/\&#233;/é/g' -e 's/\&#244;/ô/g' -e 's/\&#232;/è/g' -e 's/\&#39;/'"'"'/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 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2695 2019-08-31 13:52:06

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

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

@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

#2696 2019-08-31 14:07:51

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,667

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

ragamatrix wrote:

Dear friends, here's the "conky-wu-rotary-phone-hours" Teo helped me to find the name  cool
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!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: sector11 Kernel: 4.9.0-11-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 dm: lightdm Distro: BunsenLabs GNU/Linux 9.6 (Helium)

Online

#2697 2019-08-31 14:10:02

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,667

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

Another "classic" beauty.
Nice conversion loutch


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: sector11 Kernel: 4.9.0-11-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 dm: lightdm Distro: BunsenLabs GNU/Linux 9.6 (Helium)

Online

#2698 2019-08-31 14:25:47

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

@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

#2699 2019-08-31 14:53:50

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

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

@ Théo

great MASTER

it work

sed -i -e 's/\&#234;/ê/g' -e 's/\&#233;/é/g' -e 's/\&#244;/ô/g' -e 's/\&#232;/è/g' -e 's/\\u0027/'"'"'/g' $HOME/1_accuweather/daily_forecast

Last edited by loutch (2019-08-31 14:54:09)


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Offline

#2700 2019-08-31 15:25:14

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,172

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

But you didn't escape the semicolon.
What I meant was

sed -i -e 's/\&#234\;/ê/g' -e 's/\&#233\;/é/g' -e 's/\&#244\;/ô/g' -e 's/\&#232\;/è/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

Board footer

Powered by FluxBB