import os
basedir = os.path.abspath(os.path.dirname(__file__))

class Config:
    SECRET_KEY = os.environ.get('SECRET_KEY') or 'msdskdoopancjsduinabemseruulmf781'
    SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
        'sqlite:///' + os.path.join(basedir, 'app.db')
    SETTINGS_CHANGED = False
    BUTTERBOX_SSID= "butterbox"
    BUTTERBOX_WIFI_PASSWORD= ""
    LANGUAGES = ['en', 'ro']
    BUTTERBOX_DEFAULT_IP = "10.0.1.37"
    BUTTERBOX_USB_PATH = "/media/usb-butter/"

    BUTTERBOX_NAME = "Butter Box"
    BUTTERBOX_HOSTNAME = "butterbox"
    BUTTERBOX_LOGO = "data:image/svg+xml;base64,[encoded data, 13524 characters]"
    ADMIN_PASSWORD = "admin"

    ENABLE_ACCESS_POINT = "true"
    ENABLE_CHAT = "true"
    ENABLE_APP_STORE = "true"
    ENABLE_MAP_VIEWER = "true"
    ENABLE_FILE_VIEWER = "true"
    ENABLE_DELTACHAT = "true"
    CONVENE_INSTALL_PATH = "/chat"
    ENABLE_WIFI_SHARING = "true" if os.path.exists("/var/www/html/raspap") else "false"