You are not logged in.

#451 2017-03-29 20:50:11

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

Re: Show us your conky

Temetka wrote:

Thanks!

So should I be using "offsset" or "goto" for horizontal line items?

From the conky vairables site:

goto	x	The next element will be printed at position 'x'.
offset	(pixels)	Move text over by N pixels. See also $voffset.

I hope this makes sense. Thanks for all the help everyone.

Makes perfect sense to me.  And it usage depends on what you want to do.   For example I personally avoid "offset" like the plague - even though I know how to use it.

goto always calculates the distance in pixels from the left edge of the conky
offset calculates the distance in pixels from where it is used on the line.

${goto 100}${membar 6,60}
${goto 40}Temetka${goto 10}Hi
${offset 40}Temetka${offset 10}Hi

Let assume the days of the week are from a conky command like in Teos scripts - therefore the lenght of the output is unknown to 'conky' and you want to space them.  Wednesday is the longest word for a week day name so we test with that for columns:

Wednesday  Wednesday  Wednesday  Wednesday

Sunday${goto 95}Monday${goto 182}Tuesday${goto 272}Wednesday
Tuesday${goto 95}Wednesday${goto 182}THursday${goto 272}Friday
Friday${goto 95}Saturday${goto 182}Sunday${goto 272}Monday

Look what happens if we use offset:

Sunday${offset 95}Monday${offset 182}Tuesday${offset 272}Wednesday
Tuesday${offset 95}Wednesday${offset 182}THursday${offset 272}Friday
Friday${offset 95}Saturday${offset 182}Sunday${offset 272}Monday

2017-03-29_175550_Scrot11.th.png

Not the same.  goto is exact - always, offset is a guessing game UNLESS you use it after a fixed output or always as the first command:

length of output always x characters${offset xx}conky command${goto yy}conky command${goto zz}conky command

BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#452 2017-03-30 05:10:01

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Well I'm going to chalk that up to a brain fart. I know I read that on the conky variables site. tongue

Shame about not being able to do a borderless bar though.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#453 2017-03-30 05:26:08

damo
....moderator....
Registered: 2015-08-20
Posts: 5,157

Re: Show us your conky

Temetka wrote:

....Shame about not being able to do a borderless bar though.

You can use lua to create all kinds of bars, graphs and meters for conky. The Conky wiki has some examples as a start point: https://github.com/brndnmtthws/conky/wi … rcle-meter

Sorry, I forgot you don't want to learn any lua tongue


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#454 2017-03-30 09:51:01

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

Temetka wrote:
unklar wrote:

   

Temetka wrote:

        I have specified "draw_borders no" and yet the membar still has a border aroound. Why is this happening?

    ...
    ${goto 100}${membar 6,60}\
    ...

      lol

? I feel like I'm missing something obvious here.

I also often do not see the Conky forest in front of loud trees ...  tongue

    ...
    ${goto 100}${membar 6,60}\
    ...
    ...
    ${goto 100}${memgraph 6,60}\
    ...

Offline

#455 2017-03-30 13:29:42

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

unklar wrote:

A good idea is the 5 day weather down. I personally do not like the gray weather pictures. I will try with the conkyweather pictures.  wink

wink
2017-03-30-15-23-52_scrot.th.png

Offline

#456 2017-03-30 19:36:51

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

Re: Show us your conky

Temetka wrote:

Well, I got something going. At first I wanted to create one of those neat minimal metro conky's that look so cool ... blah blah blah    big_smile

OK I'm checking this out.  There are some OOPSIES I see up front:

${font CaviarDrams:size=10}

1.  The font CaviarDrams does not exist ... so that would be: Caviar Dreams.  Soooooo glad to know I am not the only one to make typos. angel
2.  Obviously the weather will not work; unklar got you going on a good direction on that though.

Also Caviar Dreams is NOT a mono font see the difference between RAM Usage and SSD Usage ... SSD is narrower than RAM.  This will give you problems with the ${offset} commands you are using.  Change to ${goto}.  Personally I would drop the word "Usage" - you know that what those lines represent anyway. wink  (Personal choice/option/opinion)

And once you call a font, you do not need to call the same font again, conky will use that font until you "change" it.

You are doing this:

