{% extends "base.html" %} {% block title %}Dashboard - Telegram Stremio{% endblock %} {% block content %}

Dashboard

System Status

Uptime {{ system_stats.uptime or 'N/A' }}
Telegram Bot {{ system_stats.telegram_bot or '@StreamBot' }}
Connected Bots {{ system_stats.connected_bots|default(0) }}
Backend Version v{{ system_stats.version or '1.0.0' }}

Live Streaming Status

{{ system_stats.total_active_streams }} Active
{% if system_stats.active_streams and system_stats.active_streams|length > 0 %} {% for stream in system_stats.active_streams %}
Stream: {{ stream.stream_id[:8] }}...
{{ stream.status|upper }}
Bot: Bot{{ stream.client_index + 1 }}
File: DC{{ stream.dc_id }}
Duration: {{ stream.duration }}s
Data Transferred: {{ "%.2f"|format(stream.total_bytes / 1024 / 1024) }} MB
Instant
{{ stream.instant_mbps }} MB/s
Average
{{ stream.avg_mbps }} MB/s
Peak
{{ stream.peak_mbps }} MB/s
{% if stream.meta and stream.meta.client_host %}
Client: {{ stream.meta.client_host }}
{% endif %}
{% endfor %} {% else %}

No active streams

Streams will appear here when users start watching content

{% endif %}

Database and Commands

{% if system_stats.databases %} {% for db_stat in system_stats.databases %}

{{ db_stat.db_name.replace("storage_", "Database ") }}

Movies {{ "{:,}".format(db_stat.movie_count) }}
TV Shows {{ "{:,}".format(db_stat.tv_count) }}
Storage Used {{ "%.1f"|format(db_stat.storageSize / 1024 / 1024) }} MB
{% set storage_percent = (db_stat.storageSize / (500 * 1024 * 1024) * 100) | round %}
{% endfor %} {% else %}
No database statistics available
{% endif %}

Access Management

Manage API tokens for Stremio addon access

{% for token in api_tokens %} {% else %} {% endfor %}
Name Usage (Today / Month) Limits (GB) Manifest URL Actions
{{ token.name }}
{{ token.created_at.strftime('%Y-%m-%d') }}
Today: Month:
D: {% if token.limits.daily_limit_gb %} {% else %} ∞ {% endif %}
M: {% if token.limits.monthly_limit_gb %} {% else %} ∞ {% endif %}
API={{ token.token[:3] }}.......{{ token.token[-3:] }}
No tokens found. Create one to get started.
{% endblock %}