> On Monday, May 24, 2021 at 4:15:22 PM UTC-7 [email protected] wrote:
>You can provide the configuration data via a pull request, email, 
attachment, etc. - whatever is easiest for you.

Here's my simple example that dials back logging a bit and subscribes to 
pieces of a pre-existing MQTT item...

[Logging]
    [[loggers]]
        [[[user.MQTTSubscribe]]]
            level = INFO

[MQTTSubscribeService]
    enable = True
    host = 192.168.1.171
    port = 1883
    keepalive = 60
    username = None
    password = None
    binding = loop
    [[message_callback]]
        type = json
    [[topics]]
        unit_system = US

    #--- these come from r:/usr/local/bin every 5 minutes via cron
    #
    #  mosquitto_sub -t BaseballRoomConditions -h nuc2
    #     {"dateTime": 1621715702, "extraTemp1": 63.16, "extraTemp2": 63.5, 
"pi": 100.28}
    #

        [[[BaseballRoomConditions]]]
            [[[[dateTime]]]]
                ignore = True
            [[[[extraTemp1]]]]
                name = extraTemp1
                units = degree_F
            [[[[extraTemp2]]]]
                name = extraTemp2
                units = degree_F
            [[[[pi]]]]
                ignore = True

>
>

-- 
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/9c67b321-d4d6-412b-aa27-c473bac07d67n%40googlegroups.com.

Reply via email to