Update README to add an example of a published message in JSON format 📝
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d999f6affa
commit
c61718f811
1 changed files with 10 additions and 0 deletions
10
README.md
10
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
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue