Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

SeismicPi Plugin #275

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

SeismicPi Plugin #275

wants to merge 8 commits into from

Conversation

kbouk
Copy link

@kbouk kbouk commented Dec 15, 2020

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.

#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";
Copy link
Member

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";
Copy link
Member

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.

Copy link
Author

@kbouk kbouk Dec 21, 2020

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants