HVAC Reference Application Tutorial
This HVAC Reference Application is an interactive tutorial that allows users to learn the core features of Murano from both a hardware and software perspective. You will have the option to prototype or simulate the implementation of an HVAC monitoring system with simple controls using the Murano platform.
This tutorial is designed to be flexible based the hardware, software, and tools you have available. If you have one of the supported hardware items, you will be able to create a full IoT solution with working hardware. If you do not have any of the supported hardware available, we have created a Python based simulator that will help you get started.
SeeedStudio BeagleBone Green Wireless
SeeedStudio BeagleBone Green (BBG) is a low-cost, open-source, community-supported development platform for developers and hobbyists. It is a joint effort by BeagleBoard.org and Seeed Studio. It is based on the classical open-source hardware design of BeagleBone Black and has been developed into this differentiated version. The BBG includes two Grove connectors, making it easier to connect to the large family of Grove sensors. The onboard HDMI is removed to make room for these Grove connectors.
TI SimpleLink™ Wi-Fi® and Internet-of-Things Solution
The CC3220 and CC3200 SimpleLink™ devices are complete platform solutions including software, sample applications, tools, user and programming guides, reference designs, and the TI E2E™ support community. These devices are available in QFN packages that are easy to lay out.
Murano CLI is a command-line utility for working with Murano. Think of it as a way to simplify and automate repetitious tasks for those who are comfortable with the command-line interface.
All code written for the simulator in this tutorial has been designed to work with Python 2 and 3, which can be downloaded from the Python website.
You will need a web browser for the initial steps in this tutorial.
In this section you will walk through the process of setting up your account with Murano and preparing to run the simulator or actual hardware.
Create an Account
To get started with this tutorial, you will need to create an Exosite account using your web browser of choice.
If you do not have an Exosite account, you can sign up here (https://exosite.com/signup/).
Once you have signed up, an email confirmation of your new Murano account will be sent to you. Follow the instructions provided in the email, and you will be all set.
Manage Your Business
Once you have an active account and have logged in, you can navigate to the following URL to see your newly created business https://www.exosite.io/business/memberships.
Click on your business to access your business page.
Or, click the "+ NEW BUSINESS" button to create a new business.
Install Murano CLI
Exosite offers a command-line tool that allows you to efficiently work with the project in this tutorial. Even though everything in this tutorial can be accomplished using a Web UI, feel free to install Murano CLI.
MuranoCLI interacts with Murano and makes different tasks easier. MuranoCLI makes it easy to deploy code to a project, import product definitions, set up endpoints and APIs, and more. MuranoCLI works around the idea of syncing, much like `rsync`. Your project files are synced up (or down) from Murano.
Murano CLI is a Ruby-based command-line interface. Murano CLI will be used for most actions throughout the rest of this tutorial.
Check to see if Ruby is installed first by opening up a terminal window and typing the following command:
Note: Always copy and paste what comes after the $.
$ which gem
If you see something like
/usr/bin/gem, then Ruby is already installed.
If you do not have Ruby installed, the official Ruby docs will help you get it installed: [https://www.ruby-lang.org/en/documentation/installation/](https://www.ruby-lang.org/en/documentation/installation/)
Once Ruby is installed, install Murano CLI by running this command:
$ sudo gem install MuranoCLI
If prompted, please enter your local computer password.
Download the HVAC code
This tutorial uses a common codebase that includes a web application and specifications for the hardware. The code has been written to be flexible and works with multiple hardware platforms or the Python simulator.
Create a Solution
You will need a place to deploy the HVAC solution code.
To create a solution using the Web UI:
From the Solutions tab (https://www.exosite.io/business/solutions), click "+ NEW SOLUTION."
Select Start from scratch and click the "ADD" button.
Once you have created a solution, you will need to find the Solution ID.
In Murano select Solutions.
Select the solution you just created.
Copy the Solution ID on this page.
Create an Application
To create an application using the Murano CLI, run:
$ murano application create <name> --save
This command will return the ID of your new application. It was also save the ID to a new file,
.murano/config, so that Murano CLI will use this ID automatically when run again.
Create a Product
Next, you will create a product. The product you create is the virtual representation of the BBG’s physical hardware and sensors that will send data to the Murano platform.
To create a new product using the Web UI:
Navigate to the following URL: https://www.exosite.io/business/products
Click on "+ NEW PRODUCT."
Name your product. Note: your product name cannot contain any capital letters.
Open the Choose starting point dropdown, select Start from scratch, and click the "ADD" button. In the next step you can use code to configure your product.
Before continuing, you will need to find the ID of the product you created.
In Murano select Products.
Select the product you just created.
Copy the Product ID on this page.
To create a new product using the Murano CLI, run:
$ murano product create <name> --save
This command will return the ID of your product for the next step, and it will save the ID to
Next, execute the following to set the product definition for this example as defined in the
$ murano syncup --specs
This command sets up all of the data aliases used in this example. You can now see them by going to https://www.exosite.io/business/products and clicking the DEFINITION tab. Many of the aliases are used by Gateway Engine. Notice, the aliases like "ambient_temperature", "desired_temperature", and "heat_on". These are all the different resources used for this HVAC tutorial.
Connect Product to Solution
You will need to link your product with your solution. Linking allows your solution and product to communicate with one another.
In your Murano solution, click on the SERVICES tab.
Select the settings icon.
Select the product(s) you want to include in the solution.
To connect a product with a solution using the Murano CLI:
$ murano assign set
Sync Your Solution
Before moving on to hardware, all of the configuration needs to be synced up to Murano.
$ murano syncup
What is happening when you sync code? Murano CLI looks at the directory structure of your local repository and syncs the appropriate files and configurations directly to your solution in Murano. Endpoints, event handles, static files, and modules are synced. If you make changes locally, a syncup command will ensure Murano matches your local changes. If you make changes using the Murano interface, a syncdown will ensure your local repository matches Murano.
At this point your product and solution are configured and ready to start receiving data from your hardware of choice or the simulator. You can see the solution interface at this point by clicking the DOMAIN link on the Solutions page.
If you have hardware available, you can walk through installing required software on your hardware, connecting the hardware and its sensors to the Murano platform, and connecting the sensor data to a Murano solution.
If you do not have hardware available, you can walk through running the simulator. This should provide you with an easy starting point for connecting devices and creating solutions to visualize and interpret your device's data.