Initial commit
This commit is contained in:
26
config.py
Normal file
26
config.py
Normal file
@@ -0,0 +1,26 @@
|
||||
"""
|
||||
Configuration module for Matrix64 LED display.
|
||||
Loads environment variables from .env file.
|
||||
"""
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Load environment variables from .env file
|
||||
load_dotenv()
|
||||
|
||||
# Home Assistant Configuration
|
||||
HA_TOKEN = os.getenv('HA_TOKEN')
|
||||
HASS_URL = os.getenv('HASS_URL')
|
||||
|
||||
# Entity IDs
|
||||
BRIGHTNESS_ENTITY_ID = os.getenv('BRIGHTNESS_ENTITY_ID')
|
||||
WEATHER_ENTITY_ID = os.getenv('WEATHER_ENTITY_ID')
|
||||
INTERIOR_TEMP_ENTITY_ID = os.getenv('INTERIOR_TEMP_ENTITY_ID')
|
||||
INTERIOR_HUMIDITY_ENTITY_ID = os.getenv('INTERIOR_HUMIDITY_ENTITY_ID')
|
||||
|
||||
# Netdata Configuration
|
||||
NETDATA_URL = os.getenv('NETDATA_URL')
|
||||
|
||||
# LED Matrix Configuration
|
||||
LED_ROWS = int(os.getenv('LED_ROWS', '64'))
|
||||
LED_COLS = int(os.getenv('LED_COLS', '64'))
|
||||
Reference in New Issue
Block a user