def sensorPage(self, selection="rolling_median", timeframe=2, id=21): global selectionGlobal global timeframeGlobal selectionGlobal = selection timeframeGlobal = timeframe return lookup.get_template("html/sensor.htm").render( data=SensorController.entryToCSVMA(id, selection, timeframe), thres=ProcessingController.getAvailableThresholds(), selection=selectionGlobal, timeframe=timeframeGlobal, id=id)
def sensorPage(self,selection="rolling_median",timeframe=2,id=21): global selectionGlobal global timeframeGlobal selectionGlobal = selection timeframeGlobal = timeframe return lookup.get_template("html/sensor.htm").render(data=SensorController.entryToCSVMA(id,selection,timeframe),thres=ProcessingController.getAvailableThresholds(),selection=selectionGlobal, timeframe = timeframeGlobal,id=id)
def sensorSax(self,id): cherrypy.response.headers['content-type'] = 'text/csv' return ProcessingController.getSaxContinous(id,100)
def sensorSax(self, id): cherrypy.response.headers['content-type'] = 'text/csv' return ProcessingController.getSaxContinous(id, 100)