Re: Bewässerungssteuerung als Custom-Logik
Verfasst: Di Jul 09, 2019 11:16 am
Sehr geil...genau das was ich gesucht habe! Danke!
Timberwolf Server, BlitzART & 1-Wire
https://forum.timberwolf.io/
Hab übrigens herausgefunden, dass der Baustein "Stoppuhr" genau das schon kann:
Code: Alles auswählen
{
"Level":[
["$trigger","bool",false],
["$trigger_o","bool",false],
["$state_a","bool",false],
["$state_ab","bool",false],
["$period_a","float",0],
["$period_a_i","float",0],
["$state_b","bool",false],
["$state_bb","bool",false],
["$period_b","float",0],
["$period_b_i","float",0],
["$state_c","bool",false],
["$state_cb","bool",false],
["$period_c","float",0],
["$period_c_i","float",0],
["$state_d","bool",false],
["$state_db","bool",false],
["$period_d","float",0],
["$period_d_i","float",0],
["$state_e","bool",false],
["$state_eb","bool",false],
["$period_e","float",0],
["$period_e_i","float",0],
["$state_f","bool",false],
["$period_f","float",0],
["$period_f_i","float",0],
["$A0","float",0],
["$faktor_m2s","float",60],
["$faktor_i","float",1],
["$faktor_c","float",1],
["$pause_x","float",5],
["$freigabe","bool",true],
["$reset","bool",false],
["$CronExpr","string","* 0 1 * * *"],
["$SchedulerAktiv","bool",false],
["$TriggerScheduler","bool",false],
["$TriggerManuell","bool",false]
],
"Module":[
["Cron","$SchedulerAktiv","$TriggerScheduler",0,"$CronExpr"],
["Or",["$TriggerScheduler","$TriggerManuell"],"$trigger"],
["And",["$freigabe","$trigger"],"$reset"],
["Polynomial", "$faktor_m2s", "$faktor_c",["$A0", "$faktor_i"]],
["Polynomial", "$faktor_c", "$period_a",["$A0", "$period_a_i"]],
["Polynomial", "$faktor_c", "$period_b",["$A0", "$period_b_i"]],
["Polynomial", "$faktor_c", "$period_c",["$A0", "$period_c_i"]],
["Polynomial", "$faktor_c", "$period_d",["$A0", "$period_d_i"]],
["Polynomial", "$faktor_c", "$period_e",["$A0", "$period_e_i"]],
["Polynomial", "$faktor_c", "$period_f",["$A0", "$period_f_i"]],
["Monoflop","$trigger","-$reset","$state_a","$period_a",2],
["Monoflop","$state_a","-$reset","$state_ab","$pause_x",4],
["Monoflop","$state_ab","-$reset","$state_b","$period_b",4],
["Monoflop","$state_b","-$reset","$state_bb","$pause_x",4],
["Monoflop","$state_bb","-$reset","$state_c","$period_c",4],
["Monoflop","$state_c","-$reset","$state_cb","$pause_x",4],
["Monoflop","$state_cb", "-$reset","$state_d","$period_d",4],
["Monoflop","$state_d","-$reset","$state_db","$pause_x",4],
["Monoflop","$state_db","-$reset","$state_e","$period_e",4],
["Monoflop","$state_e","-$reset","$state_eb","$pause_x",4],
["Monoflop","$state_eb","-$reset","$state_f","$period_f",4],
["Or",["$state_a","$state_b","$state_c","$state_d","$state_e", "$state_f","$state_ab","$state_bb","$state_cb","$state_db","$state_eb"],"$TriggerManuell"],
["Or",["$state_a","$state_b","$state_c","$state_d","$state_e", "$state_f","$state_ab","$state_bb","$state_cb","$state_db","$state_eb"],"$trigger_o"]
],
"Input":[
["Start/Stop Manuell","Manueller Start/Stopp des Bewässerungsautomaten","$TriggerManuell","c"],
["Start/Stop Timer","Startet/Beendet den Bewässerungstimer","$SchedulerAktiv","c"],
["Dauer Grün","1.Bewässerungsdauer min.","$period_a_i","c"],
["Dauer Blau","2.Bewässerungsdauer min.","$period_b_i","c"],
["Dauer Braun","3.Bewässerungsdauer min.","$period_c_i","c"],
["Dauer Hellblau","4.Bewässerungsdauer min.","$period_d_i","c"],
["Dauer Orange","5.Bewässerungsdauer min.","$period_e_i","c"],
["Dauer Violett","6.Bewässerungsdauer min.","$period_f_i","c"],
["Faktor","Faktor Dauer","$faktor_i","c"],
["Pause","Pause in s","$pause_x","c"],
["Freigabe","Freigabe der Bew.Logik","$freigabe","c"]
],
"Output":[
["Ventil Grün","Schaltausgang 1.Ventil","$state_a","c"],
["Ventil Blau","Schaltausgang 2.Ventil","$state_b","c"],
["Ventil Braun","Schaltausgang 3.Ventil","$state_c","c"],
["Ventil Hellblau","Schaltausgang 4.Ventil","$state_d","c"],
["Ventil Orange","Schaltausgang 5.Ventil","$state_e","c"],
["Ventil Violett","Schaltausgang 6.Ventil","$state_f","c"],
["Sequenz aktiv","Sequenz aktiv","$trigger_o","c"]
]
}