-
Notifications
You must be signed in to change notification settings - Fork 89
SeismicPi Plugin #275
base: master
Are you sure you want to change the base?
SeismicPi Plugin #275
Conversation
#print "Cleaning old files...\n"; | ||
#`rm /home/sysop/seiscomp3/etc/key/station*`; | ||
# Make new key file | ||
$sc3_key = "/home/sysop/seiscomp3/etc/key/station\_$net\_$station"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think $SEISCOMP_ROOT
is a better choice. That also requires to check for this variable to be set at the beginning. The advantage is that it would also run with SeisComP >= 4.
print "$sc3_key\n"; | ||
`seiscomp update-config`; | ||
# Make plugin configuration file | ||
$plugin_cfg = "/home/sysop/seiscomp3/var/lib/seedlink/$net.$station.ini"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above about $SEISCOMP_ROOT
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced UPDATE.pl with seismicpi_setup.pl and i added to check the $SEICOMP_ROOT variable and if is set to proceed.
I also added user input for deleting old station config files (seismicpi, serial communication can work only with one station configuration at the same time).
SeisComP Plugin for the Mindsets SeismicPi HAT board.
After succesfull compilation to setup the station, change directory to $SEICOMP_ROOT/seedlink/plugins/seismicpi_plugin/setup_configuration/ directory, edit SETTINGS.txt file and run seiscmicpi_setup.pl script.
The serial port (e.g. /dev/ttyS0) must have the correct permissions (e.g. readable by user sysop) in order to start acquisition.