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
Download the source and start the stack:
bashgit clone https://github.com/sensoraiot/sensora.git cd sensora docker compose -f deploy/docker-compose.yml --profile demo up -d --buildThe 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.
Check that the server answers:
bashcurl http://localhost:8090/healthjson{"status":"ok","time":"2026-11-19T19:30:00.000Z"}timeis the clock of the server. If you get no answer, the web server is still starting. Wait a few seconds and try again.Open
http://localhost:8090in 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.
docker compose -f deploy/docker-compose.yml logs seedThere 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.
What the demo contains
The demo profile fills a new instance with a project named north-field:
| What | Content |
|---|---|
| Devices | 261 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. |
| Readings | 7 days of readings, one every 10 minutes, for each device that has sent data. About 750,000 readings in total. |
| Templates | esp32-soil, esp32-sht41, valve-ctrl-mqtt and esp32-scd41 |
| Integrations | farm-webhook (an HTTP webhook) and mqtt-main (MQTT), each with example deliveries in its inbox |
| Dashboards | Greenhouse climate and Ingestion health |
| Rules | Only 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:
docker compose -f deploy/docker-compose.yml exec app bun run simulateIt 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.
Create a device:
bashcurl -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.
Send a reading. Replace the uid and the secret with your own values:
bashcurl -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}storedis the number of values that Sensora saved. Here it is 2, one fortemperatureand one forhumidity.Open Devices in the dashboard, search for
my-first-deviceand open it. The device is Online. Latest readings shows the two values and Recent messages shows the request you sent.
Send data over HTTP describes everything this endpoint accepts and every error it returns.
Start without the demo
Leave out --profile demo:
docker compose -f deploy/docker-compose.yml up -d --buildThe 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:
docker compose -f deploy/docker-compose.yml --profile demo downStart again later, with the same data:
docker compose -f deploy/docker-compose.yml up -dRemove the containers and delete all data:
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:
WEB_PORT=9000Next steps
- Connect your first device: a real board over USB, or your own code over HTTP.
- Concepts: the words Sensora uses.
- Install for real use: passwords, the encryption key and an address that devices can reach.


