Package to fetch data from the CRISiSLab seismometer network
Project description
Pysislab - CRISiSLab Seismometer Network Client
Description
This is a client for CRISiSLab's Seismometer Network API using WebSockets and MessagePack.
Installation
$ pip install pysislab
Usage
To list all stations (optionally in CSV format)
$ pysislab --list --csv
To watch live data in real time for a particular seismometer
$ pysislab --tail <seismometer id>
Or the equivalent in Python
from pysislab import get_sensors
for sensor in get_sensors():
print(
sensor.id,
sensor.secondary_id,
sensor.type,
sensor.publicLocation,
sensor.online,
)
from pysislab import SensorTail
for datagram in SensorTail(22):
print(datagram.channel, datagram.timestamp, datagram.data)
For more examples, see the CLI implementation.
See the models file for the full list of attributes available on each class.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysislab-0.0.7.tar.gz
(5.4 kB
view hashes)