Skip to content

A setup for application sending observations to SNEWS

Notifications You must be signed in to change notification settings

SNEWS2/snap_client_sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A setup for application sending observations to SNEWS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages