GithubHelp home page GithubHelp logo

Comments (2)

theyosh avatar theyosh commented on July 17, 2024

What are the options from the UPS side?

The best thing to do is shutdown the Pi. That would also shutdown TerrariumPI software. So if there is an 'official' way to shutdown a server, that would be the best.

But, it is also possible to use the TerrariumPI API. If you are able to 'post' to an url, you can use:
http://[username]:[password]@[terrariumpi_ip]/api/action/shutdown
If needs to be a post action else it will no work. And this will shutdown the Pi completely.
There is no need to actual posting data.

But, if you can tell a bit more about how you use the UPS on other servers, maybe you can use that also for the Pi

from terrariumpi.

G4KCM avatar G4KCM commented on July 17, 2024

What are the options from the UPS side?

The best thing to do is shutdown the Pi. That would also shutdown TerrariumPI software. So if there is an 'official' way to shutdown a server, that would be the best.

But, it is also possible to use the TerrariumPI API. If you are able to 'post' to an url, you can use: http://[username]:[password]@[terrariumpi_ip]/api/action/shutdown If needs to be a post action else it will no work. And this will shutdown the Pi completely. There is no need to actual posting data.

But, if you can tell a bit more about how you use the UPS on other servers, maybe you can use that also for the Pi

Hi, Thank you so much you have actually completely answered my question! What I couldn’t figure out was what I needed to ‘post’ but now I see. It will be quite easy as Home Assistant which I use to monitor my UPSs has a REST/POST command so all I need to do is initiate a shutdown of TerrariumPi using the API when the UPS has been online for a few minutes as the UPS will be monitored by Home Assistant using NUT then shut the UPS down afterwards so it all comes back on when the main supply is restored.

Thank you and as always much appreciated!

from terrariumpi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.