JSON at the device level #2192
-
Sorry if this is the wrong place but I'm trying to get the last entry into JSON rather than individual topics. So ultimately my topic would look like this rtl433/devices/LaCrosse-BreezePro/751341 and it would contain a json payload of temp. frequency. etc rather than topics for each of those. I'm using the rtl_433.conf instead of a command line, so the only output I have is Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
That mqtt output should just work. The topic would be |
Beta Was this translation helpful? Give feedback.
-
That is correct. The events topic is json. What I'm looking for is to
have JSON in the /devices topic,
…On Wed, Sep 28, 2022 at 2:59 PM Christian W. Zuckschwerdt < ***@***.***> wrote:
That mqtt output should just work. The topic would be
rtl_433/HOSTNAME/events with a content of e.g.
{"time":...,"model":...","temperature_C":...}
—
Reply to this email directly, view it on GitHub
<#2192 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AED73JBDVUAFO5RFY3ZLKDLWASPTZANCNFSM6AAAAAAQYDNQIQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Ok, so you want an expanded topic for events? You can use the topic options for that: |
Beta Was this translation helpful? Give feedback.
Ok, so you want an expanded topic for events? You can use the topic options for that:
"mqtt://localhost:1883,events=rtl433/devices[/type][/model][/subtype][/channel][/id]"
and you can also combine them by adding
,devices=rtl433/devices[/type][/model][/subtype][/channel][/id]
(note that "devices" uses further subtopics i.e. there is no collision.