Skip to content

BEMServer/bemserver-ui

Repository files navigation

BEMServer UI

Latest version Python versions Build status pre-commit.ci status

BEMServer is a free Building Energy Management software platform.

Its purpose is to store data collected in buildings and produce useful information such as performance indicators or alerts.

Installation

Settings

Flask custom var config available:

BEMSERVER_API_HOST = "localhost"
API host name (and port)
BEMSERVER_API_USE_SSL = True
Is API published through SSL?
BEMSERVER_API_AUTH_METHOD = "jwt"
API authentication method: "jwt" (preferred and default, fastest) or "http_basic"
BEMSERVER_UI_TIMEZONE_NAME = "UTC"
Default application timezone name, when not overrided campaign timezone
BEMSERVER_UI_NOTIFICATION_UPDATER_DELAY = 60000
Delay, in seconds, between each check of new notifications
BEMSERVER_UI_USER_GUIDE_URL = https://bemserver-docs.readthedocs.io/en/latest/user_guide.html
User guide URL
(optional) BEMSERVER_UI_PARTNERS_FILE = None

Absolute path of json file that describes the project's partners

Example of BEMSERVER_UI_PARTNERS_FILE file structure:

[
    {
        "Nobatek/INEF4": {
            "use_as_project_logo": true,
            "url": "https://nobatek.inef4.com",
            "logo": {
                "style": "height: 50px;",
                "src": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBVcGxvYWRlZCB0bzogU1ZHIFJlcG8sIHd3dy5zdmdyZXBvLmNvbSwgR2VuZXJhdG9yOiBTVkcgUmVwbyBNaXhlciBUb29scyAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIGZpbGw9IiMwMDAwMDAiIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgDQoJIHdpZ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TUuMTE5eiIvPg0KPC9nPg0KPC9zdmc+"
            }
        }
    },
    {
        "Flask": {
            "url": "https://flask.palletsprojects.com/en/latest/",
            "logo": {
                "style": "height: 50px;",
                "src": "https://flask.palletsprojects.com/en/latest/_images/flask-logo.png"
            },
            "text": "The Python micro framework for building web applications."
        }
    }
]
(optional) BEMSERVER_UI_PLUGINS = None
List of absolute file paths that locate the __init__.py file from each UI plugin package to load