Skip to content

Refactor/sensor routes backend - #47

Closed
henrybednarz wants to merge 13 commits into
mainfrom
refactor/sensor-routes-backend
Closed

henrybednarz wants to merge 13 commits into
mainfrom
refactor/sensor-routes-backend

Conversation

@henrybednarz

Copy link
Copy Markdown
Collaborator

Overview

Added CSR for sensor service. Created two new endpoints for fetching dataType information from penleope table
Added second endpoint for pulling information from Penelope raw data passing runID, time bounds, and sensor names to pull

How Has This Been Tested?

Describe your steps for testing this work. Include screenshots or unit test files.

(base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A14.730892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:14.730892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z","2026-08-15T19:59:04.981796Z","2026-08-15T19:59:05.115106Z","2026-08-15T19:59:05.492379Z","2026-08-15T19:59:05.601196Z","2026-08-15T19:59:05.727341Z","2026-08-15T19:59:05.871329Z","2026-08-15T19:59:05.889378Z","2026-08-15T19:59:06.268602Z","2026-08-15T19:59:06.972480Z","2026-08-15T19:59:07.080333Z","2026-08-15T19:59:07.188707Z","2026-08-15T19:59:07.297288Z","2026-08-15T19:59:07.423232Z","2026-08-15T19:59:07.531459Z","2026-08-15T19:59:07.639833Z","2026-08-15T19:59:07.712554Z","2026-08-15T19:59:07.838329Z","2026-08-15T19:59:08.271618Z","2026-08-15T19:59:08.506860Z","2026-08-15T19:59:08.614212Z","2026-08-15T19:59:08.722468Z","2026-08-15T19:59:08.830880Z","2026-08-15T19:59:08.957401Z","2026-08-15T19:59:09.384192Z","2026-08-15T19:59:09.857446Z","2026-08-15T19:59:10.133477Z","2026-08-15T19:59:10.516520Z","2026-08-15T19:59:10.881178Z","2026-08-15T19:59:11.262458Z","2026-08-15T19:59:11.628870Z","2026-08-15T19:59:11.949545Z","2026-08-15T19:59:12.041347Z","2026-08-15T19:59:12.132542Z","2026-08-15T19:59:12.239820Z","2026-08-15T19:59:12.331540Z","2026-08-15T19:59:12.422814Z","2026-08-15T19:59:12.514253Z","2026-08-15T19:59:13.568716Z","2026-08-15T19:59:14.133205Z","2026-08-15T19:59:14.423930Z"],"values":[[42.491024,-71.13422],[42.491024,-71.13422],[42.491024,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.491024,-71.13421],[42.49104,-71.134186],[42.491055,-71.13415],[42.491055,-71.13415]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.750892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.750892","series":{"TPU/GPS/Location":{"time":[],"values":[]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.850892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.850892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z"],"values":[[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.950892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.950892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z"],"values":[[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A05.050892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:05.050892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z","2026-08-15T19:59:04.981796Z"],"values":[[42.491024,-71.13422],[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants