sciveo 0.0.49__tar.gz → 0.0.50__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sciveo-0.0.49 → sciveo-0.0.50}/PKG-INFO +1 -1
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/monitor.py +10 -0
- sciveo-0.0.50/sciveo/version.py +2 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/PKG-INFO +1 -1
- sciveo-0.0.49/sciveo/version.py +0 -2
- {sciveo-0.0.49 → sciveo-0.0.50}/README.md +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/base.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/api/upload.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/configuration.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/model.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/optimizers.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/sampling.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/daemon.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/formating.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/hardware.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/logger.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/synchronized.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/common/tools/timers.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/dataset.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/experiment.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/project.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/content/runner.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/__init__.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/network.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo/monitoring/start.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/SOURCES.txt +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/dependency_links.txt +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/requires.txt +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/sciveo.egg-info/top_level.txt +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/setup.cfg +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/setup.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/test/test_configuration.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/test/test_monitoring.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/test/test_runner.py +0 -0
- {sciveo-0.0.49 → sciveo-0.0.50}/test/test_sampling.py +0 -0
|
@@ -33,6 +33,7 @@ class BaseMonitor(DaemonBase):
|
|
|
33
33
|
self.data.setdefault("CPU", {})
|
|
34
34
|
self.data.setdefault("DISK", {})
|
|
35
35
|
self.data.setdefault("NET", {})
|
|
36
|
+
self.data.setdefault("TEMP", {})
|
|
36
37
|
self.data["RAM"] = {}
|
|
37
38
|
self.data["LOG"] = {}
|
|
38
39
|
self.list_logs = []
|
|
@@ -58,6 +59,7 @@ class BaseMonitor(DaemonBase):
|
|
|
58
59
|
|
|
59
60
|
def loop(self):
|
|
60
61
|
self.get_cpu_usage()
|
|
62
|
+
self.get_temperatures()
|
|
61
63
|
self.get_memory()
|
|
62
64
|
self.get_gpu()
|
|
63
65
|
self.get_disk()
|
|
@@ -82,6 +84,14 @@ class BaseMonitor(DaemonBase):
|
|
|
82
84
|
except Exception:
|
|
83
85
|
pass
|
|
84
86
|
|
|
87
|
+
def get_temperatures(self):
|
|
88
|
+
try:
|
|
89
|
+
temperatures = psutil.sensors_temperatures()
|
|
90
|
+
for k, v in temperatures.items():
|
|
91
|
+
self.data["TEMP"][k] = [t.current for t in v]
|
|
92
|
+
except Exception:
|
|
93
|
+
pass
|
|
94
|
+
|
|
85
95
|
def get_memory(self):
|
|
86
96
|
try:
|
|
87
97
|
memory = psutil.virtual_memory()
|
sciveo-0.0.49/sciveo/version.py
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|