Did you look through this chain:

https://groups.google.com/g/weewx-user/c/opQq4UaOyxs/m/rIT484A1CwAJ


On Sunday, November 8, 2020 at 1:02:48 PM UTC-5, Invisible Man wrote:
>
> Other idea: maybe I can just simply write a script that reads the data 
> from MQTT and push it to the weewx database (./archive/weewx.sdb) ?  I'd 
> write it in the "archive" table, with dateTime and "outTemp" value.
> And then, weewx wouldn't even actually see the data is not coming from my 
> WMR200.
>
> Is there any issue to do that? Do I also need to populate 
> archive_day_outTemp ?
>
> On Sunday, November 8, 2020 at 6:59:29 PM UTC+1 Invisible Man wrote:
>
>> >> - https://github.com/bellrichm/WeeWX-MQTTSubscribe 
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fbellrichm%2FWeeWX-MQTTSubscribe&sa=D&sntz=1&usg=AFQjCNHSLNLr0hx4u_SaIOjz693kM3GCUw>
>>  
>> >That takes data from mqtt and treats it like a sensor in weewx. 
>>
>> Okay, so it's rather this one I need.
>>
>> >weewx has a concept of driver and service. I think you will have to 
>> >pehaps modify the WMR200 driver to behave as if temp is not there, and 
>> >run mqttsubscribe as a service to inject temperature from your Wemo. 
>>
>> Yes that's the idea. Still use WMR200 driver, but add mqttsubscribe as a 
>> service.
>> The documentation for MQTTSubscribe gives a short example for the service 
>> (see below). I understand where the Engine part goes. But I am  not sure 
>> what "topic1" is ?
>>
>>
>> [MQTTSubscribeService] 
>>   host = localhost 
>>   payload_type = json 
>>   [[topics]] 
>>     [[[topic1]]] 
>>     [[[topic2]]] 
>> [Engine] 
>>   [[Services]] data_services = user.MQTTSubscribe.MQTTSubscribeService
>>
>>
>> On Sunday, November 8, 2020 at 5:53:55 PM UTC+1 Greg Troxel wrote:
>>
>>>
>>> Invisible Man <[email protected]> writes: 
>>>
>>> > The external temperature of my WMR200 is failing, and it's apparently 
>>> > difficult to find a replacement. So, I'm using a temperature sensor I 
>>> did 
>>> > myself (based on a Wemo + DS18B20 sensor) which sends the temperature 
>>> to a 
>>> > MQTT broker (a Raspberry Pi). 
>>> > 
>>> > I've seen at least 2 different projects to use MQTT with Weewx : 
>>> > 
>>> > - https://github.com/morrowwm/weewxMQTT 
>>>
>>> That publishes data from weewx to mqtt. 
>>>
>>> > - https://github.com/bellrichm/WeeWX-MQTTSubscribe 
>>>
>>> That takes data from mqtt and treats it like a sensor in weewx. 
>>>
>>> > Is there a preferred way? Also, I am going to have some data coming 
>>> from 
>>> > WMR200 (rain, wind...), and some other coming from MQTT (temperature). 
>>> I 
>>> > don't think weewx supports several drivers, does it ? So it means I'll 
>>> keep 
>>> > using wmr200 driver and use something to insert only temperature from 
>>> MQTT. 
>>>
>>> weewx has a concept of driver and service. I think you will have to 
>>> pehaps modify the WMR200 driver to behave as if temp is not there, and 
>>> run mqttsubscribe as a service to inject temperature from your Wemo. 
>>>
>>> This is from a big picture viewpoint not so strange, but it is strange 
>>> in that outside temperature is arguably the primary reading from a 
>>> station, so not having that is very odd. Therefore I would not be 
>>> surprised to find a baked-in assumption about that which needs to be 
>>> overridden. 
>>>
>>

-- 
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/59aec9f4-0dd7-4eff-95b0-65d625667543o%40googlegroups.com.

Reply via email to