-
Notifications
You must be signed in to change notification settings - Fork 1
Predictions, Detections, Schedules, Confirmations, Events, Actions
Based on any number of metrics, these predict interesting phenomena and trigger events.
For example, it's just rained and the sun is in specific position; there could be a rainbow. Trigger a predict-rainbow event, passing in details of where the rainbow might be so a photo can be taken.
Based on data from one or more sensors, a phenomena is detected.
For example, an optical sensor reports energy spike at 777.4nm; it's a lightning strike. Trigger the detect-lightning event.
These trigger an event based on time (either fixed time, or named time eg. "twilight" or "noon").
These can be associated with events and will perform some validity checks before allowing the event to be triggered.
For example, predict-rainbow event could be validated by checking to see if there are certain colours in the sky. Another could be to check battery status to make sure there's enough power?
These run any associated confirmations, and if they pass, runs any associated actions.
Some arbitrary code that takes data from an event an performs the required actions.