Skip to content

Predictions, Detections, Schedules, Confirmations, Events, Actions

Guy Fraser edited this page Jul 30, 2017 · 1 revision

Predictions

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.

Detections

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.

Schedules

These trigger an event based on time (either fixed time, or named time eg. "twilight" or "noon").

Confirmations

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?

Events

These run any associated confirmations, and if they pass, runs any associated actions.

Actions

Some arbitrary code that takes data from an event an performs the required actions.

Clone this wiki locally