Extension

This commit is contained in:
SpaceNerd0717
2025-11-16 16:48:48 -05:00
parent 7c346caa5c
commit 2903d36234
2 changed files with 4 additions and 7 deletions

View File

@@ -259,8 +259,6 @@ def format_status_display(status):
except Exception: except Exception:
return str(status or "") return str(status or "")
# ------------------------- # -------------------------
# Write Countdown HTML # Write Countdown HTML
# ------------------------- # -------------------------
@@ -283,6 +281,7 @@ def write_countdown_html(mission_name, timer_text):
<html> <html>
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta http-equiv="refresh" content="1">
<style> <style>
body {{ body {{
margin: 0; margin: 0;
@@ -297,11 +296,6 @@ body {{
#mission {{ font-size: {mission_px}px; margin-bottom: 0; }} #mission {{ font-size: {mission_px}px; margin-bottom: 0; }}
#timer {{ font-size: {timer_px}px; margin-bottom: 40px; }} #timer {{ font-size: {timer_px}px; margin-bottom: 40px; }}
</style> </style>
<script>
setTimeout(() => {{
location.href = location.href.split('?')[0] + '?t=' + Date.now();
}}, 1000);
</script>
</head> </head>
<body> <body>
{mission_div_hidden} {mission_div_hidden}

View File

@@ -12,6 +12,9 @@ For setting up the HTML sources to use in OBS, or similiar softwares. Follow the
2. Select "Local file" 2. Select "Local file"
3. Select html file 3. Select html file
4. Check both "Shutdown source when not visible" and "Refresh browser when scene becomes active" 4. Check both "Shutdown source when not visible" and "Refresh browser when scene becomes active"
5. Install the extension "xObsBrowserAutoRefresh"
- Download from https://obsproject.com/forum/resources/xobsbrowserautorefresh-timed-automatic-browser-source-refreshing.1677
- Set auto refresh times to whatever you desire.
INSTALL INSTRUCTIONS INSTALL INSTRUCTIONS