HI,
I’ve got a few hundred devices in Libre, sorted into device groups for different sites.
I need a way to report availability on a device group basis, so Group 1 98% availability, Group 2 100% availability, etc, for the past month…. I know each device reports, it, but that would mean looking at each device and trying to work out the group availability, which is a very manual process.
Is there any way to pull the availability from a group? As I’m now required to report on it each month.
There is no option from web interface, if you have access to CLI and database, can use below query
SELECT
AVG(availability.availability_perc) AS average_availability,
device_groups.name AS device_group_name
FROM availability
JOIN devices ON availability.device_id = devices.device_id
JOIN device_group_device ON devices.device_id = device_group_device.device_id
JOIN device_groups ON device_groups.id = device_group_device.device_group_id
WHERE availability.duration = 2592000
GROUP BY device_groups.name;
@RR1 Just another question, is it possiable to report on a date range, instead of duration? so instead of "WHERE availability.duration = 2592000 " I can enter a date range like the 1-31 April?
Looking at the DB table availability, the data looks to be pre made, and the query is just outputting it, not searchable VIA a date range.,
It would be great to have a Group availability on this page, when view availability for device, but also as a total for the entire group, that is easy searchable.