Hi,
zeig doch mal bitte die ganze Logik mit Livewerten!
zeig doch mal bitte die ganze Logik mit Livewerten!
[TABLE="border: 0, cellpadding: 0, cellspacing: 0"] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]278840[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]===== === = LBS was triggered (v3.13) = === ==========================================[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]278871[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]<Input>: <Refreshed>|<Value>[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]279076[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Trigger: 0| Trigger changed output: 1|1 Brightness: 0|52550 Brightness dawn: 0|26200 Elevation: 0|31.014968138515 Azimut: 0|228.13999634677 Lockstate: 0|0 Lockstate with position: 0|0 Internal timer: 0[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]279125[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]===== === = General trigger for changed outputs refreshed, starting LBS = ============[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280297[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == false, previous value of A8 equals new value 0, skipping update[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280354[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]No lock state detected, set explicit to unlocked[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280783[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]===== === = Initial LBS run, updating all outputs = === ======================[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280833[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Validating input values... ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280875[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Finished validation of input values ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280915[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Checking if facade is in sun... ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]280986[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Virtual depth and height of sun position in 90° to the facade: 0.66731281276851, 0.60121623573571, effective Elevation: 42.017306543841[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]281021[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == true, updating A1 with value 1 even if same value than previous LBS run[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]281953[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == true, updating A11 with value 0 even if same value than previous LBS run[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]282773[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Finished facade check, real azimut 228.13999634677° and facade at 180° -> IN SUN (from 90° to 270°), effective elevation 42.017306543841° for given elevation of 31.014968138515° -> NOT in min-max-range (0-0) ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]282834[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Storing current shutter state -2 and updating output if necessary[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]283199[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == true, updating A10 with value -2 even if same value than previous LBS run[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]283993[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Calculating shutter state... ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]284287[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Handling current shutter state DAWN_NEUTRAL_TIMER_RUNNING (-2)[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]284550[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Switching from DAWN_NEUTRAL_TIMER_RUNNING to DAWN_NEUTRAL[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]284600[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]positionShutter(...), Values for height and angle: 100%/0%[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]284833[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Initial LBS run, not updating outputs[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]285403[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Timer already finished[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]286279[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]positionShutter(...) for height 100% and angle 0% finished[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]286334[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Storing current shutter state -1 and updating output if necessary[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]286688[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == true, updating A10 with value -1 even if same value than previous LBS run[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]287481[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Shutter state has changed from -2 to -1, checking if there might be another change...[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]287537[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]=== Calculating shutter state... ===[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]287790[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Handling current shutter state DAWN_NEUTRAL (-1)[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]287842[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Moving shutters to after-dawn-position out of state DAWN_NEUTRAL[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]287870[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]positionShutter(...), Values for height and angle: 0%/0%[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]288094[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Initial LBS run, not updating outputs[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]288666[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Timer already finished[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]289397[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]positionShutter(...) for height 0% and angle 0% finished[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]289450[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]Storing current shutter state -1 and updating output if necessary[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]289782[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]UpdateAlways == true, updating A10 with value -1 even if same value than previous LBS run[/TD] [/TR] [TR] [TD]2020-03-26 14:58:00[/TD] [TD]290719[/TD] [TD]21260[/TD] [TD]INFO: [/TD] [TD]===== === = LBS finished = === ===============================================[/TD] [/TR] [/TABLE]
2020-03-26 18:11:14 | 058876 | 19593 | INFO: | ================================================== ==================================== |
2020-03-26 18:11:14 | 059469 | 19593 | INFO: | ===== === = LBS was triggered (v3.13) = === ========================================== |
2020-03-26 18:11:14 | 059657 | 19593 | INFO: | <Input>: <Refreshed>|<Value> |
2020-03-26 18:11:14 | 060760 | 19593 | INFO: | Trigger: 0|1 Trigger changed output: 0| Brightness: 0|6178 Brightness dawn: 0|6178 Elevation: 0|5 Azimut: 0|268 Lockstate: 0|0 Lockstate with position: 0|0 Internal timer: 1 |
2020-03-26 18:11:14 | 061393 | 19593 | INFO: | ===== === = Timer running, starting LBS = === ======================================== |
2020-03-26 18:11:14 | 066559 | 19593 | INFO: | UpdateAlways == false, previous value of A8 equals new value 0, skipping update |
2020-03-26 18:11:14 | 066823 | 19593 | INFO: | No lock state detected, set explicit to unlocked |
2020-03-26 18:11:14 | 070877 | 19593 | INFO: | === Validating input values... === |
2020-03-26 18:11:14 | 071160 | 19593 | INFO: | === Finished validation of input values === |
2020-03-26 18:11:14 | 071352 | 19593 | INFO: | === Checking if facade is in sun... === |
2020-03-26 18:11:14 | 071559 | 19593 | INFO: | Virtual depth and height of sun position in 90° to the facade: 0.15643446504023, 0.087488663525924, effective Elevation: 29.216853061523 |
2020-03-26 18:11:14 | 073436 | 19593 | INFO: | UpdateAlways == false, previous value of A1 equals new value 1, skipping update |
2020-03-26 18:11:14 | 075038 | 19593 | INFO: | UpdateAlways == false, previous value of A11 equals new value 1, skipping update |
2020-03-26 18:11:14 | 075325 | 19593 | INFO: | === Finished facade check, real azimut 268° and facade at 187° -> IN SUN (from 120° to 277°), effective elevation 29.216853061523° for given elevation of 5° -> in min-max-range (10-90) === |
2020-03-26 18:11:14 | 075510 | 19593 | INFO: | Storing current shutter state 2 and updating output if necessary |
2020-03-26 18:11:14 | 079199 | 19593 | INFO: | UpdateAlways == false, previous value of A10 equals new value 2, skipping update |
2020-03-26 18:11:14 | 079497 | 19593 | INFO: | === Calculating shutter state... === |
2020-03-26 18:11:14 | 080995 | 19593 | INFO: | Handling current shutter state SHADOW_NEUTRAL_TIMER_RUNNING (2) |
2020-03-26 18:11:14 | 081239 | 19593 | INFO: | Facade is in sun |
2020-03-26 18:11:14 | 084028 | 19593 | INFO: | Updating outputs out of SHADOW_NEUTRAL_TIMER_RUNNING with previous values if necessary |
2020-03-26 18:11:14 | 087804 | 19593 | INFO: | positionShutter(...), Values for height and angle: 100%/50% |
2020-03-26 18:11:14 | 090693 | 19593 | INFO: | UpdateAlways == false, previous value of A2 equals new value 0, skipping update |
2020-03-26 18:11:14 | 091523 | 19593 | INFO: | UpdateAlways == false, previous value of A3 equals new value 100, skipping update |
2020-03-26 18:11:14 | 092905 | 19593 | INFO: | UpdateAlways == false, previous value of A5 equals new value 255, skipping update |
2020-03-26 18:11:14 | 093802 | 19593 | INFO: | UpdateAlways == false, previous value of A4 equals new value 50, skipping update |
2020-03-26 18:11:14 | 095208 | 19593 | INFO: | UpdateAlways == false, previous value of A6 equals new value 128, skipping update |
2020-03-26 18:11:14 | 095504 | 19593 | INFO: | Shutter angle 50% = 0° |
2020-03-26 18:11:14 | 096936 | 19593 | INFO: | UpdateAlways == false, previous value of A7 equals new value 0, skipping update |
2020-03-26 18:11:14 | 099406 | 19593 | INFO: | positionShutter(...) for height 100% and angle 50% finished |
2020-03-26 18:11:14 | 099649 | 19593 | INFO: | Storing current shutter state 2 and updating output if necessary |
2020-03-26 18:11:14 | 102834 | 19593 | INFO: | UpdateAlways == false, previous value of A10 equals new value 2, skipping update |
2020-03-26 18:11:14 | 105010 | 19593 | INFO: | ===== === = LBS finished = === =============================================== |
/** * This function calculates the effective elevation of sun position in an * angle of 90° to the facade. * * @param $E * @return float * @internal param $azimut * @internal param $facadeAngle * @internal param $elevation */ function LB_LBSID_calculateEffectiveElevation($E) { $elevation = $E[LB_LBSID_INPUT_Elevation]['value']; $azimut = $E[LB_LBSID_INPUT_Azimut]['value']; $facadeAngle = $E[LB_LBSID_INPUT_FacadeAngle]['value']; $virtualDepth = cos(deg2rad(abs($azimut - $facadeAngle))); $virtualHeight = tan(deg2rad($elevation)); $effectiveElevation = rad2deg(atan($virtualHeight / $virtualDepth)); LB_LBSID_debug(true, "Virtual depth and height of sun position in 90° to the facade: ${virtualDepth}, ${virtualHeight}, effective Elevation: ${effectiveElevation}"); return $effectiveElevation; }
Wir verarbeiten personenbezogene Daten über die Nutzer unserer Website mithilfe von Cookies und anderen Technologien, um unsere Dienste bereitzustellen. Weitere Informationen findest Du in unserer Datenschutzerklärung.
Indem Du unten auf "ICH stimme zu" klickst, stimmst Du unserer Datenschutzerklärung und unseren persönlichen Datenverarbeitungs- und Cookie-Praktiken zu, wie darin beschrieben. Du erkennst außerdem an, dass dieses Forum möglicherweise außerhalb Deines Landes gehostet wird und bist damit einverstanden, dass Deine Daten in dem Land, in dem dieses Forum gehostet wird, gesammelt, gespeichert und verarbeitet werden.
Kommentar