You are not logged in.
Sector11 wrote:Have a LOT of conkys here that need fixing.
I've already started with one of your most beautiful and adapted the paths.
![]()
But Distrust if I have pictures taken right ...
Looks perfect. Will grab your code and if life stays out of my way - will give it a run here.
It looks like you have it right though ... the images with rain always sit a little high, compared to just cloud or sun/moon
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Here's what I've been working on ... my main Desktop #1:
Accuweather
Top BAR has a full ten days - now showing Fri Night - one can tell by the "Lo°" - Oh well.
During the fay it will show the forecast for "today" but because of the way I have it it will always have "Day ## Mon(th)
# pkill -xf "conky -q -c /home/sector11/1_accuweather/S11_accu_tm_BAR.conky" &
# works - Fri 16 Sep 2016
### 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 Accu tm BAR
own_window_argb_visual yes
own_window_argb_value 80 # 0 - clear | 255 - solid
minimum_size 980 0 ## w|h
maximum_width 980
gap_x 0 ## l|r
gap_y 5 ## u|d
alignment tm
########################################## End Window Settings ###
### Font Settings ################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Fantasque Sans Mono:bold:size=11
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
############################################ End Font Settings ###
### Color Settings ###############################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color FAEBD7 #AntiqueWhite ## DCDCDC #Gainsboro
color0 A9A9A9 #DarkGrey
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 F8F8FF #GhostWhite
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
########################################### End Color Settings ###
### Borders Section ##############################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
########################################### End Borders Secton ###
### Miscellaneous Section ########################################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Subtract (file slystem) buffers from used memory?
no_buffers yes
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
##################################### End Miscellaneous Section ###
#TEXT --- Remove line below TEXT when developing new conky
# This line not required see S12_time_tm.conky
#${execi 900 bash /home/sector11/1_accuweather/1_accuweather -f -h}\
update_interval 1
TEXT
${color6}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
${goto 100}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
${goto 200}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${goto 300}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${goto 500}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
${goto 600}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
${goto 700}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
${goto 800}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${goto 900}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}\
${goto 1000}${execi 3600 echo `date --date="10 day" | awk '{print $1" "$3" "$2}'`}
${color9}${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}°\
${goto 54}${color3}${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}°\
${goto 100}${color9}${execpi 300 sed -n '8p' /home/sector11/1_accuweather/first_days}°\
${goto 154}${color3}${execpi 300 sed -n '9p' /home/sector11/1_accuweather/first_days}°\
${goto 200}${color9}${execpi 300 sed -n '13p' /home/sector11/1_accuweather/first_days}°\
${goto 254}${color3}${execpi 300 sed -n '14p' /home/sector11/1_accuweather/first_days}°\
${goto 300}${color9}${execpi 300 sed -n '18p' /home/sector11/1_accuweather/first_days}°\
${goto 354}${color3}${execpi 300 sed -n '19p' /home/sector11/1_accuweather/first_days}°\
${goto 400}${color9}${execpi 300 sed -n '23p' /home/sector11/1_accuweather/first_days}°\
${goto 454}${color3}${execpi 300 sed -n '24p' /home/sector11/1_accuweather/first_days}°\
${goto 500}${color9}${execpi 300 sed -n '3p' /home/sector11/1_accuweather/last_days}°\
${goto 554}${color3}${execpi 300 sed -n '4p' /home/sector11/1_accuweather/last_days}°\
${goto 600}${color9}${execpi 300 sed -n '8p' /home/sector11/1_accuweather/last_days}°\
${goto 654}${color3}${execpi 300 sed -n '9p' /home/sector11/1_accuweather/last_days}°\
${goto 700}${color9}${execpi 300 sed -n '13p' /home/sector11/1_accuweather/last_days}°\
${goto 754}${color3}${execpi 300 sed -n '14p' /home/sector11/1_accuweather/last_days}°\
${goto 800}${color9}${execpi 300 sed -n '18p' /home/sector11/1_accuweather/last_days}°\
${goto 854}${color3}${execpi 300 sed -n '19p' /home/sector11/1_accuweather/last_days}°\
${goto 900}${color9}${execpi 300 sed -n '23p' /home/sector11/1_accuweather/last_days}°\
${goto 954}${color3}${execpi 300 sed -n '24p' /home/sector11/1_accuweather/last_days}°\
${color5}${font conkyweather:bold:size=18}\
${goto 25}${execpi 300 sed -n '26p' /home/sector11/1_accuweather/first_days}\
${goto 125}${execpi 300 sed -n '27p' /home/sector11/1_accuweather/first_days}\
${goto 225}${execpi 300 sed -n '28p' /home/sector11/1_accuweather/first_days}\
${goto 325}${execpi 300 sed -n '29p' /home/sector11/1_accuweather/first_days}\
${goto 425}${execpi 300 sed -n '30p' /home/sector11/1_accuweather/first_days}\
${goto 525}${execpi 300 sed -n '26p' /home/sector11/1_accuweather/last_days}\
${goto 625}${execpi 300 sed -n '27p' /home/sector11/1_accuweather/last_days}\
${goto 725}${execpi 300 sed -n '28p' /home/sector11/1_accuweather/last_days}\
${goto 825}${execpi 300 sed -n '29p' /home/sector11/1_accuweather/last_days}\
${goto 925}${execpi 300 sed -n '30p' /home/sector11/1_accuweather/last_days}${font}
Accuweather & wunderground
Bottom Bar Current conditions to the left of the QAS and Vol Icons and on the right a combo of the sun moon time info. wunderground supplying the rise set times in 24HR format accuweather supplying the "duration" times.
# pkill -xf "conky -q -c $HOME/1_accuweather/S11_accu_bm_BAR.conky" &
# conky -q -c $HOME/1_accuweather/1b2_companion.conky &
# works 2015-12-27
own_window yes
own_window_type normal
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title S11 Weather Bar Current Weather
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 100
double_buffer yes
minimum_size 1300 0 # w|h
maximum_width 1300
alignment bm
gap_x 0 # l|r
gap_y 0 # u|d
#alignment bl
#gap_x 320 # l|r
#gap_y 0 # u|d
use_xft yes
xftalpha 1
xftfont fantasque sans mono:size=16
override_utf8_locale yes
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color FAEBD7 #AntiqueWhite ## DCDCDC #Gainsboro
color0 A9A9A9 #DarkGrey
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 F8F8FF #GhostWhite
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
background no
use_spacer none
no_buffers yes
#TEXT --- Remove line below TEXT when developing new conky
# This line not required see S12_time_tm.conky
#${execi 900 bash $HOME/1_accuweather/1_accuweather -f -h}\
update_interval 1
TEXT
${goto 5}${color8}${execpi 300 sed -n '2p' $HOME/1_accuweather/curr_cond}°${color}\
${goto 090}±${execpi 300 sed -n '3p' $HOME/1_accuweather/curr_cond}°\
${goto 142}${color}${execpi 300 sed -n '8p' $HOME/1_accuweather/curr_cond}\
${goto 267}${color6}UVI${color} ${execpi 300 sed -n '9p' $HOME/1_accuweather/curr_cond}\
${goto 344}${color6}Hum${color} ${execpi 300 sed -n '7p' $HOME/1_accuweather/curr_cond}\
${goto 445}${color6}W${color} ${execpi 300 sed -n '5p' $HOME/1_accuweather/curr_cond}\
${goto 520}${execpi 300 sed -n '6p' $HOME/1_accuweather/curr_cond}${color}\
${goto 700}${color6}S${color} ${if_match ${execi 86400 sed -n '16p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} < 10}0${endif}\
${execi 86400 sed -n '16p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}:\
${execi 86400 sed -n '18p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} \
${color8}↑ ${execpi 300 sed -n '16p' $HOME/1_accuweather/curr_cond} ↓ \
${color5}${if_match ${execi 86400 sed -n '21p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} < 10}0${endif}\
${execi 86400 sed -n '21p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}:\
${execi 86400 sed -n '23p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}\
${alignr}${color6}M${color} ${if_match ${execi 86400 sed -n '26p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} < 10}0${endif}\
${execi 86400 sed -n '26p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}:\
${execi 86400 sed -n '28p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} \
${color1}↑ ${execpi 300 sed -n '20p' $HOME/1_accuweather/curr_cond} ↓ \
${color}${if_match ${execi 86400 sed -n '31p' /media/5/Conky/2b_Wunderground_API/Moon_Sun} < 10}0${endif}\
${execi 86400 sed -n '31p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}:\
${execi 86400 sed -n '33p' /media/5/Conky/2b_Wunderground_API/Moon_Sun}\
${goto 55}${color5}${font conkyweather:bold:size=20}${execpi 300 sed -n '22p' $HOME/1_accuweather/curr_cond}${font}
Desktop #3 - still a mess - have to fix it.
and finally my wife's desktop: weather supplied by accuweather and wunderground. (Wunderground doesn't have the UVI information) This is the only conky that calls for the weather data, the rest just read the info.
# pkill -xf "conky -q -c /media/5/Conky/S12/S12_time_tm.conky" &
# conky -q -c /media/5/Conky/S12_time_tm.conky &
### Begin Window Settings ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Sector12 Time Weather
### ARGB - used for real transparency
### own_window_transparent no <-- a must!
#own_window_argb_visual yes
#own_window_argb_value 0 # 0 - clear | 255 - solid
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
minimum_size 420 0 # w|h
maximum_width 420
gap_x 0 ### l|r
gap_y 10 ### u|d
# Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
alignment tm #tr
################################################### End Window Settings ###
### Font Settings #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Sans:size=15
#xftfont monofur:bold:size=11
xftfont monofur:bold:size=16
#xftfont Sesame Shadow:size=200
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
draw_shades yes #### <<<--- yes --- To see it easier on light screens.
default_shade_color 000000
draw_outline no #### <<<--- yes --- Amplifies text if yes OJO with changing fonts
default_outline_color 000000
#default_color DCDCDC #Gainsboro
default_color E0FFFF #LightCyan FFDEAD #NavajoWhite
color0 3D3DFD # blue
color1 D04BFF # violet
color2 778899 #LightSlateGray
color3 E0FFFF #LightCyan
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Subtract (file system) buffers from used memory?
no_buffers yes
## Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value
## if you use $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0
############################################## End Miscellaneous Section ###
update_interval 1
##### Single scripts #####
#${execi 900 bash /media/5/Conky/2b_Wunderground_API/2b}\
#${execi 900 bash /media/5/Conky/1b2_accuweather_conkyweather_font/1b2}\
### Combo scripts ###
### 1b1_accuweather_images with 2b_Wunderground_API
#${execi 900 bash /media/5/Conky/1b1_2b/1b1_2b}\
### 1b2_accuweather_conkyweather_font with 2b_Wunderground_API
# OLD: #${execi 900 bash /media/5/Conky/1b1_2b/1b1_1b2_2b}\
#${execi 900 bash $HOME/1_accuweather/1_accuweather -f -h}\
#${execi 900 bash /media/5/Conky/2b_Wunderground_API/2b}\
TEXT
${execi 900 bash $HOME/1_accuweather/1_accuweather -f -h}\
${execi 900 bash /media/5/Conky/2b_Wunderground_API/2b}\
${color1}${execpi 300 sed -n '39p' /media/5/Conky/2b_Wunderground_API/Simple_Forecast}°${color}\
${image /media/5/Conky/2b_Wunderground_API/Moon_phase.png -p 250,-2 -s 40x40}\
${image /media/5/Conky/2b_Wunderground_API/d1.png -p 0,0 -s 125x75}\
${image /media/5/Conky/2b_Wunderground_API/Now.png -p 150,0 -s 125x75}\
${image /media/5/Conky/2b_Wunderground_API/n1.png -p 300,0 -s 125x75}
${alignr}${color0}${execpi 300 sed -n '44p' /media/5/Conky/2b_Wunderground_API/Simple_Forecast}°${color}
Today${goto 205}Now${alignr 15}Tonight
UVI ${execpi 300 sed -n '9p' $HOME/1_accuweather/curr_cond} | 11\
${goto 160}${color3}±${execpi 300 sed -n '3p' $HOME/1_accuweather/curr_cond}°\
${goto 235}${color3}${execpi 300 sed -n '2p' $HOME/1_accuweather/curr_cond}°${color}\
${alignr}Hum ${execpi 300 sed -n '69p' /media/5/Conky/2b_Wunderground_API/Conditions}
${alignc}${if_match "${execpi 90 sed -n '89p' /media/5/Conky/2b_Wunderground_API/Conditions}"=="-"}↓↓${else}${if_match "${execpi 90 sed -n '89p' /media/5/Conky/2b_Wunderground_API/Conditions}"=="0"}↓↑${else}${if_match "${execpi 90 sed -n '89p' /media/5/Conky/2b_Wunderground_API/Conditions}"=="+"}↑↑${endif}${endif}${endif} \
${execpi 300 sed -n '85p' /media/5/Conky/2b_Wunderground_API/Conditions} mb
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
But Today - Tonight was so convenient. Wonder what dumb bunny over at accuweather decided to drop "Tonight" - maybe he has two jobs - and is responsible for 'wunderground' not having the UV Index. ]:D
Yeah, I know, they just had to abandon it; were it not for it, there would almost be no difference from the deprecated scripts (apart from the precipitation that is).
Ah, well...
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
ok, I think this was the error.
...
${image $HOME/1_accuweather/0.png -p 55,103 -s 125x75}\
${image $HOME/1_accuweather/1.png -p 5,175 -s 46x27}\
${image $HOME/1_accuweather/2.png -p 51,175 -s 46x27}\
${image $HOME/1_accuweather/3.png -p 97,175 -s 46x27}\
${image $HOME/1_accuweather/4.png -p 143,175 -s 46x27}\
${image $HOME/1_accuweather/[b]5[/b].png -p 188,175 -s 46x27}\
...
Offline
ANNOUNCEMENT
Tiny errors on two of the new .conkyrc files, see here. I corrected them and rebundled the package.
Thanks to ghorvath for the sharp eye.
You might consider adding .tar.gz to the end of the file. Otherwise, fileroller doesn't recognize the file. I just copied the file to another file with the same name, but with the .tar.gz extension.
Edit: I'm not getting images for my hourly display. Might line 127 in the 1_accuweather script be an issue if one is running both the .conkyrc_1_images and the .conkyrc_1_hourly scripts?
rm $HOME/1_accuweather/*.png
That deletes ALL *.png files, including the ones beginning with hourly. I also start the .conkyrc_1_hourly script 10 seconds after the .conkyrc_1_images script.
Last edited by KrunchTime (2016-09-18 03:32:14)
Offline
You might consider adding .tar.gz to the end of the file. Otherwise, fileroller doesn't recognize the file. I just copied the file to another file with the same name, but with the .tar.gz extension.
Yep, mea culpa.
Edit: I'm not getting images for my hourly display. Might line 127 in the 1_accuweather script be an issue if one is running both the .conkyrc_1_images and the .conkyrc_1_hourly scripts?
rm $HOME/1_accuweather/*.png
That deletes ALL *.png files, including the ones beginning with hourly. I also start the .conkyrc_1_hourly script 10 seconds after the .conkyrc_1_images script.
Brilliant! I'll update the script and the appropriate conkyrc.
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
ANNOUNCEMENT
Some brilliant points raised by Krunchtime. I've updated the script: now the forecast images have the prefix forecast_ so that the script can erase only them and them alone at its launch without touching the hourly images. The .conkyrc_1_images has been corrected as well. Cheers Krunchtime!
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
Awwwwwwwwwwwwwwwwwwwwww CRAP! ^^^^^^ more fixing!
What a horrible couple of days. Yesterday (Saturday) we lost power twice for a couple of hours each time. GRRRRRRRRRR!
Today my ISP has be in a "connected | not connected cycle". At least I can work with existing databases as I don't include the bash calls to the internet while in 'development mode'.
Seen here are two conkys using the new script and a tweaked script. Someone here mentioned using the old images, I agree they are nice especially when using a smaller size. The new ones are not 'small' friendly!
So I fixed up my clock-moom-accuweather conky on the right. Some things had to change because accuweather made some changes (not for the better IMHO - I liked the "Todat | Tonight" calls that no longer exist and no more Change of Precipitation either.
So the 9 day forecast became a 10 day forecast as today's 'forecast' starts it off. Will still see the "Lo°" for the low temp after 18:00 or so when it goes into the 'tonight's forecast' mode.
Everything is a mess code wise.
The conkys are in:
On the left:
$HOME/1_accuweather/accu-1b1.conky
and it uses
${texeci 600 bash $HOME/1_accuweather/1_accuweather -f -h}
as Teo created it.
On the right:
/media/5/Conky/The_Clock_3-9day_2.conky
and it uses:
##${execi 900 bash $HOME/1_accuweather/2015/1_accu_2015}\
##${execi 900 bash /media/5/Conky/4_Moon/moon}\
with things tweaked to use the scripts and images where I have them.
Everything will eventually be in /media/5/Conky - so "my" tweaking isn't finished yet"
Internet is back again - time to copy paste this to the thread....
The code if you're up to tweaking your own: The_Clock_3-9day_2.conky
# pkill -xf "conky -q -c /media/5/Conky/The_Clock_3-9day_2.conky" &
# Working: Wed 17 Aug 2016 11:51:09
## ---------- Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title The Clock 3 9day 2
# ARGB can be used for real transparency
# 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 70
minimum_size 200 700
maximum_width 200
gap_x 10 ## l|r
gap_y 10 ## u|d
alignment tr
## ---------- End Window Settings
## ---------- Font Settings
## Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Fantasque Sans Mono:bold:size=11
## Alpha of Xft font. Must be a value at or between 1 and 0
xftalpha 1.0
## Force UTF8? requires XFT
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 f5fffa ## MintCream
color1 778899 ## LightSlateGray
color2 FFA07A ## LightSalmon
color3 87CEFA ## LightSkyBlue
color4 48D1CC ## MediumTurquoise
color5 FFDEAD ## NavajoWhite
color6 00BFFF ## DeepSkyBlue
color7 B0E0E6 ## PowderBlue
color8 FFD700 ## Gold
color9 CD5C5C ## IndianRed
## ---------- End Color Settings
## ---------- Begin Borders Section
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders yes ## no
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
## Boolean value, if true, Conky will be forked to background when started.
background yes ## yes
imlib_cache_size 0
## Adds spaces around certain objects to stop them from moving other things
## around, this only helps if you are using a mono font
## Options: right, left or none
use_spacer none
## Subtract (file slystem) buffers from used memory?
no_buffers yes
## Use the Xdbe extension? (eliminates flicker)
## It is highly reco${color}mmended to use own window with this one
## so double buffer won't be so big.
double_buffer yes
update_interval 1
##${image /media/5/Conky/images/bk_40.png -p -5,-5 -s 220x770}\
##${execi 900 bash $HOME/1_accuweather/2015/1_accu_2015}\
##${execi 900 bash /media/5/Conky/4_Moon/moon}\
TEXT
${image /media/5/Conky/images/bk_40.png -p -5,-5 -s 220x770}\
${image /media/5/Conky/4_Moon/0.png -p 17,90 -s 60x60}\
${image $HOME/1_accuweather/2015/0.png -p 7,115 -s 200x120}\
${font LED_mono:size=30}${goto 30}${color1}88:88:88${goto 30}${color5}${time %T}${color}${font}
${alignc}${time %a %d %b %Y}
${alignc}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Afternoon${else}Good Evening${endif}${endif}
${font monofur:bold:size=16}${color8}±${execpi 600 sed -n '3p' $HOME/1_accuweather/2015/curr_cond}°\
${alignr}${color}${execpi 600 sed -n '2p' $HOME/1_accuweather/2015/curr_cond}°${font}
Bar ${execpi 600 sed -n '8p' $HOME/1_accuweather/2015/curr_cond}\
${goto 150}Cld${alignr}${execi 90 sed -n '10p' $HOME/1_accuweather/2015/curr_cond}
UVI ${execpi 600 sed -n '9p' $HOME/1_accuweather/2015/curr_cond} /11\
${goto 150}Hum${alignr}${execpi 600 sed -n '7p' $HOME/1_accuweather/2015/curr_cond}
DP ${execi 90 sed -n '12p' $HOME/1_accuweather/2015/curr_cond}°\
${alignr}Vis ${execi 90 sed -n '13p' $HOME/1_accuweather/2015/curr_cond}
${alignc}Wind ${execi 90 sed -n '5p' $HOME/1_accuweather/2015/curr_cond}\
@ ${execi 90 sed -n '6p' $HOME/1_accuweather/2015/curr_cond}
${alignc}${color5}${swapbar 0,15} Buenos Aires Sun ${swapbar 0,15}${color}
Rise${color7} ${execpi 600 sed -n '14p' $HOME/1_accuweather/2015/curr_cond}\
${alignr}${color5}Set ${color7}${execpi 600 sed -n '15p' $HOME/1_accuweather/2015/curr_cond}${color}
Duration:
${alignc}${color5}${swapbar 0,15} The Southern Moon ${swapbar 0,15}${color}
Rise${color7} ${execpi 600 sed -n '18p' $HOME/1_accuweather/2015/curr_cond}${color}\
${alignr}${color5}Set ${color7}${execpi 600 sed -n '19p' $HOME/1_accuweather/2015/curr_cond}${color}
Duration:
${alignc}${execpi 600 sed -n '7p' /media/5/Conky/4_Moon/raw}
${alignc}${execpi 600 sed -n '1p' /media/5/Conky/4_Moon/raw} \
visible @ ${execi 600 sed -n '6p' /media/5/Conky/4_Moon/raw}°
${alignc}and ${execi 600 sed -n '5p' /media/5/Conky/4_Moon/raw} day(s) old${font}
${alignc}${color5}${swapbar 0,15} TEN DAY FORECAST ${swapbar 0,15}${color}
${pre_exec echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${pre_exec echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/2015/1.png -p 22,450 -s 80x48}\
${image $HOME/1_accuweather/2015/2.png -p 129,450 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '3p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '8p' $HOME/1_accuweather/2015/first_days}°${color}
${goto 11}${color7}${execi 90 sed -n '4p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '9p' $HOME/1_accuweather/2015/first_days}°${color}
${pre_exec echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${pre_exec echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/2015/3.png -p 22,510 -s 80x48}\
${image $HOME/1_accuweather/2015/4.png -p 129,510 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '13p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '18p' $HOME/1_accuweather/2015/first_days}°${color}
${goto 11}${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '19p' $HOME/1_accuweather/2015/first_days}°${color}
${pre_exec echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${pre_exec echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/2015/5.png -p 22,570 -s 80x48}\
${image $HOME/1_accuweather/2015/6.png -p 129,570 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '23p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '3p' $HOME/1_accuweather/2015/last_days}°${color}
${goto 11}${color7}${execi 90 sed -n '24p' $HOME/1_accuweather/2015/first_days}°\
${goto 118}${execi 90 sed -n '4p' $HOME/1_accuweather/2015/last_days}°${color}
${pre_exec echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${pre_exec echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/2015/7.png -p 22,630 -s 80x48}\
${image $HOME/1_accuweather/2015/8.png -p 129,630 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '8p' $HOME/1_accuweather/2015/last_days}°\
${goto 118}${execi 90 sed -n '13p' $HOME/1_accuweather/2015/last_days}°${color}
${goto 11}${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/2015/last_days}°\
${goto 118}${execi 90 sed -n '14p' $HOME/1_accuweather/2015/last_days}°${color}
${pre_exec echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
${alignr 10}${pre_exec echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}
${image $HOME/1_accuweather/2015/9.png -p 22,690 -s 80x48}\
${image $HOME/1_accuweather/2015/10.png -p 129,690 -s 80x48}\
${goto 11}${color2}${execi 90 sed -n '18p' $HOME/1_accuweather/2015/last_days}°\
${goto 118}${execi 90 sed -n '23p' $HOME/1_accuweather/2015/last_days}°${color}
${goto 11}${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/2015/last_days}°\
${goto 118}${execi 90 sed -n '24p' $HOME/1_accuweather/2015/last_days}°${color}
${swapbar 0}
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ Teo
Is there a way to have the script look for images in 2016 or 2015?
Kinda like:
${texeci 600 bash $HOME/1_accuweather/1_accuweather -f -h -2016}
and have the script save the images in different directories:
~/1_accuweather
~/1_accuweather/Forecast_image_2016 <<- get these
~/1_accuweather/Forecast_image_2015 <<- get these
~/1_accuweather/2015 <<- save here and use these in conky
~/1_accuweather/2016 <<- save here and use these in conky
~/1_accuweather/hourly <<- save here and use these in conky
I've commented out these commands:
# kill -STOP $(pidof conky)
# killall wget
# rm $HOME/1_accuweather/2015/*.png
# kill -CONT $(pidof conky)
in all of Teo's scripts, for years now, and have not had any problems.
Q: Why delete the images? wget will just replace them to the best of my knoledge - and it's always worked for me.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
All is well now. Great work, Teo!
Sector11 wrote:Awwwwwwwwwwwwwwwwwwwwww CRAP! ^^^^^^ more fixing!
Sector11 wrote:Q: Why delete the images? wget will just replace them to the best of my kno(w)ledge - and it's always worked for me.
Perhaps only the updated images would get replaced.
Me and my w's - if it wasn't for my bad typing I'd have no typing at all.
Well, personally I think they all get over written whenever the script runs. Like I've said I've never had a problem.
Now it's time to get the new one and start again... no wicked for the rested!
Last edited by KrunchTime (2016-09-18 22:27:09)
Offline
Alright, nice topics for discussion.
First of all, I do think it's time to abandon the
killall wget
command.
As I say on the first page
The command, which kills all instances of wget, is a reminiscent of an older version of the scripts that used curl instead of wget. Curl had the annoying habit of leaving unfinished, zombie processes after its every call; therefore I added a "killall curl" at the beginning of every script. Later, I changed curl with wget, so the command became "killall wget"; not that wget behaves like curl, in terms of zombie processes, but better safe than sorry...
The power of repetition...
I don't think, however, that I should stop pausing conky while populating the forecast files.
Some people have slow pcs or slow internet connections; not pausing conky while the files are updated could lead to empty desktops.
Does anyone remember the Weather.com conky? (...the horror...)
Now, I delete the images every time the script is executed for consistency reasons: if the accuweather page is down, or your internet connection is cut, you want to know that the script hasn't been updated (empty screen).
Or, imagine the following scenario: the first days page loads without trouble, but the next days page fails to load (or the opposite).
You could still have the images from last night as your last_days images...
@ Teo
Is there a way to have the script look for images in 2016 or 2015?
Kinda like:
${texeci 600 bash $HOME/1_accuweather/1_accuweather -f -h -2016}and have the script save the images in different directories:
~/1_accuweather
~/1_accuweather/Forecast_image_2016 <<- get these
~/1_accuweather/Forecast_image_2015 <<- get these
~/1_accuweather/2015 <<- save here and use these in conky
~/1_accuweather/2016 <<- save here and use these in conky
~/1_accuweather/hourly <<- save here and use these in conky
That's a thought. Instead of adding another parameter (-2016), I could just use -f2015 and -f2016.
Also, instead of putting the images in different folders, I could name them differently: forecast_2015_1.png, forecast_2016_1.png, hourly_1.png, etc.
Having different folders increases the chances of a script's failure (ex. user deletes the ~/1_accuweather/2015 folder by mistake)
Thoughts? What do you guys say?
Last edited by TeoBigusGeekus (2016-09-19 06:52:26)
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
Alright, nice topics for discussion.
First of all, I do think it's time to abandon the
killall wget
command.
As I say on the first page
Well that makes sense.
I don't think, however, that I should stop pausing conky while populating the forecast files.
Some people have slow pcs or slow internet connections; not pausing conky while the files are updated could lead to empty desktops.
Does anyone remember the Weather.com conky? (...the horror...)Now, I delete the images every time the script is executed for consistency reasons: if the accuweather page is down, or your internet connection is cut, you want to know that the script hasn't been updated (empty screen).
Or, imagine the following scenario: the first days page loads without trouble, but the next days page fails to load (or the opposite).
You could still have the images from last night as your last_days images...
Well, I see your point however I have other conkys that go on the net to get information - one being my "exchange rate" calls. Living in a land of 'pesos' that is pre-occupied with the US$ while getting a pension in Cdn$, it's a need to know thing. I've had that conky "killed" in the middle of being online, restarting the conky doesn't restart the wget process.
So it's become a matter of the users needs I guess.
Here's a thought. Since individual conkys can be 'killed' and restarted - maybe individual conkys can be 'stopped' and 'started' ....
Example with my text conky:
If (and I do) I start it like this:
conky -q -c /media/5/Conky/test.conky &
I can kill just that conky with:
pkill -xf "conky -q -c /media/5/Conky/test.conky" &
What goes between the quote marks must be identical with the way it was started - including command line options.
but this doesn't work:
19 Sep 16 @ 10:31:07 ~
$ kill -STOP $(pidof "conky -q -c /media/5/Conky/test.conky")
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
19 Sep 16 @ 10:31:15 ~
$
Quick search: I have a few:
19 Sep 16 @ 10:31:15 ~
$ ps ax | grep conky
2928 ? S 1:03 conky -q -c /media/5/Conky/S12/S12_time_tm.conky
2929 ? S 0:05 conky -q -c /media/5/Conky/S12/S12_time_R.conky
2930 ? S 0:05 conky -q -c /media/5/Conky/S12/S12_time_L.conky
4045 ? Sl 0:33 conky -q -c /media/5/Conky/S11_Rem_Cal.conky
4164 ? Sl 0:43 conky -q -c /media/5/Conky/S11_Dates.conky
4176 ? Sl 0:08 conky -q -c /media/5/Conky/S11_DateTime_br.conky
4181 ? S 0:12 conky -q -c /media/5/Conky/S11_Email_01.conky
4182 ? S 0:13 conky -q -c /home/sector11/1_accuweather/S11_accu_bm_BAR.conky
4185 ? S 0:15 conky -q -c /home/sector11/1_accuweather/S11_accu_tm_BAR.conky
4187 ? Sl 0:15 conky -q -c /media/5/Conky/S11_thin_l2_side.conky
4188 ? Sl 0:23 conky -q -c /media/5/Conky/S11_thin_r2_side.conky
5907 ? Sl 2:32 conky -q -c /media/5/Conky/The_Clock_3-9day_2.conky
22024 ? Sl 0:06 medit /media/5/Conky/test.conky
25132 ? Sl 0:01 conky -q -c /media/5/Conky/test.conky
26553 pts/2 S+ 0:00 grep conky
19 Sep 16 @ 10:34:30 ~
$
Sector11 wrote:@ Teo
Is there a way to have the script look for images in 2016 or 2015?
Having different folders increases the chances of a script's failure (ex. user deletes the ~/1_accuweather/2015 folder by mistake)
Thoughts? What do you guys say?
Yea but if I'm using accuweather on Desktop #1 with fonts and 2015 images on Desktop 3 and call up an example of the new images ... {sigh}
I'm sooooooooooooo complicated-
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I agree with the pkill command, although it will add a new layer of complexity for the average user.
I'll start with this script and slowly replace the killall commands in all other scripts over time.
Never had such problems myself since I only run a single conky...
I'll see what I can do with the folders (2015, 2016).
As for the parameters to use, I'll introduce four new ones, namely -f2015 (forecast with old images), -f2016 (forecast with new images), -h2015 (hourly with old images), -h2016 (hourly with new images).
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
(DELETED)
Last edited by TeoBigusGeekus (2016-09-19 19:41:27)
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
@Teo
Yes, I agree, it is a 'layer of complexity' that 98.6% (random made up percentile) of the conky users would have no use for.
I can't code worth a penny, but maybe that could be something to set "inside" the script.
- Default is not to use it.
- if used the user would have to "plug-in" the information.
I'll wait before I make any more change here to see what you come up with.
However I'm going to copy the /media/5/Conky/The_Clock_3-9day_2.conky to ~/1_accuweather/The_Clock_10day.conky and tweak it so it's working from the directory you are using.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Your post was not there when I wrote my post ... you are fast I was slow slow slooooow.
Testing now....
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ Teo
I don't think this is the answer. This:
#Put the command you use to launch conky here, between the double quotes
#ie. "conky", "conky -c /home/yourusername/.conkyrc", etc.
#DON'T USE TILDES (~)
conky_launch="conky"
limits the script to running only one "accuweather" conky. Not thought out on my part.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
So, it's either pause one conky or all of them?
Hmm....
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
#Put the command you use to launch conky here, between the double quotes
#ie. "conky", "conky -c /home/yourusername/.conkyrc", etc.
#DON'T USE TILDES (~)
#If this script is used by more than one conkyrc files, use the conky_launch2, conky_launch3, etc. variables
conky_launch="conky"
#conky_launch2="conky -c /folder/.conkyconfig"
#conky_launch3="conky -c /otherfolder/.otherconkyconfig"
.
.
.
.
pkill -xf "$conky_launch" --signal STOP
#If this script is used by more than one conkyrc files, use the conky_launch2, conky_launch3, etc. variables
#pkill -xf "$conky_launch2" --signal STOP
#pkill -xf "$conky_launch2" --signal STOP
What about now?
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
Pause one as above or none or all.
Like I said before I don't pause them, but I see your reasons for doing so.
Set it up to pause all conkys - as you had it. I, and people like me, can comment out those lines if we want to.
I can always go back to making "combo" (accuweather-moon) scripts or a conky that does nothing but call accuweather and get the data and the working conkys only read the data. Trust me I have a lot that just read the data now.
In my bash script:
(sleep 0 && wmctrl -s 3 && conky -q -c /accu-data.conky) & ##get data only
(sleep 5 && wmctrl -s 3 && conky -q -c /media/5/Conky/S12/S12_wx_tm.conky) & ##read only
(sleep 5 && wmctrl -s 3 && conky -q -c /media/5/Conky/S12/S12_time_L.conky) &
(sleep 5 && wmctrl -s 3 && conky -q -c /media/5/Conky/S12/S12_time_R.conky) &
(sleep 7 && wmctrl -s 2 && conky -q -c ~/1_accuweather/The_Clock-10day.conky) & ##read only
(sleep 9 && wmctrl -s 0 && conky -q -c $HOME/1_accuweather/S11_accu_tm_BAR.conky) & ##read only
(sleep 9 && wmctrl -s 0 && conky -q -c $HOME/1_accuweather/S11_accu_bm_BAR.conky) & ##read only
I'm crazy I know ... I'm a conky addict and I can quit anytime I want!
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline