#!/usr/bin/python
# -*- coding: utf-8 -*-
#=============================================================

#=============================================================
# Some imports
#=============================================================
import os
import argparse

import domoWebUser
import oneWireDevice
import webui
import domoWebModule
import domoWebModuleMgt
import gpioDevice
import domoTask
import domoWebDataCache

from domoWebConfigParser import *
import domoWebLogger 
import domoWebLogBook

#=============================================================
# Let's go
#=============================================================

#-------------------------------------------------------------
# Parsing args
#-------------------------------------------------------------
parser = argparse.ArgumentParser()

parser.add_argument('-c', '--config',
                    dest='configFileName')

args=parser.parse_args()

#-------------------------------------------------------------
# Load configuration from a file. This function builds up the
# domoWebConfigParser.config structure
#-------------------------------------------------------------
configParserInit(args.configFileName)

#-------------------------------------------------------------
# Loggin facility initialization
#-------------------------------------------------------------
domoWebLogger.domoWebLoggerInit(config)
logger = domoWebLogger.logger
debugFlags = domoWebLogger.debugFlags

#-------------------------------------------------------------
# The logBook
#-------------------------------------------------------------
domoWebLogBook.logBookInit(config, logger, debugFlags)

#-------------------------------------------------------------
# User management
#-------------------------------------------------------------
domoWebUser.domoWebUserInit(config, logger, debugFlags)

#-------------------------------------------------------------
# cache initialisation
#-------------------------------------------------------------
domoWebDataCache.domoWebDataCacheInit(config, logger, debugFlags)

#-------------------------------------------------------------
# Task management init
#-------------------------------------------------------------
domoTask.domoTaskInit(logger, debugFlags)
   
#-------------------------------------------------------------
# 1wire initialization
#-------------------------------------------------------------
oneWireDevice.oneWireInit(config, logger, debugFlags)

#-------------------------------------------------------------
# gpioDevices init
#-------------------------------------------------------------
gpioDevice.gpioDeviceInit(config, logger, debugFlags)

#-------------------------------------------------------------
# domoWebModuleMgt  initalization
#-------------------------------------------------------------
domoWebModuleMgt.domoWebModuleManagementInit(config, logger, debugFlags)

#-------------------------------------------------------------
# Everything should have been initialized, we can start asynchronous
# tasks 
#-------------------------------------------------------------
domoTask.domoTaskStart()
   
#-------------------------------------------------------------
# Configuration of displayed tabs
#-------------------------------------------------------------
webui.buildWebui(config, logger, debugFlags)


6287df2a0696430fd2bd7e2fecc04e8dd171411b
<mask token>

<mask token>
parser.add_argument('-c', '--config', dest='configFileName')
<mask token>
configParserInit(args.configFileName)
domoWebLogger.domoWebLoggerInit(config)
<mask token>
domoWebLogBook.logBookInit(config, logger, debugFlags)
domoWebUser.domoWebUserInit(config, logger, debugFlags)
domoWebDataCache.domoWebDataCacheInit(config, logger, debugFlags)
domoTask.domoTaskInit(logger, debugFlags)
oneWireDevice.oneWireInit(config, logger, debugFlags)
gpioDevice.gpioDeviceInit(config, logger, debugFlags)
domoWebModuleMgt.domoWebModuleManagementInit(config, logger, debugFlags)
domoTask.domoTaskStart()
webui.buildWebui(config, logger, debugFlags)

<mask token>
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', dest='configFileName')
args = parser.parse_args()
configParserInit(args.configFileName)
domoWebLogger.domoWebLoggerInit(config)
logger = domoWebLogger.logger
debugFlags = domoWebLogger.debugFlags
domoWebLogBook.logBookInit(config, logger, debugFlags)
domoWebUser.domoWebUserInit(config, logger, debugFlags)
domoWebDataCache.domoWebDataCacheInit(config, logger, debugFlags)
domoTask.domoTaskInit(logger, debugFlags)
oneWireDevice.oneWireInit(config, logger, debugFlags)
gpioDevice.gpioDeviceInit(config, logger, debugFlags)
domoWebModuleMgt.domoWebModuleManagementInit(config, logger, debugFlags)
domoTask.domoTaskStart()
webui.buildWebui(config, logger, debugFlags)

import os
import argparse
import domoWebUser
import oneWireDevice
import webui
import domoWebModule
import domoWebModuleMgt
import gpioDevice
import domoTask
import domoWebDataCache
from domoWebConfigParser import *
import domoWebLogger
import domoWebLogBook
parser = argparse.ArgumentParser()
parser.add_argument('-c', '--config', dest='configFileName')
args = parser.parse_args()
configParserInit(args.configFileName)
domoWebLogger.domoWebLoggerInit(config)
logger = domoWebLogger.logger
debugFlags = domoWebLogger.debugFlags
domoWebLogBook.logBookInit(config, logger, debugFlags)
domoWebUser.domoWebUserInit(config, logger, debugFlags)
domoWebDataCache.domoWebDataCacheInit(config, logger, debugFlags)
domoTask.domoTaskInit(logger, debugFlags)
oneWireDevice.oneWireInit(config, logger, debugFlags)
gpioDevice.gpioDeviceInit(config, logger, debugFlags)
domoWebModuleMgt.domoWebModuleManagementInit(config, logger, debugFlags)
domoTask.domoTaskStart()
webui.buildWebui(config, logger, debugFlags)

#!/usr/bin/python
# -*- coding: utf-8 -*-
#=============================================================

#=============================================================
# Some imports
#=============================================================
import os
import argparse

import domoWebUser
import oneWireDevice
import webui
import domoWebModule
import domoWebModuleMgt
import gpioDevice
import domoTask
import domoWebDataCache

from domoWebConfigParser import *
import domoWebLogger 
import domoWebLogBook

#=============================================================
# Let's go
#=============================================================

#-------------------------------------------------------------
# Parsing args
#-------------------------------------------------------------
parser = argparse.ArgumentParser()

parser.add_argument('-c', '--config',
                    dest='configFileName')

args=parser.parse_args()

#-------------------------------------------------------------
# Load configuration from a file. This function builds up the
# domoWebConfigParser.config structure
#-------------------------------------------------------------
configParserInit(args.configFileName)

#-------------------------------------------------------------
# Loggin facility initialization
#-------------------------------------------------------------
domoWebLogger.domoWebLoggerInit(config)
logger = domoWebLogger.logger
debugFlags = domoWebLogger.debugFlags

#-------------------------------------------------------------
# The logBook
#-------------------------------------------------------------
domoWebLogBook.logBookInit(config, logger, debugFlags)

#-------------------------------------------------------------
# User management
#-------------------------------------------------------------
domoWebUser.domoWebUserInit(config, logger, debugFlags)

#-------------------------------------------------------------
# cache initialisation
#-------------------------------------------------------------
domoWebDataCache.domoWebDataCacheInit(config, logger, debugFlags)

#-------------------------------------------------------------
# Task management init
#-------------------------------------------------------------
domoTask.domoTaskInit(logger, debugFlags)
   
#-------------------------------------------------------------
# 1wire initialization
#-------------------------------------------------------------
oneWireDevice.oneWireInit(config, logger, debugFlags)

#-------------------------------------------------------------
# gpioDevices init
#-------------------------------------------------------------
gpioDevice.gpioDeviceInit(config, logger, debugFlags)

#-------------------------------------------------------------
# domoWebModuleMgt  initalization
#-------------------------------------------------------------
domoWebModuleMgt.domoWebModuleManagementInit(config, logger, debugFlags)

#-------------------------------------------------------------
# Everything should have been initialized, we can start asynchronous
# tasks 
#-------------------------------------------------------------
domoTask.domoTaskStart()
   
#-------------------------------------------------------------
# Configuration of displayed tabs
#-------------------------------------------------------------
webui.buildWebui(config, logger, debugFlags)

