You are not logged in.

#4041 2022-02-18 22:09:14

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Yeah, I can see it myself now.
That´s the good news, the bad news is that it´s gonna take a while, since my schedule is a bit... hectic, to say it politely.
Sorry guys.


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

#4042 2022-02-19 00:05:26

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

162 pages into this thread and you say sorry guys.

Teo, you have nothing to be sorry about.
You've been a rock here.
Your situation has improved and you have to look after you.

Thank you.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4043 2022-02-19 13:13:52

saltasatelites
Member
Registered: 2016-09-10
Posts: 19

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

Teo take all the time you need. You're a real conky hero.

Offline

#4044 2022-02-20 12:41:18

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

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

I have been observing for two days that correct data is provided after CET 19:00. These are then from the script also correctly included in curr_cond and daily_forecast.
hourly, I have not yet checked.

Can anyone else confirm this?

Offline

#4045 2022-02-20 14:26:11

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

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

curr_cond - ok
daily_forecast - ok
hourly - data needs to be adjusted and sorted

accuweather_conkyrc_en_test

conky.config = {

--[[

-- # -- Conky start -- #
sh -c "cd $HOME/Accuweather_conky_script && sleep 2 && conky -c ./accuweather_conkyrc_en_test"
cd $HOME/Accuweather_conky_script && conky -p 2 -c ./accuweather_conkyrc_en_test


sh -c "sleep 2 && conky -c /home/ilia/.conkyrc1 && conky -c /home/ilia/.conkyrc2"#
sh -c "sleep 2 && conky -c /home/ilia/conkyrc"#

]]--
	background = true,
	update_interval = 2,
--	update_interval_on_battery = 15,
	cpu_avg_samples = 2,
	net_avg_samples = 2,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	max_user_text = 40000,
	text_buffer_size = 8096,
	imlib_cache_size = 0,

--    # -- Window specifications -- #
--###ubuntu 1804 unity
--
	own_window = true,
--	own_window_class = 'Conky',

--
	own_window_type = 'normal',

--
	own_window_argb_visual = true,
--
	own_window_argb_value = 190,

--	own_window_transparent = true,

--
	own_window_transparent = false,
--
	own_window_colour = '000000',

--
	own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',


--    border_inner_margin = 0,
--    border_outer_margin = 0,

--    #Minimum size of text area
	minimum_width = 400, minimum_height = 0,
	maximum_width = 400,
    
--    # Text alignment, other possible values are commented
--
	alignment = 'top_left',
--	alignment = 'top_right',
--	alignment = 'bottom_left',
--	alignment = 'bottom_right',

--    # Gap between borders of screen and text
--    # same thing as passing -x at command line
     gap_x = 480,   --### left &right
     gap_y = 40,   --### up & down

--    # -- Graphics settings -- #
    draw_shades = false,
--    draw_outline = false,
--    draw_graph_borders = true,

--
    draw_borders = false,
--    draw_borders = true,
    stippled_borders = 1,
    border_width = 1,


--    # -- 'Text' settings -- #
	use_xft = true,
--	font = 'MaiandraGD:size=10',
--	font = 'Liberation Mono:size=10',
--	font = 'Ubuntu:size=10',
--
	font = 'Arial:size=10',
	xftalpha = 0.9,

	short_units = true,
	temperature_unit = 'celsius',
	top_name_width = 20,


	uppercase = false,

	default_color = 'f0f0f0',
--   # colors
--	color1 = '778899',--LightSlateGrey
--
	color1 = 'FFDEAD',--NavajoWhite
	color2 = '6892C6',--LightBlue
	color3 = 'FC8820',--Orange
	color4 = '78BF39',--Green
	color5 = 'FFDEAD',--NavajoWhite
	color6 = 'EBE651',--Deep Yellow
	color7 = '697AFF',--Ice Blue
	color8 = '29CC29',--Pale Dark Green
	color9 = '6ECBF5',--Ubuntu Studio Color

--   Lua load --
--

--	lua_load = './bg.lua',



};

conky.text = [[
#
${execi 1800 bash $HOME/Accuweather_conky_script/accuweather_test -f2016 -f2015 -h2016 -h2015}#
#
${execi 3600 bash $HOME/Moongiant_conky_script/moongiant}#
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0,7}#
#
${color1}${font Arial:size=12} ${execi 60 sed -n '1p' $HOME/Accuweather_conky_script/location | awk '{print $1,$2,$3,$4}'} ${hr 2}$color
#
#image png####################now
#${image $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png -p 5,15 -s 140x140}#
#
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png -p 5,15 -s 140x140}#
#
${image $HOME/Moongiant_conky_script/0.png -p 325,45 -s 70x70}#
#
${image $HOME/Accuweather_conky_script/forecast_2016/wind_0.png -p 130,150 -s 50x50}#
#weatherfont####################now
#${goto 30}${voffset 1}${font conkyweather:size=100}${execi 60  sed -n '22p' $HOME/Accuweather_conky_script/curr_cond}${font}${voffset -90}${font Moon Phases:size=46}${goto 330}${execi 60  sed -n '17p' /tmp/4_Moon/moon_today | awk '{print $1}'}${font}${voffset -75}#
#${voffset 140}${color1}${font conkywindNESW:size=40}${goto 130}${execi 60  sed -n '27p' $HOME/Accuweather_conky_script/curr_cond}${font}${voffset -170}${color}#
##################################
${goto 200}${font Arial:size=12}${execi 60 sed -n '4p' $HOME/Accuweather_conky_script/curr_cond | awk '{print $1}'}
#
${goto 200}${execi 60 sed -n '4p' $HOME/Accuweather_conky_script/curr_cond | awk '{print $2,$3}'}

${font Arial:size=20}${goto 200}${execi 60 sed -n '2p' $HOME/Accuweather_conky_script/curr_cond}° ${font Arial:size=15}(${execi 60 sed -n '3p' $HOME/Accuweather_conky_script/curr_cond}°)$font

${goto 200}Moon: ${execi 60 sed -n '11p' $HOME/Moongiant_conky_script/raw | awk '{print $1,$2}'}

${color1}Max / Min:$color ${execi 60 sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast}° / ${execi 60 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}°${goto 200}${color1}Hymidity:$color ${execi 60 sed -n '7p' $HOME/Accuweather_conky_script/curr_cond}
${color1}Wind:$color ${execi 60 sed -n '5p' $HOME/Accuweather_conky_script/curr_cond} ${execi 60 sed -n '6p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}${color1}Press.:$color ${execi 60 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond} ${execi 60 sed -n '8p' $HOME/Accuweather_conky_script/curr_cond | tr -cd "[:graph:]" | awk '{print ($1*0.7500637-12)}' | cut -c -3 }mmHg
${color1}UV index:$color ${execi 60 sed -n '9p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}${color1}Visibility:$color ${execi 60 sed -n '13p' $HOME/Accuweather_conky_script/curr_cond}
${color1}Sun Rise:$color ${execi 60 sed -n '14p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}${color1}Moon Rise :$color ${execi 60 sed -n '18p' $HOME/Accuweather_conky_script/curr_cond}
${color1}Sun Set:$color ${execi 60 sed -n '15p' $HOME/Accuweather_conky_script/curr_cond}${goto 200}${color1}Moon Set :$color ${execi 60 sed -n '19p' $HOME/Accuweather_conky_script/curr_cond}
#
${voffset -1}${color1}${font Arial:size=12} 10 Days ${hr 2}
##########
#
${font Arial:size=11}${execi 60 sed -n '1p' $HOME/Accuweather_conky_script/daily_forecast|awk '{ print $3,$1,$2 }'}${goto 200}${execi 60 sed -n '8p' $HOME/Accuweather_conky_script/daily_forecast|awk '{ print $3,$1,$2 }'} $font $color#


${goto 130}${execi 60 sed -n '4p' $HOME/Accuweather_conky_script/daily_forecast}${goto 340}${execi 60 sed -n '11p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 130}${execi 60 sed -n '5p' $HOME/Accuweather_conky_script/daily_forecast}${goto 340}${execi 60 sed -n '12p' $HOME/Accuweather_conky_script/daily_forecast}
#image png 2015####################1-2days
#${image $HOME/Accuweather_conky_script/forecast_2015/forecast_1.png -p 10,260 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_2.png -p 210,260 -s 80x80}#
#image png 2016####################1-2days
#
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_1.png -p 10,260 -s 80x80}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_2.png -p 210,260 -s 80x80}#
#weatherfont####################1-2days
#${voffset -42}${font conkyweather:size=45}${goto 10}${execi 60  sed -n '106p' $HOME/Accuweather_conky_script/daily_forecast} ${goto 210}${execi 60  sed -n '107p' $HOME/Accuweather_conky_script/daily_forecast}${font}${voffset -10}#

#
${voffset 4}${font Arial:size=10}${scroll wait 24 8 ${execi 60 sed -n '6p' $HOME/Accuweather_conky_script/daily_forecast}}${goto 200}${scroll wait 24 8 ${execi 60 sed -n '13p' $HOME/Accuweather_conky_script/daily_forecast}}${voffset -2}
${color1}${hr 1}
${font}${execi 60 sed -n '15p' $HOME/Accuweather_conky_script/daily_forecast}${goto 150}${execi 60 sed -n '22p' $HOME/Accuweather_conky_script/daily_forecast}${goto 280}${execi 60 sed -n '29p' $HOME/Accuweather_conky_script/daily_forecast}
#image png 2015####################3-5days
#${image $HOME/Accuweather_conky_script/forecast_2015/forecast_3.png -p 10,380 -s 60x60}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_4.png -p 140,380 -s 60x60}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_5.png -p 270,380 -s 60x60}#
#image png 2016####################3-5days
#
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_3.png -p 10,380 -s 60x60}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_4.png -p 140,380 -s 60x60}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_5.png -p 270,380 -s 60x60}#
#weatherfont####################3-5days
#${voffset 2}${color}${font conkyweather:size=36}${goto 10}${execi 60  sed -n '108p' $HOME/Accuweather_conky_script/daily_forecast} ${goto 160}${execi 60  sed -n '109p' $HOME/Accuweather_conky_script/daily_forecast}${goto 290}${execi 60  sed -n '110p' $HOME/Accuweather_conky_script/daily_forecast}${font}${voffset -32}#

${font Arial:size=7}${color}${goto 110}${execi 60 sed -n '18p' $HOME/Accuweather_conky_script/daily_forecast}${goto 240}${execi 60 sed -n '25p' $HOME/Accuweather_conky_script/daily_forecast}${goto 370}${execi 60 sed -n '32p' $HOME/Accuweather_conky_script/daily_forecast}
${goto 110}${execi 60 sed -n '19p' $HOME/Accuweather_conky_script/daily_forecast}${goto 240}${execi 60 sed -n '26p' $HOME/Accuweather_conky_script/daily_forecast}${goto 370}${execi 60 sed -n '33p' $HOME/Accuweather_conky_script/daily_forecast}


