Skip to content

en Running Locally

root edited this page Nov 5, 2025 · 4 revisions

Running code on your computer

You will need the library to work:

pip install secontrol

Environment variables

Variables can be defined in the .env file in the root of the project or system. Variable values must be obtained in the personal account on the page https://www.outenemy.ru/se/

Variable Purpose
REDIS_USERNAME Username for authorization.
REDIS_PASSWORD Password for connection.

Quick code to check operation:

from secontrol.common import prepare_grid

#First player's grid
grid = prepare_grid()
#Devices on the grid
print(", ".join((d.name or f"{d.device_type}:{d.device_id}") for d in grid.devices.values()) or "(no devices)")

Examples

Ready-made scripts are located in the examples directory.

Clone this wiki locally