diff --git a/.gitignore b/.gitignore index da70222..6c14f47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +*.TSV *.txt example-message.json *.sqlite diff --git a/build b/build index 7acd16f..cfbf883 100755 --- a/build +++ b/build @@ -201,7 +201,7 @@ task_dev-server-stop() { task_end $?; } -task_geojson() { +task_geojson-debug() { sqlite3 lorawan.sqlite 'SELECT readings.latitude, readings.longitude, rssis.rssi FROM readings LEFT JOIN rssis ON readings.id = rssis.reading_id ORDER BY readings.latitude,readings.longitude;' | perl -pe 'chomp if eof' | jq --raw-input --slurp 'split("\n") | map(split("|") | map(if . == "" then null else tonumber end)) | map({type: "Feature", geometry: { type: "Point", "coordinates": [ .[1], .[0] ] }, properties: { "rssi": .[2], "marker-color": (if .[2] == null then "#dd0707" else "#04a104" end), "marker-symbol": "circle" }}) | { type: "FeatureCollection", features: . }' }