#
${voffset -4}${font Arial:size=8}${scroll wait 18 8 ${execi 60 sed -n '20p' $HOME/Accuweather_conky_script/daily_forecast}}${goto 150}${scroll wait 18 8 ${execi 60 sed -n '27p' $HOME/Accuweather_conky_script/daily_forecast}}${goto 280}${scroll wait 18 8 ${execi 60 sed -n '34p' $HOME/Accuweather_conky_script/daily_forecast}}${voffset -6}
${color1}${hr 1}
${font Arial:size=8}${color1}${goto 25}${execi 60 sed -n '36p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}${goto 90}${execi 60 sed -n '43p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}${goto 155}${execi 60 sed -n '50p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}${goto 220}${execi 60 sed -n '57p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}${goto 285}${execi 60 sed -n '64p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}${goto 350}${execi 60 sed -n '71p' $HOME/Accuweather_conky_script/daily_forecast|cut -c1-10}
#image png 2015####################6-11days
#${image $HOME/Accuweather_conky_script/forecast_2015/forecast_6.png -p 10,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_7.png -p 75,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_8.png -p 140,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_9.png -p 205,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_10.png -p 270,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2015/forecast_11.png -p 335,470 -s 40x40}#
#image png 2016####################6-11days
#
${image $HOME/Accuweather_conky_script/forecast_2016/forecast_6.png -p 10,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_7.png -p 75,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_8.png -p 140,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_9.png -p 205,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_10.png -p 270,470 -s 40x40}${image $HOME/Accuweather_conky_script/forecast_2016/forecast_11.png -p 335,470 -s 40x40}#
#weatherfont####################6-11days
#${voffset 5}${color}${font conkyweather:size=30}${goto 15}${execi 60  sed -n '111p' $HOME/Accuweather_conky_script/daily_forecast} ${goto 80}${execi 60  sed -n '112p' $HOME/Accuweather_conky_script/daily_forecast}${goto 145}${execi 60  sed -n '113p' $HOME/Accuweather_conky_script/daily_forecast}${goto 210}${execi 60  sed -n '114p' $HOME/Accuweather_conky_script/daily_forecast}${goto 275}${execi 60  sed -n '115p' $HOME/Accuweather_conky_script/daily_forecast}${goto 340}${execi 60  sed -n '116p' $HOME/Accuweather_conky_script/daily_forecast}${font}${voffset -35}#



${color}${goto 20}${font Arial:size=8}${execi 60 sed -n '39p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '40p' $HOME/Accuweather_conky_script/daily_forecast}${goto 85}${execi 60 sed -n '46p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '47p' $HOME/Accuweather_conky_script/daily_forecast}${goto 150}${execi 60 sed -n '53p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '54p' $HOME/Accuweather_conky_script/daily_forecast}${goto 215}${execi 60 sed -n '60p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '61p' $HOME/Accuweather_conky_script/daily_forecast}${goto 280}${execi 60 sed -n '67p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '68p' $HOME/Accuweather_conky_script/daily_forecast}${goto 345}${execi 60 sed -n '74p' $HOME/Accuweather_conky_script/daily_forecast}/${execi 60 sed -n '75p' $HOME/Accuweather_conky_script/daily_forecast}
#
################################################################
${voffset -1}${color1}${font Arial:size=12} 18 Hours ${hr 2}
${font Arial:size=8}${goto 25}${execi 60 sed -n '1p' $HOME/Accuweather_conky_script/hourly}${goto 90}${execi 60 sed -n '31p' $HOME/Accuweather_conky_script/hourly}${goto 155}${execi 60 sed -n '61p' $HOME/Accuweather_conky_script/hourly}${goto 220}${execi 60 sed -n '91p' $HOME/Accuweather_conky_script/hourly}${goto 285}${execi 60 sed -n '121p' $HOME/Accuweather_conky_script/hourly}${goto 350}${execi 60 sed -n '151p' $HOME/Accuweather_conky_script/hourly}
#image png 2015####################1-6hourly
#${image $HOME/Accuweather_conky_script/hourly_2015/hourly_1.png -p 15,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_2.png -p 75,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_3.png -p 140,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_4.png -p 205,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_5.png -p 270,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_6.png -p 335,560 -s 40x40}#
#image png 2016####################1-6hourly
#
${image $HOME/Accuweather_conky_script/hourly_2016/hourly_1.png -p 15,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_2.png -p 75,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_3.png -p 140,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_4.png -p 205,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_5.png -p 270,560 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_6.png -p 335,560 -s 40x40}#
#weatherfont####################1-6hourly
#${voffset 1}${font conkyweather:size=22}${goto 15}${color}${execi 60  sed -n '721p' $HOME/Accuweather_conky_script/hourly}${goto 80}${execi 60  sed -n '722p' $HOME/Accuweather_conky_script/hourly}${goto 145}${execi 60  sed -n '723p' $HOME/Accuweather_conky_script/hourly}${goto 210}${execi 60  sed -n '724p' $HOME/Accuweather_conky_script/hourly}${goto 275}${execi 60  sed -n '725p' $HOME/Accuweather_conky_script/hourly}${goto 340}${execi 60  sed -n '726p' $HOME/Accuweather_conky_script/hourly}${font}${color}${voffset -30}#



${color}${goto 30}${execi 60 sed -n '3p' $HOME/Accuweather_conky_script/hourly}${goto 95}${execi 60 sed -n '33p' $HOME/Accuweather_conky_script/hourly}${goto 160}${execi 60 sed -n '63p' $HOME/Accuweather_conky_script/hourly}${goto 225}${execi 60 sed -n '93p' $HOME/Accuweather_conky_script/hourly}${goto 290}${execi 60 sed -n '123p' $HOME/Accuweather_conky_script/hourly}${goto 355}${execi 60 sed -n '153p' $HOME/Accuweather_conky_script/hourly}
################################################################
${voffset 4}${color1}${goto 25}${execi 60 sed -n '181p' $HOME/Accuweather_conky_script/hourly}${goto 90}${execi 60 sed -n '211p' $HOME/Accuweather_conky_script/hourly}${goto 155}${execi 60 sed -n '241p' $HOME/Accuweather_conky_script/hourly}${goto 220}${execi 60 sed -n '271p' $HOME/Accuweather_conky_script/hourly}${goto 285}${execi 60 sed -n '301p' $HOME/Accuweather_conky_script/hourly}${goto 350}${execi 60 sed -n '331p' $HOME/Accuweather_conky_script/hourly}
#image png 2015####################7-12hourly
#${image $HOME/Accuweather_conky_script/hourly_2015/hourly_7.png -p 15,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_8.png -p 75,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_9.png -p 140,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_10.png -p 205,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_11.png -p 270,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_12.png -p 335,630 -s 40x40}#
#image png 2016####################7-12hourly
#
${image $HOME/Accuweather_conky_script/hourly_2016/hourly_7.png -p 15,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_8.png -p 75,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_9.png -p 140,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_10.png -p 205,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_11.png -p 270,630 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_12.png -p 335,630 -s 40x40}#
#weatherfont####################7-12hourly
#${voffset -1}${font conkyweather:size=22}${goto 15}${color}${execi 60  sed -n '727p' $HOME/Accuweather_conky_script/hourly}${goto 80}${execi 60  sed -n '728p' $HOME/Accuweather_conky_script/hourly}${goto 145}${execi 60  sed -n '729p' $HOME/Accuweather_conky_script/hourly}${goto 210}${execi 60  sed -n '730p' $HOME/Accuweather_conky_script/hourly}${goto 275}${execi 60  sed -n '731p' $HOME/Accuweather_conky_script/hourly}${goto 340}${execi 60  sed -n '732p' $HOME/Accuweather_conky_script/hourly}${font}${color}${voffset -30}#
#



${voffset -2}${color}${goto 30}${execi 60 sed -n '183p' $HOME/Accuweather_conky_script/hourly}${goto 95}${execi 60 sed -n '213p' $HOME/Accuweather_conky_script/hourly}${goto 160}${execi 60 sed -n '243p' $HOME/Accuweather_conky_script/hourly}${goto 225}${execi 60 sed -n '273p' $HOME/Accuweather_conky_script/hourly}${goto 290}${execi 60 sed -n '303p' $HOME/Accuweather_conky_script/hourly}${goto 355}${execi 60 sed -n '333p' $HOME/Accuweather_conky_script/hourly}
################################################################
${voffset 4}${color1}${goto 25}${execi 60 sed -n '361p' $HOME/Accuweather_conky_script/hourly}${goto 90}${execi 60 sed -n '391p' $HOME/Accuweather_conky_script/hourly}${goto 155}${execi 60 sed -n '421p' $HOME/Accuweather_conky_script/hourly}${goto 220}${execi 60 sed -n '451p' $HOME/Accuweather_conky_script/hourly}${goto 285}${execi 60 sed -n '481p' $HOME/Accuweather_conky_script/hourly}${goto 350}${execi 60 sed -n '511p' $HOME/Accuweather_conky_script/hourly}
#image png 2015####################13-18hourly
#${image $HOME/Accuweather_conky_script/hourly_2015/hourly_13.png -p 15,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_14.png -p 75,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_15.png -p 140,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_16.png -p 205,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_17.png -p 270,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2015/hourly_18.png -p 335,700 -s 40x40}#
#image png 2016####################13-18hourly
#
${image $HOME/Accuweather_conky_script/hourly_2016/hourly_13.png -p 15,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_14.png -p 75,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_15.png -p 140,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_16.png -p 205,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_17.png -p 270,700 -s 40x40}${image $HOME/Accuweather_conky_script/hourly_2016/hourly_18.png -p 335,700 -s 40x40}#
#weatherfont####################13-18hourly
#${voffset -1}${font conkyweather:size=22}${goto 15}${color}${execi 60  sed -n '733p' $HOME/Accuweather_conky_script/hourly}${goto 80}${execi 60  sed -n '734p' $HOME/Accuweather_conky_script/hourly}${goto 145}${execi 60  sed -n '735p' $HOME/Accuweather_conky_script/hourly}${goto 210}${execi 60  sed -n '736p' $HOME/Accuweather_conky_script/hourly}${goto 275}${execi 60  sed -n '737p' $HOME/Accuweather_conky_script/hourly}${goto 340}${execi 60  sed -n '738p' $HOME/Accuweather_conky_script/hourly}${font}${color}${voffset -30}#
#



${voffset -2}${color}${goto 30}${execi 60 sed -n '363p' $HOME/Accuweather_conky_script/hourly}${goto 95}${execi 60 sed -n '393p' $HOME/Accuweather_conky_script/hourly}${goto 160}${execi 60 sed -n '423p' $HOME/Accuweather_conky_script/hourly}${goto 225}${execi 60 sed -n '453p' $HOME/Accuweather_conky_script/hourly}${goto 290}${execi 60 sed -n '483p' $HOME/Accuweather_conky_script/hourly}${goto 355}${execi 60 sed -n '513p' $HOME/Accuweather_conky_script/hourly}
###########################################################################
${voffset -1}${color1}${hr 1}
#${voffset -3}${color1}${font Liberation Mono:bold:size=8} test ${alignc 2}Updates: ${execi 60 ls -lt $HOME/Accuweather_conky_script/curr_cond | awk '{print $7, $6, $8}'}${font}${color}
#
${voffset -3}${color1}${font Liberation Mono:bold:size=8} test ${alignc 2}Updates: ${execi 60 sed -n '2p' $HOME/Accuweather_conky_script/location} ${alignr 2}${execi 60 ls -lt $HOME/Accuweather_conky_script/curr_cond | awk '{print $7, $6, $8}'} ${font}${color}
${voffset -35}#
]];

