The entry point for the controllers located in your home.
API structure is similar to VK API structure.
- controller_mac: string
- controller_mac: string
- sensor_id: int
- error_message: string
- controller_mac: string
- sensor_id: int
- value: int
- timestamp: string
At first create configuration file (config.yml
) for your case. See
config.yml.example.
- Build the image
docker build -t m4m-receiver .
- Run the container
docker run -p 80:5000 m4m-receiver
- Create environment and install dependencies
virtualenv .venv
source .venv/bin/activate
pip3 install -r requirements.txt
- Run the app
python3 app.py