From a910f41264c0561db751e402242b10b93e3ed279 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Wed, 6 Apr 2022 15:13:48 +0200 Subject: [PATCH] publish-barshare-gbfs: add index/overview page --- publish-barshare-gbfs/Dockerfile | 1 + publish-barshare-gbfs/index.html | 84 ++++++++++++++++++++++++++++++++ publish-barshare-gbfs/main.sh | 2 + 3 files changed, 87 insertions(+) create mode 100644 publish-barshare-gbfs/index.html diff --git a/publish-barshare-gbfs/Dockerfile b/publish-barshare-gbfs/Dockerfile index aa9ed3f..5b83e7d 100644 --- a/publish-barshare-gbfs/Dockerfile +++ b/publish-barshare-gbfs/Dockerfile @@ -13,6 +13,7 @@ RUN apk add --no-cache --update tree COPY --from=mc /usr/bin/mc /usr/bin/mc COPY main.sh ./ +COPY index.html ./ # prevent inheriting `python` as entrypoint ENTRYPOINT [] diff --git a/publish-barshare-gbfs/index.html b/publish-barshare-gbfs/index.html new file mode 100644 index 0000000..caf9077 --- /dev/null +++ b/publish-barshare-gbfs/index.html @@ -0,0 +1,84 @@ + + + + + + + BARShare Open Data + + + +
+ +

BARShare Open Data

+
+

GBFS-Feeds mit Verfügbarkeit von Leihfahrrädern & -autos

+

Feed mit allen Fahrzeugen

+ +

Feed mit Leihfahrrädern

+ +

Feed mit Leihfahrautos

+ +

Feed mit anderen Fahrzeugen

+ + + + \ No newline at end of file diff --git a/publish-barshare-gbfs/main.sh b/publish-barshare-gbfs/main.sh index 6362605..15b1cfa 100755 --- a/publish-barshare-gbfs/main.sh +++ b/publish-barshare-gbfs/main.sh @@ -25,6 +25,8 @@ dir="$(mktemp -d -t barshare-gbfs.XXXXXX)" set -x +mc cp -q index.html bbnavi/barshare/ + while true; do # We sleep first so that, if the GBFS generation fails contantly, we don't DOS the Moqo API. sleep "$PUBLISH_INTERVAL"