FS#22010 - [conky] does not show anything about APC status

Attached to Project: Arch Linux
Opened by ugaciaka (ugaciaka) - Tuesday, 07 December 2010, 18:23 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 05 January 2011, 01:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Gaetan Bisson (vesath)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Conky not show anything about APC status

Additional info:
* package version(s): 1.8.1-1, 1.8.1-2

* config:
I have this line in my .conkyrc and work after upgrade conky to 1.8.1
${apcupsd localhost 3551}${color0}Autonomia:${apcupsd_timeleft}m ${alignr}Capacità: ${apcupsd_charge}%
${color0}Carico:${apcupsd_load}%

Steps to reproduce: start conky with and see in the desktop N/A without real value.
This task depends upon

Closed by  Gaetan Bisson (vesath)
Wednesday, 05 January 2011, 01:25 GMT
Reason for closing:  Upstream
Comment by ugaciaka (ugaciaka) - Tuesday, 07 December 2010, 19:19 GMT
I rewrite (I writed wrong)
* config:
I have this line in my .conkyrc and *not* work after upgrade conky to 1.8.1
${apcupsd localhost 3551}${color0}Autonomia:${apcupsd_timeleft}m ${alignr}Capacità: ${apcupsd_charge}%
${color0}Carico:${apcupsd_load}%
Comment by Gaetan Bisson (vesath) - Tuesday, 07 December 2010, 19:28 GMT
Don't you think it is relevant to mention you reported that issue upstream?

http://sourceforge.net/tracker/index.php?func=detail&aid=3083859&group_id=143975&atid=757308
Comment by Gaetan Bisson (vesath) - Tuesday, 07 December 2010, 19:39 GMT
Anyway, as you have seen, apcupsd support is built-in conky as it should.
Are you sure apcupsd is running? What does "ncat localhost 3551" says?

Edit: Additionally, if you downgrade to conky-1.8.0, do things start working as soon as you restart conky?
Comment by ugaciaka (ugaciaka) - Tuesday, 07 December 2010, 20:14 GMT
1. you're right sorry, I forgot this (LOL) because I had "patched" conky 1.8.1 with apcstatus source from 1.8.0.

2. conky -v|grep apc
* apcupsd
yes, conky in archlinux is compiled from obtain information from apcustatus

3. If I downgrade conky to 1.8.0 everything works.

4. I can't see "ncat localhost 3551" now (I'm not using my pc now).

tnx
Comment by Gaetan Bisson (vesath) - Tuesday, 07 December 2010, 20:44 GMT
They changed the way they connect to apcupsd: http://git.omp.am/?p=conky.git;a=commit;h=abeadb59d734c9dc9baa9fdcf435f9b3297643fc
Did it solve your problem to patch conky-1.8.1 with the apcupsd code from 1.8.0?

Edit: Also, maybe try using 127.0.0.1 rather than localhost.
Comment by ugaciaka (ugaciaka) - Wednesday, 08 December 2010, 08:54 GMT
I copied apcupsd code from 1.8.0 in 1.8.1 and I compiled with makepkg with your PKGBUILD and now all works!

ncat localhost 3551 or ncat 127.0.0.1 3551
show nothing
Comment by Gaetan Bisson (vesath) - Thursday, 09 December 2010, 16:44 GMT
Great! You have confirmed it is a proper bug of conky.

However, there is not much more we can do since copying the file from 1.8.0 is a drastic change and we only include clean and simple patches that have been approved by upstream.

P.S. I meant using 127.0.0.1 in your conky configuration in place of localhost: ${apcupsd 127.0.0.1 3551}
Comment by ugaciaka (ugaciaka) - Thursday, 09 December 2010, 17:33 GMT
When I write my problem in official conky's bugtracker the answer closed and I could not reply that this a damned bug!

I write 127.0.0.1 instead of localhost but this not effect
Comment by Gaetan Bisson (vesath) - Thursday, 09 December 2010, 17:48 GMT
You can ask to reopen the bug, or contact the person who closed it to ask why they did it (maybe they didn't see your attachment)...

Unfortunately, Arch is not the place for this problem to be fixed.

Loading...