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 details)
Built Distribution
File details
Details for the file sfti-net-0.0.1.tar.gz
.
File metadata
- Download URL: sfti-net-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce27db51d0644a3f874cc8df3cd0c5a1879387e834aceb7822d6b8fd69498407 |
|
MD5 | 970bf715c0da23fb3dc020e0798a5587 |
|
BLAKE2b-256 | ceee88596a805840948cf1a237ae9cba4b8de88c7d4c2f504e26d202d7128ce7 |
File details
Details for the file sfti_net-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sfti_net-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a742015ce06280246d62cff6f405ceb06c8cd6c6f2cc451a9de223d5dfb3c83 |
|
MD5 | e192d3112105940677b667d415ed0aef |
|
BLAKE2b-256 | c22b418b20bd69ee93f3b0149ed2b87a457de307e9957bc8c31dfc54da56c736 |