It should be doable. I do something similar with a few temperature 
sensors/fields. The fact that you are dealing with string data does add 
some complexity.
First, for the field configuration you will need to set the conversion_type 
= None. Although it is not documented on the wiki, see 
https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/Configuring#conversion_type
 
This will stop MQTTSubscribe from trying to convert the incoming data.

Next, you will need to configure the accumulator for this field/type.  See, 
https://github.com/weewx/weewx/wiki/Accumulators. It looks like for this 
field/type you want to set accumulator = firstlast and extractor = last.

Now you should be able to access it via $current. field/type name.

If you get this working, I’d like to ‘steal’ the details/steps for a wiki 
page.
-rich

On Sunday, 7 February 2021 at 17:05:51 UTC-5 Tarmo wrote:

> Can I do it? I have a text in MQTT like "Cloudy with clear spells" which I 
> would like to display on my website. Although, there is no need to store it 
> in the weewx database. I would like to just to update it at every archive 
> interval.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3db1cf57-fb7e-4cdb-b748-be7fe8c276f8n%40googlegroups.com.

Reply via email to