Open ijl20 opened 4 years ago
FYI this bug occurs a few more times in the file (search <space>=<space>",
)
i.e. lines 414, 417, 582, 584, 668, 697.
For our 'AdaptiveCities' platform at Cambridge I'm converting the decoder to Python, and also changing the decode output to the more structured JSON above (work-in-progress, will complete 2020-May-30):
https://github.com/AdaptiveCity/acp_local_mqtt/blob/master/acp_decoders/decoders/radiobridge.py
Lines 412..417 two corrections:
Please note the
+=
for decoded.Message where you have just=
(so the actual Tilt event info gets overwritten).An aside: IMHO decoding to freeform English readable free text, and then embedding that free text in a single-property Json object is really unusual, i.e.:
More typical would be
Maybe I missed something and there's a library that can use that freeform English format, but I don't think so.
Thanks.