Package to send data in the SFTI Biotechnology Spearhead project
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sfti-net-0.0.1.tar.gz
(4.4 kB
view hashes)