From c61718f81129b61a785cbc68859e23804c5f90b2 Mon Sep 17 00:00:00 2001 From: parra Date: Thu, 5 Oct 2023 11:10:35 +0200 Subject: [PATCH] Update README to add an example of a published message in JSON format :memo: --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 7a2c1f3..41aafba 100644 --- a/README.md +++ b/README.md @@ -35,3 +35,13 @@ Or you can add a new entry in the `crontab`, like: ```sh */20 * * * * /usr/bin/python3 ~/scripts/mijia-temperature/main.py >~/scripts/mijia-temperature/last.log 2>&1 ``` + +The published message will have this structure: +```json +{ + "id": "mijia-sensor-1", + "battery": 74, + "temperature": 21.4, + "humidity": 47.3 +} +```