App::Trigger
Inherits App::Base < ActionController::Base < ActionController::Responders < ActionController::Route::Builder < Reference < Object
a controller for manually activating the trigger
Constants
IO_CHIP_PATH = Path[ENV["IO_CHIP_PATH"]? || "/dev/gpiochip0"]
OPENAPI = YAML.parse(File.exists?("openapi.yml") ? File.read("openapi.yml") : "{}")
this file is built as part of the docker build
PARSER_LIST = ["application/json"]
a controller for manually activating the trigger
RELAY_TRIGGER_LINE = (ENV["RELAY_TRIGGER_LINE"]? || "26").to_i
RESPONDER_LIST = ["application/json", "application/yaml", "text/html"]
a controller for manually activating the trigger
Class methods
activate(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts)
Helper methods for performing redirect_to calls
activate_for(time : Time::Span)
Sourcebase_route
Helper for obtaining base route
io_chip
Sourcemutex
Sourcetrigger_relay
SourceInstance methods
base_route(*args, **options)
Helper for obtaining base route
base_route(*args, **options, &)
Helper for obtaining base route