Skip to main content

This is used for analyzing the obtain from IoT AirQo devices

Project description

AirQloud Analysis

A Python library for analyzing data from IoT AirQo devices to provide insights on sensor health, device uptime, data completeness, and more.

Installation

pip install airqloudanalysis

Features

  • Sensor health analysis
  • Device uptime monitoring
  • Data completeness metrics
  • Battery performance analysis
  • Support for device-specific and AirQloud-level analysis

Usage

import airqloudanalysis as aqa

# Initialize with your API token
token = "your_api_token"
airQlouds = ["Kampala", "Nairobi"]
start = "2023-01-01"
end = "2023-01-31"

# Get device data
df = aqa.airqloudlist_api(token, airQlouds)

# Process data for the specified date range
processed_data = aqa.process_data(df, start, end)

# Calculate uptime
uptime_data = aqa.calculate_uptime(processed_data, start, end)

# Create summary
device_time_diff = aqa.timeLastPost(df)
summary = aqa.create_summary_df(df, device_time_diff, uptime_data)

# Generate reports
summary_report = aqa.export_summary_csv_api(summary, airQlouds, [])

Noticable changes to this library

Library version change The library version holds various changes to the following functions;

Calculate_uptime

Altered to use start and end date to fill in the null while computing the collective uptime and now takes in two extra parameters: start and end date Function call is calculate_uptime(dataframe df, string start, string end)

Online devices list

This provides a variation of the timeLastPost function providing a list of online devices, their device numbers, time difference, and the airqlouds they belong to Function call is onlineDeviceList(dataframe df):

Offline devices list

This provides a variation of the timeLastPost function providing a list of offline devices, their device numbers, time difference, and the airqlouds they belong to Function call is offlineDeviceList(dataframe df):

Full Documentation

For complete documentation and examples, please visit: https://docs.google.com/document/d/1Dc4zQceYjoXDwmHKy99hp7x49kq8LtoSAXBA-1HMwA4/edit?usp=sharing

The repository for this library https://github.com/OlukaGibson/deviceAnalysisLibrary.git

License

This project is licensed under the terms of the license included in the repository.

Author

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

airqloudanalysis-0.0.730.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

airqloudanalysis-0.0.730-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file airqloudanalysis-0.0.730.tar.gz.

File metadata

  • Download URL: airqloudanalysis-0.0.730.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for airqloudanalysis-0.0.730.tar.gz
Algorithm Hash digest
SHA256 db481bec70c949852e39bb3345bab73f30335edbf26fab4483184de1143f58da
MD5 b29f1f5330f1bdab127cdfa2e7733fab
BLAKE2b-256 3b5137b736b2f264866834c9c1845c2250f41c1e0d9b544fbb9a174a71c720e7

See more details on using hashes here.

File details

Details for the file airqloudanalysis-0.0.730-py3-none-any.whl.

File metadata

File hashes

Hashes for airqloudanalysis-0.0.730-py3-none-any.whl
Algorithm Hash digest
SHA256 51f66cf614a237e8291ac5453dc6682a7ecfdbe64de45157aecf758e160f1fde
MD5 c9afc499e5714c73c13566fdc96251ce
BLAKE2b-256 51a04d580e9d4fbe529603fa4ca04e08957bf43b51409f4f6763ebcb330dbe7d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page