This tutorial explains how to describe a device with Vorto in just a few minutes. The device we are going to create will have the following capabilities:
- Measuring the Outdoor temperature
- Measuring the Indoor temperature
- Reading the Geo Location of these measurements.
Let's get started.
-
Log in to Vorto Repository with your BoschID or Github Account
-
Select Create model
-
Choose Information Model and confirm with Next
-
Specify the model ID and confirm with Next
- Select the namespace from the dropdown
- Input the name, e.g. MyWeatherStation
- Input the version, e.g. 1.0.0
-
Choose Vorto abstraction, that provide you with a list of abstracted capabilities.
-
Select Temperature from the drop-down list, specify the property name indoorTemperature and confirm with Add
-
Select Temperature from the drop-down list, specify the property name outdoorTemperature and confirm with Add
-
Select Location from the drop-down list, specify the property name location and confirm with Add
-
Verify your selected properties and click Create. This creates the model and opens its details page:
Your model should look like this:
vortolang 1.0
namespace org.mycompany
version 1.0.0
displayname "MyWeatherStation"
description "InformationModel for MyWeatherStation"
using org.eclipse.vorto.Temperature;1.0.0
using org.eclipse.vorto.Location;1.0.0
infomodel MyWeatherStation {
functionblocks {
mandatory indoorTemperature as Temperature
mandatory outdoorTemperature as Temperature
mandatory location as Location
}
}
Congrats! You have just created an Information Model for a device. Check out the What's next section below that explains how you can further use the model to integrate the device with the Bosch IoT Suite.
- Generate Python Code that integrates the device with the Bosch IoT Suite.
- Visualize device data in a Node.js web application.
- Generate an OpenAPI Spec for your device
- Describe a more complex device with Vorto
In case you're having difficulties or facing any issues, feel free to create a new question on StackOverflow and we'll answer it as soon as possible!
Please make sure to use eclipseiot
as one of the tags.