You are not logged in.
@Sector11 Nice to screen you ! Conky it's nice, we can learn laguages in the same time... cf-->French weather conkys
Offline
@Sector11 Nice to screen you !
Conky it's nice, we can learn laguages in the same time... cf-->French weather conkys
Well you did say: You're welcome, with pleasure...??
I took the ?? to mean: is that right?
Thanks for that link ... bookmarked
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
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 different.
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...
Offline
^ 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
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
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 88The 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
I have had this image for quite a while ... ... 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.
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
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
^ 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
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:
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.
Last edited by Sector11 (2014-03-01 01:25:57)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
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:
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
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 88So 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
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
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.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Nothing better than thinking about a new Conky while unboxing a new pc
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
Nothing better than thinking about a new Conky while unboxing a new pc
Will post some screenshots when I'm done installing CrunchBang.
Looking forward to it!
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
@ TEO - Thank you again my friend.
I'll fix that for you:
@ 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
^ Well said!
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
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.
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
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
Offline
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
hello
do you have an idea why this happens: http://postimg.org/image/rmy3nd2gv/
i also display other webcams. but they look good i do not have an idea why this image is upside-down?!
regards, alex
Offline
hello
do you have an idea why this happens: http://postimg.org/image/rmy3nd2gv/
i also display other webcams. but they look good
i do not have an idea why this image is upside-down?!
regards, alex
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
whoops
Offline
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