Device Sensor Quickstart

This quickstart is a simple demonstration to provide access to devices associated with a basic Solution while exercising all the available endpoints. After devices are created and activated, you will see information about each device in the Available Devices section.

This application is written as a basic HTML/JavaScript app with Murano Solution event handlers, routes, modules, and static assets. This example is intended to be minimal, with only a few endpoints and rendering requirements.

Using This Example

Clone this repository.

git clone git@github.com:exosite/device-sensor-example.git
cd device-sensor-example

To deploy this application, first Create a Solution in Exosite Murano then Create a Product in Exosite Murano.

Next, install the Murano CLI tool then initialize the project with your Solution ID and Product ID using the following commands (where XXXXXX is your respective identifier):

murano config business.id XXXXXX
murano config solution.id XXXXXX
murano config product.id XXXXXX
murano -V syncup --all
murano assign set

Navigate to your Solution web application at an address similar to: https://mysolution.apps.exosite.io

Information about the available API endpoints is accessible at the /docs URL of your deployed solution (e.g., https://mysolution.apps.exosite.io/docs).

When you first navigate to the newly deployed solution, you will not have any devices set up.

Device Sensor Initial

Click "Create Device" and add a new device with serial number 0001.

Device Sensor Create New Device

The device will be added, but you will need to activate it. Use your terminal to copy and paste the code that is displayed in the page.

Device Sensor Activate Device

After you activate, refresh your page, and you will see input fields for your device.

Device Sensor Activated

When you enter values into these fields, the data is submitted to your device in the platform.

Device Sensor Input

You can view the most recent values submitted to your device using the Product page in Exosite Murano.

Device Sensor Values