Class: Probe::Temperature
Class Method Summary collapse
Class Method Details
.check ⇒ Object
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 |
.symbol ⇒ Object
9 10 11 |
# File 'lib/pimon/probe/temperature.rb', line 9 def self.symbol :temp end |
.unit ⇒ Object
13 14 15 |
# File 'lib/pimon/probe/temperature.rb', line 13 def self.unit 'ºC' end |