${font Caviar Dreams:size=10}BAT: more commands
${font Caviar Dreams:size=10}CPU: more commands
${font Caviar Dreams:size=10}RAM  more commands${font}
${font Caviar Dreams:size=10}SSD more commands

on the third line you closed Caviar Dreams:size=10 and then immediately reused the same font and size.

Above TEXT you are using:

xftfont CaviarDreams:size=9

change that to:

xftfont CaviarDreams:size=10

and you can eliminate "some" of the vertical offsets ${voffset}

Your data section could look something like this:

${color3}BAT:${goto 45}Full${goto 100}${battery_bar 5,50}  100%
CPU:${goto 45}${cpu}%${goto 100}${cpubar 5,50}  ${acpitemp}°C
RAM:${goto 45}${mem}${goto 100}${membar 5,50}  ${memmax}
SSD:${goto 45}${fs_used /}${goto 100}${fs_bar 5,50 /}  ${fs_size /}${color}

Also: the week day names are different lengths ... looks what happens when I add Wednesday (longest and Friday (shortest with non-mono fonts because " i " is really thin)

Sooooooooooo centre that week day name line  smile

Working copy:
2017-03-30_161625_Scrot11.th.png

And this is how I would do the top part of that conky:
2017-03-30_162025_Scrot11.th.png

Above TEXT change the default font:

xftfont CaviarDreams:size=10

and below TEXT to the beginning of your weather:

TEXT
#${image /home/temetka/.config/conky/images/sun-c.png -p 70,0}
${image /home/sector11/images/80s_Sunset.png -p 80,0 -s 160x160}
${goto 110}${color1}${font Kenyan Coffee:size=65}${voffset 5}${time %H:%M}${color}${font}
${voffset -17}${color2}${font Shimes One PERSONAL USE:size=65}${alignc}${time %A}${color}${font}

${color3}${goto 80}BAT:${goto 112}Full${goto 160}${battery_bar 5,80}${alignr 15}100%
${goto 80}CPU:${goto 112}${cpu}%${goto 160}${cpubar 5,80}${alignr 15}${acpitemp}°C
${goto 80}RAM:${goto 112}${mem}${goto 160}${membar 5,80}${alignr 15}${memmax}
${goto 80}SSD:${goto 112}${fs_used /}${goto 160}${fs_bar 5,80 /}${alignr 15}${fs_size /}${color}

################# WEATHER INFO############

I do not have a battery so that line should reflect your original line with the proper ${goto xx} commands and the final ${alignr 15} command.

And last but not least; the 80's style sunset image I used: 80s_sunset.png (if you want it!)

Comment:   A really nice looking little conky!

===== EDIT:

Might just edit that and match it to my system for personal use.  smile

Last edited by Sector11 (2017-03-30 19:45:26)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#457 2017-03-31 00:18:38

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

Re: Show us your conky

Inspired by Temetka's 80's Sunset:
2017-03-30_210823_Scrot11.th.png
Code when done.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#458 2017-03-31 05:36:31

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Well well well.

I had scrapped given up on that conky, couldn't get it to look right.

Now what you have there is pretty awesome. I love the sunset tree pic. Yours looks more 80's than mine, glad I was able to inspire it.

On a different topic: Have you looked at the other one I posted.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#459 2017-03-31 06:58:17

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

So after revisiting my 80's conky and using S11's palm tree (resized 50% in gimp) and consulting the wife on colors as well as googling color palettes and judicious use of the gcolor2 picker and it's color code, I present this:

2017-03-30-23-52-28_scrot.th.png

Here's is the totally rad code that made this bodacious conky possible. Note I left a lot of color code in it for you to play with.

Bitchin' Code Goes Here Baby

# For commands above TEXT check:
# http://conky.sourceforge.net/config_settings.html
#
# For commands available below TEXT check:
# http://conky.sourceforge.net/variables.html

# Bunsen Labs Conky help threads
# http://crunchbang.org/forums/viewtopic.php?pid=371424#p371424

# beta tested by: Temetka
# really though just a mashup of conky's I found. Just like most others out there.
# Enjoy! :)

# pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc" &
###  Begin Window Settings  #####################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Bunsen Labs Default Conky

# own_window_argb_visual yes # Options: yes or no

# own_window_argb_value 50

minimum_size 300 0  ### width | height
maximum_width 400

gap_x 10    ### left | right
gap_y 25    ### up | down

alignment tr

use_xft yes
xftfont Caviar Dreams:normal:size=10
#xftfont Liberation Sans:size=9
override_utf8_locale yes
uppercase no
draw_shades no #yes
default_shade_color 505055

draw_outline no # amplifies text if yes
default_outline_color 505055
# Many color choices here - trying to get an 80's color palette / scheme
default_color white
color0 3A99AB # Turquoise
color1 black
color2 white
color3 C392DE # Lavender-ish
color4 32FF00 # Lime-ish
color5 11BDC4 # Aqua
color6 C96CCF # Purple-ish
color7 F3D16F # Orange cream
color8 F7A377 # Salmon-ish
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
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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 6144

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

# 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

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

# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit

#################  End Miscellaneous Section  ###

TEXT
${image /home/temetka/.config/conky/images/80s_Sunset2.png -p 90,-10}
${offset 150}${voffset 5}${color5}${font Kenyan Coffee:size=65}${time %H:%M}${color}${font}
${offset 105}${voffset 7}${color4}${font Shimes One PERSONAL USE:size=65}${time %A}${color}${font}
${voffset 25}${goto 125}${color6}BAT:Full${goto 180}${battery_bar 5,50}  ${execi 10 (acpi -b | awk '{print +$4}')}%
${goto 125}CPU:${cpu}%${goto 180}${cpubar 5,50}  ${acpitemp}°C
${goto 125}RAM:${goto 180}${membar 5,50}  ${mem} / ${memmax}
${goto 125}SSD:${goto 180}${fs_bar 5,50 /}  ${fs_used /} / ${fs_size /}${color}

Note: I haven't decided if I want to add the weather in here or not. My concern is the color palette may or may not work with color schemes of Teo's png's. It would be like totally NOT cool if the colors clashed. As if. That would be majorly lame.

Last edited by Temetka (2017-03-31 07:01:52)


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#460 2017-03-31 12:50:40

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

^ Sector11

https://forums.bunsenlabs.org/viewtopic … 148#p48148

I think this is a class of its own.
This is an artistic composition! Perfect!
Thanks for pointing to Teo's weather script. good2.gif

Offline

#461 2017-03-31 15:22:43

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 231

Re: Show us your conky

Hello guys,
I reorganized my conky .... what do you think?

conkyfv80.png

@ Sector11 there is a function bar.lua inside .... you tell you something? ....  big_smile  big_smile

Last edited by fvirgola80 (2017-03-31 15:25:12)


Conky a lifetime, thanks masters Obi-Wan (TEO) and Yoda (Sector11) Use Hydrogen bunsenlabs linux 8.9

Offline

#462 2017-03-31 16:45:43

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

Re: Show us your conky

Temetka wrote:

So after revisiting my 80's conky and using S11's palm tree (resized 50% in gimp) and consulting the wife on colors as well as googling color palettes and judicious use of the gcolor2 picker and it's color code, I present this:

Note: I haven't decided if I want to add the weather in here or not. My concern is the color palette may or may not work with color schemes of Teo's png's. It would be like totally NOT cool if the colors clashed. As if. That would be majorly lame.

Sweet - the megenta is your wife's choice?

Add weather info without the images.  No conflict.  smile


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#463 2017-03-31 16:47:31

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

Re: Show us your conky

unklar wrote:

^ Sector11

https://forums.bunsenlabs.org/viewtopic … 148#p48148

I think this is a class of its own.
This is an artistic composition! Perfect!
Thanks for pointing to Teo's weather script. http://www.en.kolobok.us/smiles/big_standart/good2.gif

Not done with it yet, next maybe some HDD info and then the weather.

Local weather: Light today and dark tonight.   devil


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#464 2017-03-31 18:09:25

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

^ fvirgola80

congratulation.
Class order has the part!  wink

Offline

#465 2017-03-31 18:21:02

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

Re: Show us your conky

fvirgola80 wrote:

@ Sector11 there is a function bar.lua inside .... you tell you something? ....  big_smile  big_smile

OH YEA!  I see the bars ... 2 vertical and the rest horizontal.

Well done!  Pretty slick that.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#466 2017-03-31 18:26:18

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

I think I'm done.

The code I cleaned up again. The cpugraphen I have shortened and the utilization of the individual cores (Intel) inserted. Also the most important exchange rates for me GBP - EUR.

2017-03-31-19-17-48_scrot.th.png

When I look at the whole, a real system, the Conky still does not ...  devil

But no matter, here is the code

# pkill -xf "conky -c /home/$PATH/conkyrc " &  etc.
# Conky_Grey by SLK
# calendar by Sector11
# weather by TeoBigusGeekus
# works 30-03-2017 by unklar nach einer Idee von @Temetka
#

background yes
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorates,skip_taskbar,skip_pager,below   #,sticky
own_window_argb_visual yes
own_window_argb_value 140
# own_window_colour 000000
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
default_color 000000

minimum_size 540 420
maximum_width 540
gap_x 1
gap_y 135
alignment tr
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

# Color scheme #
default_color white
color0 00ffff #cain  #b22222#red
color1 ffffff #withe
color2 E8E1E6
color3 F5F24C

#---LUA---#
lua_load ~/S11/TEST/grey2.lua
lua_draw_hook_post main
lua_load ~/Lua/draw-bg.lua



TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
${font monofur:size=13}${alignc}${color3}${time %T}${font monofur:size=11}
 ${time %b %Y}${alignr 15}Woche ${time %V}${color}
${alignc}${if_match ${time %u}==1}${color0}Mo${color1} Di Mi Do Fr Sa So ${else}\
${if_match ${time %u}==2}${color1}Mo ${color0}Di${color1} Mi Do Fr Sa So${else}\
${if_match ${time %u}==3}${color1}Mo Di ${color0}Mi${color1} Do Fr Sa So${else}\
${if_match ${time %u}==4}${color1}Mo Di Mi ${color0}Do${color1} Fr Sa So${else}\
${if_match ${time %u}==5}${color1}Mo Di Mi Do ${color0}Fr${color1} Sa So${else}\
${if_match ${time %u}==6}${color1}Mo Di Mi Do Fr ${color0}Sa${color1} So${else}\
${if_match ${time %u}==7}${color1}Mo Di Mi Do Fr Sa ${color0}So${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color1}${execpi 1800 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color1}
${voffset -50} ${color1}£ ${color0}${execpi 90 grep "EUR to GBP" /media/DATEN/francescoPC/Conky/Conky-Kalender/Waehrungen/convert/eur.tmc.txt | cut -c12-17}${color} ${alignr 15}€ ${color0}${execpi 90 grep "GBP to EUR" /media/DATEN/francescoPC/Conky/Conky-Kalender/Waehrungen/convert/gbp.tmc.txt | cut -c12-17}${color1}${voffset 50}
${font Ubuntu:size=8}${goto 30}CPU${goto 125}RAM${goto 222}ROOT${goto 335}UP${goto 425}DOWN



  ${cpu cpu0}%   ${freq_g}  ${hwmon 1 temp 2}°\
${goto 101}${mem} / ${memmax}\
${goto 200}${fs_used /} / ${fs_size /}\
${goto 310}${totalup eth0} / ${upspeed eth0}\
${goto 410}${totaldown eth0} / ${downspeed eth0}
  Core 0 ${cpugraph cpu1 7,20 EEEEEE A8A8A8}  ${cpu cpu1}\
${goto 100}${memgraph 6,60 ffffff ffffff}\
${goto 200}${diskiograph 6,70 ffffff ffffff}\
${goto 310}${upspeedgraph eth0 6,60}\
${goto 410}${downspeedgraph eth0 6,60}
  Core 1 ${cpugraph cpu2 7,20 EEEEEE A8A8A8}  ${cpu cpu2}\
${goto 200}HD I/O ${diskio}/s \
${alignr 25}LAN ${addr eth0}
  Core 2 ${cpugraph cpu3 7,20 EEEEEE A8A8A8}  ${cpu cpu3}
  Core 3 ${cpugraph cpu4 7,20 EEEEEE A8A8A8}  ${cpu cpu4}
  Fan ${alignc}${color3}${hwmon 0 fan 1}${color1} | ${color3}${hwmon 0 fan 2}${color1} | ${color3}${hwmon 0 fan 3}${color1} | ${color3} ${hwmon 0 fan 4}

${color ffe595}${hr}
${execi 900 bash $HOME/1_accuweather_Deutsch/1_accuweather_Deutsch}
${goto 20}${font monofur:size=10}${execpi 600 sed -n '1p' $HOME/1_accuweather_Deutsch/first_days}${goto 120}${execpi 600 sed -n '6p' $HOME/1_accuweather_Deutsch/first_days}${goto 220}${execpi 600 sed -n '11p' $HOME/1_accuweather_Deutsch/first_days}${goto 310}${execpi 600 sed -n '16p' $HOME/1_accuweather_Deutsch/first_days}${goto 420}${execpi 600 sed -n '21p' $HOME/1_accuweather_Deutsch/first_days}${color1}${image $HOME/1_accuweather_Deutsch/1.png -p 10,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/2.png -p 120,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/3.png -p 220,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/4.png -p 310,365 -s 45x45}${image $HOME/1_accuweather_Deutsch/5.png -p 420,365 -s 45x45}

${goto 60}${execpi 600 sed -n '3p' $HOME/1_accuweather_Deutsch/first_days}°${goto 170}${execpi 600 sed -n '8p' $HOME/1_accuweather_Deutsch/first_days}°${goto 270}${execpi 600 sed -n '13p' $HOME/1_accuweather_Deutsch/first_days}°${goto 360}${execpi 600 sed -n '18p' $HOME/1_accuweather_Deutsch/first_days}°${goto 470}${execpi 600 sed -n '23p' $HOME/1_accuweather_Deutsch/first_days}°
${goto 60}/${execpi 600 sed -n '4p' $HOME/1_accuweather_Deutsch/first_days}°${goto 170}/${execpi 600 sed -n '9p' $HOME/1_accuweather_Deutsch/first_days}°${goto 270}/${execpi 600 sed -n '14p' $HOME/1_accuweather_Deutsch/first_days}°${goto 360}/${execpi 600 sed -n '19p' $HOME/1_accuweather_Deutsch/first_days}°${goto 470}/${execpi 600 sed -n '24p' $HOME/1_accuweather_Deutsch/first_days}°

Teo's German-Script

#!/bin/bash

#put your Accuweather address here
address="http://www.accuweather.com/de/de/lichtenstein/09350/weather-forecast/171261"
#address="http://www.accuweather.com/de/us/new-york-ny/10017/weather-forecast/349727"
#address="http://www.accuweather.com/de/in/kolkata/206690/weather-forecast/206690"
#address="http://www.accuweather.com/de/gr/kastoria/178682/weather-forecast/178682"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')
	
#function: test_image
test_image () {
    case $1 in
         1)
           echo a
         ;;
         2|3)
           echo b 
         ;;
         4|5)
           echo c
         ;;
         6)
           echo d
         ;;
         7)
           echo e
         ;;
         8)
           echo f
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo m
         ;;
         16|17)
           echo k
         ;;
         18)
           echo i
         ;;
         19)
           echo q
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo v
         ;;
         26)
           echo x
         ;;
         29)
           echo y
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|35)
           echo B
         ;;
         36|37)
           echo C
         ;;
         38)
           echo D
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
         *)
		   echo -
		 ;;   
        esac
} 


