The Thingy:52 IOTA Data Marketplace Publisher (Thingy IDMP Publisher) allows for connecting to the Nordic Semiconductor Thingy:52 throug Web Bluetooth, to collect sensor readings. The sensor data can then be sent to the IOTA Data Marketplace (IDMP). This is all done from within the web browser.
The Thingy IDMP Publisher was developed by a group of students from NTNU as part of their bachelor project.
To get this application running for debug or production, you need:
- node
- npm
Clone the repository and navigate to the project directory in the terminal. To get a dev install running:
- Run
npm install
- Run
npm run dev
- In a web browser, open http://loalhost:8000/
This application currently only work in Google Chorme (or Chromium)
version 56 or above because of the requirement for Web
Bluetooth. Make sure to enable the 'Experimental Web Platform
Features', by going to chrome://flags/#enable-experimental-web-platform-features
.
To publish data to the IDMP, and IDMP device is needed, and creating this device requires an account on the IDMP dashboard. First, create an account, and then use one of the following methods to add an IDMP device.
To simplify this process, we have included a small tool for creating devices.
- Click the Add Thingy button in the application.
- Log in to the IDMP dashboard using your Google account.
- Copy
Your API Key
andYour User ID
from the IDMP intoAPI key
andOwner
fields, respectivly. - Fill in the rest of the fields, and select what channels to add.
- Click Save Changes, and wait for the process to complete.
The selected Device ID, and a Secret Key will be filled out automatically in the app.
- Log into the IDMP dashboard as described above.
- Click the New Device card, and fill in the relevant information. The Thingy IDMP Publisher currently supports the following fields:
Field ID | Field Name | Field Unit |
---|---|---|
temperature | Temperature | C |
humidity | Humidity | % |
pressure | Pressure | hPa |
co2 | CO2 | ppm |
voc | VOC | ppb |
- Submit the data
- Download the Publish Script
- Unpack the zip, and open index.js
- Copy the
uuid
andsecretKey
variable values into theDevice ID
andSecret Key
fields of the application, respectivly.