/flask-natuer-remo

Primary LanguageHTMLMIT LicenseMIT

Flask Nature Remo

Control Nature Remo Site
Using Flask to control Nature Remo
It is written in Python, base on flask.

Demo

  • Save the api result as json the first time it is started.
  • This minimizes the number of connections, because it only makes api connections at send time instead of every time.

Quick Start

Set your token to docker-compose.yml .
You can create the api token with the official site.

official site
https://home.nature.global/home

docker-compose.yml

version: "3"
services:
    web:
        build: .
        environment:
            - REMO_TOKEN=your_token
        ports:
            - 5000:5000

start container

$ docker-compose up -d

Versions tested

  • Python 3.9
  • Flask 1.1
  • requests 2.25

Installation

$ git clone https://github.com/n-guitar/flask-natuer-remo.git
$ python -m venv env
$ source ./env/bin/activate
$ pip install -r requirements.txt

Usage

$ export REMO_TOKEN="your_token"
$ cd src
$ python main.py

License

MIT license.