You are not logged in.

#1 2010-09-08 02:23:00

herrvideman
Member
Registered: 2010-01-11
Posts: 111

[Solved] Weather in conky won't work

- I installed conkyforecast-bzr from AUR
- I set my weather conky to run at startup pointing to the correct conkyrc file (I know it's correct because when I change it it restarts)
- I pointed my conkyrc to the correct conkyForecast.template file
- The fonts are installed to ~/.icons, /usr/share/icons, and usr/share/fonts/truetype
- I found my XOAP location id and put it in the conkyrc file

conkyrc:

#
# conky weather config
#

# set to yes if you want Conky to be forked in the background
background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
xftfont Bitstream Vera Sans Mono:size=9

# Text alpha when using Xft
xftalpha 0.8

# Update interval in seconds
update_interval 1.0

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 0
maximum_width 300

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_inner_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window yes
own_window_type desktop
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 10
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# colours
color1 white
# light blue
color2 3465A4
# orange
#E77320
color3 FC8820
# green
color4 78BF39
# red
color5 CC0000

text_buffer_size 2048

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

TEXT
${offset -5}${color 3465A4}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${color}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font}  ${hr}${color1}
${color fffff0}${execpi 1800 conkyForecast --location=USNY0996 --template=/home/me/.conky/conkyForecast.template}${color}

conkyForecast.template:

${voffset 5}${goto 10}${font ConkyWeather:style=Bold:size=40}[--datatype=WF]${font}
${voffset 5}${goto 20}${color 3465A4}[--datatype=HT --hideunits --centeredwidth=3]$color/${color 3465A4}[--datatype=LT --hideunits --centeredwidth=3]$color
${voffset 10}${goto 10}${font ConkyWindNESW:size=40}[--datatype=BS]${font}
${voffset 5}${goto 10}${color 3465A4}[--datatype=WS --imperial] - [--datatype=WD]$color
${voffset -145}${goto 100}${color white}${font Bitstream Vera Sans Mono:style=Bold:size=14}[--datatype=CT]${font}
${voffset 10}${goto 100}${color 3465A4}Station: ${color white}[--datatype=OB]
${goto 100}${color 3465A4}Rain: ${color white}[--datatype=PC]
${goto 100}${color 3465A4}UV: ${color white}[--datatype=UI] - [--datatype=UT]
${goto 100}${color 3465A4}Humidity: ${color white}[--datatype=HM]
${goto 100}${color 3465A4}Dew Point: ${color white}[--datatype=DP]
${goto 100}${color 3465A4}Sunrise/Set: ${color white}[--datatype=SR] / [--datatype=SS]
${goto 100}${color 3465A4}Bar: ${color white}[--datatype=BR] - [--datatype=BD]
${goto 100}${color 3465A4}Moon: ${color white}[--datatype=MP]
${voffset 25}${goto 25}${color 3465A4}[--datatype=DW --startday=1 --shortweekday]${goto 100}[--datatype=DW --startday=2 --shortweekday]${goto 175}[--datatype=DW --startday=3 --shortweekday]${goto 250}[--datatype=DW --startday=4 --shortweekday]$color
${voffset 10}${goto 10}${font ConkyWeather:size=32}[--datatype=WF --startday=1 --endday=4 --spaces=3]${font}
${voffset 15}${goto 15}${color 3465A4}[--datatype=HT --startday=1 --hideunits --centeredwidth=3]$color/${color 3465A4}[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 90}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]$color/${color 3465A4}[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 170}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]$color/${color 3465A4}[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 245}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]$color/${color 3465A4}[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
${color 3465A4}${font Bitstream Vera Sans Mono:size=7}${alignr 20}Last Update: [--datatype=LU]${font}

All that shows up on my desktop for conky is "Weather -----------------------"

I've spent hours trying to figure this out, scoured the internet for info, and I can't find anything wrong with my files.

Last edited by herrvideman (2010-09-08 15:05:14)

Offline

#2 2010-09-08 11:35:13

Halcyon22
Member
Registered: 2010-07-30
Posts: 33

Re: [Solved] Weather in conky won't work

Please read /usr/share/conkyforecast/README, I'm assuming you need to register at http://www.weather.com/services/xmloap.html and fill in conkyForecast.config. The skel file is located at /usr/share/conkyforecast/conkyForecast.config just copy it into your home and fill it out.

Offline

#3 2010-09-08 13:03:43

herrvideman
Member
Registered: 2010-01-11
Posts: 111

Re: [Solved] Weather in conky won't work

That did it. Thanks.

Offline

#4 2010-09-08 14:00:22

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [Solved] Weather in conky won't work

please mark thread solved.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-10-31 21:12:26

7etc/
Member
Registered: 2010-05-08
Posts: 47

Re: [Solved] Weather in conky won't work

deleted

Last edited by 7etc/ (2011-11-29 20:46:37)

Offline

Board footer

Powered by FluxBB