I seted up some alarms to tweet in certain conditions. All are one-time alarms, but I'm not sure if they are 100% right. I want that they be triggered when raise conditions is reached and every day, they must be cleared at midnight. Let's see some of them:
Tweet when actual temperature is below then 5ºC:
Raise:
Code: Select all
([th0temp-act=c.1:0] <= 5.0)
Code: Select all
([th0temp-act=c.1:0] > 6.0) || (([hh] = 0) && ([mm] = 1))
I have one more for temperature below 0ºC, higher than 35ºC, 38ºC, heatindex higher than 40ºC, 45ºC and th11 below 0ºC.
Tweet when UV index is higher than 8:
Raise:
Code: Select all
([uv0index-act.1:0] >= 8.0)
Code: Select all
([uv0index-act.1:0] < 7.0) || (([hh] = 1) && ([mm] = 0))
I have one more for UV index higher then 11.
Another for low pressure:
Raise:
Code: Select all
([thb0seapress-act.1:--] <= 1000.0)
Code: Select all
([thb0seapress-act.1:--] > 1005.0) || (([hh] = 1) && ([mm] = 0))
For wind speed:
Raise:
Code: Select all
([wind0wind-act=kmh.0:0] >= 40.0)
Code: Select all
([wind0wind-act=kmh.0:0] < 30.0) || (([hh] = 1) && ([mm] = 0))
For rain rate is my great doubt:
Raise:
Code: Select all
([rain0rate-act.0:0] >= 25.1 & <= 50.0)
Code: Select all
([rain0rate-act.0:0] == 24.0 || (([hh] = 1) && ([mm] = 0))
I want to tweet for differents scales of rain rate, like light rain, heavy rain, etc.
Is there anything wrong with my raise and clear conditions?