class Place::AreaManagement
- Place::AreaManagement
- PlaceOS::Driver
- Reference
- Object
Defined in:
place/area_management.crClass Method Summary
Instance Method Summary
-
#areas : Hash(String, AreaConfig)
area_id => area
-
#building_id : String
PlaceOS client config
- #campus? : Bool
-
#get_building_id
Finds the building ID for the current location services object
- #is_inside?(x : Float64, y : Float64, area_id : String) : Bool
-
#level_areas : Hash(String, Array(AreaConfig))
zone_id => areas
-
#level_buildings : Hash(String, String)
level_zone_id => building_zone_id
- #level_details : Hash(String, LevelCapacity)
-
#level_sensors : Hash(String, Hash(String, SensorMeta))
zone_id => sensors
- #on_load
- #on_unload
- #on_update
- #request_level_locations(level_id : String, sensor_data : Array(SensorDetail) | Nil = nil, overview : Bool = true) : Nil
-
#request_sensor_data(level_id : String) : Array(SensorDetail)
Queries all the sensors in a building and exposes the data
-
#sensor_discovery : Hash(String, Hash(String, Place::AreaManagement::SensorMeta))
Building => sensor_id => sensor meta
-
#sensor_locations(level_id : String | Nil = nil)
returns the sensor location data that has been configured
- #synchronize_all_levels
- #update_available(level_ids : Array(String))
- #write_sensor_discovery
Class Method Detail
Instance Method Detail
def request_level_locations(level_id : String, sensor_data : Array(SensorDetail) | Nil = nil, overview : Bool = true) : Nil
#
def request_sensor_data(level_id : String) : Array(SensorDetail)
#
Queries all the sensors in a building and exposes the data
def sensor_discovery : Hash(String, Hash(String, Place::AreaManagement::SensorMeta))
#
Building => sensor_id => sensor meta
def sensor_locations(level_id : String | Nil = nil)
#
returns the sensor location data that has been configured