You are not logged in.

#3126 2019-11-08 21:53:14

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

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

ANNOUNCEMENT
Accuweather changed their hourly forecast page layout, script corrected. Thanks to morfik, ector1935 and unklar for their feedback and support.


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

#3127 2019-11-16 19:18:13

unklar
Member
Registered: 2015-10-31
Posts: 1,129

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

Teo, I converted an older Conky(with Accuweather) from S11 to the WU-Script.
However, I have a bug in the day display of the forecast images. Yesterday I see the day icons and today I see the night icons in the column of the 9 days.

Where is my thinking error? The syntax1.9 or 1.10 makes no difference.
If you have time..., here are the files  smile

meinNEUER.th.png meinNEUER2.th.png fehlerIcon.th.png

1.9

#https://forums.bunsenlabs.org/viewtopic.php?pid=2121#p2121
# pkill -xf "conky -c $HOME/WuPix/wu_pixconkyrc9" &
# Works perfect: Thu 29 Oct 2015 Sector11 with accuweather modify unklar 15.01.2016
# modify unklar 2019-11-15 with Wunderground_conky_script
###  Begin Window Settings  ###
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,skip_taskbar,skip_pager
#  own_window_colour 000000
#  own_window_class Conky
#  own_window_title Teo's Accuweather
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 120

minimum_size 160 00	# w|h
maximum_width 160

gap_x 450 # l|r
gap_y 50	# u|d

alignment tl
###  End Window Settings  ###
###  Font Settings  ###
use_xft yes
xftfont monofur:bold:size=9
xftalpha 1.0
override_utf8_locale yes
###  End Font Settings  ###
###  Color Settings  ###
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
###  End Color Settings  ###
###  Borders Section  ###
# border margins
border_inner_margin 5
border_outer_margin 0
###  End Borders Secton  ###
###  Miscellaneous Section  ###
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
###  End Miscellaneous Section  ###


update_interval 2 #0.5

TEXT
${texeci 500 bash $HOME/Wunderground_conky_script/wunderground}\
${color5}Current${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x710}${goto 85}${color7}Mondphase
${color9}${texeci 600 sed -n '52p' $HOME/Wunderground_conky_script/curr_cond}°${color}\


