가장 먼저 기록된 10개 row 출력
select * from tblstatus limit 10;
0으로 나오는 값들은 부팅 완료 후 프로그램 시작 시 초기값
최근 값 10개를 출력
select * from
(select * from tblstatus order by status_time desc limit 10) as de
order by status_time asc;
가장 최고 온도 확인
select * from tblstatus
where status_thermal =(select max(status_thermal) from tblstatus);
가장 온도가 높았던 10개 값 확인
select * from
(select * from tblstatus order by status_thermal desc limit 10) as de
order by status_time asc;
반대로 가장 온도가 낮았던 10개 확인
select * from
(select * from tblstatus order by status_thermal asc limit 10) as de
order by status_time asc;
하루정도 라즈베리파이를 켜 놓고
결과를 보니 쿨러는 잘 작동하고 있는 듯하고 UPS도 안정적으로 동작하고 있음.
추후 작업량이 많은 경우의 상태를 확인해 봐야 함.