code for seismic datalogging on a raspberry pi