${image $HOME/Wunderground_conky_script/Forecast_Images/Moon_phase.png -p 100,12 -s 30x30}\
${goto 50}${color8}±${texeci 600 sed -n '58p' $HOME/Wunderground_conky_script/curr_cond}°${color}${goto 82}${execpi 600 sed -n '1p' $HOME/Wunderground_conky_script/moon_data}
${goto 82}${membar 0}
${texeci 600 sed -n '26p' $HOME/Wunderground_conky_script/curr_cond} mb${goto 85}Next 12 hours
${color8}${texeci 600 sed -n '34p' $HOME/Wunderground_conky_script/curr_cond}${color}
UVI ${texeci 600 sed -n '72p' $HOME/Wunderground_conky_script/curr_cond}${goto 85}${tztime GMT-2 %H} h
HUM ${texeci 600 sed -n '36p' $HOME/Wunderground_conky_script/curr_cond} %${goto 100}${texeci 600 sed -n '7p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/current.png -p 2,15 -s 45x45}\
${image $HOME/Wunderground_conky_script/Forecast_Images/h1.png -p 115,90 -s 25x25}\
DP  ${texeci 600 sed -n '56p' $HOME/Wunderground_conky_script/curr_cond}°${goto 82}${membar 0}
Wind ${texeci 600 sed -n '82p' $HOME/Wunderground_conky_script/curr_cond}${goto 85}${tztime GMT-3 %H} h
@ ${texeci 600 sed -n '86p' $HOME/Wunderground_conky_script/curr_cond} km/h${goto 100}${texeci 600 sed -n '80p' $HOME/Wunderground_conky_script/hourly}°
Vis ${texeci 600 sed -n '78p' $HOME/Wunderground_conky_script/curr_cond} km
Ceil ${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/curr_cond} m${goto 82}${membar 0}  
Prec.${texeci 600 sed -n '22p' $HOME/Wunderground_conky_script/curr_cond} mm${goto 85}${tztime GMT-4 %H} h
CloudCov.${texeci 600 sed -n '55p' $HOME/Wunderground_conky_script/hourly}%${goto 100}${texeci 600 sed -n '153p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h2.png -p 115,140 -s 25x25}\
${image $HOME/Wunderground_conky_script/Forecast_Images/h3.png -p 115,190 -s 25x25}\

${membar 0}
${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 85}${tztime GMT-5 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/4.png -p 30,240 -s 35x35}\
${goto 100}${texeci 600 sed -n '226p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h4.png -p 115,240 -s 25x25}\
${texeci 600 sed -n '208p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 85}${tztime GMT-6 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/6.png -p 30,300 -s 35x35}\
${goto 100}${texeci 600 sed -n '299p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h5.png -p 115,300 -s 25x25}   
${texeci 600 sed -n '404p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='3 day' '+%a. %e'}\
${goto 85}${tztime GMT-7 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/8.png -p 30,360 -s 35x35}\
${goto 100}${texeci 600 sed -n '372p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h6.png -p 115,360 -s 25x25}\
${texeci 600 sed -n '600p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='4 day' '+%a. %e'}\
${goto 85}${tztime GMT-8 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/10.png -p 30,412 -s 35x35}\
${goto 100}${texeci 600 sed -n '445p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h7.png -p 115,412 -s 25x25}\
${texeci 600 sed -n '796p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='5 day' '+%a. %e'}\
${goto 85}${tztime GMT-9 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/12.png -p 30,460 -s 35x35}\
${goto 100}${texeci 600 sed -n '518p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h8.png -p 115,460 -s 25x25}\
${texeci 600 sed -n '992p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='6 day' '+%a. %e'}\
${goto 85}${tztime GMT-10 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/14.png -p 30,516 -s 35x35}\
${goto 100}${texeci 600 sed -n '591p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h9.png -p 115,516 -s 25x25}\
${texeci 600 sed -n '1188p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='7 day' '+%a. %e'}\
${goto 85}${tztime GMT-11 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/16.png -p 30,568 -s 35x35}\
${goto 100}${texeci 600 sed -n '664p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h10.png -p 115,568 -s 25x25}\
${texeci 600 sed -n '1384p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='8 day' '+%a. %e'}\
${goto 85}${tztime GMT-12 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/18.png -p 30,620 -s 35x35}\
${goto 100}${texeci 600 sed -n '737p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h11.png -p 115,620 -s 25x25}\
${texeci 600 sed -n '1580p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='9 day' '+%a. %e'}\
${goto 85}${tztime GMT-13 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/20.png -p 30,670 -s 35x35}\
${goto 100}${texeci 600 sed -n '737p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h12.png -p 115,670 -s 25x25}\
${texeci 600 sed -n '1776p' $HOME/Wunderground_conky_script/10days}°
${membar 0}

1.10

--https://forums.bunsenlabs.org/viewtopic.php?pid=2121#p2121
-- pkill -xf "conky -c $HOME/WuPix/wu_pixconkyrc10" &
-- Works perfect: Thu 29 Oct 2015 Sector11 with accuweather modify unklar 15.01.2016
-- modify unklar 2019-11-15 with Wunderground_conky_script
conky.config = {
own_window = true,
own_window_type = 'normal',
own_window_transparent = false,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
--  own_window_colour = '#000000',
--  own_window_class = 'Conky',
--  own_window_title = 'Teo's Accuweather',
own_window_argb_visual = true,
own_window_argb_value = 120,

minimum_width = 160, minimum_height = 00,  -- w|h
maximum_width = 160,

gap_x = 450, -- l|r
gap_y = 50,  -- u|d

alignment = 'top_left',

use_xft = true,
font = 'monofur:bold:size=9',
xftalpha = 1,
override_utf8_locale = true,

draw_shades = true,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',

default_color = '#DCDCDC', --Gainsboro
color0 = '#A9A9A9', --DarkGray
color1 = '#778899', --LightSlateGray
color2 = '#F5F5DC', --Beige
color3 = '#87CEFA', --LightSkyBlue
color4 = '#48D1CC', --MediumTurquoise
color5 = '#FFDEAD', --NavajoWhite
color6 = '#00BFFF', --DeepSkyBlue
color7 = '#B0E0E6', --PowderBlue
color8 = '#FFD700', --Gold
color9 = '#FFA07A', --LightSalmon

border_inner_margin = 5,
border_outer_margin = 0,

background = true,
use_spacer = 'none',
no_buffers = true,
imlib_cache_size = 0,
double_buffer = true,

update_interval = 2, --0.5

};
conky.text = [[
${texeci 500 bash $HOME/Wunderground_conky_script/wunderground}\
${color5}Current${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x710}${goto 85}${color7}Mondphase
${color9}${texeci 600 sed -n '52p' $HOME/Wunderground_conky_script/curr_cond}°${color}\


${image $HOME/Wunderground_conky_script/Forecast_Images/Moon_phase.png -p 100,12 -s 30x30}\
${goto 50}${color8}±${texeci 600 sed -n '58p' $HOME/Wunderground_conky_script/curr_cond}°${color}${goto 82}${execpi 600 sed -n '1p' $HOME/Wunderground_conky_script/moon_data}
${goto 82}${membar 0}
${texeci 600 sed -n '26p' $HOME/Wunderground_conky_script/curr_cond} mb${goto 85}Next 12 hours
${color8}${texeci 600 sed -n '34p' $HOME/Wunderground_conky_script/curr_cond}${color}
UVI ${texeci 600 sed -n '72p' $HOME/Wunderground_conky_script/curr_cond}${goto 85}${tztime GMT-2 %H} h
HUM ${texeci 600 sed -n '36p' $HOME/Wunderground_conky_script/curr_cond} %${goto 100}${texeci 600 sed -n '7p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/current.png -p 2,15 -s 45x45}\
${image $HOME/Wunderground_conky_script/Forecast_Images/h1.png -p 115,90 -s 25x25}\
DP  ${texeci 600 sed -n '56p' $HOME/Wunderground_conky_script/curr_cond}°${goto 82}${membar 0}
Wind ${texeci 600 sed -n '82p' $HOME/Wunderground_conky_script/curr_cond}${goto 85}${tztime GMT-3 %H} h
@ ${texeci 600 sed -n '86p' $HOME/Wunderground_conky_script/curr_cond} km/h${goto 100}${texeci 600 sed -n '80p' $HOME/Wunderground_conky_script/hourly}°
Vis ${texeci 600 sed -n '78p' $HOME/Wunderground_conky_script/curr_cond} km
Ceil ${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/curr_cond} m${goto 82}${membar 0}  
Prec.${texeci 600 sed -n '22p' $HOME/Wunderground_conky_script/curr_cond} mm${goto 85}${tztime GMT-4 %H} h
CloudCov.${texeci 600 sed -n '55p' $HOME/Wunderground_conky_script/hourly}%${goto 100}${texeci 600 sed -n '153p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h2.png -p 115,140 -s 25x25}\
${image $HOME/Wunderground_conky_script/Forecast_Images/h3.png -p 115,190 -s 25x25}\

${membar 0}
${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 85}${tztime GMT-5 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/4.png -p 30,240 -s 35x35}\
${goto 100}${texeci 600 sed -n '226p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h4.png -p 115,240 -s 25x25}\
${texeci 600 sed -n '208p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 85}${tztime GMT-6 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/6.png -p 30,300 -s 35x35}\
${goto 100}${texeci 600 sed -n '299p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h5.png -p 115,300 -s 25x25}   
${texeci 600 sed -n '404p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='3 day' '+%a. %e'}\
${goto 85}${tztime GMT-7 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/8.png -p 30,360 -s 35x35}\
${goto 100}${texeci 600 sed -n '372p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h6.png -p 115,360 -s 25x25}\
${texeci 600 sed -n '600p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='4 day' '+%a. %e'}\
${goto 85}${tztime GMT-8 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/10.png -p 30,412 -s 35x35}\
${goto 100}${texeci 600 sed -n '445p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h7.png -p 115,412 -s 25x25}\
${texeci 600 sed -n '796p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='5 day' '+%a. %e'}\
${goto 85}${tztime GMT-9 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/12.png -p 30,460 -s 35x35}\
${goto 100}${texeci 600 sed -n '518p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h8.png -p 115,460 -s 25x25}\
${texeci 600 sed -n '992p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='6 day' '+%a. %e'}\
${goto 85}${tztime GMT-10 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/14.png -p 30,516 -s 35x35}\
${goto 100}${texeci 600 sed -n '591p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h9.png -p 115,516 -s 25x25}\
${texeci 600 sed -n '1188p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='7 day' '+%a. %e'}\
${goto 85}${tztime GMT-11 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/16.png -p 30,568 -s 35x35}\
${goto 100}${texeci 600 sed -n '664p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h10.png -p 115,568 -s 25x25}\
${texeci 600 sed -n '1384p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='8 day' '+%a. %e'}\
${goto 85}${tztime GMT-12 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/18.png -p 30,620 -s 35x35}\
${goto 100}${texeci 600 sed -n '737p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h11.png -p 115,620 -s 25x25}\
${texeci 600 sed -n '1580p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='9 day' '+%a. %e'}\
${goto 85}${tztime GMT-13 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/20.png -p 30,670 -s 35x35}\
${goto 100}${texeci 600 sed -n '737p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h12.png -p 115,670 -s 25x25}\
${texeci 600 sed -n '1776p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
]]; 

Offline

#3128 2019-11-16 19:53:43

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

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

You have to check the second line of the 10days file with the if_match command; read one of my conkyrcs to see how.
There are two cases:
1)If the first time section of the file is TONIGHT, your conkyrc should take its values from the 2nd, 4th, 6th, etc. sections.
2)If the first time section of the file is TODAY, your conkyrc should take its values from the 1st, 3rd, 5th, etc. sections.

So, in your case:

...
${if_match "${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/10days}" == "Tonight"}${membar 0}
${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 85}${tztime GMT-5 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/2.png -p 30,240 -s 35x35}\
${goto 100}${texeci 600 sed -n '226p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h4.png -p 115,240 -s 25x25}\
${texeci 600 sed -n '110p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 85}${tztime GMT-6 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/4.png -p 30,300 -s 35x35}\
${goto 100}${texeci 600 sed -n '299p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h5.png -p 115,300 -s 25x25}   
${texeci 600 sed -n '306p' $HOME/Wunderground_conky_script/10days}
...
${membar 0}
${else}${membar 0}
${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 85}${tztime GMT-5 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/1.png -p 30,240 -s 35x35}\
${goto 100}${texeci 600 sed -n '226p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h4.png -p 115,240 -s 25x25}\
${texeci 600 sed -n '12p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 85}${tztime GMT-6 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/3.png -p 30,300 -s 35x35}\
${goto 100}${texeci 600 sed -n '299p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h5.png -p 115,300 -s 25x25}   
${texeci 600 sed -n '208p' $HOME/Wunderground_conky_script/10days}
...
${membar 0}${endif}
]]; 

If you get an additional line try dealing with it with a voffset.


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

#3129 2019-11-17 13:20:17

unklar
Member
Registered: 2015-10-31
Posts: 1,129

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

Thank you for your trouble, Teo.  smile

But I still have to "practice" because this order:

${if_match "${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/10days}" == "Tonight"}

after "CloudCov." there's no more output in the Conky.

The reason seems to me to be that I don't use a Today edition. The next day should appear in the Conky right away.

works

${if_match "${texeci 600 sed -n '100p' $HOME/Wunderground_conky_script/10days}" == "Tonight"}

and

${if_match "${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/10days}" == "Today"}

which I'm not sure this is "Tonight" and "Today" correctly.

Now I have

...
${if_match "${texeci 600 sed -n '2p' $HOME/Wunderground_conky_script/10days}" == "Today"}\
${membar 0}
${execi 3600 date  --date='1 day' '+%a. %e'}\
${goto 85}${tztime GMT-5 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/3.png -p 30,240 -s 35x35}\
${goto 100}${texeci 600 sed -n '226p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h4.png -p 115,240 -s 25x25}\
${texeci 600 sed -n '208p' $HOME/Wunderground_conky_script/10days}°
${membar 0}
${execi 3600 date  --date='2 day' '+%a. %e'}\
${goto 85}${tztime GMT-6 %H} h
${image $HOME/Wunderground_conky_script/Forecast_Images/5.png -p 30,300 -s 35x35}\
${goto 100}${texeci 600 sed -n '299p' $HOME/Wunderground_conky_script/hourly}°
${image $HOME/Wunderground_conky_script/Forecast_Images/h5.png -p 115,300 -s 25x25}   
${texeci 600 sed -n '404p' $HOME/Wunderground_conky_script/10days}°
...

Offline

#3130 2019-11-17 16:41:09

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

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

If the 2nd line of the 10days file is "Tonight", then the sections in the file go as follows:
1-98: Tonight
99-196: Tomorrow
197-294: Tomorrow Night
295-392: Monday
...etc.

If the 2nd line of the 10days file is not "Tonight", then the sections in the file go as follows:
1-98: Today
99-196: Tonight
197-294: Tomorrow
295-392: Tomorrow Night
491-588: Monday
...etc.

So, if sed -n '2p' $HOME/Wunderground_conky_script/10days}" == "Tonight", you need to take data from 99-196, 295-392, etc.
Else, you need to take data from 197-294, 491-588, etc.


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

#3131 2019-11-19 08:45:00

unklar
Member
Registered: 2015-10-31
Posts: 1,129

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

That's right, Teo. But it's not the problem.  smile
The problem is that Conky is cut off, as I wrote above.

I suspect the error is in the if statement and using the "Backslash" in my configuration.

Offline

#3132 2019-11-19 16:32:04

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,123

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

unklar wrote:

That's right, Teo. But it's not the problem.  smile
The problem is that Conky is cut off, as I wrote above.

I suspect the error is in the if statement and using the "Backslash" in my configuration.

You'd "suspect" wrong unklar ...

{sounds of the trumpets announcing the arrival of El Conkystador}

Nowhere in Conky v9 do I see:

max_specials
         Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)

that doesn't exist in v10.  But you can try:

What does exist in both v9 and v10 is:

max_user_text bytes
       Maximum size of user text buffer, i.e. text inside conky.text section in config  file  (default
       is 16384 bytes)

so increase 16384 + 2048 (try) + 2048 (try) see if it adds some missing stuff

If you get it all: reduce that number a "little" at a time as it's chewing up "buffer space" - 512 | - 512



NOTE: I believe you have to "kill" the conky vs just refresh it


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#3133 2019-11-19 21:34:53

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

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

+1 for what S11 said

Also, do you get any error messages when you run conky from a terminal?


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

#3134 2019-11-19 22:16:49

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,123

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

{waving madly from a corner}   Hi my friends unklar and Teo and everyone....

I may not post much these days but I read al lot!  big_smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#3135 2019-11-20 08:14:17

unklar
Member
Registered: 2015-10-31
Posts: 1,129

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

Sector11 wrote:
unklar wrote:

    That's right, Teo. But it's not the problem.  smile
    The problem is that Conky is cut off, as I wrote above.

    I suspect the error is in the if statement and using the "Backslash" in my configuration.

You'd "suspect" wrong unklar ...

{sounds of the trumpets announcing the arrival of El Conkystador}

Nowhere in Conky v9 do I see: ...

Brilliant! That's just awesome! Again it has hit: WOW, BINGO!  big_smile cool

This reminds me when you recommended me years ago to reduce the size of the pictures in Accuweather because of the high Cpu load and in the Conky

--imlib_cache_size = 0,
   imlib_cache_flush_interval = 900,

to do.

This time does exactly

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
# (default is 512)
max_specials 1024

# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
max_user_text 48552

this job!
Thank you very much, my friend. angel


Teo, everything's correct in the terminal. It shows no errors. That's the "malicious" behavior. big_smile

Offline

#3136 2019-11-20 12:40:10

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

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

Good to know unklar, glad you've solved it.


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

#3137 2019-11-20 14:08:03

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,123

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

I so love happy endings  smile


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#3138 2019-11-20 18:18:39

manuel-909
Member
Registered: 2017-10-09
Posts: 84

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

Screenshot-at-2019-11-20-13-17-30.th.png

Offline

#3139 2019-11-20 19:49:24

Sector11
Conky 1.9er Mod Squid
From: Upstairs
Registered: 2015-08-20
Posts: 6,123

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

@ manuel-909

WOW! That is a beautiful desktop!!!

¡Wow! Es un hermoso escritorio!!!

¿Cómo estás mi viejo amigo?


The sun will never set if you keep walking towards it. - my son
Being positive doesn't understand physics.

Offline

#3140 2019-11-20 20:29:38

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

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

Nice one manuel, that's what I call conky-extravaganza!


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

#3141 2019-11-20 23:44:53

manuel-909
Member
Registered: 2017-10-09
Posts: 84

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

I am good my friend sector 11 and you how are you doing ?  , thank's TeoBigusGeekus is all your scripts.

Offline

#3142 2019-11-21 07:36:16

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

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

Thanks for being around mate.


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

#3143 2019-11-21 23:29:13

ector1935
Member
Registered: 2017-05-03
Posts: 200

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

Hi,
@Teo my daily forecast not working

-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Thank for help

Offline

#3144 2019-11-22 00:35:17

manuel-909
Member
Registered: 2017-10-09
Posts: 84

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

Accuweather problem ?

Offline

#3145 2019-11-22 07:22:12

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

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

Thanks for reporting it ector1935.
The daily forecast is indeed problematic; seems like Accuweather are not giving up.
Stay tuned, I'll attend to it as soon as possible (probably tonight)


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

#3146 2019-11-22 08:16:25

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

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

Hello:

I think accuweather have done again. All the data are disappeared except current state.
If I run:

$HOME/Accuweather_conky_script/accuweather -f2016

the result is a bunch of lines with:

cp: cannot stat '/home/juan/Accuweather_conky_script/Forecast_Images_2016/.png':That file or directory doesn’t exist.

(of course the directory and files exist..)
The result of running:

$HOME/conky -c /home/juan/Accuweather_conky_script/.conkyrc/accuweather -f2016

is:

conky: Unable to load image '/home/juan/Accuweather_conky_script/forecast_2016/forecast_2.png'

Thanks for your help.

Last edited by saltasatelites (2019-11-22 08:24:07)

Offline

#3147 2019-11-22 22:54:18

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

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

I'm on it saltasatelites.

I have a new script on my hands, but you have to be patient for another day because I have to correct 8 conkyrcs.
Looks like we've lost some significant daily weather info with this Accuweather update: no real feel, no day+night info and icons-only hi and low temps, etc.
Accuweather giveth and Accuweather taketh away...
Stay tuned.


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

#3148 2019-11-22 22:59:11

ector1935
Member
Registered: 2017-05-03
Posts: 200

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

TeoBigusGeekus wrote:

I'm on it saltasatelites.

I have a new script on my hands, but you have to be patient for another day because I have to correct 8 conkyrcs.
Looks like we've lost some significant daily weather info with this Accuweather update: no real feel, no day+night info and icons-only hi and low temps, etc.
Accuweather giveth and Accuweather taketh away...
Stay tuned.

Great Teo you is very strong.
Thank for all
Ector

Edit
Teo for the moment Working this conky
.conkyrc_acc_hourly_2016
.conkyrc_acc_hourly_weatherfont

Last edited by ector1935 (2019-11-22 23:02:52)

Offline

#3149 2019-11-22 23:01:37

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

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

#3150 2019-11-22 23:06:14

ector1935
Member
Registered: 2017-05-03
Posts: 200

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

TeoBigusGeekus wrote:

wink

Teo please read edit  ops  cool  angel
HBW5sj.th.png

HBWYqx.th.png

Last edited by ector1935 (2019-11-22 23:14:54)

Offline

Board footer

Powered by FluxBB