PlaceOS::Driver::Interface::Sensor::Detail
Inherits JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object
Constructors
new(type : PlaceOS::Driver::Interface::Sensor::SensorType, value : Float64, last_seen : Int64, mac : String, id : Nil | String, name : Nil | String, raw : Nil | String = nil, loc : PlaceOS::Driver::Interface::Sensor::Location | Nil = nil, status : PlaceOS::Driver::Interface::Sensor::Status = Status::Normal, limit_high : Float64 | Nil = nil, limit_low : Float64 | Nil = nil, resolution : Float64 | Nil = nil, module_id : Nil | String = nil, binding : Nil | String = nil, unit : Nil | String = nil, modifier : Nil | String = nil, building : Nil | String = nil, level : Nil | String = nil)
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
binding
Sourcebinding=(binding : String | Nil)
Sourcebuilding
Sourcebuilding=(building : String | Nil)
Sourceid
Sourceid=(id : String | Nil)
Sourcelast_seen
Sourcelast_seen=(last_seen : Int64)
Sourcelat
Sourcelat=(lat : Float64 | Nil)
Sourcelevel
Sourcelevel=(level : String | Nil)
Sourcelimit_high
Sourcelimit_high=(limit_high : Float64 | Nil)
Sourcelimit_low
Sourcelimit_low=(limit_low : Float64 | Nil)
Sourcelon
Sourcelon=(lon : Float64 | Nil)
Sourcemodified_type
Sourcemodifier
Sourcemodifier=(modifier : String | Nil)
Sourcename
name is some useful human itentifying information about the sensor
i.e. "lobby motion detector" or "Globalsat LS-113P"
name=(name : String | Nil)
name is some useful human itentifying information about the sensor
i.e. "lobby motion detector" or "Globalsat LS-113P"
raw
raw is a human readable original value
i.e. Temperature is always celsius but the sensor may be reporting Fahrenheit
so an example raw string would be "88.2°F"
raw=(raw : String | Nil)
raw is a human readable original value
i.e. Temperature is always celsius but the sensor may be reporting Fahrenheit
so an example raw string would be "88.2°F"
resolution
Sourceresolution=(resolution : Float64 | Nil)
Sources2_cell_id
Sources2_cell_id=(s2_cell_id : String | Nil)
Sourceseen_at
Sourcestatus
Sourcestatus=(status : Status)
Sourcetype
Sourcetype=(type : SensorType)
Sourcevalue
Sourcevalue=(value : Float64)
Sourcey=(y : Float64 | Nil)
Source