accuweather_test

#!/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="https://www.accuweather.com/en/us/new-york/10007/weather-forecast/349727"
#address="https://www.accuweather.com/en/ar/buenos-aires/7894/weather-forecast/7894"
#address="https://www.accuweather.com/en/us/hutto/78634/weather-forecast/2110192"
#address="https://www.accuweather.com/en/gr/kastoria/178682/weather-forecast/178682"
#address="https://www.accuweather.com/en/de/lichtenstein/09350/weather-forecast/171261"
#address="https://www.accuweather.com/en/aq/casey-station/2273690/weather-forecast/2273690"
#
#
#address="https://www.accuweather.com/en/ru/moscow/294021/weather-forecast/294021"
#
#address="https://www.accuweather.com/ru/ru/moscow/294021/weather-forecast/294021"
#

#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
	}


	#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
	}


############################
# Check the user arguments #
############################

if (( $# < 1 || $# > 18 )); 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_uv=1
h_wind=1
h_wind_g=1
h_hum=1
h_ind_hum=1
h_dew=1
h_cl_cov=1
h_prec_am=1
h_visib=1
h_cl_ceil=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_uv && $i != -h_no_wind && $i != -h_no_wind_g && $i != -h_no_hum && $i != -h_no_ind_hum && $i != -h_no_dew && $i != -h_no_cl_cov && $i != -h_no_prec_am && $i != -h_no_visib && $i != -h_no_cl_ceil ]]; 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_uv)
				h_uv=0
			;;
			-h_no_wind)
				h_wind=0
			;;
			-h_no_wind_g)
				h_wind_g=0
			;;
			-h_no_hum)
				h_hum=0
			;;
			-h_no_ind_hum)
				h_ind_hum=0
			;;
			-h_no_dew)
				h_dew=0
			;;
			-h_no_cl_cov)
				h_cl_cov=0
			;;
			-h_no_prec_am)
				h_prec_am=0
			;;
			-h_no_visib)
				h_visib=0
			;;
			-h_no_cl_ceil)
				h_cl_ceil=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 == "" ]]; then
			echo $1
			return 0
		elif [[ $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
		if [[ $1 != "N/A" ]]; then
			echo $time_24
		elif [[ $1 == "N/A" ]]; then
			echo "N/A"
		fi
	}

sleep 0.2
	curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/curr_cond_raw "$curr_addr"

	daily_addr="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/daily_forecast_raw "$daily_addr"

##### del image forecast
	if [[ $forecast2015 == 1 ]]; then
	  if [[ -f $HOME/Accuweather_conky_script/forecast_2015/forecast_*.png ]]; then
		rm $HOME/Accuweather_conky_script/forecast_2015/forecast_*.png
	  fi
	fi
	if [[ $forecast2016 == 1 ]]; then
	  if [[ -f $HOME/Accuweather_conky_script/forecast_2016/forecast_*.png ]]; then
		rm $HOME/Accuweather_conky_script/forecast_2016/forecast_*.png
	  fi
	fi

sleep 0.2

	#current conditions
	if [[ -s $HOME/Accuweather_conky_script/curr_cond_raw ]]; then
		sed '/current-weather-card card-module content-module non-ad/,/glacier-ad native content-module/!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp
cp $HOME/Accuweather_conky_script/curr_cond_temp $HOME/Accuweather_conky_script/curr_cond_control

sed -i '/div class=\"label-tooltip\" data-js/,/div class=\"current-weather-details/d' $HOME/Accuweather_conky_script/curr_cond_temp
		sed -i -e 's/.svg.*$//g' -e 's/<\/div>//g' -e 's/<div>//g' -e 's/<\/span>//g' -e 's/<span class.*$//g' -e 's/^[\t]*//g' $HOME/Accuweather_conky_script/curr_cond_temp
		sed -i -e 's/^.*\/weathericons\///' -e 's/^.*>//g' -e 's/&#xB0;.*$//g' -e 's/.*RealFeel&#xAE; //g' -e '/RealFeel Shade™/,+1d' -e '/Indoor Humidity/,+1d' -e '/^$/d' $HOME/Accuweather_conky_script/curr_cond_temp
#
		sed -i '1s/^0//' $HOME/Accuweather_conky_script/curr_cond_temp

		if (( $(grep 'Max UV Index' $HOME/Accuweather_conky_script/curr_cond_control |wc -l) == 0 )); then
			sed -i '4s/$/\nMax UV/' $HOME/Accuweather_conky_script/curr_cond_temp
			sed -i '5s/$/\n0/' $HOME/Accuweather_conky_script/curr_cond_temp
		fi


		wind_dir=$(sed -n 8p $HOME/Accuweather_conky_script/curr_cond_temp|head -c 1)
		if [[ $wind_dir == 0 ]]; then
			sed -i '8s/^/CLM /' $HOME/Accuweather_conky_script/curr_cond_temp
		fi

		sed -i '8s/ /\n/1' $HOME/Accuweather_conky_script/curr_cond_temp



# curr_cond line 1,2 номер изобр. облака и температуры сейчас , number icon and Temperature now
		sed -n 1,2p $HOME/Accuweather_conky_script/curr_cond_temp > $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 3 температура ощущение  Real Feel
		sed -n 4p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 4 облачность  Forecast
		sed -n 3p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 5 направление ветра  Wind Direction
		sed -n 8p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 6 скорость ветра  Wind Speed
#
		sed -n 9p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 7 влажность Humidity
		sed -n 13p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 8 давление  Pressure
		sed -n 17p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 9 УФ индекс  UV Index
		sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 10 облачность  Cloud Cover
		sed -n 19p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 11 влажность  Indoor Humidity 
#
		sed -n 13p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 12 точка росы  Dew Point
		sed -n 15p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 13 видимость  Visibility
		sed -n 21p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond


		sed '/sunrise-sunset card-module content-module/,/temp-history content-module/!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/curr_cond_temp1

		sed -i -e 's/^.*"text-value">//g' -e 's/<\/span>$//g' -e '/</d' $HOME/Accuweather_conky_script/curr_cond_temp1
#
		sed -i -e '1d;4d' -e 's/^[\t]*//g' -e 's/ AM/:AM/g' -e 's/ PM/:PM/g' -e 's/ .*$//g' -e '/^$/d' -e 's/:AM/ AM/g' -e 's/:PM/ PM/g' $HOME/Accuweather_conky_script/curr_cond_temp1

		sed -i -e '1N;s/\n/:/' $HOME/Accuweather_conky_script/curr_cond_temp1

		if [[ $(sed -n 4p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 5p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 6p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" && $(sed -n 7p $HOME/Accuweather_conky_script/curr_cond_temp1) != "N/A" ]]; then

			sed -i '4N;s/\n/:/' $HOME/Accuweather_conky_script/curr_cond_temp1
		fi

# curr_cond line 14,15 солнце  рассвет, закат  Sun Rise Sun Set
		sed -n 2,3p $HOME/Accuweather_conky_script/curr_cond_temp1 >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 16 солнце длит.  Sunlight Duration
		sed -n 1p $HOME/Accuweather_conky_script/curr_cond_temp1 >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 17 порывы ветра  Wind Gusts
		sed -n 11p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 18,19 луна  восход, заход  Moon Rise Moon Set
		sed -n 5,6p $HOME/Accuweather_conky_script/curr_cond_temp1 >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 20   Moonlight Duration
		sed -n 4p $HOME/Accuweather_conky_script/curr_cond_temp1 >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 21 высота облаков  Cloud Ceiling
		sed -n 23p $HOME/Accuweather_conky_script/curr_cond_temp >> $HOME/Accuweather_conky_script/curr_cond


#
		rm $HOME/Accuweather_conky_script/curr_cond_temp $HOME/Accuweather_conky_script/curr_cond_temp1 $HOME/Accuweather_conky_script/curr_cond_control

## delete tendency pressure
#		sed -i '8s/^.*; //' $HOME/Accuweather_conky_script/curr_cond

## tendency pressure
#
	sed -i -e '8s/&#x2194;/↔/g' -e '8s/&#x2191;/↑/g' -e '8s/&#x2193;/↓/g' -e '8s/&#x2197;/↗/g' -e '8s/&#x2198;/↘/g' -e '8s/&#x219D;/↝/g' $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 22 	#convert Image Number curr. cond.  to  Weather font letter curr. cond.
	    image=$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond)
	    echo $(test_image $image) >> $HOME/Accuweather_conky_script/curr_cond
# curr_cond line 23   Sun Rise-24h
		sunrise_time=$(sed -n 14p $HOME/Accuweather_conky_script/curr_cond)
		echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 24  Sun Set-24h
		sunrise_time=$(sed -n 15p $HOME/Accuweather_conky_script/curr_cond)
		echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 25  Moon Rise-24h
		sunrise_time=$(sed -n 18p $HOME/Accuweather_conky_script/curr_cond)
		echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond

# curr_cond line 26  Moon Set-24h
		sunrise_time=$(sed -n 19p $HOME/Accuweather_conky_script/curr_cond)
		echo $(convert_time "$sunrise_time") >> $HOME/Accuweather_conky_script/curr_cond

############ convert
#recode_file="$HOME/Accuweather_conky_script/curr_cond"
#source ./conkyconfig/Accuweather/convert_html2utf8
#####################

####correct wrong wind dir.curr_cond   -  lang ru
#		sed -i '5s/Г/В/' $HOME/Accuweather_conky_script/curr_cond
#		sed -i '5s/C/С/' $HOME/Accuweather_conky_script/curr_cond

sleep 0.2

## curr_cond line 27   convert Wind Direction curr. cond.  to  Wind font letter curr. cond.
		wind=$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond)
		echo $(test_wind $wind) >> $HOME/Accuweather_conky_script/curr_cond

	if (( $(sed -n 14p $HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
			sed -i '14s/^/0/' $HOME/Accuweather_conky_script/curr_cond
		fi
		if (( $(sed -n 15p $HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
			sed -i '15s/^/0/' $HOME/Accuweather_conky_script/curr_cond
		fi
		if (( $(sed -n 18p $HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
			sed -i '18s/^/0/' $HOME/Accuweather_conky_script/curr_cond
		fi
		if (( $(sed -n 19p $HOME/Accuweather_conky_script/curr_cond|wc -c) == 8 )); then
			sed -i '19s/^/0/' $HOME/Accuweather_conky_script/curr_cond
	fi

sleep 0.2

	    if [[ $forecast2015 == 1 ]]; then
			cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/forecast_0.png
			cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2015/wind_0.png
		fi
		if [[ $forecast2016 == 1 ]]; then
			cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 1p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/forecast_0.png
			cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n 5p $HOME/Accuweather_conky_script/curr_cond).png $HOME/Accuweather_conky_script/forecast_2016/wind_0.png
		fi
	fi

# location, time update
		sed '/header-loc-weather">\|<p class="sub">/!d' $HOME/Accuweather_conky_script/curr_cond_raw > $HOME/Accuweather_conky_script/location
		sed -i -e 's/^.*">//g' -e 's/<\/div>.*$//g' -e 's/<\/p>.*$//g' $HOME/Accuweather_conky_script/location



	#Daily forecast
	if [[ -s $HOME/Accuweather_conky_script/daily_forecast_raw ]]; then

		sed '/<div class="daily-wrapper" data-qa="dailyCard0">/,/Further Ahead/!d' $HOME/Accuweather_conky_script/daily_forecast_raw > $HOME/Accuweather_conky_script/daily_forecast

		sed -i '/<div class="daily-wintercast-cta">/,/div class="daily-wrapper"/d' $HOME/Accuweather_conky_script/daily_forecast

		sed -i -e 's/^.*">\///' -e 's/^.*">//' -e 's/^.*weathericons\///g' -e 's/\.svg.*$//g' -e 's/&#xB0;<\/span>//g' -e 's/<\/span>//g' -e 's/^[\t]*//g' -e '/^$/d' $HOME/Accuweather_conky_script/daily_forecast

		sed -i -e '/<\|>\|fill=\|^[ ]*$\|Further Ahead/d' $HOME/Accuweather_conky_script/daily_forecast

		sed -i '/WinterCast/,+1d' $HOME/Accuweather_conky_script/daily_forecast

		sed -i '85,$d' $HOME/Accuweather_conky_script/daily_forecast

		sed -i -e 's/^Sun$/Sunday/g' -e 's/^Mon$/Monday/g' -e 's/^Tue$/Tuesday/g' -e 's/^Wed$/Wednesday/g' -e 's/^Thu$/Thursday/g' -e 's/^Fri$/Friday/g' -e 's/^Sat$/Saturday/g' $HOME/Accuweather_conky_script/daily_forecast

		for (( i=1; i<=21; i+=1 ))
		  do
	          echo >> $HOME/Accuweather_conky_script/daily_forecast
		  done
		for (( i=3; i<=80; i+=7 ))
		  do
	          image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/daily_forecast)
	          echo $(test_image $image) >> $HOME/Accuweather_conky_script/daily_forecast
		  done
		if [[ $forecast0 == 0 ]]; then
			j=1
			for (( i=3; i<=80; i+=7 ))
			  do
				if [[ $forecast2015 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2015/forecast_$j.png
				fi
				if [[ $forecast2016 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/daily_forecast).png $HOME/Accuweather_conky_script/forecast_2016/forecast_$j.png
				fi
				((j++))
			  done
		fi
	fi
fi

sleep 0.2
#############################################################
# HOURLY FORECAST: -h, -h2015 or -h2016 passed as arguments #
#############################################################
#function: convert_time_h
	convert_time_h ()
	{
		hours=$(echo $1|awk -F ":| " '{print $1}')
		am_or_pm=$(echo $1|awk -F ":| " '{print $2}')
		if [[ $am_or_pm == "" ]]; then
			echo $1
			return 0
		elif [[ $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:00
		echo $time_24
	}

if [[ $hourly0 == 1 || $hourly2015 == 1 || $hourly2016 == 1 ]]; then

	#Hourly: 24h

	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=2

	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/hourly_raw1 "$hourly_addr1"
	curl -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Accept-Language: en-US,en;q=0.5' --compressed -H 'Connection: keep-alive' -H 'Upgrade-Insecure-Requests: 1' -H 'Cache-Control: max-age=0' -o $HOME/Accuweather_conky_script/hourly_raw2 "$hourly_addr2"

	if [[ -s $HOME/Accuweather_conky_script/hourly_raw1 && -s $HOME/Accuweather_conky_script/hourly_raw2 ]]; then
		#Hourly_raw1 file
		sed -i '/<div class=\"hourly-wrapper content-module\">/,/day=/!d' $HOME/Accuweather_conky_script/hourly_raw1
#
sed -i '/div class=\"label-tooltip\" data-js=/,/div class=\"hourly-content-container/d' $HOME/Accuweather_conky_script/hourly_raw1

		sed -i -e '/<p>Snow<span class=/d' $HOME/Accuweather_conky_script/hourly_raw1
		sed -i -e '/<p>Ice<span class=/d' $HOME/Accuweather_conky_script/hourly_raw1
		sed -i -e '/RealFeel Shade/d' $HOME/Accuweather_conky_script/hourly_raw1
		sed -i -e '/RealFeel Guide/d' $HOME/Accuweather_conky_script/hourly_raw1

#
		sed -i -e 's/<\/span>.*$//g' -e 's/\.svg.*$//g' -e 's/<\/div>.*$//g' -e 's/<div class="phrase">/Phrase\n/g' -e 's/<span class="value">/\n/g' $HOME/Accuweather_conky_script/hourly_raw1

		sed -i -e 's/^.*weathericons\///g' -e 's/^.*>//g' -e '/Air Quality/d' -e 's/&#xB0;.*$//g' -e 's/&#xAE;//g' -e 's/^[ \|\t]*//g' $HOME/Accuweather_conky_script/hourly_raw1


		#Populate Max UV and Prec. Amount values where needed
		i=1
		while IFS= read -r line;
			do
				if [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly_raw1) == Wind ]]; then
					j=$((i-2))
					if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw1) != 'Max UV Index' ]]; then
						sed -i "${i}s/^/Max UV Index\n0\n/" $HOME/Accuweather_conky_script/hourly_raw1
						((i+=3))
					fi
				elif [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly_raw1) == Visibility ]]; then
					j=$((i-2))
					if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw1) != 'Rain' && $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw1) != 'Snow' ]]; then
						sed -i "${i}s/^/Prec. Amount\n-\n/" $HOME/Accuweather_conky_script/hourly_raw1
						((i+=3))
					fi
				fi
			((i+=1))
			done < $HOME/Accuweather_conky_script/hourly_raw1


		#Hourly_raw2 file
		sed -i '/<div class=\"hourly-wrapper content-module\">/,/day=/!d' $HOME/Accuweather_conky_script/hourly_raw2
#
	sed -i '/div class=\"label-tooltip\" data-js=/,/div class=\"hourly-content-container/d' $HOME/Accuweather_conky_script/hourly_raw2

		sed -i -e '/<p>Snow<span class=/d' $HOME/Accuweather_conky_script/hourly_raw2
		sed -i -e '/<p>Ice<span class=/d' $HOME/Accuweather_conky_script/hourly_raw2
		sed -i -e '/RealFeel Shade/d' $HOME/Accuweather_conky_script/hourly_raw2

		sed -i -e '/RealFeel Guide/d' $HOME/Accuweather_conky_script/hourly_raw2

#
		sed -i -e 's/<\/span>.*$//g' -e 's/\.svg.*$//g' -e 's/<\/div>.*$//g' -e 's/<div class="phrase">/Phrase\n/g' -e 's/<span class="value">/\n/g' $HOME/Accuweather_conky_script/hourly_raw2
#
		sed -i -e 's/^.*weathericons\///g' -e 's/^.*>//g' -e '/Air Quality/d' -e 's/&#xB0;.*$//g' -e 's/&#xAE;//g' -e 's/^[ \|\t]*//g' $HOME/Accuweather_conky_script/hourly_raw2


		#Populate Max UV and Prec. Amount values where needed
		i=1
		while IFS= read -r line;
			do
				if [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly_raw2) == Wind ]]; then
					j=$((i-2))
					if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw2) != 'Max UV Index' ]]; then
						sed -i "${i}s/^/Max UV Index\n0\n/" $HOME/Accuweather_conky_script/hourly_raw2
						((i+=3))
					fi
				elif [[ $(sed -n ${i}p $HOME/Accuweather_conky_script/hourly_raw2) == Visibility ]]; then
					j=$((i-2))
					if [[ $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw2) != 'Rain' && $(sed -n ${j}p $HOME/Accuweather_conky_script/hourly_raw2) != 'Snow' ]]; then
						sed -i "${i}s/^/Prec. Amount\n-\n/" $HOME/Accuweather_conky_script/hourly_raw2
						((i+=3))
					fi
				fi
			((i+=1))
			done < $HOME/Accuweather_conky_script/hourly_raw2

		sed -i '/^$/d' $HOME/Accuweather_conky_script/hourly_raw1
		sed -i '/^$/d' $HOME/Accuweather_conky_script/hourly_raw2

		cat $HOME/Accuweather_conky_script/hourly_raw1 $HOME/Accuweather_conky_script/hourly_raw2 > $HOME/Accuweather_conky_script/hourly

		sed -i '/^Further Ahead$/d' $HOME/Accuweather_conky_script/hourly
		sed -i '721,$d' $HOME/Accuweather_conky_script/hourly
		sed -i -e 's/ mph$\| km\/h$//g' -e 's/°.*$//g' $HOME/Accuweather_conky_script/hourly


