class DoorCtrl::Platform

Overview

details of the underlying platform

Defined in:

controllers/platform.cr

Constant Summary

NET_WIRELESS = ENV["NET_WIRELESS"]?.presence || "/proc/net/wireless"
PARSER_LIST = ["application/json"]

details of the underlying platform

RESPONDER_LIST = ["application/json"]

details of the underlying platform

Class Method Summary

Instance Method Summary

Instance methods inherited from class DoorCtrl::Application

bad_media_type(error) : AC::Error::ContentResponse bad_media_type, ensure_authenticated ensure_authenticated, invalid_param(error) : AC::Error::ParameterResponse invalid_param, set_request_id set_request_id, unauthorized(_error) : Nil unauthorized

Class Method Detail

def self.base_route #

Helper for obtaining base route


def self.overview(hash_parts : Hash(String | Symbol, Nil | Bool | Int32 | Int64 | Float32 | Float64 | String | Symbol) | Nil = nil, **tuple_parts) #

Helper methods for performing redirect_to calls


Instance Method Detail

def auth_test : String #

check if we are authenticated


[View source]
def base_route(*args, **options) #

Helper for obtaining base route


def base_route(*args, **options, &) #

Helper for obtaining base route


def cpu_temp : Float64 #

The current CPU temperature


[View source]
def overview #

Summary of the system


[View source]
def wifi_strength : Float64 #

The current wifi signal strength


[View source]