A setup for application sending observations to SNEWS
Checkout this package:
git clone [email protected]:SNEWS2/snap_client_sender.git
Install the requirements:
pip install -r requirements.txt
In config.yml
file two nodes are defined (each of them is a separate application).
Run the default node (named node
):
snap_run config.yml
to start the application that
- Sends
SNEWSHeartbeatMessage
every 10 seconds - Reads alerts from the file "alerts.txt" and sends the
SNEWSCoincidenceTierMessage
whenever a new line with timestamp appears
You should see the output of each message being sent.
Run the generate_alerts
node:
snap_run config.yml -n generate_alerts
to start the process which adds a line to alerts.txt
file every 120 seconds.
You should see the counter of generated alerts