I asked in the community forum for my router and I was told that this is the only way they can currently forward data via MQTT. A future firmware release shall allow more formatting.
I might now play around with this https://github.com/mrtncls/mqtt-translator to get the MQTT payload from an array in one single statement ... Anybody used the MQTT Translator for this purpose? On Monday, August 28, 2023 at 11:01:41 AM UTC+2 Stefan Gliessmann wrote: > Which code do you refer to? > [image: Screenshot 2023-08-28 at 11.00.03.png] > This is what I specified in the GPS/Router to push via MQTT to my broker > ... > On Sunday, August 27, 2023 at 8:39:40 PM UTC+2 vince wrote: > >> We'd have to see your code to see what you are publishing. >> >> Your MQTT log looks very odd and likely needs some tweaking >> >> MQTT: >> [{"dateTime":"1693128700.0","gpsLat":"52.152435"},{"dateTime":"1693128700.0","gpsLong":"9.929356"}] >> >> >> >> I'd expect something like {"dateTime":"1233456", "gpsLat":"52.1234", >> "gpsLong": "9.987"} for a more typical set of JSON to publish. You want >> one element (not in an array) with three items therein - dateTime/lat/lon. >> >> -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/245ee62b-70f4-495f-8b43-f9dbf8adc180n%40googlegroups.com.