Chaostreff-Potsdam / zonen-tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple Website to generate and upload images to the Chaos#Zonen-Tags

This is a simple website to generate and upload images to Open EPaper Link Access Point.

Getting Started

Prerequisites

Installing

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

Running

flask --app tag_configurator.app run --port 8000 --host 0.0.0.0

Configuration

Before running the server for the first time, you have to configure the IP address of the Open EPaper Link access point. There are two ways to do this.

1. Using the config file

  • Copy the config.toml.example file to config.toml
  • Open the config.toml file in a text editor
  • Set the AP_IP variable to the IP address of the access point
AP_IP = "1.2.3.4"

2. Using an environment variable

Alternatively you can set the environment variable FLASK_AP_IP either using export FLASK_AP_IP=1.2.3.4 or when starting the server:

FLASK_AP_IP=1.2.3.4 flask --app tag_configurator.app run --port 8000 --host 0.0.0.0  

About

License:MIT License


Languages

Language:Jupyter Notebook 72.4%Language:HTML 11.1%Language:Python 11.1%Language:JavaScript 2.9%Language:CSS 2.6%