Skip to main content

SEP005 24SEA io influxdb

Basic package to import data collected from the 24SEA DF2.0 influx-db compliant with SDyPy format for timeseries as proposed in SEP005.

Installation

Important prerequisite

As written in the documentation of the python influx-db client, it is recommended to use ciso8601 with client for parsing dates. ciso8601 is much faster than built-in Python datetime. Since it’s written as a C module the best way is build it from sources:

Easiest way to install is through conda : conda install -c conda-forge/label/cf202003 ciso8601

Client configuration

The influxdb client is best configured using the a configuration file. For 24SEA application this can be done using the project’s {project_name}_postprocessing.ini configuration file.

[influx2]
url=http://influx01.24sea.local:8086/
org=24sea
token=my-token
verify_ssl=False
bucket=metrics

Using the package

The key Class is Influx24SEAreader and its ‘.get()’ statement.

import datetime
from pytz import utc
from sep005_io_24sea_influxdb import Influx24SEAreader

ini_files = # Add path to {project_name}_postprocessing.ini file
client = Influx24SEAreader().from_config_file(config_file=ini_file)

dt = datetime.datetime(2024,11,15,14,tzinfo=utc)
location = 'WTG001'

with client:
    client.get(
        start=dt,
        location='WTG01', # Location_id as in influxdb database
        sensor_type='ACC', # type as specified in the influxdb
    )

Once collected the data is stored inside the client object. E.g. accessible through client.df. However, it can be directly be exported to sep005 using : client.to_sep005()

Acknowledgements

Metadata

Release files for sep005-io-24sea-influxdb 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sep005-io-24sea-influxdb 0.0.2
File Size Uploaded
sep005_io_24sea_influxdb-0.0.2.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sep005-io-24sea-influxdb 0.0.2
File Interpreter ABI Platform
sep005_io_24sea_influxdb-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / sep005_io_24sea_influxdb-0.0.2.tar.gz

Download URL sep005_io_24sea_influxdb-0.0.2.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
853c2122b501f6b5977de6f82bc9aeced2d17cc853b820998231078cd967c116
BLAKE2b-256 checksum
How to use checksums
3ea903a5d7635caf14c4d564c4d20e14a7a0bd2a69a43251899b73f560618d50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / sep005_io_24sea_influxdb-0.0.2-py3-none-any.whl

Download URL sep005_io_24sea_influxdb-0.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
068559ae31c69a30446348a3c1e4ad152336b3c1e662f61c2032f49a30945906
BLAKE2b-256 checksum
How to use checksums
be75e1601b4bf4d4f7d802b51fb1b11ac2304b30363da5ae0b7f741df401a771
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page