2026-04-24 FE Backup

This commit is contained in:
2026-04-24 12:37:16 +00:00
parent ace79b82f7
commit 0ba11a23b8
3705 changed files with 1240402 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
def getUPSPaths(location=None):
return reports.MBR.criticalpower.getPowerPaths(location)
def getPowerHist(startDate,endDate, location=None):
tagpaths = getUPSPaths(location)
hist = reports.MBR.common.util.getHistory(tagpaths, startDate, endDate, customArgs={})
return reports.MBR.common.util.generateSumCol(hist, sumColName="CalculatedUPSTotalkW")
def processData(startDate,endDate, interval, location=None):
histDS = getPowerHist(startDate,endDate, location)
return reports.MBR.common.util.averageIntervalData(histDS, interval)
def beginReport(startDate,endDate, intervalMins, location=None):
return processData(startDate,endDate, intervalMins, location)