Class: Probe::Temperature

Inherits:
Probe
  • Object
show all
Defined in:
lib/pimon/probe/temperature.rb

Class Method Summary collapse

Class Method Details

.checkObject



5
6
7
# File 'lib/pimon/probe/temperature.rb', line 5

def self.check
  `cat /sys/class/thermal/thermal_zone0/temp`[0..1].to_i
end

.symbolObject



9
10
11
# File 'lib/pimon/probe/temperature.rb', line 9

def self.symbol
  :temp
end

.unitObject



13
14
15
# File 'lib/pimon/probe/temperature.rb', line 13

def self.unit
  'ºC'
end