Commit graph

42 commits

Author SHA1 Message Date
2341471e0e fix: use explicit mapping in Consumption Point Schema 2026-05-12 23:57:23 +02:00
5f15002462 feat: improve error management when data are missing 2026-05-12 23:24:31 +02:00
319821ce59 feat: use device choice in API consumption request instead of hardcoded 2026-05-12 22:30:21 +02:00
f4b7daabd3 feat: add API endpoint to get devices list 2026-05-12 21:59:24 +02:00
0cb5706ed7 fix: adapt chart period label according to granularity 2026-05-12 19:51:50 +02:00
28f49b5209 fix: force chart.js static version to avoid breaking changes impact 2026-05-12 19:33:50 +02:00
bcbdc0b216 fix: small gap around header edges 2026-05-12 19:14:23 +02:00
ed82a3b54d feat: add style to webui 2026-05-12 19:05:02 +02:00
915433bb48 feat: add title on front 2026-05-12 17:20:49 +02:00
56619b524d feat: add key values on front 2026-05-12 17:15:42 +02:00
28baab1956 feat: add parameter choice for chart data 2026-05-12 16:40:39 +02:00
d1840441c5 fix: webui now restarts automatically 2026-05-12 14:46:25 +02:00
8289d23cf9 feat: add minimal chart to display API data with hardcoded parameters 2026-05-11 23:17:43 +02:00
e71a0d9602 tool: add JS linter 2026-05-11 23:16:24 +02:00
772063113b feat: add a simple cache versioning system in Dockerfile 2026-05-11 22:09:08 +02:00
97ca3813e8 tool: add a linter for html and css and apply it 2026-05-11 22:08:32 +02:00
4bd3ab2d2d feat: add a dummy web UI served by nginx in a container 2026-05-11 21:47:57 +02:00
e605bf8603 refacto: rename app into backend, to prepare for frontend dev 2026-05-11 21:46:21 +02:00
017092040d refacto: move ReadingRepository where it logically belongs 2026-05-11 21:46:21 +02:00
aa72971627 feat: use connection pool instead of a single shared connection
This is useful for multitask environments (like the API), to avoid
conflicts
2026-05-11 21:46:21 +02:00
a22413bb0b refacto: use common dependency injection repository for consumer app 2026-05-11 21:46:21 +02:00
f127a4c34c fix: query when only 1 data per day, or 1 day selected 2026-05-11 21:46:21 +02:00
5cef99d8d9 fix: ignore type checking on psycopg fetch 2026-05-11 21:46:21 +02:00
a0acb2950c feat: add API to get daily consumption 2026-05-11 21:46:21 +02:00
9c883a8eca refacto: reorganize files to easily add an API service 2026-05-11 21:46:21 +02:00
5c480db410 fix: improve error management when decoding uplink messages 2026-05-09 17:47:37 +02:00
f77cf3dd75 fix: improve connection to postgres to raise business logic exception
And raises delay between each new try
2026-05-09 17:25:02 +02:00
0830c2f182 refacto: reorganize POC into clean architecture for modularity 2026-05-09 17:06:57 +02:00
9dd53b1b24 feat: improve draft of consumer app to write in db 2026-05-09 15:36:31 +02:00
d210a2651c fix: remove force-recreate from deployment to avoid unwanted restart 2026-05-09 15:35:38 +02:00
d559cb9315 fix: add pulses to db and changes date to timestamp to allow granularity 2026-05-09 15:34:23 +02:00
54f2a29c19 fix: add unique constraint to columns that need it 2026-05-08 17:12:56 +02:00
4ffb1e932d feat: add device with same deveui as in embedded project, linked to site 2026-05-08 17:12:24 +02:00
32a9eeb10d feat: add database with dummy data 2026-05-08 17:02:06 +02:00
65804182ab feat: add targets to clean deployment 2026-05-08 17:01:45 +02:00
1f4f64ea9a fix: makefile that deployed to the wrong directory 2026-05-08 12:59:10 +02:00
b6d8d904a9 feat: add 2 distinct deploy targets to avoid the other stack restart 2026-05-08 12:41:14 +02:00
bdfe1a5f00 fix: docker compose network config so that containers may communicate
MQTT from gateway stack and app must be on the same network
It was implied when they were from the same stack, but when splitting
docker creates two default separated networks
This commit creates a network for MQTT and makes the app join it

Works only if the two stacks are on the same host (which is the case
during development)
2026-05-08 12:38:40 +02:00
416a76e9f0 feat: add a makefile for single line deployment on rpi target 2026-05-08 12:17:38 +02:00
851e8947bc refacto: reorganize folder tree to split lora gateway stack from app
Those stack won't necessarily be on the same host, so they need to be
split
2026-05-08 12:17:03 +02:00
31a1c14831 feat: add basic app that consumes mqtt uplinks from chirpstack 2026-05-07 00:13:17 +02:00
87ffc9cad7 Initial commit with gitignore 2026-05-06 22:20:28 +02:00