Commit c3d9a22b authored by fuzzle's avatar fuzzle
Browse files

add lastchangefeature and change ffmap-data backend input to more reliable openfreiburg.de/freifunk

while data there is not broken and fixed much more quickly
this only effect de-map with its strange routines
parent 09d203c4
......@@ -26,7 +26,7 @@
"Public Free Wifi",
"Free internet access"
],
"lastchange": "2015-12-25T12:55:00.902Z"
"lastchange": "@newdate@"
},
"timeline": [
{
......@@ -36,11 +36,18 @@
],
"nodeMaps": [
{
"url": "https://freiburg.freifunk.net/ffmap-backend",
"url": "https://openfreiburg.de/freifunk",
"interval": "1m",
"technicalType": "meshviewer",
"mapType": "ffmap/backend"
},
{
"url": "https://openfreiburg.de/freifunk/meshviewer",
"interval": "1m",
"technicalType": "meshviewer",
"mapType": "list/status"
},
{
"url": "https://freiburg.freifunk.net/meshviewer",
......
......@@ -35,10 +35,11 @@ newnumber=$(grep -o '"online": true' ../ffmap-backend/nodelist.json|wc -l)
#
if [ $newnumber -ge 100 -a $newnumber -le 10000 ];
then
sed -e s/@nodes@/$newnumber/g $apilocation > ${apilocation%.in};
sed -e s/@nodes@/$newnumber/g $apilocation > ${apilocation%.in}
# for timestamp update
# TODO expansion to end-of-line in origin-expression is missing
# sed -e s/' "lastchange": '/' "lastchange": "'$(date -I +%Y-%m-%dT%T%Z)'"'/g API-File
sed -e s/@newdate@/$(date +%Y-%m-%dT%T%Z)/g $apilocation > ${apilocation%.in}
  • Das funktioniert so nicht. Die Änderung muss entweder in einem sed mit dem weiter oben laufen oder man muss sich was anderes ausdenken.

  • stimmt ... mein denkfehler/schnellschuss .. ich denk mir was aus, oder du ..., ich hab da ne idee ... wie ich das auch für die nodes.json im meshviewer mach um einzelne Werte zu überschreiben ... muss ich nur raussuchen

Please register or sign in to reply
fi
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment