iot_light_control package¶
Submodules¶
iot_light_control.api module¶
iot_light_control.app module¶
iot_light_control.barrier module¶
iot_light_control.buzzer module¶
iot_light_control.config module¶
-
class
iot_light_control.config.Config[source]¶ -
API_PORT= 8001¶
-
BUZZER_PIN= 6¶
-
BUZZER_VOLUME= 0.1¶
-
DATABASE_FILE= 'iottl_database.db'¶
-
DEFAULT_GREEN_DURATION= 20¶
-
DEFAULT_RED_DURATION= 20¶
-
DEVELOP= False¶
-
LCD_I2C= (0, 62, 98)¶
-
LED_GREEN_PIN= 7¶
-
LED_RED_PIN= 8¶
-
LED_YELLOW_PIN= 3¶
-
LOGGING_CONFIG= {'loggers': {'iot_light': {'level': 'INFO'}}, 'disable_existing_loggers': False, 'handlers': {'console': {'formatter': 'default', 'class': 'logging.StreamHandler', 'level': 'DEBUG'}, 'file': {'backupCount': 3, 'level': 'DEBUG', 'filename': 'logfile.log', 'formatter': 'default', 'class': 'logging.handlers.RotatingFileHandler', 'maxBytes': 1024}}, 'formatters': {'default': {'format': '%(asctime)s %(levelname)s %(name)s - %(message)s'}}, 'version': 1, 'root': {'level': 'INFO', 'handlers': ['console']}}¶
-
RESOLVER_URL= 'http://35.157.167.40:5050/edison'¶
-
SECRET= 'dummy-secret'¶
-
SERVO_BARRIER_PIN= 5¶
-
STATIC_ROOT= '../webapp/dist'¶
-
-
class
iot_light_control.config.ProductionConfig[source]¶ Bases:
iot_light_control.config.Config-
STATIC_ROOT= '/var/www'¶
-