##### del image hourly
	if [[ $hourly2015 == 1 ]]; then
	  if [[ -f $HOME/Accuweather_conky_script/hourly_2015/hourly_*.png ]]; then
		rm $HOME/Accuweather_conky_script/hourly_2015/hourly_*.png
	  fi
	fi
	if [[ $hourly2016 == 1 ]]; then
	  if [[ -f $HOME/Accuweather_conky_script/hourly_2016/hourly_*.png ]]; then
		rm $HOME/Accuweather_conky_script/hourly_2016/hourly_*.png
	  fi
	fi


#	# Convert number image hourly  to  Weather font letter. Copy image clouds
		for (( i=2; i<=720; i+=30 ))
		  do
		image=$(sed -n "${i}"p $HOME/Accuweather_conky_script/hourly)
		echo $(test_image $image) >> $HOME/Accuweather_conky_script/hourly
			  sed -i "$(( i+9 ))s/ .*$//" $HOME/Accuweather_conky_script/hourly
			  sed -i "$(( i+17 ))s/ .*$//" $HOME/Accuweather_conky_script/hourly
		  done
		if [[ $hourly0 == 0 ]]; then
			j=1
			for (( i=2; i<=720; i+=30 ))
			  do
		    	if [[ $hourly2015 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2015/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2015/hourly_$j.png
				fi
				if [[ $hourly2016 == 1 ]]; then
					cp $HOME/Accuweather_conky_script/Forecast_Images_2016/$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly).png $HOME/Accuweather_conky_script/hourly_2016/hourly_$j.png
				fi
		    	((j++))
			  done
		fi
	fi

	# Convert times in hourly from am/pm to freedom times
#	for (( i=1; i<=720; i+=30 ))
#		  do
#		   h=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
#			  sed -i ${i}s/^.*$/$(convert_time_h "$h")/ $HOME/Accuweather_conky_script/hourly
#		  done

sleep 0.2
	##convert Wind Direction hourly  to  Wind font letter hourly
		echo 'Font letter wind  hourly ' >> $HOME/Accuweather_conky_script/hourly
			j=1
		for (( i=13; i<=720; i+=30 ))
		  do
		   wind=$(sed -n "${i}"p $HOME/Accuweather_conky_script/hourly | awk '{print $1}')
		   echo $(test_wind $wind) >> $HOME/Accuweather_conky_script/hourly

			((j++))
		  done



##############################################################
	# Full info, next 24h - altogether24 file

#  if [[ -f $HOME/Accuweather_conky_script/altogether24 ]]; then
#	rm $HOME/Accuweather_conky_script/altogether24
#  fi
#  if [[ -f $HOME/Accuweather_conky_script/altogether24_2015 ]]; then
#	rm $HOME/Accuweather_conky_script/altogether24_2015
#  fi
#  if [[ -f $HOME/Accuweather_conky_script/altogether24_2016 ]]; then
#	rm $HOME/Accuweather_conky_script/altogether24_2016
#  fi


#	rm $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}


	#TIME
	echo "\${color1}TIME\${goto 100}$(sed -n 1p $HOME/Accuweather_conky_script/hourly)" > $HOME/Accuweather_conky_script/altogether24
	jump_to=160
	for (( i=31; i<=360; i+=30 ))
		do
			time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=361; i<=720; i+=30 ))
			do
				time=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "1s/$/\${goto $jump_to}$time/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	sed -i '1s/$/\n\n\n/' $HOME/Accuweather_conky_script/altogether24

	#FORECAST
	echo "\${color1}FORECAST\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=7; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
			sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=367; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $1}'|cut -c1-8)
				sed -i "5s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi
	sed -i '5s/$/\n/' $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=7; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
			sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=367; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly|awk '{print $2}'|cut -c1-8)
				sed -i "6s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#TEMPERATURE
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "TEMPER.\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=3; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=363; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "8s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#REAL FEEL
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "REAL FEEL\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=5; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=365; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "10s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#CHANCE OF PRECIPITATION
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "PRECIP. %\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=26; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=386; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "12s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#MAX UV INDEX
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "UV INDEX\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=11; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=371; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "14s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#WIND
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "WIND\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=13; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=373; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "16s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#WIND GUSTS
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "WIND GUSTS\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=15; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=375; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "18s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#HUMIDITY
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "HUMIDITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=17; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=377; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "20s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#INDOOR HUMIDITY
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "IND. HUMID.\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=19; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=379; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "22s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#DEW POINT
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "DEW POINT\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=22; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "24s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=382; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "24s/$/\${goto $jump_to}$messg°/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#CLOUD COVER
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "CLOUD CVR\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=24; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "26s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=384; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "26s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#PRECIPITATION AMOUNT
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "PREC. AM.\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=26; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=386; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "28s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#VISIBILITY
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "VISIBILITY\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=28; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "30s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=388; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "30s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#CLOUD CEILING
	echo "\${color1}\${goto 100}\${hr 1}" >> $HOME/Accuweather_conky_script/altogether24
	echo "CLOUD CEIL.\${color}" >> $HOME/Accuweather_conky_script/altogether24
	jump_to=100
	for (( i=30; i<=360; i+=30 ))
		do
			messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
			sed -i "32s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
			((jump_to+=60))
		done
	if [[ $h_24hours == 1 ]]; then
		for (( i=390; i<=720; i+=30 ))
			do
				messg=$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)
				sed -i "32s/$/\${goto $jump_to}$messg/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
	fi

	#IMAGES
	if [[ $hourly0 == 0 ]]; then
		if [[ $hourly2015 == 1 ]]; then
					jump_to=75
					cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2015
		fi
		if [[ $hourly2016 == 1 ]]; then
					jump_to=85
					cp $HOME/Accuweather_conky_script/altogether24 $HOME/Accuweather_conky_script/altogether24_2016
		fi
