Conky Helps and Stuff

Message
Author
User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Conky Helps and Stuff

#131 Post by fehlix »

Well, looks nice.
And, as I can't resist....
Looking into the code, I had the impression the author appears to have another locale, i.e. LANE=de.
Which made me wonder whether he really had meant to show, the date in the format as you have shown in the picture.
Have a look in lang=de the date would look like this:

Code: Select all

LANG=de_DE.UTF-8 date --date="1 day" | awk '{print $1" "$2}'
Mi 4.
But in your locale LANG=en it shows as such:

Code: Select all

LANG=en_US.UTF-8 date --date="1 day" | awk '{print $1" "$2}'
Wed Jul
You might get closer to the authors idea by just let date printing the required info out, with out asking awk to grep the fields wrongly. The code would look like this:
replace this

Code: Select all

echo `date --date="1 day" | awk '{print $1" "$2}'`
with

Code: Select all

date  --date='1 day' '+%a %e'
The code would also avoid the unnecessary extra pipe through awk and extra echo of the subshell-output..
If you really want to see the month 4 times

Code: Select all

 date  --date='2 day' '+%a %b'
Thu Jul
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
richb
Administrator
Posts: 10345
Joined: Wed Jul 12, 2006 2:17 pm

Re: Conky Helps and Stuff

#132 Post by richb »

Thanks but this is over my head. I could blindly follow your revised code, but since I do not understand it I am reluctant to do so. The code may be inefficient but I have the results I want and I have "messed" with this for several days and hours. I need to stop.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
fehlix
Developer
Posts: 10383
Joined: Wed Apr 11, 2018 5:09 pm

Re: Conky Helps and Stuff

#133 Post by fehlix »

richb wrote: Mon Jul 02, 2018 8:17 pm Thanks but this is over my head. I could blindly follow your revised code, but since I do not understand it I am reluctant to do so. The code may be inefficient but I have the results I want and I have "messed" with this for several days and hours. I need to stop.
OK, here is the last code you send with my changes regarding the date format and output:

Code: Select all

# pkill -xf "conky -c /home/USER/eadwine/conkyrc9
# 2018-06-26 @male for @Eadwine Rose

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,skip_taskbar,skip_pager,below
#own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 80
own_window_class Conky

minimum_size 670 370
#maximum_width 655
gap_x 10 # l|r
gap_y -50 # u|d
#alignment tl
alignment tr

use_xft yes
xftfont GE Inspira:size=10
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1
lua_load /home/rich/.conky/eadwine/LUA/image.lua

TEXT
##### Start #####
${execi 600 bash $HOME/1_accuweather/1_accuweather -f2015 -h2015}
##### Zeit #####
#${voffset -35}${font GE Inspira:size=30}${time %I:%M}${font GE Inspira:size=20}${color 808080}${goto 180}$color$font
##### Datum #####
#${voffset -55}${font GE Inspira:size=14}${alignc 50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 10}${font GE Inspira:size=12}Wind : ${execi 600 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 600 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 10}Humidity : ${execi 600 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 10}Pressure : ${execi 600 sed -n '8p' $HOME/1_accuweather/curr_cond}
#### Stadt ####
${voffset 10}${font GE Inspira:size=14}Charlotte,  NY${font} ${execi 600 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 600 sed -n '2p'  $HOME/1_accuweather/curr_cond} °F ${font} ${offset -160}Current : ${offset 100}Feels :  ${voffset -15}${font GE Inspira:size=18}${execi 600 sed -n '3p' $HOME/1_accuweather/curr_cond} °F
${goto 555}${voffset -180}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Anzeige der nächsten drei Stunden und drei Tage ####
${voffset -95}
${goto 20}${tztime GMT+1 %I %p}\
${goto 95}${tztime GMT %I %p}\
${goto 170}${execi 3600 date  --date='1 day' '+%a %e'}\
${goto 245}${execi 3600 date  --date='2 day' '+%a %e'}\
${goto 320}${execi 3600 date  --date='3 day' '+%a %e'}\
${goto 395}${execi 3600 date  --date='4 day' '+%a %e'}}
##### Temperaturanzeige  #####
${voffset 25}
${goto 30}${execi 600 sed -n '32p' $HOME/1_accuweather/hourly1}°\
${goto 105}${execi 600 sed -n '33p' $HOME/1_accuweather/hourly1}°\
${goto 170}${color9}${execi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 245}${color9}${execi 600 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 325}${color9}${execi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 400}${color9}${execi 600 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 600 sed -n '24p' $HOME/1_accuweather/first_days}°${color}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 200 20 200 125 0}${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 470 60 190 190 0}\
#### Icons für die nächsten 3 Stunden und 3 Tage ####
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_2.png 10 235 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/hourly_2015/hourly_3.png 85 235 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 160 235 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 235 235 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 310 235 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 385 235 70 40 0}\
${voffset -800}
Gigabyte Z77M-D3H, Intel Xeon E3-1240 V2 (Quad core), 32GB RAM,
GeForce GTX 770, Samsung SSD 850 EVO 500GB, Seagate Barracuda 4TB

