Skip to content
Snippets Groups Projects
Commit addf37cc authored by am0ebe's avatar am0ebe
Browse files

refine temperature. see below for details

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)
parent e536b37b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment