Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 977 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 977 Bytes

snap_client_sender

A setup for application sending observations to SNEWS

Installation

Checkout this package:

git clone [email protected]:SNEWS2/snap_client_sender.git

Install the requirements:

pip install -r requirements.txt

Running the examples

In config.yml file two nodes are defined (each of them is a separate application).

Client sender application

Run the default node (named node):

snap_run config.yml 

to start the application that

  1. Sends SNEWSHeartbeatMessage every 10 seconds
  2. 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.

Fake alarms generation

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