NEWS
[gelöst]Zufälliges schalten nach Sonnenuntegang
-
zufällig, innerhalb von 60 Minuten einschalten. `
Prinzip in Blockly:Zufallswert (in Minuten): ganzzahlige Zufallszahl zwischen 0 und 60 (Mathematik-Block)
Diesen Wert per Ausführen Intervall alle 1 Minute runterzählen bis 0.
Etwa so.
filename="Blockly_SU_plus_Zufallsverzögerung.JPG" index="0">~~EDIT: Korrektur etwas –> countDown
-
Leider funktioniert das Programm nicht.Folgendes wird im LOG angezeigt:
javascript.0 2018-10-02 17:04:02.707 info script.js.common.SonuZufall: registered 0 subscriptions and 1 schedule
javascript.0 2018-10-02 17:04:02.702 info Start javascript script.js.common.SonuZufall
-
Zeig dein Script Mal nur mit dem Log können wir dir nicht helfen
Sent from my iPhone using Tapatalk
-
Habe das Blockly Scipt von paul53 benutzt.
6443_blockly_su_plus_zufallsverz_gerung.jpg -
Habe countDown > -1 eingegeben `
:?: :?:So, wie im https://forum.iobroker.net/viewtopic.php?f=21&t=17344#p181708 ?
-
So wie im Bild. Oder habe ich es an der falschen Stelle geändert.
6443_1.jpg -
Oder habe ich es an der falschen Stelle geändert. `
Ja. Sieh das korrigierte Blockly an:erhöhe countDown um -1
falls countDown <= 0
-
Habe -1 eingegeben. Jedoch keine Funktion.
6443_2.jpg -
erhöhe etwas um -1
–>
erhöhe countDown um -1
falls countDown <= 0
https://forum.iobroker.net/viewtopic.php?f=21&t=17344#p181708
-
Es funktioniert!!! `
Dann markiere bitte das Thema im Betreff des ersten Beitrags als [gelöst].
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login