Comments (2)
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.
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)
- Unable to delete unused displays HOT 3
- [BUG?]: Button could not be added: No access to /dev/mem. Try running as root! HOT 13
- [BUG]: PCA Dimmer HOT 4
- [FEATURE]: Save in DB Telegram started user HOT 17
- notification Message to display sensors on 12c lcd ? HOT 4
- Refused Connection HOT 49
- [FEATURE]: TAPO P100 smart relay support HOT 31
- [FEATURE]: Add a way to offset weather by months HOT 6
- [BUG]: Unprogrammed relays are activating randomly. HOT 13
- [FEATURE]: Sort Order of the enclosures HOT 12
- [BUG]: Mobile responsive view HOT 2
- [BUG]: Low/High alarm deviation values not showing HOT 4
- [BUG]: Kasa relay not shutting off HOT 22
- [BUG]: Relays toggle off and immediately on, despite of Settle Time HOT 6
- [BUG]: Missing Sensirion SHTxx Sensors? HOT 17
- [BUG]: Dimming not working as expected HOT 18
- [FEATURE]: Obfuscate password attempts in logs HOT 4
- [FEATURE]:PWM Fan Control HOT 2
- [BUG]: Lights turn on and off unexpectedly, outside schedule HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terrariumpi.