Skip to content

Quickstart ​

This page takes you from nothing to a running Sensora instance with demo data. Then you send one reading with curl and see it in the dashboard.

What you need ​

  • Docker with the compose plugin. Check it with docker compose version.
  • git, to download the source.
  • Port 8090 free on your computer. To use another port, see Change the port.
  • About 300 MB of disk space for the demo data.

You do not need Bun, Node or a database on your computer. Everything runs in containers.

Start Sensora with the demo data ​

  1. Download the source and start the stack:

    bash
    git clone https://github.com/sensoraiot/sensora.git
    cd sensora
    docker compose -f deploy/docker-compose.yml --profile demo up -d --build

    The first run builds the API image and the dashboard image, and downloads the database image (PostgreSQL 16) and the MQTT broker image (NanoMQ). Wait until the command returns.

  2. Check that the server answers:

    bash
    curl http://localhost:8090/health
    json
    {"status":"ok","time":"2026-11-19T19:30:00.000Z"}

    time is the clock of the server. If you get no answer, the web server is still starting. Wait a few seconds and try again.

  3. Open http://localhost:8090 in your browser.

The demo data is written in the background. This takes about half a minute on a server and can take longer on a slow computer. If the Devices list is empty, wait and reload the page. To see when it is done, read the log of the seed. Its last line starts with Seeded 261 devices.

bash
docker compose -f deploy/docker-compose.yml logs seed

There is no sign-in. Sensora has no user accounts, and the default setup has no password. Anyone who can reach port 8090 can use the dashboard and the API. Read Security before you put an instance on a network you do not control.

The Devices list, grouped by site, with the status filters above the list

What the demo contains ​

The demo profile fills a new instance with a project named north-field:

WhatContent
Devices261 devices in four sites, A to D. 13 of them have never sent anything and show as Provisioned. 5 are offline from the start. 9 report a low battery.
Readings7 days of readings, one every 10 minutes, for each device that has sent data. About 750,000 readings in total.
Templatesesp32-soil, esp32-sht41, valve-ctrl-mqtt and esp32-scd41
Integrationsfarm-webhook (an HTTP webhook) and mqtt-main (MQTT), each with example deliveries in its inbox
DashboardsGreenhouse climate and Ingestion health
RulesOnly the built-in Store telemetry rule, which every instance has

Nothing sends new data for the demo devices. A device counts as offline when it is silent for longer than its template allows, which is 5, 15 or 60 minutes for the demo templates. So within an hour of the start, the demo devices show as Offline. This is expected. The week of readings stays. Offline devices explains the rule.

The demo is written only into an empty instance. If you run the up command again later, your data stays as it is.

Get live data with the simulator ​

The simulator sends readings through the same path as a real device. Run it in the app container:

bash
docker compose -f deploy/docker-compose.yml exec app bun run simulate

It creates three simulated devices named sim-01 to sim-03. It sends a temperature and a humidity reading for each one every 5 seconds for 60 seconds, then it stops. It does not send data for the 261 demo devices. The dashboard marks these devices and their readings as Simulated.

Command line lists the options, for example to run until you press Ctrl-C.

Send one reading with curl ​

A device needs an id (device_uid) and a secret before it can send. You get both when you create the device.

  1. Create a device:

    bash
    curl -X POST http://localhost:8090/api/devices \
      -H 'Content-Type: application/json' \
      -d '{"name": "my-first-device"}'
    json
    {"device_uid":"dev_3833ce1e","secret":"sec_fd1c8e78b4da9670089a8de97f5731f49218dc35daab5557"}

    Copy both values. The secret is shown only this once. Sensora stores a hash of it.

    You can also do this in the dashboard: open Devices, select Connect device, enter a name and select Create device.

  2. Send a reading. Replace the uid and the secret with your own values:

    bash
    curl -X POST http://localhost:8090/ingest \
      -H 'Content-Type: application/json' \
      -d '{"uid":"dev_3833ce1e","secret":"sec_fd1c8e78b4da9670089a8de97f5731f49218dc35daab5557","temperature":21.7,"humidity":45}'
    json
    {"ok":true,"device_uid":"dev_3833ce1e","stored":2}

    stored is the number of values that Sensora saved. Here it is 2, one for temperature and one for humidity.

  3. Open Devices in the dashboard, search for my-first-device and open it. The device is Online. Latest readings shows the two values and Recent messages shows the request you sent.

The page of a device named office-climate that received five readings over HTTP

Send data over HTTP describes everything this endpoint accepts and every error it returns.

Start without the demo ​

Leave out --profile demo:

bash
docker compose -f deploy/docker-compose.yml up -d --build

The instance starts with no devices, templates, integrations or dashboards. The built-in Store telemetry rule is there, so readings are saved from the first request.

Do not run the seed by hand on an instance you use

The command bun run seed, run by hand in the app container, resets the instance to the demo. It deletes all devices, readings, templates, integrations and dashboards. See Command line.

Stop and remove ​

Stop the containers and keep the data:

bash
docker compose -f deploy/docker-compose.yml --profile demo down

Start again later, with the same data:

bash
docker compose -f deploy/docker-compose.yml up -d

Remove the containers and delete all data:

bash
docker compose -f deploy/docker-compose.yml --profile demo down -v

-v deletes the volumes that hold the database and the uploaded firmware images. You cannot undo this.

Keep --profile demo in both down commands. It makes Docker remove the finished seed container too, and it does no harm when you started without the demo.

Change the port ​

The stack publishes one port, 8090. The database, the broker and the API are not reachable from outside Docker.

To use another port, create the file deploy/.env with this line and run the up command again:

ini
WEB_PORT=9000

Next steps ​

Sensora is open source under the Apache 2.0 license. ·