You are not logged in.

#1076 2019-04-30 21:56:17

Powderjockey
New Member
Registered: 2019-01-05
Posts: 2

Re: Show us your conky

Question, can the actual thread be searched?

I was searching for a conky which will display the standings of the MLB, NHL, NBA or NFL. I had a conky which did work. It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.

Does anyone know of a script that will work in a conky. I wasn't getting much from searches on the Google.

Thanks


MX-Linux 18

Offline

#1077 2019-05-01 08:31:31

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

Re: Show us your conky

Powderjockey wrote:

It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.

It should be this change in the Python script in question:
of

filename = "http://scores.espn.go.com/mlb/standings | egrep -A20 'American League'"

to

filename = "http://www.espn.com/mlb/standings | egrep -A20 'American League'"

As  ohnonot correctly noticed, no Python script is needed for this.   wink
In the Conky itself this line is enough to get the same result.

${execpi 3600 lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A20 'American League'}

The problem is the double display of the results, once the State (?) and once the team.


I don't have a solution yet. Also I do not know myself with the American leagues    ops

Offline

#1078 2019-05-02 02:28:56

Powderjockey
New Member
Registered: 2019-01-05
Posts: 2

Re: Show us your conky

unklar wrote:
Powderjockey wrote:

It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.

It should be this change in the Python script in question:
of

filename = "http://scores.espn.go.com/mlb/standings | egrep -A20 'American League'"

to

filename = "http://www.espn.com/mlb/standings | egrep -A20 'American League'"

As  ohnonot correctly noticed, no Python script is needed for this.   wink
In the Conky itself this line is enough to get the same result.

${execpi 3600 lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A20 'American League'}

The problem is the double display of the results, once the State (?) and once the team.

I don't have a solution yet. Also I do not know myself with the American leagues    ops


Thanks for the help. Tried all of the changes.

Yes the display is doubled and columns headings are on the wrong end of the chart.

Last edited by Powderjockey (2019-05-02 02:36:20)


MX-Linux 18

Offline

#1079 2019-05-05 23:20:42

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 16
Website

Re: Show us your conky

unklar wrote:

this works very well (Bitcoin)   big_smile

https://github.com/chubin/rate.sx

thx

EUR/USD ${execpi 300 curl usd.rate.sx/1eur?TFq -s | cut -c 1-5}
BTC/USD ${execi 300 curl usd.rate.sx/1btc?T | cut -c 1-13}

Offline

#1080 2019-05-18 14:02:28

pmra
New Member
Registered: 2019-05-18
Posts: 2

Re: Show us your conky

Dord wrote:

Here is mine. I had a pretty bloated conky but realized I didn't use most of the info on here, so I decided to purge it and go back to something simple, I added a color condition in the process for the updates and emails lines to turn it red when it is > 0:

http://i.imgur.com/8szwhejt.png

Hi Dord,

I'm trying to set up a conky and I like that colored email idea a lot. Could you show me how you do it, please?

Thanks in advance.

Offline

#1081 2019-06-19 20:36:31

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

Re: Show us your conky

S11-greyclock24.conky

2019-06-19_165906_Scrot11.th.jpg

Start/Stop Conky script: ssc-greyclock24.sh

#!/bin/bash
## Original idea by: GrouchyGaijin
## Tweaks by: Stinkeye, arclance & Sector11
## click to start, click to stop
## ssc = Start|Stop|Conky

## does not like ~/ -->  USE full path

if
	pgrep -f "conky -c /media/5/Conky/S11-greyclock24.conky"
then
	pkill -xf "conky -c /media/5/Conky/S11-greyclock24.conky"
else
	conky -c /media/5/Conky/S11-greyclock24.conky
fi

/media/5/Conky/S11-greyclock24.conky

## pkill -xf "conky -c /media/5/Conky/S11-greyclock24.conky" &
## 2017-06-25
## ---------- Begin Window Settings
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_class Conky
own_window_title Grey Clock 24 Hrs

gap_x 100
gap_y 100

minimum_size 350 260
maximum_width 0

alignment bl

## ---------- End Window Settings
## ---------- Font Settings

override_utf8_locale yes
use_xft yes
xftfont Roboto Condensed:size=12

xftalpha 1.0

## --------- End Font Settings
## --------- Color Settings

draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 C0C0C0 #Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
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 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
## ---------- Begin Miscellaneous Section

