HenryJobst / mystrom-django-interface

Manage MyStrom devices in easy interfaces. Another applications catches the devices and saves results https://github.com/maexled/mystrom-python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About the Project

The project is designed to manage mystrom devices in an easy interface.

Prerequisites

  • >= python3.8

Installation

  1. Clone the repo
git clone https://github.com/maexled/mystrom-django-interface.git
cd mystrom-django-interface/
  1. Install needed python libraries
pip install -r requirements.txt 

Database migrations

python manage.py makemigrations
python manage.py migrate

Run App

python manage.py runserver

Run with docker

docker run \
   --name mystrom-interface \
   -p 8000:8000 \
   -e DB_NAME=db-name \
   -e DB_USER=username \
   -e DB_PASSWORD=password \
   -e DB_HOST=host \
   -e DB_PORT=port \
   -e SECRET_KEY=secretKey \
   -e ALLOWED_HOSTS=localhost,mysite.com \
   -e CORS_ORIGIN_ALLOW_ALL=False \
   -e CORS_ORIGIN_WHITELIST=http://localhost:8000,http://mysite.com \
   -e TZ=Europe/Berlin \
   ghcr.io/maexled/mystrom-django-interface

Configurations

Important things to know

Database configuraton in pim/settings.py under DATABASES

About

Manage MyStrom devices in easy interfaces. Another applications catches the devices and saves results https://github.com/maexled/mystrom-python

License:MIT License


Languages

Language:Python 55.0%Language:HTML 43.5%Language:Shell 0.8%Language:Dockerfile 0.7%