Ejemplo n.º 1
0
def DS18B202():
    timeNow = datetime.now()
    timeNow = timeNow.replace(microsecond=0)
    mean = analyseData.returnOurMean()
    Medians = analyseData.returnOurMedian()
    SSD = analyseData.returnOurSSD()
    SV = analyseData.returnOurSV()
    MAX = analyseData.returnMaxAndTime()
    MIN = analyseData.returnMinAndTime()
    Num = analyseData.returnLength()
    FirstValue = analyseData.findFirstValue()
    LastValue = analyseData.findLastValue()
    StatsValue = {
        'TM': timeNow,
        'mean': mean[2],
        'Medians': Medians[2],
        'SSD': SSD[2],
        'SV': SV[2],
        'MAX': MAX[2],
        'MIN': MIN[2],
        'Num': Num[2],
        'FirstValue': FirstValue,
        'LastValue': LastValue[0],
        'maxTime': MAX[5],
        'minTime': MIN[5]
    }
    return render_template("DS18B202.html",
                           title='DS18B202',
                           StatsValue=StatsValue)
Ejemplo n.º 2
0
def index():
    timeNow = datetime.now()
    timeNow = timeNow.replace(microsecond=0)
    means = analyseData.returnOurMean()
    Medians = analyseData.returnOurMedian()
    SSD = analyseData.returnOurSSD()
    DS18B201 = {
        'mean': means[0],
        'Median': Medians[0],
        'SD': SSD[0],
        'TM': timeNow
    }
    DS18B202 = {
        'mean': means[1],
        'Median': Medians[1],
        'SD': SSD[1],
        'TM': timeNow
    }
    MLX90614 = {
        'mean': means[2],
        'Median': Medians[2],
        'SD': SSD[2],
        'TM': timeNow
    }
    return render_template("index.html",
                           title='Home',
                           DS18B201=DS18B201,
                           DS18B202=DS18B202,
                           MLX90614=MLX90614)
Ejemplo n.º 3
0
def index():
    timeNow = datetime.now()
    timeNow = timeNow.replace(microsecond=0)
    means = analyseData.returnOurMean()
    Medians = analyseData.returnOurMedian()
    SSD = analyseData.returnOurSSD()
    DS18B201 = {'mean':means[0],'Median':Medians[0],'SD':SSD[0],'TM':timeNow}
    DS18B202 = {'mean':means[1],'Median':Medians[1],'SD':SSD[1],'TM':timeNow}
    MLX90614 = {'mean':means[2],'Median':Medians[2],'SD':SSD[2],'TM':timeNow}
    return render_template("index.html",title = 'Home',DS18B201 = DS18B201,DS18B202=DS18B202,MLX90614=MLX90614 )
Ejemplo n.º 4
0
def MLX90614():
    timeNow = datetime.now()
    timeNow = timeNow.replace(microsecond=0)
    mean = analyseData.returnOurMean()
    Medians = analyseData.returnOurMedian()
    SSD = analyseData.returnOurSSD()
    SV = analyseData.returnOurSV()
    MAX = analyseData.returnMaxAndTime()
    MIN = analyseData.returnMinAndTime()
    Num = analyseData.returnLength()
    FirstValue = analyseData.findFirstValue()
    LastValue = analyseData.findLastValue()
    StatsValue = {'TM': timeNow,'mean':mean[2],'Medians':Medians[2], 'SSD':SSD[2],'SV':SV[2],
                  'MAX':MAX[2],'MIN':MIN[2],'Num':Num[2],'FirstValue':FirstValue,'LastValue':LastValue[0],'maxTime':MAX[5],'minTime':MIN[5]}
    return render_template("MLX90614.html",title = 'MLX90614',StatsValue = StatsValue)