Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raw data API returns metadata #1

Open
ni5ni6 opened this issue Apr 5, 2023 · 0 comments
Open

Raw data API returns metadata #1

ni5ni6 opened this issue Apr 5, 2023 · 0 comments

Comments

@ni5ni6
Copy link

ni5ni6 commented Apr 5, 2023

For example

GET /api/devices/349454004448/data/raw/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 131531,
    "next": "http://api.decazavazduh.rs/api/devices/349454004448/data/raw/?limit=100&offset=100",
    "previous": null,
    "results": [
        {
            "time": "2023-04-02T18:02:14",
            "no2": -12,
            "pm1": 18,
            "so2": -4050,
            "pm10": 31,
            "pm2_5": 24,
            "no2_adc": 32669,
            "so2_adc": 32691,
            "humidity": 36,
            "no2_ready": true,
            "so2_ready": true,
            "temperature": 17
        },
   ...

Should instead return

...
"results": [
        {
            "time": "2023-04-02T18:02:14",
            "no2": -12,
            "pm1": 18,
            "so2": -4050,
            "pm10": 31,
            "pm2_5": 24,
            "humidity": 36,
            "temperature": 17
        },
...
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

No branches or pull requests

1 participant