ExESDB.Repl (ex_esdb v0.0.13-alpha)
This module is to interact with the ExESDB.system, running a store called "reg_gh" (Regulate Greenhouse)
Summary
Functions
Append events to a stream.
Starts an observer for a specific event type. ## Possible event types
Functions
@spec append( stream :: atom(), nbr_of_events :: integer() ) :: {:ok, list(), integer()} | {:error, term()}
Append events to a stream.
@spec start_observer_for_event_type(event_type :: String.t()) :: :ok
Starts an observer for a specific event type. ## Possible event types:
- "initialized:v1" (default)
- "temperature_measured:v1"
- "humidity_measured:v1"
- "light_measured:v1"
- "fan_activated:v1"
- "fan_deactivated:v1"
- "light_activated:v1"
- "light_deactivated:v1"
- "heater_activated:v1"
- "heater_deactivated:v1"
- "sprinkler_activated:v1"
- "sprinkler_deactivated:v1"
- "desired_temperature_set:v1"
- "desired_humidity_set:v1"
- "desired_light_set:v1"