Skip to main content

Standalone UCM

Preconditions​

Creating Device on Site​

  • Find the "Standalone Device" section at the bottom left of your site page.
Standalone Device section
  • Press the "Add New" button.

Uploading Blueprint​

You should upload blueprint manifest file to configure communication between UCM and Cloud.

Open Blueprint IDE
  • Create new blueprint.
Create new blueprint button Create new blueprint form Create new manifest
  • Delete unnecessary firmware.lua if you want.
Create new firmware
  • Select your device by UCM id.
Select device button Select device
  • Upload the Blueprint.
Upload the blueprint

If you need more information and options please refer the Upload Blueprint section from one of the previous tutorials.

Starting UCM​

note

We use docker to run example UCM here. To continue make sure you have got Docker installed and running.

The example UCM does not connect to any device. It gets the weather information and sends the temperature as telemetry. To start the UCM do the following:

  • Press "Generate" in "Standalone Config" section on the page of your new Standalone Device.
Generate standalone config
  • Copy the generated config and store it inside environment variable with a name ENAPTER_VUCM_BLOB. Like this: export ENAPTER_VUCM_BLOB="eyJ1Y..."
  • Also you need to define WTTR_IN_LOCATION environment variable. You can try to use any city name like Chicago or Paris.
  • To start checking the weather in Saerbeck run: WTTR_IN_LOCATION='Saerbeck' ./docker_run.sh.

Now you should see on the device page that the device becomes online. Open the Dashboard to observe temperature in the selected location.

Implementing Your Own Standalone UCM​

You should become familiar with main blueprints' concepts (manifest, telemetry, properties etc). You can learn it in the tutorial or in the documentation.

Now you can write a UCM script using Lua or Python.

Lua​

To be released soon.

Python​

You should use Enapter Python SDK. Please refer to the documentation.

All Rights Reserved © 2024 Enapter AG.