"If you get this working, I’d like to ‘steal’ the details/steps for a wiki page. -rich"
you own this. this is your work and people around the world are thankful for this. On Monday, February 8, 2021 at 3:19:36 AM UTC+2 [email protected] wrote: > 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/2d49fa66-b9aa-4a37-9aa0-305b273b79c1n%40googlegroups.com.
