From 626b8b2f00b59088ef33d9a6b2090acfaa1646d5 Mon Sep 17 00:00:00 2001 From: Maaike Date: Mon, 18 Dec 2023 10:29:05 +0100 Subject: [PATCH] update for add-topic --- docs/source/user/setup.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/source/user/setup.rst b/docs/source/user/setup.rst index 313f0fc7..e25b0623 100644 --- a/docs/source/user/setup.rst +++ b/docs/source/user/setup.rst @@ -225,6 +225,9 @@ The wis2box-webapp can be accessed by visiting the URL you specified during the Please note only data for stations that have been added to the wis2box will be ingested and result in WIS2 notifications being published. +Bulk inserting stations from CSV +-------------------------------- + You can also bulk insert a set of stations from a CSV file, by defining the stations in ``metadata/stations/station_list.csv`` in your wis2box host directory and running the following command: .. code-block:: bash @@ -251,6 +254,13 @@ If you want to add a topic to a single station, you can use the following comman python3 wis2box-ctl.py login wis2box metadata station add-topic --wsi +If you want to add a topic to all stations from a specific territory, for example Italy, you can use the following command: + +.. code-block:: bash + + python3 wis2box-ctl.py login + wis2box metadata station add-topic --territory-name Italy + The next is the :ref:`data-ingest`. .. _`wis2box Releases`: https://github.com/wmo-im/wis2box/releases