Skip to content

Commit

Permalink
Fix "Luftdaten-Viewer Grafana" documentation
Browse files Browse the repository at this point in the history
The section about exporting station metadata from PostGIS to JSON file
was wrong, and included an erroneous backslash character.
  • Loading branch information
amotl committed Dec 12, 2022
1 parent 621e67c commit 0219120
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ Luftdatenpumpe changelog

in progress
===========
- Fix "Luftdaten-Viewer Grafana" documentation section about
exporting station metadata from PostGIS to JSON file.
Thanks, @ohobby.


2022-12-05 0.21.1
Expand Down
2 changes: 1 addition & 1 deletion doc/setup/ldview-grafana-irceline.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Create station list file for Grafana Worldmap Panel from RDBMS database (Postgre
stationsfile=/var/lib/grafana/data/json/vmm-stations.json
# macOS: stationsfile=/usr/local/var/lib/grafana/data/json/vmm-stations.json

luftdatenpumpe stations --source=postgresql://luftdatenpumpe@localhost/weatherbase --target=json.flex+stream://sys.stdout --target-fieldmap='key=station_id\|str,name=sos_feature_and_id' > $stationsfile
luftdatenpumpe stations --source=postgresql://luftdatenpumpe@localhost/weatherbase --target=json.flex+stream://sys.stdout --target-fieldmap='key=station_id|str,name=sos_feature_and_id' > $stationsfile

Worldmap Panel IRCELINE::

Expand Down
2 changes: 1 addition & 1 deletion doc/setup/ldview-grafana.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Create RDBMS database view ``ldi_network``::

Create station list file for Grafana Worldmap Panel from RDBMS database (PostgreSQL)::

luftdatenpumpe stations --source=postgresql://luftdatenpumpe@localhost/weatherbase --target=json.flex+stream://sys.stdout --target-fieldmap='key=station_id\|str,name=road_and_name_and_id' > $stationsfile
luftdatenpumpe stations --source=postgresql://luftdatenpumpe@localhost/weatherbase --target=json.flex+stream://sys.stdout --target-fieldmap='key=station_id|str,name=road_and_name_and_id' > $stationsfile

Check::

Expand Down

0 comments on commit 0219120

Please sign in to comment.