<gh_stars>1-10

USER = '~pi'
# USER = '~hhoegl'

PLATFORM = 'rpi'
# PLATFORM = 'pc'  # 'pc', 'rpi'

import os
homedir = os.path.expanduser(USER)

IPC_FLAG = True

NCOURTS = 7

TSGRAIN_LOGGER = "TSGRain-Logger"

# manual rain duration
if PLATFORM == 'pc':
    SEC_PER_MIN = 1   # for testing on pc
else:
    SEC_PER_MIN = 60  # for regular use

DBPATH = os.path.join(homedir, 'tsgrain/database/db.json')
LOGFILE = os.path.join(homedir, 'tsgrain/controller/tsgrain.log')
TSGRAIN_FLASK_LOGFILE = os.path.join(homedir, 'tsgrain/website/flask.log')

# for Flask
class Config(object):
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'Sicherheitschlüssel'
    DEBUG = True


USER = '~pi'
# USER = '~hhoegl'

PLATFORM = 'rpi'
# PLATFORM = 'pc'  # 'pc', 'rpi'

import os
homedir = os.path.expanduser(USER)

IPC_FLAG = True

NCOURTS = 7

TSGRAIN_LOGGER = "TSGRain-Logger"

# manual rain duration
if PLATFORM == 'pc':
    SEC_PER_MIN = 1   # for testing on pc
else:
    SEC_PER_MIN = 60  # for regular use

DBPATH = os.path.join(homedir, 'tsgrain/database/db.json')
LOGFILE = os.path.join(homedir, 'tsgrain/controller/tsgrain.log')
TSGRAIN_FLASK_LOGFILE = os.path.join(homedir, 'tsgrain/website/flask.log')

# for Flask
class Config(object):
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'Sicherheitschlüssel'
    DEBUG = True
# USER = '~hhoegl' # PLATFORM = 'pc'  # 'pc', 'rpi' # manual rain duration # for testing on pc # for regular use # for Flask