SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#7101 2014-02-27 17:45:54

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

@Sector11 Nice to screen you ! big_smile Conky it's nice, we can learn laguages in the same time... cf-->French weather conkys
wink

Offline

Be excellent to each other!

#7102 2014-02-27 18:47:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

@Sector11 Nice to screen you ! big_smile Conky it's nice, we can learn laguages in the same time... cf-->French weather conkys
wink

Well you did say: You're welcome, with pleasure...??
I took the ??  to mean: is that right?   wink

Thanks for that link ... bookmarked


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7103 2014-02-27 20:55:12

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

yes ?? means right was my 1st thinking because I'm not sure of vocabulary in English, Canadian, Swiss, French, Spanish, Italian, sometimes same words means something completly differentbig_smile  yikes In French we call that "faux-amis" which mean in English "wrong-friends" I don't have an example but if a French man says something to a Canadian Girl same words can mean something else...  lol

Offline

#7104 2014-02-27 21:43:27

photonucleon
Quantum Geek
From: Hogwarts
Registered: 2013-06-10
Posts: 952

Re: Conky v1.9 Thread

^ It's not a super good example, but 'car' in English is 'voiture' in French, while 'car' in French is 'because' in English...


- Ai! Aníron Undómiel. -
- Some things are certain. -
- Et Eärello Endorenna utúlien. Sinome maruvan ar Hildinyar tenn' Ambar-metta. -

Offline

#7105 2014-02-28 20:46:08

stoicho
New Member
Registered: 2014-02-28
Posts: 3

Re: Conky v1.9 Thread

My goal is to maintain a simple text file and have conky use those values with the execbar variable. The text file would look like this:

apples 25
pears 40
oranges 88

The idea is to show progress on different tasks. So Conky would output nice progress bars using those numbers.

I know how to use a simple python script to give conky the value it needs, but I don't know what to do if I have more than 1 value.

Am I missing something easy within conky?

Offline

#7106 2014-03-01 00:20:58

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

stoicho wrote:

My goal is to maintain a simple text file and have conky use those values with the execbar variable. The text file would look like this:

apples 25
pears 40
oranges 88

The idea is to show progress on different tasks. So Conky would output nice progress bars using those numbers.

I know how to use a simple python script to give conky the value it needs, but I don't know what to do if I have more than 1 value.

Am I missing something easy within conky?

Lost me ... can you show a rough example?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7107 2014-03-01 00:40:27

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

The Modern Conky Grandfather Clock

I have had this image for quite a while ... clock_Sector11.jpg ... and an idea of how to use it in a conky.

Today I did it ... with some very basic GIMP skills, one of the original "Chronograph" LUA clocks (it does 12 / 24 hours), draw-bg.lua to put a shaded circle in the centre and a cut down version of Teo's weather.com script.
2014_02_28_19_07_56_1920x1080_Sector11.jpg

From the stroke of midnight until 6am it says "Good Morning!" and from then until 18:00 it says "Good Day!" at which time it changes to "Good Evening!"

Last edited by Sector11 (2014-03-01 00:41:26)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7108 2014-03-01 00:42:06

stoicho
New Member
Registered: 2014-02-28
Posts: 3

Re: Conky v1.9 Thread

So let's say I have collected 50% of the apples I want. So I can do a python script like this:

#!/usr/bin/python 
print 50

Then, to show the 50% as a progress meter over in conky:

Apples: ${exec python test.py}% ${execbar python test.py}

This works fine of course, but I want to track more than 1 thing. I could make a whole bunch of scripts, each for apples, oranges, pears etc, but I want to be able to just update one file:

apples 25
pears 40
oranges 88

So I'm trying to figure out how to get each execbar to look for a different value in the data file.

Offline

#7109 2014-03-01 00:44:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

photonucleon wrote:

^ It's not a super good example, but 'car' in English is 'voiture' in French, while 'car' in French is 'because' in English...

I thought: parce que = because


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7110 2014-03-01 01:13:46

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

stoicho wrote:

So I'm trying to figure out how to get each execbar to look for a different value in the data file.

OH ... I can see where an idea stolen from Teo's weather scripts will do that ... no python needed:

2014_02_28_22_07_45_312x180_Sector11.jpg

text file: fruit

apples
65
pears
40
oranges
88

Conky:

default_bar_size 125 10
update_interval 1
TEXT

Apples${goto 60}${color6}${execbar sed -n '2p' /media/5/Conky/fruit} ${exec sed -n '2p' /media/5/Conky/fruit}${color}
Pears${goto 60}${color6}${execbar sed -n '4p' /media/5/Conky/fruit} ${exec sed -n '4p' /media/5/Conky/fruit}${color}
Oranges${goto 60}${color6}${execbar sed -n '6p' /media/5/Conky/fruit} ${exec sed -n '6p' /media/5/Conky/fruit}${color}

2p, 4p & 6p ...  are the line numbers to read.  big_smile

Last edited by Sector11 (2014-03-01 01:25:57)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7111 2014-03-01 01:21:18

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

You could also do it this way:

Conky:

default_bar_size 125 10
update_interval 1
TEXT

${exec sed -n '1p' /media/5/Conky/fruit}${goto 60}${color6}${execbar sed -n '2p' /media/5/Conky/fruit} ${exec sed -n '2p' /media/5/Conky/fruit}${color}
${exec sed -n '3p' /media/5/Conky/fruit}${goto 60}${color6}${execbar sed -n '4p' /media/5/Conky/fruit} ${exec sed -n '4p' /media/5/Conky/fruit}${color}
${exec sed -n '5p' /media/5/Conky/fruit}${goto 60}${color6}${execbar sed -n '6p' /media/5/Conky/fruit} ${exec sed -n '6p' /media/5/Conky/fruit}${color}

So if the first fruit, apples, changes to grapes ... BINGO: 2014_02_28_22_20_21_359x102_Sector11.jpg

Also maybe execi and execibar with an update interval would be easier on CPU usage, but changes wouldn't be instant.

@ TEO -  Thank you again my friend.

Last edited by Sector11 (2014-03-01 01:24:27)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7112 2014-03-01 08:41:47

dk75
#! Junkie
Registered: 2012-06-14
Posts: 250

Re: Conky v1.9 Thread

stoicho wrote:

So let's say I have collected 50% of the apples I want. So I can do a python script like this:

#!/usr/bin/python 
print 50

Then, to show the 50% as a progress meter over in conky:

Apples: ${exec python test.py}% ${execbar python test.py}

This works fine of course, but I want to track more than 1 thing. I could make a whole bunch of scripts, each for apples, oranges, pears etc, but I want to be able to just update one file:

apples 25
pears 40
oranges 88

So I'm trying to figure out how to get each execbar to look for a different value in the data file.

Why Python?
If you know Python then why to ask how read file line by line and compare strings.
If you don't know then you looking for someone to write script for you.

Then again, why Python?

PS: http://bit.ly/1odm6rW and http://bit.ly/1odmmqZ and many other Python tutorials


Debian Sid (Minted) x86_64/3.12-10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Intel X3100
Lenovo T61, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | Conky Pitstop

Offline

#7113 2014-03-01 12:03:09

stoicho
New Member
Registered: 2014-02-28
Posts: 3

Re: Conky v1.9 Thread

Sector11 wrote:

Also maybe execi and execibar with an update interval would be easier on CPU usage, but changes wouldn't be instant.

@ TEO -  Thank you again my friend.

Thanks so much - that's exactly what I was aiming for!

All I know of Python is that little script I found, that being the only way I could find to do what I wanted.

Offline

#7114 2014-03-01 12:40:58

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

stoicho wrote:

Thanks so much - that's exactly what I was aiming for!

All I know of Python is that little script I found, that being the only way I could find to do what I wanted.

You're welcome.  Teo lead the way!

What you know about python is that much more than I know.  smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7115 2014-03-01 14:15:49

boisei0
#! CrunchBanger
From: Gaanderen, Netherlands
Registered: 2013-07-16
Posts: 193

Re: Conky v1.9 Thread

Nothing better than thinking about a new Conky while unboxing a new pc smile
Will post some screenshots when I'm done installing CrunchBang.


YAWS (cli weather script with conkyForecast syntax) | Bitbucket | Github | Blog
Member of the Unofficial #! Emergency Tinfoil Hat Distribution Center
Emergency Tinfoil Hat Conky Alert System development team

Offline

#7116 2014-03-01 14:36:17

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

boisei0 wrote:

Nothing better than thinking about a new Conky while unboxing a new pc smile
Will post some screenshots when I'm done installing CrunchBang.

Looking forward to it!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7117 2014-03-02 16:17:01

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

Re: Conky v1.9 Thread

Sector11 wrote:

@ TEO -  Thank you again my friend.

I'll fix that for you:

Sector11 wrote:

@ SED -  Thank you again my friend.


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

#7118 2014-03-02 16:26:40

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

^   wink   Well said!


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7119 2014-03-05 19:33:47

boisei0
#! CrunchBanger
From: Gaanderen, Netherlands
Registered: 2013-07-16
Posts: 193

Re: Conky v1.9 Thread

It took me a bit longer and it's still a work in progress, but anyway. New computer, new conky elements. Used MrPeachy's Chronograph with Didier-T's edits as a base. Still to come: world weather using YAWS.

dEZ0aQO.jpg


YAWS (cli weather script with conkyForecast syntax) | Bitbucket | Github | Blog
Member of the Unofficial #! Emergency Tinfoil Hat Distribution Center
Emergency Tinfoil Hat Conky Alert System development team

Offline

#7120 2014-03-06 17:41:00

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

i have a little problem with my script. the second part works but the first part (toi==nasa) will not work. what's wrong?

this function only downloads the image.

------------------------------------------------------------------------
if toi=="nasa" then -- #################################################
------------------------------------------------------------------------

local nasa_file=folder1.."nasa.jpg"
local nasa_url=get_image()

	-- download image only once a day (at predefined time)
	if os.date("%H:%M") == '17:46' then

 	 local updates = tonumber(conky_parse('${updates}'))
	 if (math.mod(updates, iv) == 0) then
	  print("downloading 'nasa-image of the day'")
	  os.execute("wget  -q -O "..nasa_file..' "'..nasa_url..'"')
	 end -- of update

	end -- os.date
	
------------------------------------------------------------------------
elseif toi=="cont" then -- #############################################
------------------------------------------------------------------------

	local updates = tonumber(conky_parse('${updates}'))
	if (math.mod(updates, iv) == 0) then
	  print("-----------------")
	  print("downloading image")
	  print("-----------------")
	  -- remove old version before downloading a new version of the image
	  os.execute("rm -f "..img_file.." && wget  -q -O "..img_file..' "'..url..'"')
	  ------------------------------------------------------------------
	end	-- update interval

------------------------------------------------------------------------
end -- of toi ##########################################################
------------------------------------------------------------------------

edit: i solved the problem.

Last edited by lionhead (2014-03-06 17:50:13)

Offline

#7121 2014-03-10 14:32:41

ragamatrix
#! Junkie
From: Earth
Registered: 2012-12-05
Posts: 286

Re: Conky v1.9 Thread

Hi all;
Here's a new idea in an electronic music theme conky. I'm just begining with the tangostudio distribution mixed with #! waldorf repos.
conkymachine.jpg
When I'll find more ideas to full the machine I'll post.

Offline

#7122 2014-03-10 14:58:11

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

ragamatrix wrote:

Hi all;
Here's a new idea in an electronic music theme conky. I'm just begining with the tangostudio distribution mixed with #! waldorf repos.
http://s21.postimg.org/mjn596sr7/conkymachine.jpg
When I'll find more ideas to full the machine I'll post.

WoW! awesome.  That's really nice!  Looking forward to seeing the finished stereo.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#7123 2014-03-10 16:00:41

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Re: Conky v1.9 Thread

hello

do you have an idea why this happens: http://postimg.org/image/rmy3nd2gv/

i also display other webcams. but they look good smile i do not have an idea why this image is upside-down?!

regards, alex

Offline

#7124 2014-03-10 16:18:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

lionhead wrote:

hello

do you have an idea why this happens: http://postimg.org/image/rmy3nd2gv/

i also display other webcams. but they look good smile i do not have an idea why this image is upside-down?!

regards, alex


You need to select the same in both images.
two_different.jpg


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Be excellent to each other!

#7125 2014-03-10 17:00:54

lionhead
#! Junkie
From: Dagobah / Germany
Registered: 2011-01-22
Posts: 459

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo