NAME
rsync_baler2json - Read Baler44 rsyncbaler table(directory) and create JSON output
SYNOPSIS
rsync_baler [-h] [-v] [-s select_regex ]
[-r reject_regex ] dbmaster baler44_dir [data.json]
SUPPORT
Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.
FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.
SUPPORT
Contributed: NO BRTT support -- please contact author.
DESCRIPTION
rsync_baler2json will read a local directory that archives rsync_baler
folders for Baler44 stations and will output the status of the tables
in JSON format. This is the fastest way of creating a website that will
present this information to the users. Maybe not to use in realtime to
export data to http calls but to update json file for the ajax calls
from the clients. The script is simple and may fail if used outside
ANF-TA installation.
OPTIONS
-
-h
Print this help message
-
-v
Produce verbose output while running
-
-s regex
Select station regex. ('STA1|STA2' or 'A...|B.*')
-
-r regex
Reject station regex. ('STA1|STA2' or 'A...|B.*')
ARGUMENTS
-
dbmaster
Table with tables deployment, stabaler and staq330.
-
baler44_dir
Path to the base directory with all stations. Local archive of
balers.
-
[json.output]
File to update with all the JSON output from the script. If empty
then print to stdout. You can then pipe the output to a second
script.
AUTHOR
Juan C. Reyes <reyes@ucsd.edu>
Antelope User Group Contributed Software