Fetch and process InfluxDB data from PAROS sensors
Project description
fetch-paros-data
fetch-paros-data is a Python library for querying and processing environmental sensor data from an InfluxDB instance, specifically designed for use with PAROS box deployments.
Installation
Install the latest release from PyPI:
pip install fetch-paros-data
## Usage
import os
import numpy as np
from fetch_paros_data import query_influx_data, save_data
# Path to your InfluxDB credentials file
creds_path = os.path.expanduser("~/Desktop/paros-tools/influx-creds.pickle")
# Where to save output
output_path = os.path.expanduser("~/Desktop/DroneData_test.csv")
# Fetch sensor data
data = query_influx_data(
start_time="2025-02-25T17:30:00",
end_time="2025-02-25T18:15:00",
box_id="parosD",
sensor_id="142180",
creds=creds_path
)
# Convert to NumPy arrays if needed
data_arrays = {key: df.values for key, df in data.items()}
# Print shape and a preview of each result
for key, arr in data_arrays.items():
print(f"Data for {key} has shape {arr.shape}")
for key, df in data.items():
print(f"First 100 rows for {key}:")
print(df.head(100))
print("\n")
# Save to file
save_data(data, output_path)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fetch_paros_data-0.1.2.tar.gz.
File metadata
- Download URL: fetch_paros_data-0.1.2.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68dc024fcf25e198410ebe02d66c87559cbf11bc8690139a123b369a04151717
|
|
| MD5 |
eb6375a10656f70a5d0e17f08ee5caac
|
|
| BLAKE2b-256 |
36c816db496aeb8db1c3e94a1b37f6f5179ea56fc15f9626a856adaa230244c9
|
File details
Details for the file fetch_paros_data-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fetch_paros_data-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3053d3ecc98d6b7a11ae563f402a51d21a256928f8bae5867b8802d9f45be027
|
|
| MD5 |
15e7515597a908ea0f102f00958dee2e
|
|
| BLAKE2b-256 |
bdfa4086db70c8fcfe0fa3b3b082277c32b3fabd0c444eea73879328f724ccb9
|