class GoBright::LocationService

Included Modules

Defined in:

gobright/location_service.cr

Constant Summary

NO_MATCHES = [] of String

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def building_id : String #

[View source]
def cache_space_details #

[View source]
def check_ownership_of(mac_address : String) : OwnershipMAC | Nil #
Description copied from module PlaceOS::Driver::Interface::Locatable

return nil or {"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}


[View source]
def device_locations(zone_id : String, location : String | Nil = nil) #
Description copied from module PlaceOS::Driver::Interface::Locatable

array of devices and their x, y coordinates


[View source]
def get_building_id #

Finds the building ID for the current location services object


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

[View source]
def locate_user(email : String | Nil = nil, username : String | Nil = nil) #

NOTE : we could keep track of current bookings and then use that information to assign ownership of a desk if the desks are being booked via the check-in/check-out this would allow us to locate


[View source]
def macs_assigned_to(email : String | Nil = nil, username : String | Nil = nil) : Array(String) #
Description copied from module PlaceOS::Driver::Interface::Locatable

return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc


[View source]
def on_load #

[View source]
def on_update #

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

[View source]