Compare commits

..

4 Commits

Author SHA1 Message Date
66d8195c4e fix file naming 2025-05-18 17:43:05 +02:00
ede4ac7f6e quick fixes 2025-05-07 15:27:12 +02:00
d76de43f46 remove qr code 2025-05-07 11:08:25 +02:00
9b471e05de update styles to fit fullhd 2025-05-07 10:57:45 +02:00
5 changed files with 8 additions and 7 deletions

View File

View File

@@ -78,7 +78,7 @@ class MainScreen implements PresentationScreen {
const subs_cz = new ScrollingTextBox();
this.subs_english = new AsyncRunner(subs_en);
this.subs_czech = new AsyncRunner(subs_cz);
this.question_insert = el.p("");
this.question_insert = el.p("Otázka");
this.dom_question_link = el.div([el.h1(QUESTION_LINK)], ["link"]);
this.dom_question = el.div([this.dom_question_link, this.question_insert], ["question"]);
this.dom_root = el.div([
@@ -94,7 +94,7 @@ class MainScreen implements PresentationScreen {
}
public async prepare(): Promise<void> {
this.dom_question_link.append(await el.img(QUESTION_QR, ["qr"]));
//this.dom_question_link.append(await el.img(QUESTION_QR, ["qr"]));
}
public async start(): Promise<void> {

View File

@@ -168,8 +168,8 @@ export class ScrollingTextBox {
private paragraphs: Paragraph[];
private static MAX_HEIGHT: number = 1000;
private static CENTER_HEIGHT: number = 600;
private static MAX_HEIGHT: number = 650;
private static CENTER_HEIGHT: number = 350;
private static VERTICAL_MARGIN: number = 10;
public constructor() {

View File

@@ -143,7 +143,7 @@ body {
-ms-overflow-style: none;
scrollbar-width: none;
width: 100%;
height: 1000px;
height: 650px;
.paragraph {
transition: .5s ease color, .5s ease transform, .5s ease opacity;

View File

@@ -28,7 +28,7 @@ from pathlib import Path
from asyncio import Lock
# Some useful variables
PEEHAITCHPEA_ENDPOINT = "http://localhost:9000/api.php?cmd=getselectedmessage"
PEEHAITCHPEA_ENDPOINT = "http://peehaitchpea.libre-liberec.cz/api.php?cmd=getselectedmessage"
PYTHAGORAS_PORT = 8000
# Configure logging
@@ -359,8 +359,9 @@ async def fetch_selected_message():
Fetches a selected message from the specified endpoint.
Returns the message as a string or None if no message is available.
"""
auth = httpx.BasicAuth(username="stallman", password="gnu")
try:
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(auth=auth) as client:
response = await client.get(PEEHAITCHPEA_ENDPOINT)
if response.status_code == 200:
message = response.text.strip()