Add ULLI weather easter egg to falling background particles

This commit is contained in:
nyan404 committed 2026-10-18 20:02:32 +03:00
1 parent 955f47ccd6
commit 98182c179f
11 files changed
+399 -21

No files matched your search

+7
View File
@@ -24,6 +24,7 @@ from .belki.image_host import ImageHostError, ImageStoreClient
from .belki.xlsx_export import build_xlsx
from .sudoku import SudokuError, SudokuStore
from .belki.vk_scheduler import VkConversationStore
from .belki.weather import weather_cache
ROOT = Path(__file__).resolve().parents[1]
@@ -377,6 +378,12 @@ class Handler(BaseHTTPRequestHandler):
if path in ("/health", "/api/health"):
self._json(200, {"status": "ok"})
return
if path == "/api/weather/ulli":
self._json(200, weather_cache.get())
return
if path in ("/api/weather/effect.js", "/api/weather/effect.css"):
self._file(WEB_ROOT / ("weather-effect.js" if path.endswith(".js") else "weather-effect.css"))
return
if path in ("/", "/belki", "/belki/", "/calculator.html"):
self._file(WEB_ROOT / "calculator.html")
return