Yeah, TBG wrote my weather scripts the first time around. I think I may go back to that, and see if I can get one of the scripts to work with my, strangely obscure, weather location.
But, the rest DOES work now!
Printable View
Yeah, TBG wrote my weather scripts the first time around. I think I may go back to that, and see if I can get one of the scripts to work with my, strangely obscure, weather location.
But, the rest DOES work now!
First conky setup, gives me what I want.
Attachment 263983
.conkyrc
Code:### ToDo
### DONE -Make a moon phase section with all relavant data
### DONE - find more icons for the more weather info
### DONE -display white text for portfolio
### DONE - align values in portfolio
### DONE - Position current icon and text better
### DONE - change colour scheme
# Conky Google Now style #
# Conky settings #
background no
update_interval 1
double_buffer yes
no_buffers yes
# Window specifications #
own_window yes
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_title
#own_window_colour FFFFFF
own_window_argb_visual true
own_window_argb_value 0
own_window_transparent yes
maximum_width 345
minimum_size 300 740
# Alignment #
alignment top_right
gap_x 30
gap_y 50
border_inner_margin 15
border_outer_margin 0
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftalpha 0
xftfont Open Sans Light:size=10
override_utf8_locale yes
imlib_cache_size 0
# Color scheme #
default_color FFFFFF
color1 FF8000 # used for Up, Down, Sent, Received on wifi
color2 FF9E5E # used for highs
color3 E77E5A # used on wifi up/down values
color4 33CCFF # blue used for lows A3E0FF
color5 FFA347 # used and headings
color6 FFFF00 # used for values
color7 DD4814 # hr bar and kernel version
TEXT
#################################################
### Get latest data, Display City and Country ###
#################################################
${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=3569&u=c" -o ~/.cache/weather.xml}${font Open Sans Light:size=15}${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "city=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}, ${execi 300 grep "yweather:location" ~/.cache/weather.xml | grep -o "country=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
#####################
### Date and time ###
#####################
${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "date=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${font}
##########################################################
### Find code to display proper weather condition icon ###
##########################################################
${execi 300 cp -f ~/conky/png/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 30,65 -s 60x60}
#############################
### Find the current temp ###
#############################
${voffset -30}${font Open Sans Light:size=70}${alignr}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
######################################
### Display weather condition text ###
######################################
${voffset -15}${offset 30}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
#############################
### Future cast - day * 5 ###
#############################
${voffset 15}${goto 18}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 88}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 158}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${goto 228}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4' | tr '[a-z]' '[A-Z]'}${goto 298}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5' | tr '[a-z]' '[A-Z]'}
###########################################
### Future cast - code for weather icon ###
###########################################
${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 0,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 70,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 140,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4').png ~/.cache/weather-4.png}${image ~/.cache/weather-4.png -p 210,200 -s 30x30}${execi 300 cp -f ~/conky/png/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5').png ~/.cache/weather-5.png}${image ~/.cache/weather-5.png -p 280,200 -s 30x30}${voffset 20}
################################
### Future cast - high temps ###
################################
${color2}${goto 20}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 90}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 160}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 230}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 300}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°${color}
###############################
### Future cast - low temps ###
###############################
${color4}${goto 20}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 90}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${goto 160}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${goto 230}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==4'}°${goto 300}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==5'}°${color}
#######################
### Additional Info ###
#######################
${voffset 20}${image ~/conky/png/feels.png -p 0,295 -s 15x15}${goto 35}Feels Like: ${goto 235}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "chill=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}°${font}
${image ~/conky/png/humidity.png -p 0,315 -s 15x15}${goto 35}Humidity: ${goto 230}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%
${image ~/conky/png/wind.png -p 0,333 -s 15x15}${goto 35}Wind: ${goto 108}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${image direction.png -p 260,330 -s 48x48} from the ${execpi 300 ~/conky/direction.sh}
${image ~/conky/png/visibility.png -p 0,350 -s 15x15}${goto 35}Visibility: ${goto 200}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "visibility=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "distance=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}
${image ~/conky/png/pressure.png -p 0,370 -s 15x15}${goto 35}Pressure: ${goto 140}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} ${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "pressure=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"} - ${execpi 10 ~/conky/pressure.sh}
${image ~/conky/png/sun.png -p 0,390 -s 15x15}${goto 35}Sunrise/Sunset: ${goto 145}${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunrise=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'} - ${execi 300 grep "yweather:astronomy" ~/.cache/weather.xml | grep -o "sunset=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tr '[a-z]' '[A-Z]'}
############
### Moon ###
############
${execpi 3600 ~/conky/moon.sh}${image moon.png -p 25,445 -s 60x60}
${voffset -15}${goto 130}${color}Moon: ${alignr}${color}${execpi 300 sed -n 7p $HOME/conky/raw}${color}
${goto 130}${color}Moon Illumination: ${alignr}${color}${execpi 300 sed -n 15p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Distance: ${alignr}${execpi 300 sed -n 11p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Altitude: ${alignr}${execpi 300 sed -n 10p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Direction: ${alignr}${execpi 300 sed -n 9p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon Full: ${alignr}${execpi 300 sed -n 12p $HOME/conky/out.txt}${color}
${goto 130}${color}Moon New: ${alignr}${execpi 300 sed -n 13p $HOME/conky/out.txt}${color}
####################
### My Portfolio ###
####################
${image ~/conky/png/chart.png -p 5,547 -s 32x32}${voffset 10}${offset 45}${font Open Sans Light:size=15}${color}Portfolio${color}${font}${offset 10}${voffset -4}${color}${hr}${color}
${color}${alignc -15}Last${alignr 25}Change${font}${color}
${color}S&P/TSX ${color}${execpi 10 ~/conky/stock-conky-market.sh quote ^GSPTSE}
${color}NBC944 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN05NRN.TO}
${color}NBC199 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN05MM9.TO}
${color}NBC460 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote ALTAMIRACROI.TO}
${color}RBF592 ${color}${execpi 10 ~/conky/stock-conky-market.sh quote F0CAN06ZCC.TO}
${color}CAD DOLLAR ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote CADUSD=X}
${color}Gold ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote GCU15.CMX}
${color}Oil ${color}${goto 120}${execpi 10 ~/conky/stock-conky-market.sh quote CLV15.NYM}
#####################
### Network Stuff ###
#####################
${image ~/conky/png/wifi.png -p 5,754 -s 32x32}${voffset 10}${offset 45}${font Open Sans Light:size=15}${color}Network${color}${font}${offset 10}${voffset -4}${color}${hr}${color}
${color}${voffset 10}Local IP${goto 120}Public IP${alignr 50}BitRate${alignr}Signal${color}
${color}${addr wlan1}${color}${goto 120}${color}${execi 300 curl icanhazip.com}${color}${alignr 35}${color}${wireless_bitrate wlan1}${color}${alignr}${color}${wireless_link_qual_perc wlan1}%${color}
${color}Up:${color} ${color}${upspeed wlan1}${color}${alignr}${color}Down:${color} ${color}${downspeed wlan1}${color}
${upspeedgraph wlan1 75,135 FF0000 33FF00}${alignr}${downspeedgraph wlan1 75,135 0000FF FF0000}
${color}Sent:${color} ${color}${totalup wlan1}${color}${alignr}${color}Received:${color} ${color}${totaldown wlan1}${color}
##############
### Footer ###
##############
${color}${hr}${color}
${image ~/conky/png/ubuntu.png -p 22,980 -s 60x60}
${voffset -15}${font DroidSans:style=Bold:size=20}${offset 100}${pre_exec lsb_release -sd || cat /etc/*release}${font}
${voffset 5}${offset 130}${font OpenLogos:size=14}${color}Z ${voffset -2}${font DroidSans:size=9}${color1}${sysname}${offset 3}${kernel}${font DroidSans:size=9}${machine}${font}
Run Robot Run!!!!
Screen shot looks very cool.
53 beans since 2007? Man of few words but important actions.
52 beans.... feel so sad :(
I will work on this.
Been so long since I've messed with Conky; I barely remember how to configure anything... I was able to get one of my classic layouts somewhat working on my new Ubuntu installation. Still needs a little work. There a number of things I've forgotten how to do and some things that don't seem to work the way they used to.
Attachment 263985
Had to look twice at your screen, 20 GB / 66% free file system... That would imply a 60 GB disk but that is probably the /home directory. (didn't look at the code)
Don't blame yourself for some things not working, probably just changes in the underlying architecture(s).
The wallpaper appears to be aged concrete???
I still like Linux with a 1.5% user base and open-source the NSA probably won't bog down system with REAL "Spy-Ware".
The storage display shows 20G free and bar indicates that about 1/3 of storage has been used... so about 30G total home folder size or so. I dual boot and have 40G partition for Linux on a 250G HD. The rest is just games and MS Office on Win7.
Storage section code...
Wallpaper is black rock texture... oil bearing shale perhaps????Code:${color1}${font Alfios:size=12:bold}STORAGE${font}
${color5}File System${color}${alignr}${fs_free /} Free
${color0}${fs_bar /}
I used to know my way around AWK, MAWK, GAWK, GREP, and a slew of other nifty terminal commands... but haven't done a whole lot with conky or Linux hacking in years, so I forgot most of it. I used to even edit the Conky source code to get a few more tricks out of it. I find that Ubuntu (and Mint for that matter) works so well now that tinkering is no longer required, and its easy to get out of practice. I'll post the config file sometime when I get it cleaned up. If you look waaaaaaay back in this thread I'm sure there is a similar one that I posted before, except perhaps a bit more awesome.
Attachment 263986 <-- Perhaps this one is easier to see.
This thread is soooooo long looking back to find something is like looking for a "needle" in a hay stack.
I also use Windows 7 for games under dual boot.
I've played with GREP for the sole purpose of getting conky to parse and then display statistics from system commands.
I've thought about playing with Mint and Arch flavours of Unix / Linux but there is so much technology, so little time.
"tweaking" conky source code sounds like a great retirement project a few decades from now. I've only had to patch source to get Linux version (called Enhanced IO) of Intel Rapid Storage Technology's Hard Disk Accellerator to Solid State Drive Caching built into BIOS and controlled under Windows working properly because the author Stantec? stopped supporting it. Now Debian supports it so hopefully I won't have to delve into C source code again.
I'd like to see conky updated to merge 5 google chrome / chromium child PID's (Processor Identification threads) into one parent and display of IP address / company names / user names / nations / provinces / cities that are "peeking" into my machine. Of course you can get all this with the execc (sp?) command and parsing the output but it would be nice to have native function calls built in.
All in all conky is way better than PC Wizard under Windows that crashes all the time and doesn't allow an individual to tailor screens to his particular tastes. That said PC Wizard offers far more than conky out of the box to the eager to get to the meat and potatoes man.
Ummm.... I know you mean CONKY support, as in a tag or process IN Conky code... but Conky does support LUA. Toss a message to mrpeachy, if you can get a hold of him. He'll point you in the right direction to write a script that does precisely what you're talking about. I THINK I have a link to a LUA resource around here in my old bookmarks... I USED to have a link to a LUA reference, but the link no longer works. mrpeachy is really the best source I know of that is still active. I'll try to include that for you... It's a little daunting, but it's completely worth it if you genuinely want a feature for Conky that you didn't have before. If there are more LUA pros still haunting this place, I hope they see this and speak up. Like dk75, who is an efficiency genius who can help get you running LUA, but also is fantastic at writing super-simple and efficient grep/awk/sed system commands that will have you pulling system data like a pro. They've both been instrumental in getting me going, way back when I was first designing mine. I wouldn't know what I know now without those two.
http://thepeachyblog.blogspot.ca/p/i...home-page.html