Hello,
I'm running a RAK7244 LoRaWAN server/gateway on a local network to which my 
weewx server is connected. Weeex is the latest stable on Ubuntu with 
extended db.

A CO2 sensor is sending data to the LoRa server. I have node-red on my 
weewx server with a flow  connecting to the RAK7244. I want to have the CO2 
data put into the co2 slot that is available on the weewx db.

I have installed the weewx extension Mosquitto-subscribe and attempted to 
configure weewx.conf as:
#################################################
# Options for 'MQTTSubscribeService'
[MQTTSubscribeService]
    # This section is for the MQTTSubscribe service.
        # Turn the service on and off.
    # Default is: true
    # Only used by the service.
    enable = true    # false
    
    # The MQTT server.
    # Default is localhost.
    host = localhost  #192.168.1.10    #localhost
    
    # The port to connect to.
    # Default is 1883.
    port = 1883
    
    # Maximum period in seconds allowed between communications with the 
broker.
    # Default is 60.
    keepalive = 60
    
    # username for broker authentication.
    # Default is None.
    username = None
    
    # password for broker authentication.
    # Default is None.
    password = None 
    
    # The binding, loop or archive.
    # Default is: loop
    # Only used by the service.
    binding = loop
    
    # The message handler to use
    [[message_callback]]
        # The format of the MQTT payload.
        # Currently support: individual, json, keyword
        # Must be specified.
        type = json    #REPLACE_ME
    
    # The application/18/device/2cf7f12122500013/rx  topics to subscribe to.
    [[topics]]
        # Units for MQTT payloads without unit value.
        # Valid values: US, METRIC, METRICWX
        # Default is: US
        unit_system = US
        
        [[[first/topic]]]

#value sent from RAK7244

[[[[CO2_Value_PPM]]]]
        #weewx db name
name = co2
ignore = false
                contains total = True
conversion type = float
                
        #[[[SECOND/REPLACE_ME]]]
################################################

The message (data) every 60 minutes coming from the node-red function is:

{"CO2_Value_PPM":401} 

I may have too many things going here but, as I'm not a programmer, I'm 
stuck trying to figure out the problem. The node-red flow is connected on 
both ends (RAK7244-->weewx) but I don't see any data reaching the db.

Thanks in advance if anyone can help on this.
Cheers'
Bob

-- 
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/bf415a4f-9147-451c-a18e-859de210d504n%40googlegroups.com.

Reply via email to