User avatar
richb
Administrator
Posts: 10345
Joined: Wed Jul 12, 2006 2:17 pm

Re: Conky Helps and Stuff

#134 Post by richb »

Thanks again. Seeing the entire code helped me understand better what you were getting at. Indeed
Tue 3
is more meaningful Than
Tue Jul.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
sunrat
Posts: 636
Joined: Mon Mar 28, 2016 9:54 pm

Re: Conky Helps and Stuff

#135 Post by sunrat »

richb wrote: Mon Jul 02, 2018 8:17 pmThe code may be inefficient but I have the results I want and I have "messed" with this for several days and hours. I need to stop.
Conky is the Hotel California of Linux. You can never leave. ;)
I've spent many dozens of hours tweaking Conky, always just needs a little change. And I haven't even touched a weather Conky since Yahoo made its weather site difficult to parse.

User avatar
Eadwine Rose
Administrator
Posts: 11968
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#136 Post by Eadwine Rose »

Another bit of code that I changed around. I wanted to know the max/min of today as well as the current temp, managed to get that to show up :)

Code: Select all

${font}${goto 25}Current :${voffset -10}${font GE Inspira:size=18}${goto 100}${execi 600 sed -n '2p' $HOME/1_accuweather/curr_cond}°C         ${font}${goto 250}Today :${voffset -10}${font GE Inspira:size=18}${goto 325}${execi 600 sed -n '3p' $HOME/1_accuweather/first_days}°C / ${execi 600 sed -n '4p' $HOME/1_accuweather/first_days}°C
Arrow is pointing to the line. :)
todayandcurrent.jpg
You do not have the required permissions to view the files attached to this post.
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
asqwerth
Developer
Posts: 7231
Joined: Sun May 27, 2007 5:37 am

Re: Conky Helps and Stuff

#137 Post by asqwerth »

fehlix wrote: Mon Jul 02, 2018 8:34 pm
richb wrote: Mon Jul 02, 2018 8:17 pm Thanks but this is over my head. I could blindly follow your revised code, but since I do not understand it I am reluctant to do so. The code may be inefficient but I have the results I want and I have "messed" with this for several days and hours. I need to stop.
OK, here is the last code you send with my changes regarding the date format and output:
... [snip]
Thanks, @fehlix, that explains the strange date display! I should have caught the lang=de thing, but these conkys are really long and involved, so I just copied them over and and only checked on the various file locations and paths referenced.
Desktop: Intel i5-4460, 16GB RAM, Intel integrated graphics
Clevo N130WU-based Ultrabook: Intel i7-8550U (Kaby Lake R), 16GB RAM, Intel integrated graphics (UEFI)
ASUS X42D laptop: AMD Phenom II, 6GB RAM, Mobility Radeon HD 5400

male

Re: Conky Helps and Stuff

#138 Post by male »

@Eadwine

my final offer for your "Icognito-conky."
with all three icons / script types, without current time and location designation, plus a 6 day preview :happy:

eadwine_2016

Code: Select all

# pkill -xf "conky -c /path/to/conkyrc
# 2018-06-26 @male for @Eadwine Rose

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below   #undecorated,
#own_window_colour 000000
#own_window_argb_visual yes
#own_window_argb_value 80
own_window_class Conky

minimum_size 660 220
#maximum_width 655
gap_x 10 # l|r
gap_y -50 # u|d
#alignment tl
alignment ml

use_xft yes
xftfont GE Inspira:size=9
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1

lua_load ~/LUA/image.lua

TEXT





##### Start #####
${texeci 500 bash $HOME/1_accuweather/1_accuweather -f2016}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Humidity : ${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 310}Pressure : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}

