Conky Weather/Clock not working properly

Yes, it’s telling you … you don’t have conkyForcast installed :wink:

Download this file … and double-click it to install … then when the Ubuntu Software Centre opens, click the “Install” button:
https://launchpad.net/~conky-companions/+archive/ppa/+files/conkyforecast_2.20_all.deb

then try again.

Done it, then got this;

peter@Petes-ubuntu-pc:~$ conky -c ~/.conky/.conkyrc &
[1] 7447
peter@Petes-ubuntu-pc:~$ Conky: desktop window (1000023) is subwindow of root window (1ad)
Conky: window type - override
Conky: drawing to created window (0x4000001)
Conky: drawing to double buffer
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
sh: --datatype=HT: not found
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
ERROR: Config data file /home/peter/.conkyForecast.config not found, using defaults (Registration info is needed though)
Traceback (most recent call last):
File “/usr/share/conkyforecast/conkyForecast.py”, line 1700, in
main()
File “/usr/share/conkyforecast/conkyForecast.py”, line 1696, in main
forecastinfo = ForecastInfo(options)
File “/usr/share/conkyforecast/conkyForecast.py”, line 591, in init
socket.setdefaulttimeout(self.config.CONNECTION_TIMEOUT)
AttributeError: ‘NoneType’ object has no attribute ‘CONNECTION_TIMEOUT’
peter@Petes-ubuntu-pc:~$

I don’t know what you’ve been doing … but

ERROR: Config data file /home/peter/.conkyForecast.config not found
tells you it's looking for the file [b].conkyForecast.config[/b] in your home directory, but it doesn't exist .. that's because you have it in [b]/home/peter/.conky[/b] .. it's not supposed to be there.

So do this:

Change directory to your home directory with:

cd ~

Delete the .conky directory and contents:

rm -rv ~/.conky

Download the conkyHTChome.tar.gz archive from my dropbox:

wget http://dl.dropbox.com/u/11876059/conkyHTChome.tar.gz

Extract the archive:

tar -xvf conkyHTChome.tar.gz

Now start conky:

conky

If it starts great … but conky will close when you close the terminal … this is normal.

Now add a new item to Startup Applications with the contents:

Name: Conky Startup
Command: /home/peter/.conky_start.sh
Comment: Conky HTC Weather

Make sure the new startup item is ticked … then log off and on again … 20secs later conky should start.

If it doesn’t start after 20secs … post the output from:

conky

It worked :smiley:

You know you got me to add it to startup programs, well, the weather one looks like it in the /home/peter folder, are the rest of my programs installed in there or are they in another folder or scattered all over the place.
Thats why I’m having trouble making them (the startup programs) myself as I dont know where they are or what to put in the box properly.

It depends what you mean by “programs”

if you mean there are the binary executables stored … usually /usr/bin

This directory is part of the $PATH so there would be no need to enter the path to them … that is also where you will find conky … which is why you can start conky by just running:

conky

BUT

the ConkyHTCweather developers want conky to be started with a 20 second delay, so they wrote a “script”, that effectively says … wait 20 seconds, then run the command conky … they put this script in your home directory, which is why you needed to point the Startup Applications at the script, and not directly at conky.

Your “Home” directory usually just contains your user files, and user specific configuration files for applications.

another user may wish to run conky with their own configuration … this is possible because conky looks for it’s config files in the home directory of the currently logged on user.

make sense ?

I’ve now got a problem with it, it wont display my local info?
Are there any commands you need me to enter to see what’s gone wrong with it?

What is missing ? … what was displayed before, that isn’t being displayed before ?

and how long has it been missing ?

It’s supposed to display location and weather for the following week
It’s been missing about a week I think, 2?

I was using Window$, what I’d do is, I cant remember what it’s even called now, where the list of programs are kept, well, I’d go there and uninstall it and then reinstall.
BUT Ubuntu is different, I cant do it that easy, would that be an option? I’m not saying I want to do it that way if it can be avoided.
What’s the other way, to it?

I’m going to guess the weather station conky is connecting to to get the data is offline … it may come back online, or it may not.

What do you want to do … select another station, or wait and see ?

can you post the contents of:

gedit ~/.conkyrc

and

gedit ~/.conkyForecast.config

in code tags please … to preserve the formatting.

The program your thinking of for Windows is Rainmeter.

I don’t think he’s after the Windows application … he’s just pointing out that IF he was using Windows he’d reinstall it through control panel > add/remove applications.

gedit ~/.conkyrc

[spoiler] # – Conky settings – #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

# -- 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

border_inner_margin 0
border_outer_margin 0

minimum_size 310 310
maximum_width 310


alignment tr
gap_x 0
gap_y 10

# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes

# -- Text settings -- #
use_xft yes
xftfont MaiandraGD:size=24
xftalpha 0.4

uppercase no

default_color 8b8b8b

     TEXT

${voffset 30}${font Helvetica LT Std :style=Condensed:size=60}${color 434343}${goto 40}${time %H}${goto 140}${color 434343}${time %M}${font Helvetica LT Std :size=15:style=condensed}${color 808080}${goto 225}${time %S}
${voffset 55}${color whitesmoke}${font Helvetica LT Std :size=8}${alignr 115}${time %A},${time %e} ${time %B} ${time %G}
${voffset -45}${goto 22}${font Helvetica LT Std :size=15}${color 909090}${execi 600 conkyForecast --location=UKXX0040 --datatype=CN --refetch}
#${voffset 8}${font Helvetica LT Std :size=10}${color 707070}${goto 24}Бургас
${font Helvetica LT Std :size=12}${color whitesmoke}${goto 24}${execi 1800 conkyForecast --location=UKXX0040 --datatype=CT}${voffset -10}${goto 200}${font Helvetica LT Std :size=35}${color d4d4d4}${execi 1800 conkyForecast --location=UKXX0040 -u --datatype=HT}
${voffset 35}${font Helvetica LT Std :size=8}${color white}${goto 25}${execi 600 conkyForecast --location=UKXX0040 --datatype=HT -u --startday=1}/${color 707070}${execi 600 conkyForecast --location=UKXX0040 --datatype=LT -u --startday=1}${font Helvetica LT Std :size=8}${color white}${goto 70}${execi 600 conkyForecast --location=UKXX0040 --datatype=HT -u --startday=2}/${color 707070}${execi 600 conkyForecast --location=UKXX0040 --datatype=LT -u --startday=2}${font Helvetica LT Std :size=8}${color white}${goto 115}${execi 600 conkyForecast --location=UKXX0040 --datatype=HT -u --startday=3}/${color 707070}${execi 600 conkyForecast --location=UKXX0040 --datatype=LT -u --startday=3}${font Helvetica LT Std :size=8}${color white}${goto 160}${execi 600 conkyForecast --location=UKXX0040 --datatype=HT -u --startday=4}/${color 707070}${execi 600 conkyForecast --location=UKXX0040 --datatype=LT -u --startday=4}
${font Helvetica LT Std :size=8}${color 707070}${goto 25}${execi 600 conkyForecast --location=UKXX0040 --datatype=DW --shortweekday --startday=1}${font Helvetica LT Std :size=8}${color 707070}${goto 70}${execi 600 conkyForecast --location=UKXX0040 --datatype=DW --shortweekday --startday=2}${font Helvetica LT Std :size=8}${color 707070}${goto 115}${execi 600 conkyForecast --location=UKXX0040 --datatype=DW --shortweekday --startday=3}${font Helvetica LT Std :size=8}${color 707070}${goto 160}${execi 600 conkyForecast --location=UKXX0040 --datatype=DW --shortweekday --startday=4}
${voffset -10}${font Helvetica LT Std :size=8}${color 707070}${goto 205}${execi 600 conkyForecast --location=UKXX0040 --datatype=DW --shortweekday --startday=5}
${voffset -23}${font Helvetica LT Std :size=8}${color white}${goto 205}${execi 600 conkyForecast --location=UKXX0040 --datatype=HT -u --startday=5}/${color 707070}${execi 600 conkyForecast --location=UKXX0040 --datatype=LT -u --startday=5}

${image ~/.images/base.png -p 12,30 -s 238x140}
${image ~/.images/base.png -p 12,190 -s 238x40}
${image ~/.images/flip_bg.png -p 30,10 -s 100x110}
${image ~/.images/flip_bg.png -p 130,10 -s 100x110}
${execpi 600 conkyForecast --location=UKXX0040 --template=~/.vreme.template}[/spoiler]

gedit ~/.conkyForecast.config

CACHE_FOLDERPATH = /tmp/
CONNECTION_TIMEOUT = 5
EXPIRY_MINUTES = 30
TIME_FORMAT = %H:%M
DATE_FORMAT = %d/%m/%Y
LOCALE =pt_BR
XOAP_PARTNER_ID =
XOAP_LICENCE_KEY =
MAXIMUM_DAYS_FORECAST = 7
BASE_XOAP_URL = Charing Cross, England Weather Forecast and Conditions - The Weather Channel | Weather.com?cc=*&dayf=10&link=xoap&prod=xoap&par=<XOAP_PARTNER_ID>&key=<XOAP_LICENCE_KEY>&unit=m

Yep, thats what I was trying to explain but couldn’t remember the wording. Window$ - a memory

Is there a PPA I can add that might help update it and possibly fix the problem?

just hang on a bit … I’m testing your settings :o

I don’t know if it’s in any way linked to the same problem but Transmission is having a similar problem. We could try and fix Conky first and then see if the problem persists with Transmission?

OK, just coming up with ideas as I am learning to see what you think.

Close conky with:

sudo killall conky

run these 2 commands (which may fail, but don’t worry if they do)

rm -vf ~/.conkyForecast.config~

and

rm -vf ~/.conkyrc~

Now restart it from the command line with:

conky

What is the output ?


Just spotted your posting about transmission … explain that, as it may be a network bandwidth problem.

How do you connect to the internet ?

Are there any other users using the same connection ?

What are they doing ? … heavy downloading ?

What are the symptoms from Transmission ?

peter@Petes-ubuntu-pc:~$ sudo killall conky
[sudo] password for peter:
peter@Petes-ubuntu-pc:~$ rm -vf ~/.conkyrc~
removed `/home/peter/.conkyrc~’
peter@Petes-ubuntu-pc:~$ conky
Conky: /home/peter/.conkyrc: 20: config file error
Conky: desktop window (1a00095) is subwindow of root window (1ad)
Conky: window type - normal
Conky: drawing to created window (0x2c00001)
Conky: drawing to double buffer
ERROR: Error reading weather data: not well-formed (invalid token): line 1, column 1
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Error reading weather data: not well-formed (invalid token): line 1, column 0
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Error reading weather data: not well-formed (invalid token): line 1, column 1
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Location UKXX0040 is not in cache.
ERROR: Failed to load the location cache
ERROR: Error reading weather data: not well-formed (invalid token): line 1, column 1

and it’s just continuing to repeat itself on the last bit

The Transmission problem is, it is not refreshing it’s window properly or at all if I open another window in front of it and it’s taking ages to refresh itself, I end up just leaving it to do its thing.