simplefancontroller.ui package

Subpackages

Submodules

simplefancontroller.ui.app module

simplefancontroller.ui.app.fastapi_factory(include_frontend: bool = True) FastAPI

simplefancontroller.ui.html_utils module

simplefancontroller.ui.html_utils.generate_html_table(fan_controller, mode='full', style=None) str

Function to generate a table containing status information for fans registered at a fan controller.

simplefancontroller.ui.html_utils.stringify_intensity(fan) str

Creates a string from a fan’s intensity.

Returns a fan’s intensity as string based on the fan’s status and its current intensity.

Parameters

fan (Fan) – Fan instance

Returns

nicely formatted fan intensity

simplefancontroller.ui.settings module

class simplefancontroller.ui.settings.UIConfig(CSRF_SESSION_KEY: bytes = b"\x0f\x92\xb8'`\x7f\xce\xb8\xbe\x8a\xe7s\xdd\xed\xa6\x8d\x0b\xacx{\x1c\xc8h\xcaO\x91\xa8\x13\x9d\x1f\xe0\x92")

Bases: object

CSRF_SESSION_KEY: bytes = b"\x0f\x92\xb8'`\x7f\xce\xb8\xbe\x8a\xe7s\xdd\xed\xa6\x8d\x0b\xacx{\x1c\xc8h\xcaO\x91\xa8\x13\x9d\x1f\xe0\x92"

Module contents