#### Stadt ####
${voffset -5}#${font GE Inspira:size=14}Den Haag : ${font} ${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Anzeige der sechs Tage ####
${voffset -60}${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}\
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 25}
${goto 20}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 95}${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 170}${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 245}${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execpi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}\
${goto 400}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}
#${voffset -20}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_0.png 15 15 150 145 0}${lua fDrawImage $HOME/1_accuweather/forecast_2016/wind_0.png 492 65 135 135 0}\
#### Icons für die sechs Tage ####
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_2.png 10 180 40 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_3.png 85 180 40 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_4.png 160 180 40 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_5.png 235 180 40 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_6.png 310 180 40 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2016/forecast_7.png 390 180 40 40 0}
${voffset -100}
eadwine_weather

Code: Select all

# pkill -xf "conky -c /path/to/conkyrc
# 2018-06-26 @male for @Eadwine Rose

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below   #undecorated,
#own_window_colour 000000
#own_window_argb_visual yes
#own_window_argb_value 80
own_window_class Conky

minimum_size 660 220
#maximum_width 655
gap_x 10 # l|r
gap_y 20 # u|d
#alignment tl
alignment tm

use_xft yes
xftfont GE Inspira:size=9
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1

#lua_load ~/LUA/image.lua

TEXT





##### Start #####
${texeci 500 bash $HOME/1_accuweather/1_accuweather -f}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Humidity : ${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 310}Pressure : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}

#### Stadt ####
${voffset -5}#${font GE Inspira:size=14}Den Haag : ${font} ${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
${font}
#### Anzeige der sechs Tage ####
${voffset -20}${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}\
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 20}
${goto 20}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 95}${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 170}${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 245}${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execpi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}\
${goto 400}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}
#${voffset -30}
#### Icons aktuelle Bedingungen und Wind ####
${voffset -210}${goto 20}${font conkyweather:size=120}${execi 90  sed -n '22p' $HOME/1_accuweather/curr_cond}\
${voffset 30}${goto 490}${font ConkyWindNESW:size=110}${execi 90 sed -n '27p' $HOME/1_accuweather/curr_cond}
#### Icons für die sechs Tage ####
${voffset -103}${goto 10}${font conkyweather:size=32}${execi 90  sed -n '27p' $HOME/1_accuweather/first_days}\
${goto 85}${font conkyweather:size=32}${execi 90  sed -n '28p' $HOME/1_accuweather/first_days}\
${goto 160}${font conkyweather:size=32}${execi 90  sed -n '29p' $HOME/1_accuweather/first_days}\
${goto 235}${font conkyweather:size=32}${execi 90  sed -n '30p' $HOME/1_accuweather/first_days}\
${goto 310}${font conkyweather:size=32}${execi 90  sed -n '26p' $HOME/1_accuweather/last_days}\
${goto 390}${font conkyweather:size=32}${execi 90  sed -n '27p' $HOME/1_accuweather/last_days}
${voffset -500}
eadwine_2015

Code: Select all

# pkill -xf "conky -c /path/to/conkyrc
# 2018-06-26 @male for @Eadwine Rose

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below   #undecorated,
#own_window_colour 000000
#own_window_argb_visual yes
#own_window_argb_value 80
own_window_class Conky

minimum_size 660 220
#maximum_width 655
gap_x 10 # l|r
gap_y -50 # u|d
#alignment tl
alignment mr

use_xft yes
xftfont GE Inspira:size=9
xftalpha 1

override_utf8_locale yes

draw_shades no
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color ffffff
color1 778899
color2 FFA07A
color3 87CEFA
color4 48D1CC
color5 FFDEAD
color6 00BFFF
color7 ffffff
color8 FFD700
color9 ffffff

draw_borders no
stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2
draw_graph_borders no
background no
use_spacer none
no_buffers yes
double_buffer yes

update_interval 1

lua_load ~/LUA/image.lua

TEXT





##### Start #####
${texeci 500 bash $HOME/1_accuweather/1_accuweather -f2015}
##### Datum #####
${voffset -55}${font GE Inspira:size=14}${alignc -50}${time %A, %d %B %Y}$font
##### Wind-Info-Anzeige ######
${goto 310}${font GE Inspira:size=12}Wind : ${execi 90 sed -n '5p' $HOME/1_accuweather/curr_cond} ${execi 90 sed -n '6p' $HOME/1_accuweather/curr_cond}
${goto 310}Humidity : ${execi 90 sed -n '7p' $HOME/1_accuweather/curr_cond}
${goto 310}Pressure : ${execi 90 sed -n '8p' $HOME/1_accuweather/curr_cond}

