Compare commits

..

13 Commits

Author SHA1 Message Date
gunu3371
6e2e523570
Update install_service.sh 2024-07-15 22:43:02 +09:00
gunu3371
428909acb1
Update README.md 2024-07-15 21:51:56 +09:00
gunu3371
84d2f28347
Update README.md 2024-07-15 21:51:15 +09:00
gunu3371
6302a43fe6
Update README.md 2024-07-15 21:50:32 +09:00
gunu3371
5ceeb99f0c
Update README.md 2024-07-15 21:50:01 +09:00
gunu3371
eaa41e5d1b
Update README.md 2024-07-15 21:47:39 +09:00
gunu3371
f438ea35b1
Update README.md 2024-07-15 16:30:05 +09:00
gunu3371
ef0ec57230
Update README.md 2024-07-15 16:29:24 +09:00
gunu3371
bc5a29dc35
Update README.md 2024-07-15 16:27:44 +09:00
gunu3371
f349e2af4c
Update README.md 2024-07-15 16:25:52 +09:00
gunu3371
e77b4bdc06
Update README.md 2024-07-15 16:25:28 +09:00
gunu3371
289c347ee7
Update README.md 2024-07-15 16:24:55 +09:00
gunu3371
fbe9cb83e4
Update README.md 2024-07-15 16:24:44 +09:00
2 changed files with 27 additions and 1 deletions

View File

@ -1,2 +1,27 @@
# m1s_ups_control
python script for ODROID-M1S UPS Module
## KR
ODROID-M1S 용 UPS모듈용 파이썬 스크립트
+ ### 기능
+ 자동 종료
+ UPS/전원상태를 로그에 저장
+ BE400같은 통신기능이 없는 UPS를 대신하여 다른 서버/컴퓨터에 종료신호 뿌리기(작업중)
+ ### 설치방법
+ 1.https://wiki.odroid.com/odroid-m1s/application_note/circuitpython#set_environment 이링크를 따라서 /boot/config.ini 수정후 재부팅
+ 2.```git clone https://github.com/gunu3371/m1s_ups_control.git``` 실행
+ 3.```sh install_service.sh``` 실행
+ ### 사용방법
+ ```systemctl status m1s_ups``` 로 상태확인
+ ```/etc/m1s_ups/log/``` 에서 로그확인
## EN
Python script for UPS module for ODROID-M1S
+ ### Features
+ Automatic shutdown
+ Save UPS/power status in log
+ Providing a shutdown signal to other servers/computers in place of a UPS that does not have a communication function such as BE400 (work in progress)
+ ### Installation method
+ 1. https://wiki.odroid.com/odroid-m1s/application_note/circuitpython#set_environment Follow this link, edit /boot/config.ini and reboot.
+ 2. Run ```git clone https://github.com/gunu3371/m1s_ups_control.git```
+ 3. Run ```sh install_service.sh```
+ ### How to use
+ Check status with ```systemctl status m1s_ups```
+ Check log in ```/etc/m1s_ups/log/```

View File

@ -1,4 +1,5 @@
#!/bin/bash
systemctl disable --now m1s_ups
apt update
apt install python3-pip
python3 -m pip install -r requirements.txt