Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-16 Thread Invisible Man
NB. The solution was solved here: https://github.com/bellrichm/WeeWX-MQTTSubscribe/issues/96 :) Thanks! On Wednesday, November 11, 2020 at 5:50:20 PM UTC+1 Invisible Man wrote: > Sure. I'll post everything from the start. > > > On Wednesday, November 11, 2020 at 5:26:04 PM UTC+1 bell...@gmail.co

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread bell...@gmail.com
Hard to say what is wrong from that snippet of log. Could you post the log from start up through an archive record creation? rich On Wednesday, 11 November 2020 at 11:09:00 UTC-5 axelle@gmail.com wrote: > I've shifted to using https://github.com/bellrichm/WeeWX-MQTTSubscribe > but it's stil

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread Invisible Man
I've shifted to using https://github.com/bellrichm/WeeWX-MQTTSubscribe but it's still not working : I don't see my external tempeature on weewx. This is my logs (I grepped for outTemp). I wonder if the issue is coming from the fact that WMR200 has an outTemp but it is faulty so I have outTempF

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread Invisible Man
Okay... it's just that I found https://github.com/bellrichm/WeeWX-MQTTSubscribe complicated for the task :( My script is only a few lines of Python... [but yes it's not working fully, so...] -- Axelle On Wednesday, November 11, 2020 at 2:37:36 PM UTC+1 Greg Troxel wrote: > > Invisible Man w

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread Greg Troxel
Invisible Man writes: > Ok I've changed my program to *modify* existing SQLite entries (from > WMR200) and put the MQTT temperature I get. This should work better because > Gary noted weewx only works with whole minutes. You got really good advice from Gary. Services are supposed to add entr

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread Invisible Man
Ok I've changed my program to *modify* existing SQLite entries (from WMR200) and put the MQTT temperature I get. This should work better because Gary noted weewx only works with whole minutes. So, this is what the last few entries of my weewx database look like: 1605100800|16|10||1010.818181818

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-11 Thread Invisible Man
Hi Vince, I'm not sure how my logs are going to help or my template file, as this is purely an issue with how I add lines to the database... Nevertheless, there you go with the logs. You'll see I have a fault on the WMR200 outdoor temperature sensor, which is why I built another one myself based

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-10 Thread gjr80
Hmmm, 1605042630 is 30 seconds past the top of the minute, considering WeeWX works with whole minute archive periods I think you may treading on some uncertain ground. Adding data to the archive directly can be a risky process, far better to add the data to the loop packet/archive record before

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-10 Thread vince
On Tuesday, November 10, 2020 at 1:17:33 PM UTC-8, Invisible Man wrote: > > However, strangely, the value does not reflect on the website, even after > waiting the 10 minutes refresh time (the website is not refreshed all the > time), where yesterday I got it working and saw a value. > We'd need

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-10 Thread Invisible Man
I wrote a script that gets the external temperature from the MQTT message and add its to the weewx database (./archive/weewx.sdb) : I compute the right epoch time and update the "outTemp" column. For example, below you see the temperature of 12.7: sqlite> select * from archive where dateTime >=

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread bell...@gmail.com
The [[[topic1]]], etc. are the different MQTT topics that you are publishing to. I think if you run MQTTSubscribe as a service, when it augments either the loop packet or archive record, it will over write any data that has been populated by the driver. But, I have not tested this behavior. rich

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread rich T
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 (./

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread Invisible Man
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. I

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread Invisible Man
>> - https://github.com/bellrichm/WeeWX-MQTTSubscribe >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,

Re: [weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread Greg Troxel
Invisible Man 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

[weewx-user] Get external temperature from MQTT + rest from WMR200

2020-11-08 Thread Invisible Man
Hi, 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 t