module PlaceOS::Driver::Interface::Sensor

Overview

a device or service that provides sensor data, either singular or for multiple devices

Defined in:

placeos-driver/interface/sensor.cr

Instance Method Summary

Instance Method Detail

abstract def sensor(mac : String, id : String | Nil = nil) : Detail | Nil #

return the specified sensor details


[View source]
abstract def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Detail) #

return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)


[View source]