This repository was archived by the owner on May 10, 2023. It is now read-only.
Open
Conversation
gempa-jabe
reviewed
Dec 21, 2020
| #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"; |
Member
There was a problem hiding this comment.
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.
gempa-jabe
reviewed
Dec 21, 2020
| print "$sc3_key\n"; | ||
| `seiscomp update-config`; | ||
| # Make plugin configuration file | ||
| $plugin_cfg = "/home/sysop/seiscomp3/var/lib/seedlink/$net.$station.ini"; |
Member
There was a problem hiding this comment.
See above about $SEISCOMP_ROOT.
Author
There was a problem hiding this comment.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.