Skip to content

Quick start

This exercise takes you from zero: create a workspace, register one device, send data over MQTT, store it with a rule, and show it on a dashboard. You need a Celestian account, the MQTT broker address from your administrator, and mosquitto_pub (or Python/Node.js, see the code tabs).

  1. Sign in or sign up

    Open the Celestian address and choose Sign up (if registration is open) or Sign in. Verify your e-mail address if asked. If registration is closed, ask your administrator for an invitation (see Invitations).

    The Celestian sign-in page.
  2. Create a workspace

    On the Workspaces page, choose Create workspace. Fill in Name (for example Cold Storage Nusantara) and Route (for example cold-storage). The route is used in MQTT topics and cannot be changed later.

    The workspace list with one sample workspace.
  3. Create a channel

    Menu Channels → Create channel. Enter the name Warehouse Telemetry and the route warehouse-telemetry.

    The channel list with Warehouse Telemetry and Device Control.
  4. Create a device and save its key

    Menu Devices → Create device. Enter the name Freezer Room A1 Sensor and the Serial SN-A1. After saving, Celestian shows the device key only once. Copy and store it. The device ID (a UUID) is visible on the detail page.

  5. Connect the device to the channel

    Open the channel detail, the Connections section, choose Connect, pick the device, and tick the Publish type. Without a publish connection the broker drops a device that tries to send.

  6. Add a storage rule

    In the channel detail (the Settings section), the Storage card shows the Not stored flag. Choose the Store in Internal DB (SenML) button. The rule it creates is Channel Subscriber → Bypass → Internal DB (SenML).

  7. Send data from the device

    Terminal window
    DEV=<device-id>
    mosquitto_pub -h <broker-address> -p 1883 -V mqttv311 -q 1 \
    -i "$DEV" -u "$DEV" -P '<device-key>' \
    -t 'm/cold-storage/c/warehouse-telemetry/room-a1' \
    -m '[{"n":"temp_inlet","u":"Cel","v":22.4},{"n":"humidity","u":"%RH","v":48.3},{"n":"door_open","vb":false}]'

    The Credentials tab on the device page generates the same examples with the ID and topic already filled in.

  8. See the messages in Messages

    Open Messages, pick the channel, and turn on Live to watch messages arrive instantly. Stored messages appear in the table.

    The Messages page with a table of stored SenML messages.
    Stored messages in Messages.
  9. Create a dashboard

    Menu Dashboards → Create dashboard, then Edit mode → Add widget (for example Line Chart). Pick the channel, the value name temp_inlet, and a time window.

    The Warehouse Monitoring dashboard with cards, a line chart, and a gauge.
    The end result: a monitoring dashboard.