#### Stadt ####
${voffset -5}#${font GE Inspira:size=14}Den Haag : ${font} ${execi 90 sed -n '1p' $HOME/1_accuweather/aktualisiert}
${font GE Inspira:size=18}${goto 135}${execi 90 sed -n '2p' $HOME/1_accuweather/curr_cond} °C ${font} Gefühlt :  ${voffset -12}${font GE Inspira:size=18}${execi 90 sed -n '3p' $HOME/1_accuweather/curr_cond} °C
${goto 555}${voffset -124}${font ubuntu:size=11}N $font
${goto 522}${voffset 8}${font Ubuntu:size=6}NNW ${goto 583}NNE$font
${goto 493}${voffset -6}${font Ubuntu:size=9}NW ${goto 611}NE$font
${goto 486}${voffset 10}${font Ubuntu:size=6}WNW ${goto 618}ENE$font
${goto 468}${voffset 5}${font Ubuntu:size=11}W ${goto 641}E$font
${goto 486}${voffset 9}${font Ubuntu:size=6}WSW ${goto 618}ESE
${goto 493}${voffset 16}${font Ubuntu:size=9}SW ${goto 611}SE$font
${goto 522}${voffset -4}${font Ubuntu:size=6}SSW ${goto 583}SSE
${goto 555}${voffset 4}${font Ubuntu:size=11}S $font
#### Anzeige der sechs Tage ####
${voffset -60}${goto 20}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2}'`}\
${goto 95}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2}'`}\
${goto 170}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2}'`}\
${goto 245}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2}'`}\
${goto 320}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2}'`}\
${goto 400}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2}'`}
##### Temperaturanzeige  #####
${voffset 25}
${goto 20}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '9p' $HOME/1_accuweather/first_days}°${color}\
${goto 95}${color9}${execi 90 sed -n '13p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '14p' $HOME/1_accuweather/first_days}°${color}\
${goto 170}${color9}${execi 90 sed -n '18p' $HOME/1_accuweather/first_days}°${color}/${color7}${execi 90 sed -n '19p' $HOME/1_accuweather/first_days}°${color}\
${goto 245}${color9}${execi 90 sed -n '23p' $HOME/1_accuweather/first_days}°${color}/${color7}${execpi 90 sed -n '24p' $HOME/1_accuweather/first_days}°${color}\
${goto 320}${color9}${execi 90 sed -n '3p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '4p' $HOME/1_accuweather/last_days}°${color}\
${goto 400}${color9}${execi 90 sed -n '8p' $HOME/1_accuweather/last_days}°${color}/${color7}${execpi 90 sed -n '9p' $HOME/1_accuweather/last_days}°${color}
#${voffset -20}
#### Icons aktuelle Bedingungen und Wind ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 15 15 190 120 0}${lua fDrawImage $HOME/1_accuweather/forecast_2015/wind_0.png 465 35 190 190 0}\
#### Icons für die sechs Tage ####
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_2.png 0 180 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_3.png 75 180 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_4.png 150 180 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_5.png 225 180 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_6.png 300 180 70 40 0}\
${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_7.png 380 180 70 40 0}
${voffset -100}
Workspace 3_027.jpg
Have fun! ;)
You do not have the required permissions to view the files attached to this post.

User avatar
Eadwine Rose
Administrator
Posts: 11968
Joined: Wed Jul 12, 2006 2:10 am

Re: Conky Helps and Stuff

#139 Post by Eadwine Rose »

One thing I notice is that the position of the main large weather icon is fixed with the smaller ones. So when I move things, those always move together.

I can't find this.. how do you set the main big icon separately as I want to move it to the left?


Thanks for all your work, much appreciated!
MX-23.2_x64 July 31 2023 * 6.1.0-20-amd64 ext4 Xfce 4.18.1 * 8core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 525.147.05 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 860EVO * Samsung S24D330 & P2250 * HP Envy 5030

male

Re: Conky Helps and Stuff

#140 Post by male »

using the example (2015):

Code: Select all

${lua fDrawImage $HOME/1_accuweather/forecast_2015/forecast_0.png 15 15 190 120 0}...
${lua fDrawImage= lua function
15 = horizontal position from left
15 = vertical position from above
190 = Image height
120 = Image width
0 = Rotation of the image ;)

Post Reply

Return to “Software / Configuration”