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
- Query link lab influx data
- 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]
- [
The result from influx_python_interface.ipynb: Part 2 / directory show_device_status would be as below.
Awair Omni | LightLevel |
---|---|
Temp Humidity Sensor | LoRa Temp Humidity Sensor |
---|---|
Door Sensor | Setra Power Battalion 48 |
---|---|