Commit f89b48d1 authored by wolfsack's avatar wolfsack
Browse files

..

parent 4eb36a9d
......@@ -18,9 +18,8 @@ class Metric:
if self.comment is not None:
output += help_string + "\r\n"
print("found comment ", self.comment )
output = type_string + "\r\n" + f'{self.metric_name}{self.__params_to_string()} {self.value}'
print("found comment ", self.comment)
output += type_string + "\r\n" + f'{self.metric_name}{self.__params_to_string()} {self.value}'
return output
......
import os
import platform
import psutil
from vcgencmd import Vcgencmd
from metric import Metric
......@@ -75,6 +73,7 @@ def metrics():
# raspberry pi exclusive
if platform.system() == "Linux":
from vcgencmd import Vcgencmd
temp = Vcgencmd().measure_temp()
metrics_list.append(
Metric(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment