Compare commits

..

2 Commits

Author SHA1 Message Date
Robert Langhammer 1fae580e59 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 <rlanghammer@web.de>
2024-01-20 12:47:51 +01:00
Robert Langhammer c64fcef377 update hood data (20.01.2024)
Signed-off-by: Robert Langhammer <rlanghammer@web.de>
2024-01-20 12:40:04 +01:00
2 changed files with 6 additions and 16 deletions

View File

@ -1,9 +1,12 @@
#!/bin/bash
#!/bin/sh
set -e
lat=${1:-0.0}
lon=${2:-0.0}
#echo $lat $lon
hood="$(./voronoi/test_voronoi.awk $lat $lon < voronoi/voronoi)"
for poly in poly/*.poly; do
if ./poly/test_poly.awk -- $lat $lon < "$poly"; then
@ -12,6 +15,8 @@ for poly in poly/*.poly; do
fi
done
#echo $hood
cat "hood/$hood.json"
echo

View File

@ -1,15 +0,0 @@
#!/bin/bash
for id in $(curl http://keyserver.freifunk-franken.de/v2/hoods.php | jq '.[].id')
do
curl -o tmp.json http://keyserver.freifunk-franken.de/v2/?hoodid=$id
echo "ID $id"
file=$(jq -r '.hood.name' tmp.json | tr -d " ")
[[ "null" = $file ]] && rm tmp.json && exit
mv tmp.json "$file.json"
done