From 02911cb6ba740d8f299d71cabdcf8378d318e661 Mon Sep 17 00:00:00 2001 From: 4cuck <40539855+4cuck@users.noreply.github.com> Date: Wed, 27 Sep 2023 02:28:44 +0200 Subject: [PATCH] improve readme and column names --- server/templates/about.html.j2 | 39 ++++++++++++++++++++---------- server/templates/instances.html.j2 | 15 ++++++------ 2 files changed, 34 insertions(+), 20 deletions(-) diff --git a/server/templates/about.html.j2 b/server/templates/about.html.j2 index 1b45cc9..16a3b1d 100644 --- a/server/templates/about.html.j2 +++ b/server/templates/about.html.j2 @@ -1,6 +1,6 @@ {# SPDX-License-Identifier: AGPL-3.0-only #} - + @@ -13,7 +13,7 @@

Nitter instance uptime & health tracker

Home

-

Uptime check interval: {{uptime_interval_s}}s.

+

Uptime check interval: {{uptime_interval_s}}s.

Instance re-fetching interval, including RSS & version check: {{wiki_interval_s}}s.

Fetched latest commit: {{latest_commit}}

@@ -24,19 +24,32 @@ {%- endfor %} -

The same data can also be fetched as JSON from /api/v1/instances

+

+

Table Explanations

+ +

-

Explanations

- +

Settings for visible columns are stored locally per client.

-

Table settings are stored locally per client.

+

+

API

+ The same data as visible in the website/table can also be fetched as JSON from /api/v1/instances (link). + Note that the data only changes in the intervals stated above. Thus requesting it very often will get you rate limited. +

+

+ Please do not use instances listed here for scraping(?) ! + Instead host your own nitter instance, so public instances can be used by less tech savy people and not get overrun by you. You can get help with that at the listed matrix channel. +

+

The purpose of this API is to serve services like Twiiit, Farside or people looking for indication that their RSS feed is down - but not scrapers. Scraping will bring the downfall of public instances.

Sourcecode

License: AGPL3

diff --git a/server/templates/instances.html.j2 b/server/templates/instances.html.j2 index 5278e7e..074ab72 100644 --- a/server/templates/instances.html.j2 +++ b/server/templates/instances.html.j2 @@ -22,9 +22,9 @@

Nitter Instance Uptime & Health

About

-

Please use /api/v1/instances for bots.

+

Please use the API for bots. Please do NOT use these instances for scraping, host nitter yourself.

Last Updated {{last_updated}} UTC.

-

You can customize the visible columns at the bottom.

+

Customize the visible columns down below.

@@ -33,10 +33,10 @@ - - + + - + @@ -83,7 +83,7 @@ {%- endif -%} {%- if host.recent_checks -%} - + {% endif %} @@ -125,7 +125,8 @@
Country Healthy Health HistoryAverage (ms)All Healthy %Average TimeAll Time % RSSVersionNitter Version Connectivity Points
{{host.ping_avg}}{{host.ping_avg}}ms{{host.healthy_percentage_overall}} {% if host.rss -%} ✅ {%- else -%} ❌ {%- endif -%}
-
+
+ Visible Columns: