class Place::AreaManagement

Defined in:

place/area_management.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def areas : Hash(String, AreaConfig) #

area_id => area


[View source]
def building_id : String #

PlaceOS client config


[View source]
def campus? : Bool #

[View source]
def get_building_id #

Finds the building ID for the current location services object


[View source]
def is_inside?(x : Float64, y : Float64, area_id : String) : Bool #

[View source]
def level_areas : Hash(String, Array(AreaConfig)) #

zone_id => areas


[View source]
def level_buildings : Hash(String, String) #

level_zone_id => building_zone_id


[View source]
def level_details : Hash(String, LevelCapacity) #

[View source]
def level_sensors : Hash(String, Hash(String, SensorMeta)) #

zone_id => sensors


[View source]
def on_load #

[View source]
def on_unload #

[View source]
def on_update #

[View source]
def request_level_locations(level_id : String, sensor_data : Array(SensorDetail) | Nil = nil, overview : Bool = true) : Nil #

[View source]
def request_sensor_data(level_id : String) : Array(SensorDetail) #

Queries all the sensors in a building and exposes the data


[View source]
def sensor_discovery : Hash(String, Hash(String, Place::AreaManagement::SensorMeta)) #

Building => sensor_id => sensor meta


[View source]
def sensor_locations(level_id : String | Nil = nil) #

returns the sensor location data that has been configured


[View source]
def synchronize_all_levels #

[View source]
def update_available(level_ids : Array(String)) #

[View source]
def write_sensor_discovery #

[View source]