class Place::LocationServices
- Place::LocationServices
- PlaceOS::Driver
- Reference
- Object
Defined in:
place/location_services.crConstant Summary
-
SUCCESS_RESPONSE =
{HTTP::Status::OK, {} of String => String, nil}
-
=============================== IP ADDRESS => MAC ADDRESS
Class Method Summary
Instance Method Summary
- #building_id : String
-
#check_ownership_of(mac_address : String)
Will return
nil
or{"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}
-
#device_locations(zone_id : String, location : String | Nil = nil)
Will return an array of devices and their x, y coordinates
-
#get_building_id
Finds the building ID for the current location services object
-
#get_systems_list
Grabs the list of systems in the building
-
#ip_mappings(method : String, headers : Hash(String, Array(String)), body : String)
Webhook handler for accepting IP address to username mappings This data is typically obtained via domain controller logs
-
#locate_contacts(list_name : String)
locates all the of the emergency contacts
-
#locate_user(email : String | Nil = nil, username : String | Nil = nil)
Runs through all the services that support the Locatable interface requests location information on the identifier for all of them concatenates the results and returns them as a single array
- #mac_address_mappings(method : String, headers : Hash(String, Array(String)), body : String)
-
#macs_assigned_to(email : String | Nil = nil, username : String | Nil = nil)
Will return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc
- #on_load
- #on_update
- #sensor(mac : String, id : String | Nil = nil)
-
#sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil)
sensor search + filtered search
- #systems : Hash(String, Array(String))
- #update_contacts_list
Class Method Detail
Instance Method Detail
Will return nil
or {"location": "wireless", "assigned_to": "bob123", "mac_address": "abcd"}
Will return an array of devices and their x, y coordinates
Webhook handler for accepting IP address to username mappings This data is typically obtained via domain controller logs
Runs through all the services that support the Locatable interface requests location information on the identifier for all of them concatenates the results and returns them as a single array
Will return an array of MAC address strings lowercase with no seperation characters abcdeffd1234 etc
sensor search + filtered search