Flask server app that handles POST requests from an inFlux database and then forwards obtained data to a Telegram bot.
You simply have to setup a Python virtual environment in which you must install flask libs through pip (or pip3); after that, you've to run the script in command line making sure you've set the path environment variable for Flask:
FLASK_APP=app.py
The name must be the same with the script one. Then type:
flask run
You can edit the IP address inside the script or running it this way:
flask run -h <ipAddr>
Default is localhost.