Skip to content
Snippets Groups Projects
  • am0ebe's avatar
    addf37cc
    refine temperature. see below for details · addf37cc
    am0ebe authored
    add more specific deltailed temperature values:
            mean_night_temp[C°], min_night_temp[C°], max_night_temp[C°], mean_day_temp[C°], min_day_temp[C°], max_day_temp[C°]
    
    They each depend from the Unit, the Block and if its day or night.
    Day and Night times are calculated by data from: https://www.laenderdaten.info/Europa/Deutschland/sonnenuntergang.php
    
    Recalc all block!
    
    initTempData:
     > collect all temps and sort them by uid,blockid,day-night into meanTemps
    
    calc_mean_for_sensor_values_for_uid_and_time:
     > foreach time collect all 4* sensorvalues and calc their mean [like before] *not always 4, if theirs errors...
    
    initTempData:
     > iterate over meanTemps and calculate min,max,mean * day,night * unitid * block
     > add temps to tempData
    
    mergeTemp:
     > append new temp values in merge
     > use global precision value (set to 1 too not suggest overly precise temperatures)
    addf37cc
    History
    refine temperature. see below for details
    am0ebe authored
    add more specific deltailed temperature values:
            mean_night_temp[C°], min_night_temp[C°], max_night_temp[C°], mean_day_temp[C°], min_day_temp[C°], max_day_temp[C°]
    
    They each depend from the Unit, the Block and if its day or night.
    Day and Night times are calculated by data from: https://www.laenderdaten.info/Europa/Deutschland/sonnenuntergang.php
    
    Recalc all block!
    
    initTempData:
     > collect all temps and sort them by uid,blockid,day-night into meanTemps
    
    calc_mean_for_sensor_values_for_uid_and_time:
     > foreach time collect all 4* sensorvalues and calc their mean [like before] *not always 4, if theirs errors...
    
    initTempData:
     > iterate over meanTemps and calculate min,max,mean * day,night * unitid * block
     > add temps to tempData
    
    mergeTemp:
     > append new temp values in merge
     > use global precision value (set to 1 too not suggest overly precise temperatures)
Code owners
Assign users and groups as approvers for specific file changes. Learn more.