Hi,
I'm experimenting with MQTT to eventually send my CumulusMX data also to Influxdb via Mosquitto and Telegraf to create a bit more interactive graphs dashboard with Grafana.
I noticed that for some reason <#wgust rc=y> webtag gives a value with decimal comma instead of a full stop on MQTT DataIntervalTemplate.txt. This behavior does not repeat on #wspeed or any other webtag that I have tested with MQTT so far (not a very extensive test). But however when <#wgust rc=y> is used on indexT.htm, there it works properly.
I'm running MX build 3094 on RPi with mono 6.12. I have not tested later builds, since the release announcements do not show anything related to this.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
MQTT webtag parsing error?
Moderator: mcrossley
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: MQTT webtag parsing error?
I cannot reproduce this, the tag converts correctly to dot decimal when I tried it (running MX as -lang fr-fr for my test). All the tags use the same function for rc=y.
Are you sure there is no typo, or spurious character in there?
There is the <#RCwgust> to fall back on, but that uses the same remove comma function as well.
Are you sure there is no typo, or spurious character in there?
There is the <#RCwgust> to fall back on, but that uses the same remove comma function as well.
-
- Posts: 374
- Joined: Sun 27 Feb 2011 5:13 pm
- Weather Station: Ecowitt HP2551 & GW1100
- Operating System: Raspberry Pi OS
- Location: Kangasala, Finland
Re: MQTT webtag parsing error?
Now this is strange.
First I checked that my original file does not have typos or other errors. Decimal comma was still present on the output. I did not change the original file (attached) in any way. Then I created DataUpdateInflux_v2.txt where I replaced the tag with <#RCwgust> and uploaded it to my raspberry. Then changed the mqtt settings on CMX, and checked that the new tag indeed gave the correct output to mqtt topic.
But now things get really strange. After changing the template filename back to where I started, the problem no longer appears. How is it even possible? I even checked that applying your original template really changed the message contents, so it cannot be explained by not taking the original template in use when saving settings for the first time.
Screenshot and template file attached. All this happened with locale fi-fi.
First I checked that my original file does not have typos or other errors. Decimal comma was still present on the output. I did not change the original file (attached) in any way. Then I created DataUpdateInflux_v2.txt where I replaced the tag with <#RCwgust> and uploaded it to my raspberry. Then changed the mqtt settings on CMX, and checked that the new tag indeed gave the correct output to mqtt topic.
But now things get really strange. After changing the template filename back to where I started, the problem no longer appears. How is it even possible? I even checked that applying your original template really changed the message contents, so it cannot be explained by not taking the original template in use when saving settings for the first time.
Screenshot and template file attached. All this happened with locale fi-fi.
You do not have the required permissions to view the files attached to this post.