From 8c69bdf3576b30461f2da54cca9391ced857210c Mon Sep 17 00:00:00 2001 From: Ian Renton Date: Sat, 20 Jun 2026 13:28:35 +0100 Subject: [PATCH] Minor tweak, uptime comment --- README.md | 10 ++++++++-- spotproviders/gma.py | 3 +++ templates/add_spot.html | 2 +- templates/alerts.html | 2 +- templates/bands.html | 4 ++-- templates/base.html | 10 +++++----- templates/conditions.html | 2 +- templates/map.html | 4 ++-- templates/spots.html | 4 ++-- templates/status.html | 2 +- 10 files changed, 26 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4c15eff..463cc51 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ a mapping exists. | `map-center-lon` | Numeric (decimal) | (auto) | `?map-center-lon=-0.1` | Sets the initial longitude of the map centre on the map page. If omitted, the map auto-fits to the loaded spots. | | `map-zoom` | Numeric (integer) | (auto) | `?map-zoom=6` | Sets the initial zoom level of the map on the map page. If omitted, the map auto-fits to the loaded spots. | -More will be added soon to allow customisation of filters and other display properties. +See the comment at the end of the next section regarding reliability and uptime of the "main" server. ## Writing your own client @@ -95,7 +95,13 @@ Various approaches exist to writing your own client, but in general: * Refer to the provided HTML/JS interface for a reference on different approaches. For example, the "map" and "bands" pages simply query the main spot API on a timer, whereas the main/spots page combines this approach with using the Server-Sent Events (SSE) endpoint to update live. -* Let me know if you get stuck, I'm happy to help! +* Let me know if you get stuck, I'm happy to help. + +Remember, here at Spothole Inc. we offer an industry-standard "five nines" uptime on our server, with our own unique +twist: we don't tell you which side of the decimal point the nines start! (Translation: This is a hobby project. +`spothole.app` runs on the same server as my blog and other stuff. It might go down without warning. By all means base +your own project on data from the main server if you like, but if you want any control over reliability and downtime, +please run your own copy instead.) ## Running your own copy diff --git a/spotproviders/gma.py b/spotproviders/gma.py index cfa6f20..a795ae0 100644 --- a/spotproviders/gma.py +++ b/spotproviders/gma.py @@ -89,4 +89,7 @@ class GMA(HTTPSpotProvider): except: logging.warning("Exception when looking up " + self.REF_INFO_URL_ROOT + source_spot[ "REF"] + ", ignoring this spot for now") + else: + logging.warning("The GMA API returned an unexpected response.") + return new_spots diff --git a/templates/add_spot.html b/templates/add_spot.html index 331399e..c4dba3e 100644 --- a/templates/add_spot.html +++ b/templates/add_spot.html @@ -76,7 +76,7 @@ - + diff --git a/templates/alerts.html b/templates/alerts.html index 17c24f4..7c55794 100644 --- a/templates/alerts.html +++ b/templates/alerts.html @@ -75,7 +75,7 @@ - + diff --git a/templates/bands.html b/templates/bands.html index aa7281c..bf6e0d7 100644 --- a/templates/bands.html +++ b/templates/bands.html @@ -77,8 +77,8 @@ - - + + diff --git a/templates/base.html b/templates/base.html index 90ec0e4..385547c 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% extends "skeleton.html" %} {% block head_extra %} - + @@ -10,10 +10,10 @@ - - - - + + + + {% end %} {% block body %}
diff --git a/templates/conditions.html b/templates/conditions.html index 8594097..37432dc 100644 --- a/templates/conditions.html +++ b/templates/conditions.html @@ -284,7 +284,7 @@
- + diff --git a/templates/map.html b/templates/map.html index 3af8f62..8df89d8 100644 --- a/templates/map.html +++ b/templates/map.html @@ -95,8 +95,8 @@ - - + + diff --git a/templates/spots.html b/templates/spots.html index 7c8a4f7..ebe9514 100644 --- a/templates/spots.html +++ b/templates/spots.html @@ -116,8 +116,8 @@ - - + + diff --git a/templates/status.html b/templates/status.html index 89ef8ec..d0a22ef 100644 --- a/templates/status.html +++ b/templates/status.html @@ -59,7 +59,7 @@ - +