Feature request to write the sysLocation of a device to the backend DB before it is changed by any of the “location_map”.
E.G:
sysLocation polled: “Rack10,Rm-314,Sink”
$config[‘location_map_regex’][’/Sink/’] = “Under The Sink, The Office, London, UK”;
PolledLocation: Rack10,Rm-314,Sink"
Location: “Under The Sink, The Office, London, UK”
My problem is that if I do this the Geo Location creates a new group for every device because the RackX will vary per device and I want groups based on location not rack.
Location_map, location_map_regex and location_map_regex_sub can normalize the sysLocation string. However, I require the unique sysLocation in Libre somewhere to query at a later date via the API.
This can be resolved by writing the original polled sysLocation string to the backend DB before it is altered by location_map_regex.
Cheers,
Glynn