Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.go2rtc.server Namespace Reference

Classes

class  Go2RTCServerStartError
 
class  Go2RTCWatchdogError
 
class  Server
 

Functions

str _create_temp_file (str api_ip)
 

Variables

string _GO2RTC_CONFIG_FORMAT
 
string _LOCALHOST_IP = "127.0.0.1"
 
int _LOG_BUFFER_SIZE = 512
 
dictionary _LOG_LEVEL_MAP
 
 _LOGGER = logging.getLogger(__name__)
 
int _RESPAWN_COOLDOWN = 1
 
int _SETUP_TIMEOUT = 30
 
string _SUCCESSFUL_BOOT_MESSAGE = "INF [api] listen addr="
 
int _TERMINATE_TIMEOUT = 5
 

Detailed Description

Go2rtc server.

Function Documentation

◆ _create_temp_file()

str homeassistant.components.go2rtc.server._create_temp_file ( str  api_ip)
private
Create temporary config file.

Definition at line 64 of file server.py.

Variable Documentation

◆ _GO2RTC_CONFIG_FORMAT

string homeassistant.components.go2rtc.server._GO2RTC_CONFIG_FORMAT
private
Initial value:
1 = r"""# This file is managed by Home Assistant
2 # Do not edit it manually
3 
4 api:
5  listen: "{api_ip}:{api_port}"
6 
7 rtsp:
8  listen: "127.0.0.1:18554"
9 
10 webrtc:
11  listen: ":18555/tcp"
12  ice_servers: []
13 """

Definition at line 29 of file server.py.

◆ _LOCALHOST_IP

string homeassistant.components.go2rtc.server._LOCALHOST_IP = "127.0.0.1"
private

Definition at line 21 of file server.py.

◆ _LOG_BUFFER_SIZE

int homeassistant.components.go2rtc.server._LOG_BUFFER_SIZE = 512
private

Definition at line 22 of file server.py.

◆ _LOG_LEVEL_MAP

dictionary homeassistant.components.go2rtc.server._LOG_LEVEL_MAP
private
Initial value:
1 = {
2  "TRC": logging.DEBUG,
3  "DBG": logging.DEBUG,
4  "INF": logging.DEBUG,
5  "WRN": logging.WARNING,
6  "ERR": logging.WARNING,
7  "FTL": logging.ERROR,
8  "PNC": logging.ERROR,
9 }

Definition at line 43 of file server.py.

◆ _LOGGER

homeassistant.components.go2rtc.server._LOGGER = logging.getLogger(__name__)
private

Definition at line 17 of file server.py.

◆ _RESPAWN_COOLDOWN

int homeassistant.components.go2rtc.server._RESPAWN_COOLDOWN = 1
private

Definition at line 23 of file server.py.

◆ _SETUP_TIMEOUT

int homeassistant.components.go2rtc.server._SETUP_TIMEOUT = 30
private

Definition at line 19 of file server.py.

◆ _SUCCESSFUL_BOOT_MESSAGE

string homeassistant.components.go2rtc.server._SUCCESSFUL_BOOT_MESSAGE = "INF [api] listen addr="
private

Definition at line 20 of file server.py.

◆ _TERMINATE_TIMEOUT

int homeassistant.components.go2rtc.server._TERMINATE_TIMEOUT = 5
private

Definition at line 18 of file server.py.