From 1fae580e5969cbf70756f79a36fe413bdb5273a7 Mon Sep 17 00:00:00 2001 From: Robert Langhammer Date: Sat, 20 Jan 2024 12:47:51 +0100 Subject: [PATCH] add index.php with get_hood_by_id The routers pull "URL/index.php?lat&log" So index.php is needed. Signed-off-by: Robert Langhammer --- get_hoodid.sh | 6 ++++++ index.php | 15 +++++++++++++++ 2 files changed, 21 insertions(+) create mode 100755 get_hoodid.sh create mode 100644 index.php diff --git a/get_hoodid.sh b/get_hoodid.sh new file mode 100755 index 0000000..8514ac4 --- /dev/null +++ b/get_hoodid.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +hoodfile=$(grep -l "id\": \"$1\"" hood/* ) +[ -z $hoodfile ] && echo "no hood $1" && exit + +cat $hoodfile diff --git a/index.php b/index.php new file mode 100644 index 0000000..2084073 --- /dev/null +++ b/index.php @@ -0,0 +1,15 @@ +