Hello!

I would like to create a new tags like $current.barometer.alert and 
$current.storm to check if it rained everytime that a barometer alert 
occurred in a time period. I guess it should be something like this and it 
must be executed in every archive period.

For barometer.alert
if trend.barometer <= -2  or other negative value then
   barometer.alert = 1
else
   barometer.alert = 0

For current.storm: 
if span(hour_delta=3).rain.min > 0 and barometer.alert = 1 then
   current.storm = 1
else
   current.storm = 0
Then I could make a report checking the counts for both alerts.

Does it make sense?

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to