You are not logged in.
Its going wrong here:
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window_type conky
own_window yes
own_window_type override <--- this generates errors
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100This is working for me:
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type conky
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100I also had to edit the heights (all to 560):
### LUA Settings ###########################################################
##
## Above and After TEXT - requires a composite manager or blinks.
## --------------------
# lua_load ~/accuweather_conky_modified/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
## ------------------
lua_load ~/accuweather_conky_modified/draw-bg.lua
lua_draw_hook_post draw_bg 20 45 10 160 560 0x000000 0.1
lua_draw_hook_pre draw_bg 20 0 10 205 560 0x000000 0.4
#
##
####################################################### End LUA Settings ###
##${image ~/accuweather_conky_modified/BG.png -p 35,0 -s 170x560}
Also, how can i position conky - i want it a bit lower 
Last edited by mainstream (2012-05-22 11:01:51)
Offline
Well, keep the second one.
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, keep the second one.
Hehe ofcourse :-D but maybe if someone with Ubuntu comes here, he won't have the same problems 
Thanks again for making this work!
Offline
To only make the temp bold, search your conkyrc and find the execpi sed -n commands.
These commands read lines from the output files: find the lines that represent the temps (see the pdf for a guide) and change them from
execpi sed -n XXp $HOME/script_place/output_fileto
${font Whatever:bold:size=Whatever}${execpi sed -n XXp $HOME/script_place/output_file}${font}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
Ok thanks!
I also fixed the cpu temp. It's not working in the previous versions
${goto 55}CPU1: ${color1}${cpu cpu1}% ${alignr 25}${font Ubuntu:bold:size=9}${color1}${execi 10 sensors |grep temp1|cut -c 15-19}°C${color}${font}
${goto 55}CPU2: ${color1}${cpu cpu2}% ${alignr 25}${font Ubuntu:bold:size=9}${color1}${execi 10 sensors |grep temp3|cut -c 15-19}°C${color}${font}Last edited by mainstream (2012-05-22 11:45:08)
Offline
Oops! I did it again. 
Last edited by Sector11 (2012-05-22 13:59:01)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Its going wrong here:
############################# # - Window specifications - # ############################# own_window_class Conky own_window_type conky own_window yes own_window_type override <--- this generates errors own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_argb_visual yes #own_window_argb_value 100
My error, it was a note just to show in the post I forgot to take it out or comment it out
I also had to edit the heights (all to 560):
Difference in screen res or fonts, stuff like that happens. 
Also, how can i position conky - i want it a bit lower
Above TEXT you see:
alignment br
gap_x 10 # left-right
gap_y 200 # up-downLower the gap_y value to 150 maybe?
LOOKS GOOD!!!!!
BTW, All your fonts are bold.
Last edited by Sector11 (2012-05-22 14:34:44)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
mainstream wrote:Its going wrong here:
############################# # - Window specifications - # ############################# own_window_class Conky own_window_type conky own_window yes own_window_type override <--- this generates errors own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_argb_visual yes #own_window_argb_value 100My error, it was a note just to show in the post I forgot to take it out or comment it out
mainstream wrote:I also had to edit the heights (all to 560):
Difference in screen res or fonts, stuff like that happens.
mainstream wrote:Also, how can i position conky - i want it a bit lower
Above TEXT you see:
alignment br gap_x 10 # left-right gap_y 200 # up-downLower the gap_y value to 150 maybe?
LOOKS GOOD!!!!!
BTW, All your fonts are bold.
Hehe thanks, i'm currently working on a version where only the output variables are bold - i like that more and it's easier for reading.
Offline
Sector11 wrote:BTW, All your fonts are bold.
Hehe thanks, i'm currently working on a version where only the output variables are bold - i like that more and it's easier for reading.
Easy enough:
Above TEXT change:
xftfont Ubuntu:bold:size=8to
xftfont Ubuntu:size=8and below TEXT where you want bold (example):
${goto 55}Kernel: ${color1}${alignr 25}${font Ubuntu:bold:size=8}${kernel}${font}
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
I know
but thanks for the help anyway 
Offline
A most interesting thing I'd like to share with you guys:
I use the 1a modified script and decided (just for the sake of it) to rewrite it in C.
I did so and compared the times the C version consumes vs the bash version.
The results were extremely interesting:
The real times were almost the same (the C version uses libcurl, whereas the script uses wget) with a slight better performance by the C version, but look at the user and sys times (the times showing how much time the cpu was occupied with the process): the C version kicks the butt out of the bash one...
I expected it of course, but, still, in some cases, the time consumed by the bash version was 20 times more than the one of the C version.
Just replace the accuweather address at the beginning of the source code with yours and replace the /home/teo/accuweather_conky_modified string with wherever you want your data to be saved.
Compile with
gcc accuw.c -o accuw -lcurland you're done.
Anyway, thought I'd like to share...
Last edited by TeoBigusGeekus (2012-06-11 07:47:41)
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
Anyway, thought I'd like to share...
HOLY C Batman! (no pun intended but sounds good - it could have been Holy C++ Batman)
Look at those stats!
WOW!!!!!!!!!!!!!!
Any plans for the other scripts?
I'm really envious of people that can program. Good Stuff Teo!!! EXCELLENT!!!!
=================================
Last edited by Sector11 (2012-05-23 20:14:12)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
TeoBigusGeekus wrote:Anyway, thought I'd like to share...
HOLY C Batman! (no pun intended but sounds good - it could have been Holy C++ Batman)
Look at those stats!WOW!!!!!!!!!!!!!!
Any plans for the other scripts?I'm really envious of people that can program. Good Stuff Teo!!! EXCELLENT!!!!
Hmmm...
Perhaps the 4rth one, which is huge. I don't know. I was really surprised at the stats myself.
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
Nice work and explanations Teo... Will try this new method out and give feedback
Thanks for all you do... 
VSIDO
If you build it, they will come...
Words That Build Or Destroy
Offline
Nice work and explanations Teo... Will try this new method out and give feedback
Thanks for all you do...
You're welcome mate.
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
grumble grumble grumble ..... I HATE being a noob!
17:12:49 ~
$ cd accuweather_conky_modified
accuw accuw.txt curr_cond draw-bg.lua tod_ton
accuw_script BG.png curr_cond_raw mainstream.conky tod_ton_raw
17:12:53 ~/accuweather_conky_modified
$ gcc accuw.c -o accuw -lcurl
gcc: error: accuw.c: No such file or directory
17:12:58 ~/accuweather_conky_modified
$ sudo apt-get install libcurl
[sudo] password for sector11:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcurl
17:13:33 ~/accuweather_conky_modified
$ Last edited by Sector11 (2012-05-23 20:15:47)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Have you downloaded the source code from pastebin?
Copy it in a text editor, save it as accuw.c, navigate there and then give the gcc command.
EDIT: libcurl is installed with curl.
Last edited by TeoBigusGeekus (2012-05-23 20:23:12)
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
Have you downloaded the source code from pastebin?
Copy it in a text editor, save it as accuw.c, navigate there and then give the gcc command.EDIT: libcurl is installed with curl.
Yes, saved as: accuw.txt - accuw and accuw.c
Yea, I have curl, libcirl - it was a shot in the dark. When "accuw" didn't work I looked that the "gcc" line saw the accuw.c there and renamed the file. Same result. I'm jinxed!
17:28:44 ~
$ apt-cache policy curl
curl:
Installed: 7.25.0-1
Candidate: 7.25.0-1
Version table:
*** 7.25.0-1 0
500 ftp://ftp.ccc.uba.ar/pub/linux/debian/debian/ testing/main amd64 Packages
100 /var/lib/dpkg/status
17:29:14 ~
$ cd accuweather_conky_modified
accuw accuw_script BG.png curr_cond_raw mainstream.conky tod_ton_raw
accuw.c accuw.txt curr_cond draw-bg.lua tod_ton
17:29:36 ~/accuweather_conky_modified
$ gcc accuw.c -o accuw -lcurl
accuw.c:1:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
17:29:44 ~/accuweather_conky_modified
$ Ask VastOne, I've never been able to compile anything and have no idea why.
Last edited by Sector11 (2012-05-23 20:32:30)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Try installing libcurl-dev or devel.
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
Try installing libcurl-dev or devel.
17:57:46 ~
$ sudo apt-get install libcurl-dev
[sudo] password for sector11:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl-dev is a virtual package provided by:
libcurl4-openssl-dev 7.25.0-1
libcurl4-nss-dev 7.25.0-1
libcurl4-gnutls-dev 7.25.0-1
You should explicitly select one to install.
E: Package 'libcurl-dev' has no installation candidate
17:58:21 ~
$ sudo apt-get install devel
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package devel
17:59:41 ~
$ Don't worry about it Teo, it all been tried before. I'm OK with it.
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Last try: libcurl4-gnutls-dev
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
Last try: libcurl4-gnutls-dev
Oh that will do something:
18:28:34 ~
$ sudo apt-get install libcurl4-gnutls-dev
[sudo] password for sector11:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libgdome2-0 libgdome2-cpp-smart0c2a libgoffice-0.8-8
libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common
liblink-grammar4 libloudmouth1-0 libnl-3-200 libnl-genl-3-200
libots0 libtelepathy-glib0 libtidy-0.99-0 libwv-1.2-4
link-grammar-dictionaries-en wpasupplicant
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
comerr-dev krb5-multidev libgcrypt11-dev libgnutls-dev
libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4
libidn11-dev libkadm5clnt-mit8 libkadm5srv-mit8 libkdb5-6
libkrb5-dev libldap2-dev libp11-kit-dev librtmp-dev libssh2-1-dev
libtasn1-3-dev
Suggested packages:
doc-base krb5-doc libcurl3-dbg libgcrypt11-doc gnutls-doc
krb5-user
The following NEW packages will be installed:
comerr-dev krb5-multidev libcurl4-gnutls-dev libgcrypt11-dev
libgnutls-dev libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev
libgssrpc4 libidn11-dev libkadm5clnt-mit8 libkadm5srv-mit8
libkdb5-6 libkrb5-dev libldap2-dev libp11-kit-dev librtmp-dev
libssh2-1-dev libtasn1-3-dev
0 upgraded, 19 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,431 kB of archives.
After this operation, 12.6 MB of additional disk space will be used.
Do you want to continue [Y/n]?I'll get it while I eat. Thanks
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
OK ...
gcc accuw.c -o accuw -lcurlNo errors now what? How do I use it?
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
I hope you've changed the accuweather address and the file paths in the source code.
Other than that, you use it just like the bash script, but instead of running it with
bash /path/accuw_scriptyou run it with
/path/accuwIf you execute it inside a conkyrc, the call would be something like
${execi 600 /home/teo/accuweather_conky_modified/accuw}Last edited by TeoBigusGeekus (2012-05-23 22:52:08)
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
Now this (--------) gnome-keyring bug is really getting me angry!
21:43:04 ~
$ conky -c ~/accuweather_conky_mod/ms.conky &
[1] 18701
21:43:12 ~
$ p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
Conky: desktop window (15d) is root window
Conky: window type - override
Conky: drawing to created window (0x3400001)
Conky: drawing to double buffer
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
$ p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
$ p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directoryThe bash version works just fine:
21:43:41 ~
$ conky -c ~/accuweather_conky_modified/mainstream.conky &
[1] 19007
21:43:59 ~
$ p11-kit: couldn't load module: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: /usr/lib/x86_64-linux-gnu/pkcs11/gnome-keyring-pkcs11.so: cannot open shared object file: No such file or directory
Conky: /home/sector11/accuweather_conky_modified/mainstream.conky: 27: config file error
Conky: desktop window (15d) is root window
Conky: window type - override
Conky: drawing to created window (0x3600001)
Conky: drawing to double buffer
wget: no process found
--2012-05-23 21:43:59-- http://www.accuweather.com/en/gr/kastoria/178682/current-weather/178682
Resolving www.accuweather.com (www.accuweather.com)... 200.42.33.42, 200.42.33.10
Connecting to www.accuweather.com (www.accuweather.com)|200.42.33.42|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/sector11/accuweather_conky_modified/curr_cond_raw'
[ <=> ] 67,539 330K/s in 0.2s
2012-05-23 21:44:00 (330 KB/s) - `/home/sector11/accuweather_conky_modified/curr_cond_raw' saved [67539]
--2012-05-23 21:44:00-- http://www.accuweather.com/en/gr/kastoria/178682/daily-weather-forecast/178682
Resolving www.accuweather.com (www.accuweather.com)... 200.42.33.10, 200.42.33.42
Connecting to www.accuweather.com (www.accuweather.com)|200.42.33.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/sector11/accuweather_conky_modified/tod_ton_raw'
[ <=> ] 72,588 --.-K/s in 0.05s
2012-05-23 21:44:00 (1.38 MB/s) - `/home/sector11/accuweather_conky_modified/tod_ton_raw' saved [72588]
$ Last edited by Sector11 (2012-05-24 00:47:27)
#! Etiquette | Conky PitStop | VSIDO | Interactive LUA
Weather v9000 | Teo x4 Sites | Arclance | Finnish
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.