2

Is there any way by which I can power off RPI2 when system is on UPS after sometime using software only. My UPS communicates with the system using USB. But it has windows support. I want to have similar mechanism with RPI2.

I'm using this UPS model.

Thank You.

  • May be more info on UPS model how it gets connected to windows could be useful. – dhruvvyas90 Nov 4 '15 at 11:12
  • 1
    I believe that you can download its source from this site : apcupsd.com and follow this instructions to compile and run it on Rpi. : code.google.com/p/quickanddirty/wiki/APCinLinux Hope it helps. – dhruvvyas90 Nov 4 '15 at 11:28
  • Thanks a lot Dastaan. I will follow the steps. I will update this thread with my findings. – Amol Nov 4 '15 at 11:52
  • @dastaan - apcupsd is the answer I would have provided - can you turn your comment into an answer with a little more explanation? – Phil B. Nov 4 '15 at 12:17
  • @PhilB. Added. :) – dhruvvyas90 Nov 4 '15 at 12:29
2

I think for this particular UPS, vendor also provides source on their site.

You can download source from this link.

Untar it and copy it on Raspberry pi.

And as per this guide,

  1. Install dependencies by sudo apt-get install libgd2-xpm-dev libusb-dev

  2. cd to source directory.

  3. ./configure --enable-usb --enable-cgi

  4. Once configuration done, make && sudo make install to compile and install binaries.

  5. To test, run : apcaccess

I didn't test it but it should ideally work.

Hope it helps. :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.