Added v1 folder with updated cpuTemp, uptime and diskusage scripts for statushandler

This commit is contained in:
2017-01-28 14:01:03 +01:00
parent 3ae5b558ef
commit 28c4e3dec5
3 changed files with 81 additions and 0 deletions

15
v1/cpuTemp.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2017-01-28 13:56:48
# @Last Modified by: KevinMidboe
# @Last Modified time: 2017-01-28 13:58:35
from pyspectator.processor import Cpu
from time import sleep
cpu = Cpu(monitoring_latency=1)
with cpu:
for _ in range(8):
cpu.load, cpu.temperature
sleep(1.1)