rubyvanrooyen / xsats

Alert broker to dentify upcoming x-ray targets with SALT annulus overlap windows
GNU General Public License v3.0
0 stars 0 forks source link

Remote broker script #6

Open rubyvanrooyen opened 3 years ago

rubyvanrooyen commented 3 years ago

Unify the web scraping file output, the SALT visibility file output as well as the file output from time overlap evaluation scripts into a single remote broker script that can provide JSON output for parsing by a TOM Toolkit alert implementation.

Current target broker scripts:

SALTvisibility.py
GTIvsSALT.py

It should be noted that the initial implementation will add the remote broker functionality without remove the current file output scripts

rubyvanrooyen commented 3 years ago

Relates to project describing steps to port the current email alert system to the TOMs interface: Issues #3, #4, and #5

rubyvanrooyen commented 3 years ago

Remote broker script name TBD (for discussion something like SALT_Xray_Overlap.py or Xsats.py can be used)

The broker gather all the relevant information and output a JSON dictionary or list of JSON dictionaries containing the relevant information (suggested in issue #4 )

[
  {
    "name":<str>, (default = name)
    "id":<int>, (default = iteration)
    "ra":<str>, ( default = ra_str)
    "dec":<str>, (default = dec_str)
    "epoch":<str>, (default = epoch )
    "start_time":<str>, (default = start_time)
    "end_time":<str>, (default = end_time)
    "duration":<float> (default = duration)
  },
  ...
]