Device Sensor Quickstart

This quickstart is a simple demonstration to provide access to devices associated with a basic application 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 application 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 an Application in Exosite Murano then Create a Product.

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

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

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

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

When you first navigate to the newly deployed application, 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