Skip to content

uva-linklab/uva-linklab-influx-operation

Repository files navigation

uva-linklab-influx-operation

For now, this program handles the linklab.influx operation in Python with the following implementations

  • Part1: A python interface to access Living Link Lab data
  • Part2: A Python interface to check device_status in the Link Lab according to certain device (or called sensor) type

Please refer Link Lab Cloud to have more information about how Link Lab metadata is designed and works, and refer linklab.metadata to get a list of existing registered devices in linklab metadata

Subsequently, please refer influx_python_interface.ipynb to have more information about how I implemented the program in Python to

  1. Query link lab influx data
  2. Check certain devices' [online/offline] status

Also, the Python file program is implemented in show_device_status directory to specifiaclly describe how to check [online/offline] status from each of certain devices' type. Currently, the following device type has been implemented.

  • Awair Omni
    • [Humidity_%, Temperature_°C, awair_score, pm2.5_μg/m3, co2_ppm, voc_ppb, battery_%]
    • [Rate: 10sec]
  • LightLevel
    • [Illumination_lx, rssi]
    • [Rate: 30min]
  • Temp Humidity Sensor (TempHumidity)
    • [Humidity_%, Temperature_°C]
    • [Rate: 15min]
  • LoRa Temp Humidity Sensor
    • [Humidity_%, Temperature_°C]
    • [Rate: 5min]
  • Door Sensor
    • [rssi, Contact]
    • [Rate: 20min]
  • Setra Power Battalion 48
    • [voltage_v]
    • [Rate: 1min]
  • LoRa Water Ultrasonic Sensor
    • [voltage_v,number_int,altitude_m]
    • [Rate: 10min]
  • LoRa Water Pressure Sensor
    • [voltage_v,Temperature_°C,pressure_hPa]
    • [Rate: 10min]
2nd sensor temp humid 2nd senseeeor temp humid

The result from influx_python_interface.ipynb: Part 2 / directory show_device_status would be as below.

Awair Omni LightLevel
截圖 2023-11-24 上午9 39 22 截圖 2023-11-24 上午9 46 30
截圖 2023-11-24 上午9 54 20 截圖 2023-11-24 上午10 00 45
截圖 2023-11-24 上午9 54 35 截圖 2023-11-24 上午10 00 59
Temp Humidity Sensor LoRa Temp Humidity Sensor
截圖 2023-11-24 上午9 46 41 截圖 2023-11-24 上午9 49 37
截圖 2023-11-24 上午9 58 08 截圖 2023-11-24 上午9 57 33
截圖 2023-11-21 上午11 51 59
Door Sensor Setra Power Battalion 48
截圖 2023-11-24 上午9 50 43 截圖 2023-11-24 上午9 50 56
截圖 2023-11-24 上午9 59 22 截圖 2023-11-24 上午10 00 06
截圖 2023-11-24 上午9 59 30

About

This project handles the linklab.influx operation in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published