diff --git a/.gitignore b/.gitignore index 36b13f1..08fb26e 100644 --- a/.gitignore +++ b/.gitignore @@ -174,3 +174,7 @@ cython_debug/ # PyPI configuration file .pypirc +# own + + +web/page_counts.json diff --git a/web/app.py b/web/app.py index 68f9bae..f993a11 100644 --- a/web/app.py +++ b/web/app.py @@ -9,7 +9,7 @@ from pathlib import Path from flask import Flask, jsonify, render_template_string -DB_DATA = Path("page_counts.json") +DB_DATA = Path(__file__).parent / "page_counts.json" INTERVAL = 15 * 60 # 15 Minuten app = Flask(__name__) @@ -25,112 +25,436 @@ HTML = """
-

JonasSearch

-
Indexed Pages
+
+

JonasSearch

+
Indexed Pages – Live Statistics
+
- – Pages + –Pages +
+
Loading…
+ +
+ Loading… + Interval: – + First measurement: – + Measurements: – + Last update: – +
+ +
+
+
Growth / hour
+
–
+
Average over full history
+
+
+
Growth / day
+
–
+
Average over full history
+
+
+
Last 5 min
+
–
+
Latest interval change
+
+
+
Last hour
+
–
+
vs. measurement ~1 h ago
+
+
+
Last 24 h
+
–
+
vs. measurement ~24 h ago
+
+
+
Forecast next hour
+
–
+
Linear trend extrapolation
+
- +
Indexed pages over time
+
X-axis shows the real measurement timestamps · dashed line = linear-regression trend & 24 h forecast
+
+ +
+
Change per 5 minutes
+
Computed from the raw measurements: each change is normalized to a 5-minute interval
+
+
+ +