Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
public:2r-stromzaehler [2025/06/03 12:37]
admin
public:2r-stromzaehler [2025/06/03 13:51] (aktuell)
admin
Zeile 74: Zeile 74:
 e1=h1/​(2*zk) e1=h1/​(2*zk)
  
-if time>​sunrise ​+if sunrise>​0  
 +   and sunset>0  
 +   ​and ​time>​sunrise ​
    and time<​sunset    and time<​sunset
    then    then
Zeile 99: Zeile 101:
 if c1!=c1old if c1!=c1old
    ​then ​    ​then ​
-    fl1=1 
     c1ts=upsecs     c1ts=upsecs
     if fl2==1     if fl2==1
Zeile 108: Zeile 109:
         rt="​← rückwärts"​         rt="​← rückwärts"​
         fl2=0         fl2=0
-        ​fl1=0+       ​else 
 +        ​fl1=1
    ​endif ​    ​endif ​
 endif endif
Zeile 115: Zeile 117:
 if c2!=c2old if c2!=c2old
    ​then ​    ​then ​
-    fl2=1 
     c2ts=upsecs     c2ts=upsecs
     if fl1==1     if fl1==1
Zeile 122: Zeile 123:
         rt="​vorwärts →"         rt="​vorwärts →"
         fl1=0         fl1=0
-        ​fl2=0+       ​else 
 +        ​fl2=1
     endif     endif
 endif endif
Zeile 128: Zeile 130:
  
 ' Aktuelle Leistung ' Aktuelle Leistung
-if c1>c1old+if c1>​c1old ​
    and upsecs>​(c1tsold+mu)    and upsecs>​(c1tsold+mu)
    then    then
-   c1ts=upsecs +    ​c1ts=upsecs 
-   ​sec=c1ts-c1tsold +    sec=c1ts-c1tsold 
-   ​power=3600000/​(sec*zk) +    if sec>0 
-   ​c1tsold=c1ts+      then  
 +        ​power=3600000/​(sec*zk) 
 +      else  
 +        power=0 
 +    endif 
 +    ​c1tsold=c1ts
 endif endif
  
Zeile 152: Zeile 159:
 if chg[hr]>​0 if chg[hr]>​0
  and hr==0  and hr==0
 + and min==0 ​
 + and sec<2
   then   then
    s1=zs    s1=zs

Navigation
Eigene Werkzeuge