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

Acquire bulk readings in compact JSON format #41

Open
wants to merge 2 commits into
base: bulk-measurements
Choose a base branch
from

Conversation

amotl
Copy link
Member

@amotl amotl commented Jan 21, 2021

Coming from #39 and building upon #40, this implements the acquisition of bulk readings in compact JSON format as needed by @valentinbarral. The "compact JSON" format is currently defined with timestamps as keys.

An example payload is:

{
  "1611082554": {
    "temperature": 21.42,
    "humidity": 41.55
  },
  "1611082568": {
    "temperature": 42.84,
    "humidity": 83.1
  }
}

Instead of submitting data to the /data.json MQTT topic suffix, this "compact JSON" format is decoded on the /tc.json MQTT topic suffix. "tc.json" in this context means "timestamped compact json".

@amotl amotl changed the base branch from master to bulk-measurements January 21, 2021 02:33
@amotl amotl force-pushed the bulk-json-compact branch 2 times, most recently from b69e9b6 to a7bf9be Compare July 28, 2021 20:04
@amotl amotl force-pushed the bulk-json-compact branch 2 times, most recently from 7e9ba03 to 9187d3a Compare November 28, 2021 02:08
@amotl amotl changed the title Add possibility to acquire bulk readings in compact JSON format Acquire bulk readings in compact JSON format Jul 11, 2022
The "compact JSON" format is currently defined with timestamps as keys.

Example:
{
  "1611082554": {
    "temperature": 21.42,
    "humidity": 41.55
  },
  "1611082568": {
    "temperature": 42.84,
    "humidity": 83.1
  }
}
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.

1 participant