Control Nature Remo Site
Using Flask to control Nature Remo
It is written in Python, base on flask.
- 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.
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
- Python 3.9
- Flask 1.1
- requests 2.25
$ git clone https://github.com/n-guitar/flask-natuer-remo.git
$ python -m venv env
$ source ./env/bin/activate
$ pip install -r requirements.txt
$ export REMO_TOKEN="your_token"
$ cd src
$ python main.py