Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- event temperature { has $value, $area }
- event humidity { has $value, $area }
- event fire-risk {
- define {
- temperature(#temp);
- temperature(#temp2);
- }
- has $temperature = #temp.value;
- has $humidity = #hum.value;
- match {
- [
- temperature(#temp, value > 40, ?area == #hum.area )
- &
- humidity(#hum, value < 20, ?area == #temp.area)
- ] 5min
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement