################################### ### (C) 2004, Tilo Kühn, v1.0 ################################### ### BS : MomentanverbrauchStrom ################################### 5000|"#Statistik\Momentanverbrauch (Strom)"|1|3|"Counter (Aktuell)"|"Korrektur-Faktor"|"Zyklus Neuberechnung (sec.)"|1|"Verbrauch" 5001|3|1|1|6|1 # EN[x] 5002|1|0|0 # Counter (Aktuell) 5002|2|1|0 # Korrektur-Faktor 5002|3|0|0 # Zyklus # ausgänge 5004|1|0|0|2|0 # Momentanverbrauch # SN[x] 5003|1|0|0 # lastcounter 5003|2|0|0 # store counter 1 5003|3|0|0 # store counter 2 5003|4|0|0 # store time 1 5003|5|0|0 # store time 2 5003|6|0|0 # timediff # timer anwerfen 5012|0|"(EI==1 and EN[3]) or EC[3] or OC[1]"|""|"EN[3]"|0|1|0|0 # wenn keine änderung, dann abbruch 5012|1|"EC[1] and EN[3]==0 and EN[1]==SN[1]"|""|""|0|0|0|0 5012|0|"EC[1] and EN[1]!=SN[1]"|"EN[1]"|""|0|0|1|0 # store 1 aus store 2 übernehmen 5012|0|"SC[1] and SN[1]"|"SN[3]"|""|0|0|2|0 5012|0|"SC[1] and SN[1]"|"SN[5]"|""|0|0|4|0 # store 2 füllen 5012|0|"SC[1] and SN[1]"|"EN[1]"|""|0|0|3|0 5012|0|"SC[1] and SN[1]"|"__import__('time').time()"|""|0|0|5|0 5012|0|"SN[2]"|"float(__import__('time').time())-float(SN[4])"|""|0|0|6|0 5012|0|"SN[2] and SN[6]"|"(EN[1]-SN[2])*3600.0/(EN[2]*SN[6])"|""|1|0|0|0