- Home
- Deutsch
- Praktische Anwendungen (Showcase)
- [Vorstellung] Meine dritte VIS
[Vorstellung] Meine dritte VIS
-
@Kuddel
Hallo Kuddel,
wo kriege ich denn dieses Script für das Backup her?
./opt/iobroker/skripts/backupskript.sh
Gruß -
@hofmannha von mir natürlich:
#Nur auf Prod ausfuehren ip=$(ip -4 addr show ens160 | grep -oP '(?<=inet\s)\d+(\.\d+){3}') if [ $ip = "192.168.4.31" ]; then echo Test-VM, Backup wird nicht erstellt exit fi #Ins ioBroker Verzeichnis wechseln cd /opt/iobroker #Datum definieren datum=`date +%Y_%m_%d` #Uhrzeit bestimmten uhrzeit=`date +%H_%M_%S` #Stunde definieren stunde=`date +%H` #Datum und Uhrzeit für VIS Anzeige datumvis=`date +%d.%m.%Y` uhrzeitvis=`date +%H.%M` echo #Backup ausführen echo --- Backup wird ausgefuehrt --- ./iobroker backup echo #Backup umbenennen echo --- Backup-File umbenennen --- mv /opt/iobroker/backups/$datum-$stunde* /opt/iobroker/backups/$datum-$uhrzeit-backup_iobroker-MASTER.tar.gz echo #Backups älter 10 Tage löschen echo --- Alte Backups entfernen --- find /opt/iobroker/backups/*.tar.gz -mtime +10 -exec rm '{}' \; echo echo #Backup-Files kopieren echo --- Backup-File in BackupDaten auf QNAP-B kopieren --- scp /opt/iobroker/backups/$datum-$stunde* admin@192.168.1.11:/share/Data/BackUpDaten/Smarthome/ioBroker/Backups/ioBroker-MASTER/ echo echo --- Backup-File in den Tauschordner kopieren --- scp /opt/iobroker/backups/$datum-$stunde* root@192.168.4.11:/sharedfolders/Data/Tauschordner/ echo # Icons kopieren echo --- Icons in den Tauschordner kopieren --- if [ $stunde -eq 06 ] then #scp -r /opt/iobroker/iobroker-data/files/vis.0/VIS/Meine_Icons admin@192.168.1.11:/share/Data/Tauschordner/ scp -r /opt/iobroker/iobroker-data/files/vis.0/VIS/Meine_Icons root@192.168.4.11:/sharedfolders/Data/Tauschordner/ fi
-
@Kuddel
Danke!! Wie soll das auch anders sein.
Nur wie handle ich das Script? Das muß ja auf den Raspberry oder?
Kannst Du mir die Schritte in Kurzform erklären? Da bin ich eine Niete. -
@hofmannha als ich das Skript geschrieben habe, gab es den Adapter "Backitup" noch nicht.
Ich denke mit dem Adapter ist es einfacher für dich
-
@Kuddel
wie rufe ich denn aus vis heraus den Backitup Adapter auf? -
@hofmannha das musst du dir natürlich alles noch basteln.
da ich den adapter nicht verwende, kann ich dazu nichts sagen
-
@hofmannha sagte in [Vorstellung] Meine dritte VIS:
@Kuddel
wie rufe ich denn aus vis heraus den Backitup Adapter auf?https://forum.iobroker.net/topic/28717/vis-von-sigi234/112?page=2
-
@Kuddel
wo werden dann diese Variablen mit der Version gefüllt?
Wie heist den das Script? -
Abfrage ioBroker Verisonen (JS-Controller, NPM, Node) mit Blockly
<block xmlns="http://www.w3.org/1999/xhtml" type="schedule" id="8G-t1R$2*5D,dzJ+=Z/)" x="-412" y="13"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="comment" id="dZ|/xy)sNM[lRRw-OxBJ"> <field name="COMMENT">ioBroker</field> <next> <block type="controls_if" id="#yy4FbzX*XlFSwqJFt#F"> <value name="IF0"> <block type="logic_compare" id="`;vF1Fwn46;py!YL!|D|"> <field name="OP">EQ</field> <value name="A"> <block type="get_value" id="?$NRbrzmN!UU3n`|L_Lp"> <field name="ATTR">val</field> <field name="OID">system.host.ioBroker-MASTER.alive</field> </block> </value> <value name="B"> <block type="logic_boolean" id="iD*m^,*WXE?GM=l/{h9p"> <field name="BOOL">TRUE</field> </block> </value> </block> </value> <statement name="DO0"> <block type="comment" id="Sl#pk4ynUi?qtGg$cE[g"> <field name="COMMENT">ioBroker Version</field> <next> <block type="exec" id="!R8mB:{en(uJ^pcv:[x-"> <mutation with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="v]l$N@4P}O26I3a-q-h?"> <field name="TEXT">iobroker version</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="][GYoQ$TpSK^1z+Y1)io"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Versionen.ioBroker.JS-Controller</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="^mDY7*B6ucov9?$`tyWW"> <field name="VAR" id="7(zFM`@Yx-M/c5uU@N^j" variabletype="">result</field> </block> </value> </block> </statement> <next> <block type="comment" id="H%;3a-me1U9t}!fx~0y~"> <field name="COMMENT">Node Version</field> <next> <block type="exec" id="*{Wr/}G!6rw|w(ts:Ubr"> <mutation with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="1e4e9U(dN%k7nOplwh/t"> <field name="TEXT">node -v</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="`vkk(uG/q|f.RsbQJ6-F"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Versionen.ioBroker.Node</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id=",@I94/CPiw]|fzeEmZIN"> <field name="VAR" id="7(zFM`@Yx-M/c5uU@N^j" variabletype="">result</field> </block> </value> </block> </statement> <next> <block type="comment" id=":rYml-k#oiHgEwv`2(YH"> <field name="COMMENT">NPM Version</field> <next> <block type="exec" id="NsFDRm/4E?3a;yAjP2~M"> <mutation with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="Pq@ZNpd%kQM$SihLxwc%"> <field name="TEXT">npm -v</field> </shadow> </value> <statement name="STATEMENT"> <block type="control" id="Z;/822T:KaNxR6lSS-HN"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.Versionen.ioBroker.NPM</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="variables_get" id="Ur~}G^ol^zYpeaK0SPS0"> <field name="VAR" id="7(zFM`@Yx-M/c5uU@N^j" variabletype="">result</field> </block> </value> </block> </statement> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </next> </block> </statement> </block>
-
@Kuddel
Vielen vielen Dank!! -
@sigi234
Hallo sigi234,
ich stelle mal hier die Frage obwohl sie hier nicht hingehört.
Ich habe den Adapter Tr-064 Version 3.1.4 installiert. Er zeigt auch grün, aber er ist in den Objekten nicht zu sehen.
Was kann ich denn tun? -
@hofmannha sagte in [Vorstellung] Meine dritte VIS:
@sigi234
Hallo sigi234,
ich stelle mal hier die Frage obwohl sie hier nicht hingehört.
Ich habe den Adapter Tr-064 Version 3.1.4 installiert. Er zeigt auch grün, aber er ist in den Objekten nicht zu sehen.
Was kann ich denn tun?Callmonitor aktiviert und mal selbst angerufen?
-
@sigi234
habe ich gemacht, aber trotzdem nichts. -
Hallo Kuddel
wo finde ich dann die ganzen Scripte
bin neu und anfänger zb.
javascript.0.sonstige.weihnachtszeit
javascript.0.muell.gelbersack
javascript.0.sonstige.arbeitsstatus
javascript.0.haushalt.waschmaschine
javascript.0.Anwesenheitunw.
ich wäre für ein bißchen Hilfe dankbar
und auch wie das mit dem Fusball geht -
@Sky66766 meine Skripte findest du in der zweiten Version von meiner VIS:
https://forum.iobroker.net/topic/19611/vorstellung-meine-zweite-visualisierung/1152
Das mit Fußball mach ich mit dem Adapter OpenLigaDB
https://forum.iobroker.net/topic/29506/test-adapter-openligadb-v0-0-x
-
Hallo Kuddel erst mal möchte ich mich für die tolle arbeit und die, die mit daran mitgewirkt haben. echt spitze
arbeite mich langsam vor
kurze frage(objekte.txt) was mach ich damit und wo füge ich das ein ?
die scripte habe ich eingefügtmeine neugier wird immer größer zur deiner vis
-
Hi @Kuddel ,
sag mal, wie schaut denn Dein Skript zur Berechnung von javascript.0.uptime.raw.vu_wohnzimmer_raw aus? Im Skript vu_wohnzimmer lauschst Du auf die Änderung von diesem DP. Nur finde ich in Deinen Skripten (habe ich mir aus Deiner 2. VIS geladen) nirgends den Eintrag zum Schreiben der RAW-Werte. -
@Sky66766 in der objekte.txt sind alle meine Objekte, die ich in meinen ganzen Skripten so verwende.
Einfach in ein JHavscript kopierne und einmal starten. Dann werden die Objekte erstellt und meine Skripte funktionieren.
-
@Sternmiere ich werde nächste Woch noch einmal einen aktuellen Export meine Skripte hochladen.
Hier die Uptime vom VU Receiver:
<xml xmlns="http://www.w3.org/1999/xhtml"> <variables> <variable type="" id="v$!LyS/GX8DB4?ZU!y(c">raw</variable> <variable type="" id="jwfovQ})xZ_O0_3zF:zc">result</variable> <variable type="" id="`}L_Lzn|vt?3/!cZ_t7s">stelle_tage</variable> <variable type="" id="pDC.c)qS~5!qlBgX]:))">stelle_doppelpunkt</variable> <variable type="" id="c1et;Qzgy.J^m$Y7XD(}">stelle_komma</variable> <variable type="" id="pg,790%C~4/;_rPA62F6">stelle_komma2</variable> <variable type="" id="h$?S,?!0%|B-+x54)DPA">stelle_min</variable> <variable type="" id="CES/yGu==C)k`@r*?INd">tage</variable> <variable type="" id="IU`:e7ibMCJ2mQ@5scC!">stunden</variable> <variable type="" id="VsSZA^_:X[8cAWG4-[LJ">minuten</variable> </variables> <block type="schedule" id="{Ho#tB7Ic-7TP@?y-Ugt" x="-569" y="-16"> <field name="SCHEDULE">* * * * *</field> <statement name="STATEMENT"> <block type="exec" id="fBzN-E0vC5cgDObjc-3f"> <mutation with_statement="true"></mutation> <field name="WITH_STATEMENT">TRUE</field> <field name="LOG"></field> <value name="COMMAND"> <shadow type="text" id="V2qy=mZ/JcC|VD?gQ}5p"> <field name="TEXT">ssh root@192.168.4.24 uptime | awk '{print $3_$4_$5}'</field> </shadow> </value> <statement name="STATEMENT"> <block type="comment" id="e`@QX}n-~J*w55w*Njrd"> <field name="COMMENT">Impor der RAW-Daten</field> <next> <block type="variables_set" id="InRE;D))7IjO~@[u9o-2"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> <value name="VALUE"> <block type="variables_get" id="m#;!R3;^9P98fbe)}Z]N"> <field name="VAR" id="jwfovQ})xZ_O0_3zF:zc" variabletype="">result</field> </block> </value> <next> <block type="comment" id="aenR|!64[;M/5pwS*e2{"> <field name="COMMENT">Stellen in Variable</field> <next> <block type="variables_set" id="O.WlhmF(p~kCu]MfSc|9"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> <value name="VALUE"> <block type="text_indexOf" id=")+n_2r}A=}1nHA|3$t7U"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="/w_?2!Io?Pr_Y}Zj~`@["> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="FIND"> <shadow type="text" id="sRBC.qA4R_]Pf@@bf*HP"> <field name="TEXT">day</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="OK+U-dp*,wRUxQF=}hB8"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> <value name="VALUE"> <block type="text_indexOf" id="Qr(RyE_9QWPzwZO19`Er"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="a+qh%P63+ux8*NU@Q4Rx"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="FIND"> <shadow type="text" id="nk50l7paDSbxsH{jRF^+"> <field name="TEXT">:</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="ShFN@RY1iRSN9w9km4`,"> <field name="VAR" id="c1et;Qzgy.J^m$Y7XD(}" variabletype="">stelle_komma</field> <value name="VALUE"> <block type="text_indexOf" id="C;(Rd_];.nae4WA}a}KB"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="cUCv.oh29ln|I@1t`M:S"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="FIND"> <shadow type="text" id="uNfKR$(kp@-Vc^@m+_Az"> <field name="TEXT">,</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="7VB$FrJqq?,;]dG+CCGi"> <field name="VAR" id="pg,790%C~4/;_rPA62F6" variabletype="">stelle_komma2</field> <value name="VALUE"> <block type="text_indexOf" id=")-js#nY/(!e]Uqe/Os!Q"> <field name="END">LAST</field> <value name="VALUE"> <block type="variables_get" id="~/UkbC;7~LUuEA2}#nB7"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="FIND"> <shadow type="text" id="5T0NCYIwT$$,*L{DU_GB"> <field name="TEXT">,</field> </shadow> </value> </block> </value> <next> <block type="variables_set" id="X{YN3tf7qz]+Lu(`_O,."> <field name="VAR" id="h$?S,?!0%|B-+x54)DPA" variabletype="">stelle_min</field> <value name="VALUE"> <block type="text_indexOf" id="euW+z!_V{MJ.]`UNFdz]"> <field name="END">FIRST</field> <value name="VALUE"> <block type="variables_get" id="pNm.t17Kc6^CM(8@emrJ"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="FIND"> <shadow type="text" id="_@rX51i|3q5{?ydDBE!%"> <field name="TEXT">min</field> </shadow> </value> </block> </value> <next> <block type="comment" id="{qxgDqA8s;]nW=DSaLV3"> <field name="COMMENT">Herausfiltern des Tages</field> <next> <block type="controls_if" id="y+lQ+n+N4Ym8VJ4pa[W?"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="%R{2rkCyfF#6A}xdjq]U"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="C?E.y6;%UiNF4,ylc-Ob"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> </block> </value> <value name="B"> <block type="math_number" id="35@A;B|SeX^kkTMK]yJ]"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="=`~z}BBHWN8?!a^DPFq@"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> <value name="VALUE"> <block type="text_getSubstring" id="yd;0z.Lg]{CKF(+-uR*o"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="},+8Ap:kd19X0h6$s6Px"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT1"> <block type="math_number" id="A!jJdPz9Z~;:*uslJ$Iu"> <field name="NUM">1</field> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="`v#U2{Vop)19-2IRzb0`"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Di+z,.G~gfWJhNSx_T5I"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Sr_lETrDQ~?u4;%(R!/4"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> </block> </value> <value name="B"> <shadow type="math_number" id="iFO14pOVbK=*d#/4$;.p"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="v2r8la@?]TP(PuUgSg]N"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> <value name="VALUE"> <block type="math_number" id="IaI+u`taEV33D];(YQ,:"> <field name="NUM">0</field> </block> </value> </block> </statement> <next> <block type="comment" id="$4NqG;IfUHWztc^lLtf-"> <field name="COMMENT">Herausfiltern der Stunde</field> <next> <block type="controls_if" id="e;]15X*b)eLpc:!c_%pb"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="$8,t]9]/%^tD?|#,7cE$"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="n;a,R?FD*iak!/n*,+}d"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <block type="math_number" id="QZ!uKr7.GA(_XD#?+ADe"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id=",I7?Oox[96,-0hfdgJ[4"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="rd02-;@y=MK)HRZ|]`FP"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="s|(^$(-(j@Pd}S_?!;;k"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> </block> </value> <value name="B"> <block type="math_number" id="nAs=%4Ti#f!azzh/hQ5m"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="@~DE]P?Nk,TUYyW:gMz:"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> <value name="VALUE"> <block type="text_getSubstring" id="XLDrJ5.LU}/djC7+W3ZY"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="yNf`9`Y[U5#:#9Q.z%Si"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="hvgJo,4H-H_HO7j]/8+t"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="]jKiX[w!KbV0E.`nRgg,"> <field name="NUM">1</field> </shadow> <block type="variables_get" id=")Q_UAg/a0RCJ,%pv9lTy"> <field name="VAR" id="c1et;Qzgy.J^m$Y7XD(}" variabletype="">stelle_komma</field> </block> </value> <value name="B"> <shadow type="math_number" id="I(Vw2rIJ?e2HR[h(bOU="> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="ODs^g%lU}Oen%GOoAI)z"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Di+z,.G~gfWJhNSx_T5I"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="r%7m_ho9V6V!d2{-9pLg"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <shadow type="math_number" id=";WY%Jgm2z9Y.bGG)kq{y"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="RYMIeMDUOoP@)Wv6Sq)i"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> <value name="VALUE"> <block type="text_getSubstring" id=")F#YeOhkJN6`$=Mq9R@="> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="4|1a9!DRz6]*5Y.9T8t9"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="4$6#/-d#j3@uZRU:fJFh"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="]jKiX[w!KbV0E.`nRgg,"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="vCcw]jmbSPI+A{,7,Pdw"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> </block> </value> <value name="B"> <shadow type="math_number" id="k`+{4kXy)@7DEcCs,ykz"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="QGJs)+i;!t%lIlA$tKKg"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Di+z,.G~gfWJhNSx_T5I"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="Sl1;!B/,MwjUy/nMm`c^"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <shadow type="math_number" id="XxSo9B|;A]9Y](oTy`f~"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="qZ9J)#hq5je/ep-r+PUD"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> <value name="VALUE"> <block type="text" id="@:^pB9GCU;6I6|lZ%9T#"> <field name="TEXT">0</field> </block> </value> </block> </statement> <next> <block type="comment" id="Zrvt]^6znCt9~HW}b-d0"> <field name="COMMENT">0 hinzufügen wenn Stunden < 10</field> <next> <block type="controls_if" id="9NrEpjYS|Zqf|7?:IEAc"> <value name="IF0"> <block type="logic_compare" id="[5;Yo-v+#yFx#3RDce81"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="[Tm2G:`=@[vb2%s;[jWm"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> </block> </value> <value name="B"> <block type="math_number" id="SUY5i%D8%$O/FBT3,Vsi"> <field name="NUM">10</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="uN~%%nZ2Z2i2}u.E]{(J"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> <value name="VALUE"> <block type="text_join" id="%Pi6UMXvQ:n`%G+_K#9S"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="Ld@]3(:G=X[#U_hrZH~9"> <field name="TEXT">0</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="DpObVyFw`Hs`F~}n+I(="> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> </block> </value> </block> </value> </block> </statement> <next> <block type="comment" id="*vbiZc;LSnStohLBW+eM"> <field name="COMMENT">Herausfiltern der Minuten</field> <next> <block type="controls_if" id="rHK(CD85;td/]/4Z`ciX"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="idfiI4B79KJf.[v1UeZe"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="E}F{?(CC{1Q:0wE=I{jw"> <field name="VAR" id="pg,790%C~4/;_rPA62F6" variabletype="">stelle_komma2</field> </block> </value> <value name="B"> <block type="math_number" id="HX6O~jKbv^.5pa*g$rbF"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="controls_if" id="E6w,`x4U]NP?+;JZT%+}"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_compare" id="vdp8}.C8koE5Ak#.*w|j"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="Jh.A_~*Q_bxdI.GFY8ko"> <field name="VAR" id="`}L_Lzn|vt?3/!cZ_t7s" variabletype="">stelle_tage</field> </block> </value> <value name="B"> <block type="math_number" id="wXD6xF9QM|eF-%I..6x|"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="8Ip/%l~s5NW)G4hYWDKZ"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text_getSubstring" id="53eB7q[k`;%roydR}gb?"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="+z5[*V~ls(6/|Zg;IoQx"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="YJ;iG+J!c+aN74rg?;8|"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="]jKiX[w!KbV0E.`nRgg,"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="T{p?pUH5O+jo`5Y/Hl^e"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <shadow type="math_number" id="C#|4mQDH2[dtm={D~)8?"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id=";j*[u!Jrp8|y$*{`+W8R"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Di+z,.G~gfWJhNSx_T5I"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="?n$|K/vBCODtyvDx2O}a"> <field name="VAR" id="pg,790%C~4/;_rPA62F6" variabletype="">stelle_komma2</field> </block> </value> <value name="B"> <shadow type="math_number" id="}YRtnl/9W=El,[%QS[cI"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="_?[w.VXc{xrAORAS0qsa"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text_getSubstring" id="USYd$MPqj3Xk)fR+s_.w"> <mutation at1="true" at2="true"></mutation> <field name="WHERE1">FROM_START</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="A,q.{ukNM{9C3/QT;Z3S"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT1"> <block type="math_arithmetic" id="xlQLWP75{}BiDhwY@a|^"> <field name="OP">ADD</field> <value name="A"> <shadow type="math_number" id="]jKiX[w!KbV0E.`nRgg,"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="0YZr~G@_D4j~*.BOGfs|"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <shadow type="math_number" id="]$tx[~yzW16-c-A3o(iD"> <field name="NUM">1</field> </shadow> </value> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="If7.?.0^5A2n*32KivS5"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Di+z,.G~gfWJhNSx_T5I"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="y4f._)MJi8:;NnVq1`5]"> <field name="VAR" id="c1et;Qzgy.J^m$Y7XD(}" variabletype="">stelle_komma</field> </block> </value> <value name="B"> <shadow type="math_number" id="hwQ;pi?~z18Nbl^wJ9Hm"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="lf?IYZiqd)u.9fi=[Ynb"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text" id="W(uLknRJg7G7[C=(3QiQ"> <field name="TEXT">00</field> </block> </value> </block> </statement> <next> <block type="controls_if" id="n@!qp`;kdQ2`=?Pni.(;"> <value name="IF0"> <block type="logic_compare" id="SPFD]u(Ao[suW?Z%e3si"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="Y[kceV$$8!a1IacavII0"> <field name="VAR" id="pDC.c)qS~5!qlBgX]:))" variabletype="">stelle_doppelpunkt</field> </block> </value> <value name="B"> <block type="math_number" id="jMRct@)k]8b_d0=HNHtu"> <field name="NUM">0</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="U7^Zn=RZr77K+J?$ckH@"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text_getSubstring" id="J,FF?/Y#{=oIaS.;UEy!"> <mutation at1="false" at2="true"></mutation> <field name="WHERE1">FIRST</field> <field name="WHERE2">FROM_START</field> <value name="STRING"> <block type="variables_get" id="Wv1*waDBKz+pGsz?Wk+m"> <field name="VAR" id="v$!LyS/GX8DB4?ZU!y(c" variabletype="">raw</field> </block> </value> <value name="AT2"> <block type="math_arithmetic" id="q+JrL#9w[vx_6(iaN7e#"> <field name="OP">MINUS</field> <value name="A"> <shadow type="math_number" id="Ah/:WZ~P=Mk{?gyN*XQ;"> <field name="NUM">1</field> </shadow> <block type="variables_get" id="8[F`BR|:Aj+p@d}=2c%4"> <field name="VAR" id="h$?S,?!0%|B-+x54)DPA" variabletype="">stelle_min</field> </block> </value> <value name="B"> <shadow type="math_number" id="8.QEvI2#SVot3=/W9AcO"> <field name="NUM">1</field> </shadow> </value> </block> </value> </block> </value> </block> </statement> <next> <block type="variables_set" id="bE9[UPY8#q1@L!LZ[*fM"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="convert_tonumber" id="@cT1[lg(IlghOD#0a4oo"> <value name="VALUE"> <block type="variables_get" id=":sbStjd3C;#:$z++1K+B"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> </block> </value> </block> </value> <next> <block type="comment" id="u`!^^e/:_n}]_%@B??/G"> <field name="COMMENT">0 hinzufügen wenn Minuten < 10</field> <next> <block type="controls_if" id="bRx|^^=9wj7d7h{BIV@M"> <value name="IF0"> <block type="logic_compare" id=".Fc/u.e=rPo8Y|0y]ehT"> <field name="OP">LT</field> <value name="A"> <block type="variables_get" id="9qUZaLy=!Pcmq_Da:u8;"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> </block> </value> <value name="B"> <block type="math_number" id="jXtyuXh[%Tjj:7=,i,Fk"> <field name="NUM">10</field> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="Q4?V/8|]L/2=89`#7ufG"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text_join" id="q-u(6Ye-97I|a^9$[n%$"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text" id="tj!c.W5DmAH_E!LVFvvV"> <field name="TEXT">0</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="yMarDZ?b?7D~You(TjPe"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> </block> </value> </block> </value> </block> </statement> <next> <block type="comment" id="}%%=SQ(aFr1w_n-:6:yZ"> <field name="COMMENT">Laufzeit in Objekt schreiben</field> <next> <block type="comment" id="):-U?%/oWDq`@l+U~h~M"> <field name="COMMENT">Tage</field> <next> <block type="controls_if" id="F/M8{rV.rCGwX[CnL=vx"> <mutation else="1"></mutation> <value name="IF0"> <block type="logic_operation" id="M25wfZcLGFb4GJg)a)MG"> <field name="OP">OR</field> <value name="A"> <block type="logic_compare" id="J_pdrRGNb6yo1OC(.R4z"> <field name="OP">EQ</field> <value name="A"> <block type="variables_get" id="!@%0:k.AXFP?l2Mb6X:~"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> </block> </value> <value name="B"> <block type="math_number" id="dK!@s)PXi!~:C6]:;o,6"> <field name="NUM">0</field> </block> </value> </block> </value> <value name="B"> <block type="logic_compare" id="~m%XZI?j^=2S)hs/US6t"> <field name="OP">GT</field> <value name="A"> <block type="variables_get" id="+-K51lRY=Z`U?5q%is+M"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> </block> </value> <value name="B"> <block type="math_number" id="=M3y0jXD}=d32cj!f#~J"> <field name="NUM">1</field> </block> </value> </block> </value> </block> </value> <statement name="DO0"> <block type="variables_set" id="*7vtw(1@ei#;V1ST:/;P"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> <value name="VALUE"> <block type="text_join" id="bG@dj4MU`?[@i{{9`hbA"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="{B2tTLXru]=F.s0keEZ0"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> </block> </value> <value name="ADD1"> <block type="text" id="zBtE08]C($B|P6c{A|SP"> <field name="TEXT"> Tage, </field> </block> </value> </block> </value> </block> </statement> <statement name="ELSE"> <block type="variables_set" id="T5ZhNz%T5w]NtKSEpAW="> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> <value name="VALUE"> <block type="text_join" id="0j,drO`$d?F{4{Jl{?9K"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="bk:]FR@|!xB:AGJt^cET"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> </block> </value> <value name="ADD1"> <block type="text" id="KdzmndZ^B5OtsGDP~DM]"> <field name="TEXT"> Tag, </field> </block> </value> </block> </value> </block> </statement> <next> <block type="comment" id="KoTE`D^uscfc|miPAMbX"> <field name="COMMENT">Stunden</field> <next> <block type="variables_set" id=".p[^4YkDvI5SU5zK)^8{"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> <value name="VALUE"> <block type="text_join" id="f=iL!In2ccd(;QaPZHPv"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="yZojJwenZcz3[{5nj?ns"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> </block> </value> <value name="ADD1"> <block type="text" id="#fo[S~5I}^2zWq74)?@i"> <field name="TEXT"> Std, </field> </block> </value> </block> </value> <next> <block type="comment" id="DZ3)bNceInk(8|fPC2qs"> <field name="COMMENT">Minuten</field> <next> <block type="variables_set" id="%Gt9FZ]ndKF2;h+v{hx-"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> <value name="VALUE"> <block type="text_join" id="E?P.o?ZDJ2?iX,Z}uJYI"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="^e/:??IsKLf-iJl|xnuM"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> </block> </value> <value name="ADD1"> <block type="text" id="?{a~GlML45b#e3-!)Vri"> <field name="TEXT"> Min</field> </block> </value> </block> </value> <next> <block type="control" id="qM=Pf[UGSE}.MH{OP+V]"> <mutation delay_input="false"></mutation> <field name="OID">javascript.0.uptime.vu_wohnzimmer</field> <field name="WITH_DELAY">FALSE</field> <value name="VALUE"> <block type="text_join" id="#@(=V`T9`,60hJI.HNKH"> <mutation items="2"></mutation> <value name="ADD0"> <block type="text_join" id="Y;aC``m})PM;@ACEthGa"> <mutation items="2"></mutation> <value name="ADD0"> <block type="variables_get" id="E^`3c!JpZT}s}a.ptFuI"> <field name="VAR" id="CES/yGu==C)k`@r*?INd" variabletype="">tage</field> </block> </value> <value name="ADD1"> <block type="variables_get" id="!zj_8xPgS3IS:nl}o/:S"> <field name="VAR" id="IU`:e7ibMCJ2mQ@5scC!" variabletype="">stunden</field> </block> </value> </block> </value> <value name="ADD1"> <block type="variables_get" id="?0I}_P,)TBA%vCqvOT|W"> <field name="VAR" id="VsSZA^_:X[8cAWG4-[LJ" variabletype="">minuten</field> </block> </value> </block> </value> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </next> </block> </statement> </block> </statement> </block> </xml>
-
Hallo Kuddel,
ahaa ok Danke also einmal starten und danach kann ich dieses script wieder löschen oder soll ich das so drinn lassen.