Es scheint teilweise zu funktionieren. Aber am Ausgang passiert nichts (weder mit Trigger true, noch auf Trigger false to true).
Wenn das jetzt nur mit SendExplicit funktioniert (noch nicht getestet, sondern nur mit latch), dann versteh ich das nicht.
Code: Alles auswählen
/**
* Weather to Light Color
*
* Depending on the Weather the ambient light will change the color
*
* Einräumung der Nutzungsrechte gemäß TOLL:
* Der Schöpfer dieser Custom Logik überträgt die Nutzungsrechte gemäß der TOLL
* ("Timberwolf Open Logikblock License"), die unter https://wrgt.news/TOLL
* zum Download zur Verfügung steht.
*
*/
{
"_Meta": {
"Description": "Weather to Light Color",
"Version": "",
"Icon": ""
},
"Level": [
["$VAR<Inhibit?>", "bool", false],
["$bInClearSky", "bool", false],
["$bInFewClouds", "bool", false],
["$bInScatteredClouds", "bool", false],
["$bInBrokenClouds", "bool", false],
["$bInShowerRain", "bool", false],
["$bInRain", "bool", false],
["$bInThunderstorm", "bool", false],
["$bInSnow", "bool", false],
["$bInMist", "bool", false],
["$bOutGreen", "bool", false],
["$bOutBlue", "bool", false],
["$bOutRed", "bool", false],
["$bLeClear", "bool", false],
["$bLeCloudy", "bool", false],
["$bLeRainy", "bool", false],
["$bLeStormy", "bool", false],
["$bLeSnowy", "bool", false],
["$bLeMisty", "bool", false],
["$bLeTrue", "bool", false]
],
"Input": [
["bInInhibit", "Inhibit", "$VAR<Inhibit?>", "u"],
["bInClearSky", "", "$bInClearSky", "c"],
["bInFewClouds", "", "$bInFewClouds", "c"],
["bInScatteredClouds", "", "$bInScatteredClouds", "c"],
["bInBrokenClouds", "", "$bInBrokenClouds", "c"],
["bInShowerRain", "", "$bInShowerRain", "c"],
["bInRain", "", "$bInRain", "c"],
["bInThunderstorm", "", "$bInThunderstorm", "c"],
["bInSnow", "", "$bInSnow", "c"],
["bInMist", "", "$bInMist", "c"]
],
"Output": [
["bOutGreen", "", "$bOutGreen", "a"],
["bOutBlue", "", "$bOutBlue", "a"],
["bOutRed", "", "$bOutRed", "a"]
],
"Module": [
["Break", ["$VAR<Inhibit?>"]],
["Or", ["$bInClearSky", "$bInFewClouds"], "$bLeClear"],
["Or", ["$bInScatteredClouds", "$bInBrokenClouds"], "$bLeCloudy"],
["Or", ["$bInShowerRain", "$bInRain"], "$bLeRainy"],
["Or", ["$bInThunderstorm", "$bInSnow", "$bInMist"], "$bLeStormy"],
["Latch", "$bLeTrue", "$bOutGreen", "$bLeClear", 0],
["Latch", "$bLeTrue", "$bOutBlue", "$bLeRainy", 0],
["Latch", "$bLeTrue", "$bOutRed", "$bLeStormy", 0]
]
}