Compare commits

...

5 Commits

Author SHA1 Message Date
54e56fade3 comment by lauren ramsey 2024-10-19 14:12:35 -05:00
17a35975b4 add .venv to .gitignore and .idea? 2024-10-18 20:19:16 -05:00
36a2bd8a9a add .venv to .gitignore 2024-10-18 20:17:22 -05:00
f2c1b5d33b add .venv to .gitignore 2024-10-18 20:16:54 -05:00
96bdfd93cd Add README.md 2024-10-18 01:51:01 -05:00
9 changed files with 53 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
# ignore please # ignore please
.venv
__pycache__/ __pycache__/
*.log* *.log*
config.py config.py

3
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

7
.idea/misc.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Black">
<option name="sdkName" value="Python 3.12 (power)" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (power)" project-jdk-type="Python SDK" />
</project>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/power.iml" filepath="$PROJECT_DIR$/.idea/power.iml" />
</modules>
</component>
</project>

10
.idea/power.iml generated Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.venv" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

7
README.md Normal file
View File

@ -0,0 +1,7 @@
This script uses NUT and a few other libraries to communicate UPS status for servers.
If the power goes out, it will send an email and a discord message with status and battery charge.
If the power comes back, it will do the same.
Once battery reaches critical level, it will automate shutting servers down.
When the power comes back and the battery is charged, it will fire them up again.

View File

@ -6,3 +6,7 @@ paramiko
requests requests
proxmoxer proxmoxer
wakeonlan wakeonlan
# hi there :) ljr