AmkSk / homeberry-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

homeberry-api

Example REST API service for the Homeberry project

Installation

  1. You need create a new virtual environment for the flask webserver. There is a lot of tutorials online, but basically you want to create an virtual environment for the server:
$ virtualenv homeberryApi
  1. Edit homeberryApi.py to your run your services / commands

  2. Create and start service on boot by copying the homeberryApi.service file to /etc/systemd/system/ directory and enabling it:

$ sudo systemctl enable homeberryApi.service
$ sudo systemctl start homeberryApi.service

About

License:GNU General Public License v3.0


Languages

Language:Python 100.0%