#  if [[ -f $HOME/Accuweather_conky_script/altogether24 ]]; then
#		rm $HOME/Accuweather_conky_script/altogether24
#  fi
		hours=$((12+$h_24hours*12))
		for (( i=1; i<=$hours; i+=1 ))
			do
				if [[ $hourly2015 == 1 ]]; then
					sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2015\/hourly_$i.png -s 60x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2015
				fi
				if [[ $hourly2016 == 1 ]]; then
					sed -i "4s/$/\${image \$HOME\/Accuweather_conky_script\/hourly_2016\/hourly_$i.png -s 36x36 -p $jump_to,49}/" $HOME/Accuweather_conky_script/altogether24_2016
				fi
				((jump_to+=60))
			done
	fi

	#CONKYFONT
	if [[ $hourly0 == 1 ]]; then
		sed -i '4s/$/\${color}\${font conkyweather:size=35}/' $HOME/Accuweather_conky_script/altogether24
		jump_to=95
		for (( i=721; i<=732; i+=1 ))
			do
				sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
				((jump_to+=60))
			done
		if [[ $h_24hours == 1 ]]; then
			for (( i=733; i<=744; i+=1 ))
				do
					sed -i "4s/$/\${goto $jump_to}$(sed -n ${i}p $HOME/Accuweather_conky_script/hourly)/" $HOME/Accuweather_conky_script/altogether24
					((jump_to+=60))
				done
		fi
		sed -i '4s/$/\${font}/' $HOME/Accuweather_conky_script/altogether24
		sed -i '2,3d' $HOME/Accuweather_conky_script/altogether24
	fi

	#DELETE UNWANTED VARIABLES
	if [[ $h_real == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '7,8s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '9,10s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_uv == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '11,12s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_wind == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '13,14s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_wind_g == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '15,16s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi


	if [[ $h_hum == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '17,18s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi


	if [[ $h_ind_hum == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '19,20s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_dew == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '21,22s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_cl_cov == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '23,24s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_prec_am == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '25,26s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_visib == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '27,28s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '29,30s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '29,30s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

	if [[ $h_cl_ceil == 0 ]]; then
		if [[ $hourly0 == 1 ]]; then
			sed -i '29,30s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24
		elif [[ $hourly2015 == 1 ]]; then
			sed -i '31,32s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2015
		elif [[ $hourly2016 == 1 ]]; then
			sed -i '31,32s/^.*$/VOID/' $HOME/Accuweather_conky_script/altogether24_2016
		fi
	fi

  if [[ -f $HOME/Accuweather_conky_script/altogether24 ]]; then
	sed -i '/VOID/d' $HOME/Accuweather_conky_script/altogether24
  fi
  if [[ -f $HOME/Accuweather_conky_script/altogether24_2015 ]]; then
	sed -i '/VOID/d' $HOME/Accuweather_conky_script/altogether24_2015
  fi
  if [[ -f $HOME/Accuweather_conky_script/altogether24_2016 ]]; then
	sed -i '/VOID/d' $HOME/Accuweather_conky_script/altogether24_2016
  fi

#	sed -i '/VOID/d' $HOME/Accuweather_conky_script/{altogether24,altogether24_2015,altogether24_2016}



fi

#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"

Offline

#4046 2022-02-20 15:27:46

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

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

^@il.harun   smile

Interesting, I have the errors now only in the German version with your test-script.
...de/de... is not ok.
...en/de... is ok.   big_smile
174wZu6t.png  RvJQZ9Ft.png

Offline

#4047 2022-02-20 19:26:18

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

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

^@unklar
need localization and translation from html-encoding to utf-8
see my  old ***_ru scripts

Offline

#4048 2022-02-21 06:57:26

asqwerth
Member
Registered: 2015-10-08
Posts: 24

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

I know Teo is busy, so this is just to report that something seems to have changed in the curr_cond file.

3p is supposed to show the "real feel temperature" but it's now showing the current weather condition in text.

Screenshot:

https://imgur.com/8TIRnlf

Offline

#4049 2022-02-21 08:32:08

ceeslans
Member
Registered: 2015-09-30
Posts: 195

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

asqwerth wrote:

I know Teo is busy, so this is just to report that something seems to have changed in the curr_cond file.
3p is supposed to show the "real feel temperature" but it's now showing the current weather condition in text.
...

you can use the accuweather script as updated and shared by il.harun yesterday.  Works perfectly.

Offline

#4050 2022-02-21 12:24:07

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

il.harun wrote:

^@unklar
need localization and translation from html-encoding to utf-8
see my  old ***_ru scripts

Great stuff.  Thank you
Отличный материал. Спасибо


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4051 2022-02-21 12:58:51

asqwerth
Member
Registered: 2015-10-08
Posts: 24

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

ceeslans wrote:
asqwerth wrote:

I know Teo is busy, so this is just to report that something seems to have changed in the curr_cond file.
3p is supposed to show the "real feel temperature" but it's now showing the current weather condition in text.
...

you can use the accuweather script as updated and shared by il.harun yesterday.  Works perfectly.


Thanks, ceeslans; I didn't get the significance of that post.

I confirm it works. 

Thank you, il.harun.

Offline

#4052 2022-02-21 18:37:33

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

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

unklar wrote:

Well, they did it again.
For two days they play like the weather.com did back then  8o

@Teo, sorry, I woke them up. :8


Everything for the cat...
I had also just started  big_smile
https://i.imgur.com//uLLAknat.png

I can also take the supplied values.  big_smile tongue
rPZV9WKt.png

Last edited by unklar (2022-06-19 12:23:19)

Offline

#4053 2022-02-22 08:33:04

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

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

On this x40, I usually get the "changes" live. Since two days everything seems to be ok again, without changing anything in the script or the configuration.   smile
So, for -f cautious all-clear.

8fzseuat.png

Last edited by unklar (2022-02-22 08:35:57)

Offline

#4054 2022-02-27 19:42:35

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

Sorry guys, I don´t wanna fool you, but I won´t be able to do much with the scripts in the near future.

I really grieves me to say it, but I´m gonna have to suspend them, at least for the time being.

Take care...


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

#4055 2022-02-27 22:39:45

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

YOU take care Teo.

Be safe and do what you have to do.
That simple.

Will be with you in spirit.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4056 2022-02-28 08:11:07

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

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

Sector11 wrote:

YOU take care Teo.

Be safe and do what you have to do.
That simple.

Will be with you in spirit.

+1
exactly, there are more important things in life, take time for yourself,Teo.   cool

Offline

#4057 2022-03-02 16:28:57

saltasatelites
Member
Registered: 2016-09-10
Posts: 19

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

Hi,
Someone else has today the conky absolutely missconfigured?
It seems that have made changes once again...

Offline

#4058 2022-03-02 17:10:41

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

Depends on which script you are using.  I have been using the Accuweather RSS feed script for a long time.  It just works¹, you can see it here with a touch of remind for sun moon data and a "dateutils.ddiff" call.


__________________________________________
¹ now watch it break tomorrow because I said that!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4059 2022-03-02 17:22:06

rbh
Moderator
From: South of Lapplands inland
Registered: 2016-08-11
Posts: 1,921

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

Sector11 wrote:

Accuweather RSS feed script for a long time.

The code is here:? https://gitlab.com/teobigusgeekus/Accuw … script.git


// Regards rbh

Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu

Offline

#4060 2022-03-02 19:10:46

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

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

TeoBigusGeekus wrote:

Sorry guys, I don´t wanna fool you, but I won´t be able to do much with the scripts in the near future.

I really grieves me to say it, but I´m gonna have to suspend them, at least for the time being.

Take care...

Thanks for everything you have done for us over the years. I wish you the best in life. I wish I understood the code a bit better so I could lend a hand. Hopefully, though, this is just a temporary time out. If you need anything from me, don't hesitate to ask. I will help where I can.

Offline

Board footer

Powered by FluxBB