background no #yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes

## ---------- End Miscellaneous Section
## ---------- Begin LUA

#	lua_load /media/5/Conky/LUA/Grey-clock.lua
#	lua_load /media/5/Conky/LUA/greyclock12.lua
	lua_load /media/5/Conky/LUA/greyclock24.lua
	lua_draw_hook_pre main

## ---------- End LUA

update_interval 1
TEXT
${image /media/5/Conky/images/24HR.png -p 10,10 -s 250x250}
${goto 200}${time %A}
${goto 220}the \
${if_match ${time %d} == 01}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 02}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 03}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif} day
${goto 235}${time of %B}
${goto 250}${time %Y}




${goto 245}ZULU
${goto 235}${utime %T}
${goto 220}Flight time:
${goto 200}${uptime_short}

/media/5/Conky/LUA/greyclock24.lua

--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
tweaked by Sector11 - 2017-06-26

lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]

require 'cairo'

function conky_main()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
--##############################################################################
--   SETTINGS AREA
--##############################################################################
--12 OR 24
local clock_type=24

--CLOCK SETTINGS
local clock_radius=110
local clock_centerx=136
local clock_centery=137

-- SET MARKS ### NOT BEING USED
--how many marks around edge
local number_marks=0 -- 0 for none, 60 for seconds 12 = am/pm or 24
--set mark length
local m_length=10
--set mark line width
local m_width=1
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1  --opaque white

--SET BORDER OPTIONS ### NOT BEING USED
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1  --full opaque white
--gap from clock border to hour marks
local b_to_m=5

--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=90
--set hand width
local sh_width=1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1  --fully opaque red
--local shr,shg,shb,sha=1,1,0,1  --fully opaque yellow

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80
--set hand width
local mh_width=2
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.6,0.6,0.6,1  --fully opaque grey

--HOUR HAND SETUP
--set length of hour hand
local hh_length=70
--set hand width
local hh_width=4
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.6,0.6,0.6,1  --fully opaque grey
--##############################################################################
--   END SETTINGS AREA
--##############################################################################

--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)

--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap  (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop

--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end

minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))

--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap  (cr, hh_cap)
cairo_stroke (cr)

--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap  (cr, mh_cap)
cairo_stroke (cr)

--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap  (cr, sh_cap)
cairo_stroke (cr)

--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function

And the clock face: /media/5/Conky/images/24HR.png
24HR.th.png


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

#1082 2019-06-20 01:16:21

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: Show us your conky

^ Nice -

Tweaks by - Stinkeye, arclance .... mrpeachy

Now there's a blast from the past.


You must unlearn what you have learned.
    -- yoda

Offline

#1083 2019-06-20 01:51:12

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

Re: Show us your conky

Hi PackRat, yea, some of that stuff has been around a long time.

You remember any of these guys: mobilediesel, dk75, Crinos512 ?


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

#1084 2019-06-20 02:22:56

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: Show us your conky

Sector11 wrote:

Hi PackRat, yea, some of that stuff has been around a long time.

You remember any of these guys: mobilediesel, dk75, Crinos512 ?

All of them.

dk75 wrote some of the best scripts/code; some amazing stuff.

Last edited by PackRat (2019-06-20 02:23:13)


You must unlearn what you have learned.
    -- yoda

Offline

#1085 2019-06-20 02:47:41

hhh
Meep!
Registered: 2015-09-17
Posts: 8,312
Website

Re: Show us your conky

Nostalgia, I don't know what he/she contributed to conky configs. but I miss awebb in particular.

r.i.p. pvsage, xaos52. Rock me Dr. Zaius.

Offline

#1086 2019-06-20 06:12:38

Dobbie03
Resident Metalhead
From: New Zealand
Registered: 2015-09-29
Posts: 2,287
Website

Re: Show us your conky

Did pvsage pass away?  Or is that just a RIP because he doesn't post here anymore?


I like my Metal like my coffee.......Black!
Resident Metalhead Poser

Offline

#1087 2019-06-20 18:55:20

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,089

Re: Show us your conky

Keeping it simple -

screen-import-Thursday_1561056771.md.png


You must unlearn what you have learned.
    -- yoda

Offline

#1088 2019-06-21 13:42:52

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

Re: Show us your conky

PackRat wrote:
Sector11 wrote:

