APCUPSD Plugin discussion

Posted on
Sat Nov 02, 2013 3:37 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

apcupsd plugin 0.4.1 available

Version 0.4.1 of the acpupsd plugin is now available. See the APCUPSD Announcement Forum for more information.

Posted on
Sat Nov 02, 2013 3:48 am
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

Berkinet,
Thanks a bunch. Just installed 0.4.1 and everything looks back to normal.
Best,
Phil

Posted on
Sun Nov 03, 2013 5:32 am
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

Berkinet,
Spoke too soon. Plugin is throwing this error:

apcupsd Error Error in plugin execution CalcDeviceFunc:

Traceback (most recent call last):
File "plugin.py", line 622, in getDeviceStateList
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'server'

apcupsd Error Error in plugin execution CalcDeviceFunc:

Traceback (most recent call last):
File "plugin.py", line 611, in getDeviceDisplayStateId
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'server'


I can create a UPS device, but there is no communication into the plugin (no status).
Best,
Phil

Posted on
Sun Nov 03, 2013 6:57 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: APCUPSD Plugin discussion

philc wrote:
    apcupsd Error Error in plugin execution CalcDeviceFunc:

    Traceback (most recent call last):
    File "plugin.py", line 622, in getDeviceStateList
    <type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'server'

    apcupsd Error Error in plugin execution CalcDeviceFunc:

    Traceback (most recent call last):
    File "plugin.py", line 611, in getDeviceDisplayStateId
    <type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'server'

Ugh. An error from the change in the logging/debugging code. Fixed in 0.4.2. Thanks

Posted on
Sun Nov 03, 2013 6:58 am
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

apcupsd plugin 0.4.2 available

Version 0.4.2 of the acpupsd plugin is now available. See the APCUPSD Announcement Forum for more information.

Posted on
Sun Nov 03, 2013 7:06 am
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

Berkinet,
Thanks for the quick update - worked a champ. UPS now shows status.
Thanks,
Phil

Posted on
Mon Nov 11, 2013 8:53 pm
hamw offline
Posts: 1212
Joined: Mar 31, 2008

Re: APCUPSD Plugin discussion

Could someone post instructions on installing APCUPSD as well as your standard selections? I have tried a couple of times and don't think it has worked correctly?

TIA!

Posted on
Mon Nov 11, 2013 10:03 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: APCUPSD Plugin discussion

There is extensive documentation on the apcupsd web site. Unfortunately, much of it is deeply technical and refers to compile the software rather than configuring it. However, the configuration examples section has some good information. Also, the configuration file, apcupsd.conf, has extensive comments that should help.

In case this is helpful, here is what I have on one of my Macs. This is for a USB connected UPS:
Code: Select all
UPSNAME Cellar_UPS
UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 60
LOCKFILE /var/tmp
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /var/run
ONBATTERYDELAY 30
BATTERYLEVEL 25
MINUTES 20
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

Posted on
Tue Nov 12, 2013 6:25 am
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

Don't have time to go into a lot of detail right now - but installing APCUPSD on the Mac is a little bit of voodoo. As Berkinet points out, the website is extremely technical and very unhelpful for non-programming types. Short version is download the dmg and install. Then you have to wrestle the config file, which is locked, so you have to unfornicate the permissions first, then make the changes, then save it. And it is in a hidden folder, so you have to find it.

Probably could have been implemented more easily, but for free software that allows so much flexibility, I can't complain too loudly.

Try the install, then write back with any problems you have.

Phil

Posted on
Wed Nov 13, 2013 5:28 pm
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

Berkinet,
Catching this in the log...
0.4.2

Version: 0.5.0
EmailSubject: apcupsd Indigo Plugin Update
EmailBody: This is a minor bug release for the apcupsd Plugin.

The changes are:
- "added version update notification"

The update can be downloaded at the link below.
https://dl.dropboxusercontent.com/u/503 ... -0-4-2.zip

This email was sent to you by Indigo at the request of the plugin. You will only be emailed once per release.
To disable these emails see the apcupsd plugin's config. is available.


I'm running 0.4.2.

Thanks,
Phil

Posted on
Wed Nov 13, 2013 6:32 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: APCUPSD Plugin discussion

philc wrote:
...Catching this in the log...
0.4.2
Version: 0.5.0
EmailSubject: apcupsd Indigo Plugin Update
EmailBody: This is a minor bug release for the apcupsd Plugin….


:oops: You caught me. I am working on the next release and am in the process of upgrading the version checker to use @travis' logger class. Just ignore the messages. (same for the ad2usb plugin)

Posted on
Wed Nov 13, 2013 6:36 pm
philc offline
Posts: 156
Joined: May 17, 2011

Re: APCUPSD Plugin discussion

At least you know it works.... :lol:

Posted on
Thu Nov 27, 2014 8:31 pm
vasisht offline
Posts: 24
Joined: Dec 08, 2012

Re: APCUPSD Plugin discussion

OK this is very cool!

I installed acpupsd and it seems to connect to my UPS and work just fine.

The plugin has me perplexed. When I installed the plugin, and attempt to enable it (I'm running 0.4.2), I get this message:

apcupsd Event comms server started
apcupsd Plugin started. Polling apcupsd server(s) every 5.0 minutes with a timeout of 8 seconds
apcupsd Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 194, in runConcurrentThread
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'logLevel'

apcupsd Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Did I miss something?

Posted on
Thu Nov 27, 2014 10:24 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: APCUPSD Plugin discussion

vasisht wrote:
...
apcupsd Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 194, in runConcurrentThread
<type 'exceptions.AttributeError'>: 'Plugin' object has no attribute 'logLevel'

apcupsd Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Did I miss something?
did you configure the plugin and set the log level?

Posted on
Fri Nov 28, 2014 9:33 am
vasisht offline
Posts: 24
Joined: Dec 08, 2012

Re: APCUPSD Plugin discussion

I set it up using the configure menu in indigo (I've attached a screenshot).

Is there more to do to set up this plugin?
Attachments
Screenshot 2014-11-28 10.31.49.png
Screenshot 2014-11-28 10.31.49.png (68.17 KiB) Viewed 6311 times

Who is online

Users browsing this forum: No registered users and 19 guests