kill -STOP $(pidof conky)
killall wget

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/curr_cond_raw "$curr_addr"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1_accuweather_Deutsch/first_days_raw "$addr1"

addr2="$addr1"?day=6
wget -O $HOME/1_accuweather_Deutsch/last_days_raw "$addr2"

rm $HOME/1_accuweather_Deutsch/*.png

#current conditions
if [[ -s $HOME/1_accuweather_Deutsch/curr_cond_raw ]]; then
    sed -i '/detail-now/,/Astronomie <span class/!d' $HOME/1_accuweather_Deutsch/curr_cond_raw
    egrep -i '"cond"|icon i-|large-temp|small-temp|wind-point|"wind"|Luftfeuchtigkeit|Luftdruck|UV-Index|Wolkendecke|Ceiling|Taupunkt|Sichtweite|Dauer|Sonnenaufgang:|Sonnenuntergang:|Mondaufgang:|Monduntergang:' $HOME/1_accuweather_Deutsch/curr_cond_raw > $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/^.*<strong>//g' -e 's/^.*<span>//g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*<\/em> //g' -e 's/^.*"cond">//g' -e 's/^.*wind-point //g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/">.*$//g' -e 's/&deg.*$//g' -e 's/<\/span>.*$//g' -e 's/&#.*$//g' -e 's/ &darr.*$//g' -e 's/ &uarr.*$//g' -e 's/<\/strong>.*$//g' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i '1s/-.*$//' $HOME/1_accuweather_Deutsch/curr_cond
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/curr_cond
    image=$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond)
    echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/curr_cond
    cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n 1p $HOME/1_accuweather_Deutsch/curr_cond).png $HOME/1_accuweather_Deutsch/0.png
fi

#First 5 days
if [[ -s $HOME/1_accuweather_Deutsch/first_days_raw ]]; then

    sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/first_days_raw
    egrep -i 'href="#"|icon i-|"large-temp"|"small-temp"|temp-label|"cond"' $HOME/1_accuweather_Deutsch/first_days_raw > $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' -e 's/^.*"temp-label tonight selected">//g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&deg.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/first_days)
          echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/first_days
	  done
	j=1
	for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/first_days).png $HOME/1_accuweather_Deutsch/$j.png
	      ((j++))
	  done
fi

#Next 5 days
if [[ -s $HOME/1_accuweather_Deutsch/last_days_raw ]]; then
	
	sed -i '/.feed-controls/,/\.feed-tabs/!d' $HOME/1_accuweather_Deutsch/last_days_raw
    egrep -i 'href="#"|icon i-|large-temp|small-temp|temp-label|"cond"' $HOME/1_accuweather_Deutsch/last_days_raw > $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/first_days
    sed -i -e '/icon/s/-. //g' -e 's/^.*icon i-//g' -e 's/^.*large-temp">//g' -e 's/^.*small-temp">\///g' -e 's/^.*"cond">//g' -e 's/^.*href="#">//g' -e 's/^.*"temp-label tonight ">//g' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&deg.*$//g' -e 's/<\/a>.*$//g' -e 's/<\/span>.*$//g' -e 's/">.*$//g' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' $HOME/1_accuweather_Deutsch/last_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1_accuweather_Deutsch/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1_accuweather_Deutsch/last_days)
          echo $(test_image $image) >> $HOME/1_accuweather_Deutsch/last_days
	  done
	j=6
	for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/1_accuweather_Deutsch/Forecast_Images_2016/$(sed -n ${i}p $HOME/1_accuweather_Deutsch/last_days).png $HOME/1_accuweather_Deutsch/$j.png
	      ((j++))
	  done
fi
date +%T > $HOME/1_accuweather_Deutsch/aktualisiert
kill -CONT $(pidof conky)

The Forecast_Images_2016 please about Teo's main page.  wink  https://forums.bunsenlabs.org/viewtopic.php?id=189

Last edited by unklar (2017-03-31 18:44:56)

Offline

#467 2017-03-31 18:52:33

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

Re: Show us your conky

unklar wrote:

I think I'm done.

You mean for the moment right! angel

Looking good ... one quick question what does "H abd" mean?


In place of "Heute, jetzt oder Freitag"


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#468 2017-03-31 19:14:03

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

Sector11 wrote:

one quick question what does "H abd" mean?

In place of "Heute, jetzt oder Freitag"

tonight
Therefore also "TT °"
Tiefsttemperatur (low temperature)  big_smile

The discussion I had with Teo. wink

Offline

#469 2017-03-31 20:02:17

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

Re: Show us your conky

Tonight - DUH!  I should have known   smile
Totally missed the TT though.  Thanks.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#470 2017-03-31 20:12:21

unklar
Member
Registered: 2015-10-31
Posts: 945

Re: Show us your conky

^ We are getting old. (We are not old!)  devil

Offline

#471 2017-03-31 20:20:29

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

Re: Show us your conky

HA!

67 years for a cabbage is OLD!
67 years for a mountain is not even at the birth pains stage.
67 years for a man is just right!

angel


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#472 2017-04-06 00:03:49

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

Re: Show us your conky

Well here it is, Temetka's 80s Sunsent - Sector11 Style.
Thank you Temetka!

2017-04-05_202933_Scrot11.th.png

Code can be found here in Teo's weather thread.


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#473 2017-04-06 05:27:15

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Looks good. A tad hard to read on the rose, but that could just be my eyes. Beautiful wallpaper also.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#474 2017-04-11 17:48:41

SBruleMD
Member
Registered: 2017-02-12
Posts: 9

Re: Show us your conky

Based on this setup.

Looks like this:
Screenshot-04042017-111613PM.th.png

# branchy-conky

text_buffer_size 2048

background yes
use_xft yes
xftfont DejaVu sans mono:pixelsize=12
font DejaVu sans mono:pixelsize=12
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 0
border_width 0
default_color d9d9d9
default_shade_color d9d9d9
default_outline_color d9d9d9
alignment top_right
gap_x 0
gap_y 0
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer right
maximum_width 500


TEXT
${alignr}$font                         
${alignr}$font                         
${alignr}$font ▽                        
${alignr}$font │                        
${alignr}$font └───${font DejaVu sans mono:pixelsize=12:weight=bold}bunsenlabs$font────────┐  
${alignr}$font │  
${alignr}$font ${time %H:%M} ${font DejaVu sans mono:pixelsize=12:weight=bold}cst$font─┤  
${alignr}$font ${time %a} / ${time %d %b}─┤  
${alignr}$font ${utime %H:%M} ${font DejaVu sans mono:pixelsize=12:weight=bold}utc$font─┤  
${alignr}$font │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}sys$font─┤  
${alignr}$font ${kernel} ${font DejaVu sans mono:pixelsize=12:weight=bold}krnl$font─┤   │  
${alignr}$font $uptime ${font DejaVu sans mono:pixelsize=12:weight=bold}uptime$font─┘   │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}cpu$font─┤  
${alignr}$font ${hwmon temp 1}${font DejaVu sans mono:pixelsize=12:weight=bold}temp$font─┤   │  
${alignr}$font ${freq 1}mhz / ${cpu 1}% cpu1─┤   │  
${alignr}$font ${freq 2}mhz / ${cpu 2}% cpu2─┘   │  
${alignr}$font │  
${alignr}$font ${font DejaVu sans mono:pixelsize=12:weight=bold}sda$font─┤  
${alignr}$font $diskio_read  read─┤   │  
${alignr}$font $diskio_write write─┤   │  
${alignr}$font $swap/$swapmax swap─┤   │  
${alignr}$font ${swapbar 5,150}│   │  
${alignr}$font ${fs_used /}/${fs_size /} root─┘   │  
${alignr}$font ${fs_bar 5,150 /}    │  
${alignr}$font │  
${alignr}$font ram─┤  
${alignr}$font $mem/$memmax $memperc% ─┘   │  
${alignr}$font ${membar 5,150}    │  
${alignr}$font │  
${alignr}$font net─┤  
${alignr}$font ${if_up tun0}${color3}online${else}offline${endif}${color1} vpn─┤   │  
${if_up wlan0}${alignr}$font ${upspeed wlan0} ul─┤   │  
${alignr}$font ${upspeedgraph wlan0 12,150 E4DF5F AA0E12}│   │  
${alignr}$font ${downspeed wlan0} dl─┘   │  
${alignr}$font ${downspeedgraph wlan0 12,150 E4DF5F AA0E12}    │  ${else}${alignr}$font ${upspeed eth0} ul─┤   │  
${alignr}$font ${upspeedgraph eth0 12,150 E4DF5F AA0E12} │   │  
${alignr}$font ${downspeed eth0} dl─┘   │  
${alignr}$font ${downspeedgraph eth0 12,150 E4DF5F AA0E12}     │  ${endif}
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font │  
${alignr}$font ┌──────────────────┘  
${alignr}$font ┌─┴────────────────┐    
${alignr}$font │   ${font DejaVu sans mono:pixelsize=12:weight=bold}don't panic!$font   │    
${alignr}$font └──────────────────┘    

Offline

#475 2017-04-11 19:01:26

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

Re: Show us your conky

^  Sweet!


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

Board footer

Powered by FluxBB