// Evidence Dossier
LoRa Monitor 3DFAB — LoRa Helios
LoRaWAN sensors send data in different formats. LoRa Helios brings them into one dashboard to check node status, compare historical readings and export measurements without inspecting each device separately.
From sensor readings to a history you can compare
Sensors send measurements with different field names. LoRa Helios organizes them in a dashboard so operators can review the data without interpreting each message.
- See what each sensor measured and when its latest reading arrived.
- Compare readings from several sensors over the same date range.
- Export the history as CSV for analysis outside the dashboard.
In a local check, an authorized account retrieved and exported a test reading sent to the system.
- Who it serves
Sensor network operators and users: see what arrived, when and from which node.
- My responsibility
Full-stack development: TTN integration, API, storage, dashboard and deployment configuration.
- Current status
Core use with physical sensors is author-reported; initial deployment in late February 2026. Mobile GPS is experimental and non-operational. Local technical review without production inspection.
- What it enables
Reception, device histories, node comparison and CSV export in one workflow.
Context
In plain terms, sensors send readings and LoRa Helios turns them into a history a person can consult. The work for 3DFAB connected reception from The Things Network (TTN) with storage, permissions and a monitoring interface.
The author reports core operation with fixed environmental sensors. The software also supports coordinates and speed, but the ESP32 mobile GPS trial remains experimental and non-operational. Reviewing this application does not verify firmware, radio links or the field installation.
Problem
Sensors and their decoders may name the same reading differently: temp, t or temperatura, for example. Optional fields can be missing and an integration can resubmit an event. The application must recognize these situations without treating a zero reading as missing data.
The challenge was a common workflow: identify the node, check when its latest reading arrived, explore history and restrict each user to their devices. Multiple gateways in metadata do not by themselves establish the origin of a duplicate received by the webhook.
My role
I designed and implemented the full-stack software: TTN webhook integration, validation and normalization, Express API, MongoDB models and indexes, auxiliary caching, authentication and device access. I also developed the React dashboard, history queries, node comparison, exports and user administration.
I prepared container configuration and architecture/deployment documentation and checked reception with the operator and users. The mobile device trial was a team effort; this account attributes the software and integration work to me.
Constraints
Design documentation assumes typical transmissions every 10–30 minutes; this review did not measure that frequency. Dashboard polling is scheduled every 30 seconds: it does not change sensor frequency or guarantee maximum end-to-end latency.
Radio, TTN, network, API and MongoDB are separate dependencies. Ingestion works without an open browser, but has no durable queue or backend-owned recovery of lost packets. The model configures 90-day TTL expiry from receivedAt; actual deletion timing was not verified here. Mobile GPS is outside core operation.
Solution
The operator locates devices using search and filters, checks the latest reading and opens a node for investigation. They select variables and a date range, explore charts and export CSV history. A view of 2–10 devices supports comparisons. Export selects dates and a variable independently of the chart’s quick reading-count limit.
Administrators manage users and device assignments, while clients query authorized nodes. Cards adapt to available fields. Coordinate and speed support exists in the software, but operation of the mobile GPS device remains experimental.
Architecture
The write path is LoRaWAN node → gateway → TTN → authenticated webhook → Express API → MongoDB. TTN supplies decoded payloads; the backend validates the envelope, normalizes fields and stores the reading. Ingestion works independently of an open dashboard.
React and Vite power the interface and Recharts displays histories. The dashboard summary polls the API every 30 seconds; history details reload when filters change or an update is requested. Redis caches device summaries; MongoDB is the primary store. Redis also receives internal Pub/Sub events, but no consumer turns them into browser push updates.
Read the diagram and its limits
Fixed nodes send readings through a gateway and The Things Network (TTN). TTN delivers decoded JSON to Express through an authenticated HTTP webhook using timingSafeEqual. Joi validates the envelope; normalization maps up to 11 optional reading, battery, GPS and radio fields. MongoDB stores measurements with a configured 90-day TTL; Redis provides auxiliary summary caching. The operator uses a React dashboard that polls the API every 30 seconds. The browser does not query TTN or either database directly.
The diagram reflects the fixed environmental telemetry architecture described by the project. The current lab checked software with synthetic data and groups of 20 concurrent HTTP requests, not radio, active TTN or production. Mobile GPS tracking is excluded from the core operational flow and remains experimental. There is no durable ingestion queue to retain messages during API downtime. Frequency and gateway connectivity must be confirmed in the field configuration.
Reviewed software and reported field architecture. Local HTTP/database tests do not verify radio delivery or current production availability.
Data pipeline
1. TTN submits the device identifier and decoded_payload. The webhook checks credentials, limits requests and validates the message envelope with Joi. Structural validation does not establish whether a temperature is physically plausible.
2. Normalization resolves aliases for 11 optional fields: five reading/battery fields, three GPS fields and three radio-quality fields. They are not eleven environmental measurements and need not all arrive together. RF values prioritize the first reported gateway; the original payload is retained for diagnostics. The ?? operator preserves valid zeros.
3. The API stores the reading, creates or updates the device and attempts cache invalidation. It responds after processing rather than acknowledging a queued job. A missing timestamp can use receipt time. Reconstructing local date/time adds Z without converting the timezone, so firmware must follow the same convention.
Concurrency and packet loss
The unique MongoDB index on deviceId and receivedAt defines duplicate identity. The current check launched 20 identical requests concurrently, retaining one reading and one device; 19 responses indicated duplicates. Twenty distinct timestamps retained 20 readings. This verifies those local scenarios, not maximum capacity or radio delivery.
Timestamps must remain stable across resubmissions. Without one, using receipt time can create different identities. Saving a reading and updating its device are separate operations without a shared transaction. Injecting failure in the second step left a stored reading, no device and HTTP 500; repeating the event returned duplicate without repairing the missing device.
On cache failure, summary reads can fall back to MongoDB. Real helpers were tested with the Redis transport mocked to fail. This does not measure an actual Redis server’s timeouts or recovery. No backend-owned retry guarantees completion of a partial write.
Decisions
MongoDB versus PostgreSQL: optional document fields and device/date indexes fit variable payloads and Mongoose. PostgreSQL with JSONB was also valid. Integration gains flexibility while validation remains an application responsibility. The implemented collection is conventional with indexes and TTL, not a native time-series collection.
Polling versus WebSockets: querying every 30 seconds simplifies connections and operation for infrequent sensor reports. The cost is periodic requests without new data and a display that does not receive events instantly.
Auxiliary Redis: reusing summaries can reduce repeated reads, at the cost of another service and cache invalidation. Histories stay in MongoDB. Publishing an internal event does not implement browser push notifications.
Bearer versus HMAC: the webhook uses a credential and timing-safe comparison. This simplifies integration, but does not individually sign content or establish its physical origin. Three ADRs document the choices; code and tests bound what their arguments support.
Security
JWT and role/device authorization protect queries; administrators manage users and assignments. The additional workflow performed an actual login with synthetic RSA keys, queried an authorized node and rejected both access to and comparison with another node.
The webhook separates its credentials from user sessions, compares tokens with timingSafeEqual and validates the envelope with Joi. These are implemented controls, not a complete security audit. The limiter and allowed origins require correct proxy and deployment configuration.
The audit check found that the login event name does not match the allowed catalog, so that record is not stored. A working session can coexist with a failed audit record. Complete traceability is therefore not claimed. Operational keys and data were not accessed.
Testing
On October 23, 2026, the original suite was rerun in an isolated copy of reviewed code: 98/98 cases across 7 files with Node.js 22.23.2, Jest, Supertest and temporary MongoDB. Line coverage was 79.45%; all four metrics exceeded the configured 70% threshold. The frontend built with a JavaScript bundle size warning.
Eight new scenarios ran separately against real modules: normalization, indexes and concurrent duplicates, distinct timestamps, partial persistence, time identity, the workflow through CSV, cache failure and auditing. They include reproductions of limitations; passing does not mean those limitations were fixed. Redis transport was replaced with controlled errors; MongoDB and HTTP routes were real.
The 10 separate checks from September 19, 2026 remain historical evidence; that suite was not rerun in this review. The five public sample cases run in Spanish and English. Live TTN, physical sensors and production were not tested.
| Check | Result | Scope |
|---|---|---|
| Original suite | 98/98 cases · 7 files | Rerun October 23, 2026: Jest, Supertest and temporary MongoDB. |
| Original coverage | 79.45% lines | Statements 78.88% · branches 73.76% · functions 87.27%. Backend instrumentation; not the entire product. |
| Current supplementary scenarios | 8/8 scenarios | October 23, 2026: real modules and synthetic data; includes reproduced limitations, not eight product guarantees. |
| Concurrent duplicates | 20 requests → 1 reading | Current run with a real unique index: 20 HTTP 200, 19 duplicate responses and 1 device. |
| Distinct timestamps | 20 requests → 20 readings | Current simultaneous run on an existing device. Not a capacity benchmark. |
| Authorized workflow | RS256 login → reading → CSV | Real HTTP routes and temporary database; zero preserved, another node and mixed comparison rejected. |
| Cache transport failure | MongoDB response | Real helpers; mocked Redis client failures. Not an actual Redis-server outage. |
| Partial persistence | Limitation reproduced | Reading stored, device update failed; duplicate retry does not recreate the missing device. |
| Audit record | Limitation reproduced | Login event name rejected by the model; login success does not establish audit persistence. |
| Historical checks | 10/10 · September 19, 2026 | Earlier separate suite, not rerun as that suite in this review; not added to current totals. |
Deployment
Docker Compose separates Express, compiled frontend served by Nginx and Redis. Documentation describes Coolify and MongoDB Atlas. Ingestion receives data without requiring an open dashboard.
The author reports the core system deployed and used with physical sensors. This review compared local code, the Git remote and isolated tests without entering that installation. A configured health check is not an uptime history: readiness checks MongoDB and does not establish end-to-end TTN or Redis health.
Outcome
The delivered platform receives readings, shows their age, explores histories, compares nodes and exports data to CSV. My contribution was the full-stack software and integration: taking a technical message through to a usable, authorized query.
Physical-sensor operation is author-reported; test results are local. The functional value is a shared representation and workflow in one interface. Savings, uptime and link reliability are not quantified. Mobile GPS remains separate experimental work.
Evidence
Implemented: webhook, normalization, model and indexes, auxiliary cache, authentication and dashboard. Checked on October 23, 2026: 98 original tests, 8 supplementary scenarios and frontend build in an isolated copy. Earlier September and October results keep their dates in the internal record.
Simulated: Redis transport and a device-update failure. Real within the lab: temporary MongoDB, HTTP routes, RS256 login and CSV export with fictitious users. Author-reported: core deployment and use with physical sensors. Not checked here: radio, live TTN, production infrastructure, maximum capacity or uptime.
The video shows the interface; the final sample explains a normalization rule. Real sensor data, credentials and infrastructure access are not published.
Field observations
The author reports core-system use with physical sensors by the operator and users. This review did not repeat field testing. The portable ESP32 trial was a separate team effort, without published range, battery-life or packet-loss measurements.
Load tests
The current check launched groups of 20 concurrent HTTP requests with synthetic data against real modules and temporary MongoDB. It checked stored-reading counts and duplicate handling. It does not establish millions of records, sustained performance, production latency, link recovery or maximum capacity.
Software quality and UX
The interface emphasizes finding readings and understanding their age. The activity indicator means the latest reading is less than 30 minutes old, not that sensor connectivity was directly tested. Search, filters and detail views shorten navigation to a specific node.
Charts support date ranges and different scales; comparison displays multiple device series on a common time axis without physically correcting their clocks. CSV export supports analysis outside the dashboard.
Resolving aliases with ?? preserves valid zeros. Distinguishing zero from a missing value prevents the UI from hiding a real reading. The following example isolates and tests that decision.
Code sample and engineering test
A self-contained public adaptation of the normalization rule: three environmental variables, equivalent aliases, canonical-name precedence and null for missing data. It excludes authentication, persistence and private data.
The test runs five inputs and checks that the original payload is unchanged. It demonstrates this normalization contract; backend concurrency is checked separately in the testing section.
// Isolated adaptation: decoded sensor fields only. |
function normalizeSensorPayload(rawPayload) { |
const data = rawPayload.uplink_message?.decoded_payload ?? {}; |
return { |
temperature: data.temperature ?? data.temp ?? data.t ?? data.temperatura ?? null, |
humidity: data.humidity ?? data.hum ?? data.h ?? data.humedad ?? null, |
battery: data.battery ?? data.batt ?? data.v_bat ?? null, |
}; |
} |
Isolated sample test
import assert from 'node:assert/strict'; |
// Run together with the sample using Node.js. |
const cases = [ |
[{ temperature: 0, humidity: 0, battery: 0 }, |
{ temperature: 0, humidity: 0, battery: 0 }], |
[{ temp: 21, hum: 45, batt: 3.7 }, |
{ temperature: 21, humidity: 45, battery: 3.7 }], |
[{ temperatura: 18, humedad: 60, v_bat: 3.5 }, |
{ temperature: 18, humidity: 60, battery: 3.5 }], |
[{ temperature: 0, temp: 99, humidity: null, hum: 40 }, |
{ temperature: 0, humidity: 40, battery: null }], |
[{}, { temperature: null, humidity: null, battery: null }], |
]; |
|
for (const [input, expected] of cases) { |
const raw = { uplink_message: { decoded_payload: input } }; |
const before = JSON.stringify(raw); |
assert.deepEqual(normalizeSensorPayload(raw), expected); |
assert.equal(JSON.stringify(raw), before); |
} |
// 5 cases: zeros, aliases, precedence, missing fields, no input mutation. |
5 cases executed: zeros, abbreviated aliases, Spanish aliases, precedence and missing fields; all original inputs preserved.