Hi PackRat, yea, some of that stuff has been around a long time.

You remember any of these guys: mobilediesel, dk75, Crinos512 ?

All of them.

dk75 wrote some of the best scripts/code; some amazing stuff.

dk75 stuff was awesome.  That guy could write scripts in his sleep.

hhh wrote:

Nostalgia, I don't know what he/she contributed to conky configs. but I miss awebb in particular.

r.i.p. pvsage, xaos52. Rock me Dr. Zaius.

awebb was also fun to be around for sure.

R.I.P. pvsage, xoas52 and mrpeachy

You are not gone if you are remembered.  My grandmother told me 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

#1089 2019-06-24 06:16:04

ohnonot
...again
Registered: 2015-09-29
Posts: 3,907
Website

Re: Show us your conky

Dobbie03 wrote:

Did pvsage pass away?  Or is that just a RIP because he doesn't post here anymore?

That's the thing with online personas - one never really knows.
pvsage used to post a lot, then it just stopped at some point. Completely.
And I know of no other online place where a pvsage (or P.V. Sage) hangs out. They liked tvtropes.com, so maybe on their forums but I never checked.

Offline

#1090 2019-06-24 20:35:10

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

Re: Show us your conky

^ They liked Ponies as well. Yuck!


Be Excellent to Each Other...

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

Offline

#1091 2019-06-25 04:16:58

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,721
Website

Re: Show us your conky

^There was that. I did my best to ignore the ponies...


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#1092 2019-06-25 06:36:48

ohnonot
...again
Registered: 2015-09-29
Posts: 3,907
Website

Re: Show us your conky

^ Working with kids, I remembered pvsage's wisdom and introduced ponies. Friendship is Magic'n all that. Good stories, good messages for preschoolers.

Offline

#1093 2019-06-25 09:34:38

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,721
Website

Re: Show us your conky

ohnonot wrote:

...pvsage's wisdom...

+1


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#1094 2019-06-25 15:31:05

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

Re: Show us your conky

Without a doubt Peter is missed and remembered!


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

#1095 2019-07-04 08:32:14

ragamatrix
Member
Registered: 2015-10-04
Posts: 406

Re: Show us your conky

Hello Sector11 and Loutch,
I've tried this clock:
SteamPunkClock.png
But I don't understand how to display seconds, and I also would like to display only the numbers (without the background) ?  ops

Offline

#1096 2019-07-04 12:06:33

ragamatrix
Member
Registered: 2015-10-04
Posts: 406

Re: Show us your conky

I've founded how but only with the 10 20 30 number of ten... units doesn't work

Offline

#1097 2019-07-04 13:58:05

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

Re: Show us your conky

ragamatrix wrote:

I've founded how but only with the 10 20 30 number of ten... units doesn't work

There is a scrip that ohnonot put together, I've been trying seconds as well doesn't seem to work.

#!/bin/bash
## ohnonot - Mon 05 Dec 2016
gap="$1" #the gap between hours and minutes

time="$(date +%H%M%S)"

numpath="/media/5/Conky/SuperKaramba/numbers"

echo "\${image ${numpath}/1-${time:0:1}.png -p 30,17}\
\${image ${numpath}/1-${time:1:1}.png -p 60,17}\
\${image ${numpath}/1-${time:2:1}.png -p 105,17}\
\${image ${numpath}/1-${time:3:1}.png -p 135,17}"

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

#1098 2019-07-04 15:08:14

ragamatrix
Member
Registered: 2015-10-04
Posts: 406

Re: Show us your conky

^ thank you for your antwort, that's what I've done with no succes, nevermind time is displaying smile I would like to display it bigger with no background> what I'll try when I get more time wink

Offline

#1099 2019-07-06 16:06:37

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

Re: Show us your conky

To conquer conky

conquistador ~ noun
1. an adventurer (especially one who led the Spanish conquest of Mexico and Peru in the 16th century)

conkystador ~ noun
1. an avid user of the program conky that will conquer any problem the program may throw at them.


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

#1100 2019-07-06 17:03:28

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

Re: Show us your conky

Sector11 wrote:

To conquer conky...

conkystador ~ noun
1. an avid user of the program conky that will conquer any problem the program may throw at them.

As long as Conky --version < 1.10  tongue  kiss


Be Excellent to Each Other...

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

Offline

Board footer

Powered by FluxBB