Try adding the following:

[[MQTT]]
        server_url = mqtt://username:password@host:1883/
        topic = weather    #
        unit_system = US
        binding = archive, loop
        aggregation = aggregate
        log_success = false
        log_failure = true

On Saturday, April 9, 2022 at 3:50:46 PM UTC-4 [email protected] wrote:

> Must I do something special to push the LOOP records more frequently 
> through MQTT? I've imported the Paho MQTT Python library and the loop 
> record is being pushed at the ARCHIVE interval, which is also confirmed 
> with MQTT Explorer. I've seen timestamp of 15:45:27, 15:40:10, 15:35:29 and 
> 15:30:20 for the 'acurite/loop' topic. This is what I have in the 
> weewx.conf file for MQTT
>
>     [[MQTT]]
>         server_url = mqtt://username:password@hostname:1883/
>         topic = acurite
>         unit_system = METRIC
>         retain = true
>
> Is there something missing?
>
> Thanks for your help
>
> Le samedi 9 avril 2022 à 07 h 20 min 13 s UTC-4, [email protected] a 
> écrit :
>
>> have you considered MQTT? You could setup the MQTT WeeWX Extension in 
>> which it will push both LOOP and ARCHIVE records to a MQTT broker. I have 
>> an Acurite 5-n-1 weather station and use MQTT to update my website as the 
>> LOOP data changes. I get updates around every 18 seconds or so.
>>
>> In your Python program, you use Paho Python library to "subscribe" to 
>> your MQTT host and invoke an event when you get a LOOP Record. From there 
>> evaluate the rain values and take action with your car windows at that 
>> moment based on the data.
>>
>> MQTT is a small, lightweight protocol that will update in near real time. 
>> It is used a lot in IOT devices.
>>
>>
>> On Saturday, April 9, 2022 at 2:31:03 AM UTC-4 Graham Eddy wrote:
>>
>>> your Acurite driver creates a ‘loop packet’ each time it receives a 
>>> reading from the station. you can have a ’service’ immediately export 
>>> selected data from each loop packet, not wait until the end of the archive 
>>> interval (which is when database is updated). depending how you want the 
>>> data exported, there could be an existing service extension available 
>>> off-the-shelf
>>>
>>> On 9 Apr 2022, at 3:23 pm, Sylvain Gagnon <[email protected]> wrote:
>>>
>>> Hi, I've been using WeeWx for many years now but first time posting here.
>>>
>>> I'm writing a program in Python that queries my Acurite 5 in 1 probe 
>>> through WeeWX for the rain rate and if it's above 0mm, then it will close 
>>> the car windows if they are opened and the car is parked. It works well but 
>>> relies on daily.json to fetch the rain rate and that value I believe 
>>> updates at the archive frequency (ie, 5 minutes) but the stations sends 
>>> that data every 36 seconds. Is there a way to fetch this value? The only 
>>> other option that I can think of is to set the "archive_interval" to 60 
>>> instead of 300 in [StdArchive]. If I do that, will that mess up all the 
>>> historical data already in the database? Any other side effects?
>>>
>>> Thanks for your help at keeping the inside of my car dry :-)
>>>
>>>
>>> -- 
>>> 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/c90fb5b9-f691-4024-a00f-ab55a340fb04n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/c90fb5b9-f691-4024-a00f-ab55a340fb04n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>>

-- 
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/42d7b5f1-8d5c-49bd-9b1f-52e720f5b55dn%40googlegroups.com.

Reply via email to