Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dltcollab/airbox-with-iota

Manage LASS (Location Aware Sensing System) records with IOTA/Tangle
https://github.com/dltcollab/airbox-with-iota

arm iot iota lass sensor-data tangle tangleid

Last synced: 4 days ago
JSON representation

Manage LASS (Location Aware Sensing System) records with IOTA/Tangle

Awesome Lists containing this project

README

        

# Airbox-with-IOTA

Integrate [LASS](https://pm25.lass-net.org/) (Location Aware Sensing System) with [TangleID](https://github.com/TangleID) and manage sensor data.




## Getting Started
Follow the [tutorial](https://imgur.com/cksjNks) to build your devices.

### 1. Hardware
* Ameba RTL8195AM
* SHT31 or BME280
* Plantower PMS3003 (G3)
* OLED SSD1306

### 2. Wiring Diagram
* PMS3003 (G3)

Ameba|PMS3003
-|-
5V|pin1
GND|pin2
D1(TX)|pin4
D0(RX)|pin5



* SHT31/BME280 and OLED

Ameba|SHT31/BME280|OLED
-|-|-
GND|GND|GND
3.3V|VIN|VCC
SDA|SDA|SDA
SCL|SCL|SCL
3.3V|SD0 (BME280 only)



### 3. Update DAP Firmware (for Windows 10 users)
[How To Update DAP Firmware?](https://www.amebaiot.com/en/change-dap-firmware/)

### 4. Download and install the mbed Windows serial port driver
[Windows serial configuration](https://os.mbed.com/handbook/Windows-serial-configuration#1-download-the-mbed-windows-serial-port)

### 5. Set up Environment
[Ameba Arduino: Getting Started With RTL8195](https://www.amebaiot.com/en/ameba-arduino-getting-started/)

### 6. Update Program To Ameba
* Copy `airbox-with-iota/lib/` to `Documents\Arduino\library`



* Input your wifi SSID, wifi password, and location in `airbox-with-iota/main/config.h`



* Update program



* Keep your uuid



* Records
Search `Tag` (`uuid` + `'C'`) on [TheTangle(DEVNET)](https://devnet.thetangle.org)
e.g.
uuid : LASSPBUAUAXABBMBOBAB
Tag : LASSPBUAUAXABBMBOBABC
https://devnet.thetangle.org/tag/LASSPBUAUAXABBMBOBABC

## APIs
* Python 3.6.5
* `python airbox-with-iota/api/test.py`

### `get_uuid_list()`
Search for uuids of all available airboxes.
* Input: none ()
* Return: uuid list (list)

### `get_specific_sensor_all_data()`
Search for all sensor data by an uuid.
* Input: uuid (string)
* Return: sensor data (json)

### `get_specific_sensor_latest_data()`
Search for latest sensor data by an uuid.
* Input: uuid (string)
* Return: sensor data (json)

### `get_specific_sensor_history_data()`
Search for sensor data in one week by an uuid.
* Input: uuid (string)
* Return: sensor data (json)

### `get_specific_sensor_date_data()`
Search for latest sensor data by an uuid and a date.
* Input: uuid (string), yyyy-mm-dd (string)
* Return: sensor data (json)

### `get_all_sensor_latest_data()`
Search for all latest sensor data of each airbox.
* Input: none ()
* Return: sensor data (json)

## References
* [LASS PM2.5 OPEN DATA PORTAL](https://pm25.lass-net.org/)
* [LASS/Airbox and IOTA Integration](https://hackmd.io/s/SJnlK_8yM)
* [空氣盒子教學](https://hackmd.io/s/H1HxM-2hz)
* [Hack4u 87Live 課程教學](https://paper.dropbox.com/doc/HACK4U4-Hack4u-87Live-TRmqFxXLJHXrKBo4kiR6O)