Skip to content
Español← Documentation

Events and connected devices

In this project version, Events is not a concert ticketing/QR-ticket system. It is designed to receive and manage events generated by connected devices, including camera/sensor use cases.

Event data

The backend can store device ID, event ID, type, title/message, images/frames, metadata and capture/receive timestamps.

Device management

A device can include last-seen state, telemetry, camera/stream settings, armed state, schedules, siren duration, firmware/OTA status and counters for dropped/suppressed events.

Currently supported connection paths

CreaRápido is an event receiver, not a universal camera pairing app. Adding a record does not connect physical hardware until that equipment begins to send authorized events.

Choose in the editor What actually works today Hardware / setup
IP camera via ESP32 ESP32 firmware example captures from a Tapo C200 via ONVIF / RTSP, posts JPEG motion frames to the Events ingest endpoint, supports firmware compilation / OTA and some remote controls ESP32, compatible camera, same network configuration, credentials and custom .ino firmware. Tapo C200 is the example in the code; other models are not guaranteed
Water level via ESP32 Existing firmware measures tank depth with an ultrasonic TRIG / ECHO sensor, sends type=sensor with telemetry.waterLevel (0–100); Events displays the tank level ESP32 plus wired ultrasonic sensor, depth calibration, firmware adjusted for sensor-only installations. The bundled sketch also contains camera logic
HTTPS / API source A custom client can POST authenticated type=sensor JSON with telemetry or send an event and JPEG image via multipart ingest. No ESP32 board is required A networked device, gateway or service able to make authenticated HTTPS requests. Raw RTSP cameras do not pair directly with the backend

The selected category is a UI metadata field: it changes onboarding help and relevant configuration sections; it does not automatically discover a camera, flash a microcontroller or enable an unsupported driver.

Getting started

  1. Choose the connection path (camera + ESP32, tank sensor + ESP32, or HTTPS integration).
  2. Click Connect device; an ID is generated if the field is left blank.
  3. Name the device and Save to register its configuration.
  4. Open Advanced settings and create/save the site's access token. Treat it as a secret; do not publish it on the site.
  5. Configure your firmware or HTTP client to use the Events ingest endpoint and send events. The device status becomes online after sending data.

Example JSON payload for a compatible HTTP client (replace the ID with your saved device ID):

{"deviceId":"water-tank-1","type":"sensor","telemetry":{"waterLevel":58}}

Use HTTP POST /api/websites/:id/events/ingest over HTTPS, an Authorization: Bearer <token> header, and JSON Content-Type for sensor events. Image events require the documented JPEG upload; simply sending an RTSP URL does not produce captures.

Compatibility limits

  • Only the current ESP32/Arduino sketch is available for automatic firmware compilation and OTA. Other boards or firmware require custom development.
  • The current water telemetry display is for numeric percentage telemetry.waterLevel. A new sensor type does not become plug-and-play merely by choosing a category.
  • Live view, arm/disarm and siren functions require corresponding hardware and firmware, and are not automatically offered for sensor/API-only entries.

Storage

Captured images/frames consume website storage. New captures can be rejected when the website has insufficient storage.

Security

Device tokens/secrets must never be exposed on public pages or customer-facing documentation.