[weewx-development] Re: Weatherlink Live driver developpment

2020-07-15 Thread Maarten van der Hoeven
What are your plans with WLLArchive? As it is not part (yet) of this new 
repository, whereas it was part of the old repository

Op zondag 12 juli 2020 om 20:37:04 UTC+2 schreef flor...@pre-vost.fr:

> Hi,
>
> See new git for more visibility :  
> https://github.com/Drealine/weatherlinklive-driver-weewx  
>
> Le mercredi 8 juillet 2020 à 22:12:44 UTC+2, flor...@pre-vost.fr a écrit :
>
>> Hi :)
>>
>> Can you try my fix on the repo ?
>>
>> Seems that I calculate 0 / 25.4 or 2.54. I fixed it.
>>
>> Le mercredi 8 juillet 2020 à 21:36:48 UTC+2, hoev...@gmail.com a écrit :
>>
>>> I'm happy to help! Some progress :)
>>>
>>> Outtemp, extratemp1, windspeed and windgust seem okay. Radiation, UV, ET 
>>> still NULL.
>>>
>>> Rain and rainrate are weird. It is currently not raining, yet rain > 0. 
>>> Rainrate goes through the roof (and increasing)
>>>
>>> mysql> select 
>>> datetime,from_unixtime(datetime),round(outtemp,1),round(windspeed,1),round(windgust,1),radiation,uv,et,round(rain,1),round(rainrate,1),round(extratemp1,1)
>>>  
>>> from weewxtest.archive order by datetime desc limit 10;
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> | datetime   | from_unixtime(datetime) | round(outtemp,1) | 
>>> round(windspeed,1) | round(windgust,1) | radiation | uv   | et   | 
>>> round(rain,1) | round(rainrate,1) | round(extratemp1,1) |
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> | 1594236660 | 2020-07-08 21:31:00 | 14.6 
>>> |1.1 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 321.9 |14.4 |
>>> | 1594236600 | 2020-07-08 21:30:00 | 14.6 
>>> |1.3 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 262.7 |14.4 |
>>> | 1594236540 | 2020-07-08 21:29:00 | 14.6 
>>> |0.9 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 203.5 |14.4 |
>>> | 1594236480 | 2020-07-08 21:28:00 | 14.6 
>>> |1.1 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 144.3 |14.4 |
>>> | 1594236420 | 2020-07-08 21:27:00 | 14.6 
>>> |1.4 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 |  88.8 |14.4 |
>>> | 1594236360 | 2020-07-08 21:26:00 | 14.6 
>>> |1.3 |   2.7 |  NULL | NULL | NULL 
>>> |  51.8 |  23.9 |14.4 |
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> 6 rows in set (0.00 sec)
>>>
>>> Console output:
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>>> is :-0.37
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>>> period rain to: 0
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet 
>>> received from WLL module {'dateTime': 1594236848, 'usUnits': 1, 'outTemp': 
>>> 58.2, 'outHumidity': 97.2, 'dewpoint': 57.4, 'heatindex': 58.9, 
>>> 'windchill': 58.2, 'windSpeed': 3.0, 'windDir': 43, 'windGust': 6.0, 
>>> 'windGustDir': 36, 'barometer': 29.972, 'pressure': 29.96, 'inTemp': 68.8, 
>>> 'inHumidity': 64.1, 'inDewpoint': 56.2, 'extraTemp1': 58.0}:
>>> Jul  8 21:34:09 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>>> record 2020-07-08 21:34:08 CEST (1594236848)
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>>> Jul  8 21:34:11 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
>>> user.WLLDriver: extraTemp1]
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>>> is :0.2913385826771654
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>>> period rain to: 37
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet 
>>> received from WLL module {'dateTime': 1594236850, 'usUnits': 1, 
>>> 'windSpeed': 4.0, 'windDir': 42, 'windGust': 6.0, 'windGustDir': 37, 
>>> 'rain': 0.2913385826771654, 'rainRate': 0.0}:
>>> Jul  8 21:34:11 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>>> record 2020-07-08 21:34:10 CEST (1594236850)
>>> 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-15 Thread Maarten van der Hoeven
Thx, you are right, I was aware of that. Good to clarify this, I made a 
test-observation about this NULL value, but I should not have suggested 
that this observation may be caused by malfunctioning code in the driver. 
That's not the case! @Bastiaan: your driver shows the same, first record 
ET=NULL.

Op woensdag 15 juli 2020 om 10:45:58 UTC+2 schreef Bastiaan Meelberg:

> ET is not provided by Weatherlink (similar as barometer), it is calculated 
> by weewx. Some values can take a while before they appear in the database. 
> There is also a [StdWXCalculate] section in weewx.conf to set your 
> preferences.
>
> Op woensdag 15 juli 2020 om 10:35:16 UTC+2 schreef hoev...@gmail.com:
>
>> Yes, ET means evapotranspiration. I'm running the latest version now. 
>> Values looking good, except for ET when the first record arrives in the 
>> database. I started with empty tables. Repeated it three times, empty 
>> tables and restarting weewx: every time the first record contains NULL in 
>> et-field. Find attached the syslog, from the point I started weewx.
>>
>> MariaDB [weewx_import]> select from_unixtime(dateTime),radiation,uv,et 
>> from archive order by datetime desc limit 10;
>>
>> +-+---++---+
>> | from_unixtime(dateTime) | radiation | uv | 
>> et|
>>
>> +-+---++---+
>> | 2020-07-15 10:26:00 |546.25 | 3.2754 |  
>> 0.004741001200203204 |
>> | 2020-07-15 10:25:00 |   570 | 2.4253 |  
>> 0.004747980364634784 |
>> | 2020-07-15 10:24:00 |569.25 | 3.3003 |   
>> 0.0047548316325 |
>> | 2020-07-15 10:23:00 | 565.5 | 3.26250006 |  
>> 0.004813387735026845 |
>> | 2020-07-15 10:22:00 |   571.125 | 3.1997 | 
>> 0.0048826512000132135 |
>> | 2020-07-15 10:21:00 |   573 |3.2 
>> |  NULL |
>>
>> +-+---++---+
>> 6 rows in set (0.001 sec)
>>
>>
>> Op dinsdag 14 juli 2020 om 21:09:02 UTC+2 schreef flor...@pre-vost.fr:
>>
>>> Updated my git for rainfall at midnight and added UV, radiation. Can you 
>>> try ?
>>>
>>> For ET, it is evapotranspiration ? I not found value like ET in API 
>>>
>>> :) 
>>>
>>> Le mardi 14 juillet 2020 à 19:08:26 UTC+2, flor...@pre-vost.fr a écrit :
>>>
 Yeah of course ! Thank a lot for your support !

 Weewx calculate the average of rainRate with the archive interval.

 If you can check the high rainRate between weatherlink.com and the 
 daily database of rainRate

 :)

 Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :

> New rain this afternoon! 1.2 mm after starting weewx. Looking good! I 
> will let weewx run at least until tomorrow, to see if midnight-changes 
> (for 
> example daily rain reset) goes okay. I am unknowledgeable about verifying 
> the rainrate. I assume these  values are okay, as they are taken directly 
> from the device.
>
> MariaDB [weewx_import]> select 
> from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
> archive order by datetime desc limit 100;
>
> +-+-+-+---+--+--++
> | from_unixtime(datetime) | rain| rainrate
> | radiation | uv   | et   | extratemp1 |
>
> +-+-+-+---+--+--++
> | 2020-07-14 18:50:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.6319446 |
> | 2020-07-14 18:49:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:48:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:47:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:46:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:45:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:44:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.557 |
> | 2020-07-14 18:43:00 |   0 |   1 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:42:00 |   0 |  1.1501 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:41:00 |   0 |  

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-15 Thread Bastiaan Meelberg
ET is not provided by Weatherlink (similar as barometer), it is calculated 
by weewx. Some values can take a while before they appear in the database. 
There is also a [StdWXCalculate] section in weewx.conf to set your 
preferences.

Op woensdag 15 juli 2020 om 10:35:16 UTC+2 schreef hoev...@gmail.com:

> Yes, ET means evapotranspiration. I'm running the latest version now. 
> Values looking good, except for ET when the first record arrives in the 
> database. I started with empty tables. Repeated it three times, empty 
> tables and restarting weewx: every time the first record contains NULL in 
> et-field. Find attached the syslog, from the point I started weewx.
>
> MariaDB [weewx_import]> select from_unixtime(dateTime),radiation,uv,et 
> from archive order by datetime desc limit 10;
>
> +-+---++---+
> | from_unixtime(dateTime) | radiation | uv | 
> et|
>
> +-+---++---+
> | 2020-07-15 10:26:00 |546.25 | 3.2754 |  
> 0.004741001200203204 |
> | 2020-07-15 10:25:00 |   570 | 2.4253 |  
> 0.004747980364634784 |
> | 2020-07-15 10:24:00 |569.25 | 3.3003 |   
> 0.0047548316325 |
> | 2020-07-15 10:23:00 | 565.5 | 3.26250006 |  
> 0.004813387735026845 |
> | 2020-07-15 10:22:00 |   571.125 | 3.1997 | 
> 0.0048826512000132135 |
> | 2020-07-15 10:21:00 |   573 |3.2 
> |  NULL |
>
> +-+---++---+
> 6 rows in set (0.001 sec)
>
>
> Op dinsdag 14 juli 2020 om 21:09:02 UTC+2 schreef flor...@pre-vost.fr:
>
>> Updated my git for rainfall at midnight and added UV, radiation. Can you 
>> try ?
>>
>> For ET, it is evapotranspiration ? I not found value like ET in API 
>>
>> :) 
>>
>> Le mardi 14 juillet 2020 à 19:08:26 UTC+2, flor...@pre-vost.fr a écrit :
>>
>>> Yeah of course ! Thank a lot for your support !
>>>
>>> Weewx calculate the average of rainRate with the archive interval.
>>>
>>> If you can check the high rainRate between weatherlink.com and the 
>>> daily database of rainRate
>>>
>>> :)
>>>
>>> Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :
>>>
 New rain this afternoon! 1.2 mm after starting weewx. Looking good! I 
 will let weewx run at least until tomorrow, to see if midnight-changes 
 (for 
 example daily rain reset) goes okay. I am unknowledgeable about verifying 
 the rainrate. I assume these  values are okay, as they are taken directly 
 from the device.

 MariaDB [weewx_import]> select 
 from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
 archive order by datetime desc limit 100;

 +-+-+-+---+--+--++
 | from_unixtime(datetime) | rain| rainrate| 
 radiation | uv   | et   | extratemp1 |

 +-+-+-+---+--+--++
 | 2020-07-14 18:50:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.6319446 |
 | 2020-07-14 18:49:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.612 |
 | 2020-07-14 18:48:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.612 |
 | 2020-07-14 18:47:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.612 |
 | 2020-07-14 18:46:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.612 |
 | 2020-07-14 18:45:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.612 |
 | 2020-07-14 18:44:00 |   0 |  0.9501 
 |  NULL | NULL | NULL | 15.557 |
 | 2020-07-14 18:43:00 |   0 |   1 
 |  NULL | NULL | NULL |   15.5 |
 | 2020-07-14 18:42:00 |   0 |  1.1501 
 |  NULL | NULL | NULL |   15.5 |
 | 2020-07-14 18:41:00 |   0 |  1.1501 
 |  NULL | NULL | NULL |   15.5 |
 | 2020-07-14 18:40:00 | 0.20004 | 1.1 
 |  NULL | NULL | NULL |   15.5 |
 | 2020-07-14 18:39:00 |   0 | 1.11875 
 |  NULL | NULL | NULL | 15.4791666 |
 | 2020-07-14 18:38:00 |   0 |  1.3005 
 |  NULL | NULL | NULL | 15.445 |
 | 2020-07-14 18:37:00  

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-15 Thread Maarten van der Hoeven
Yes, ET means evapotranspiration. I'm running the latest version now. 
Values looking good, except for ET when the first record arrives in the 
database. I started with empty tables. Repeated it three times, empty 
tables and restarting weewx: every time the first record contains NULL in 
et-field. Find attached the syslog, from the point I started weewx.

MariaDB [weewx_import]> select from_unixtime(dateTime),radiation,uv,et from 
archive order by datetime desc limit 10;
+-+---++---+
| from_unixtime(dateTime) | radiation | uv | 
et|
+-+---++---+
| 2020-07-15 10:26:00 |546.25 | 3.2754 |  
0.004741001200203204 |
| 2020-07-15 10:25:00 |   570 | 2.4253 |  
0.004747980364634784 |
| 2020-07-15 10:24:00 |569.25 | 3.3003 |   
0.0047548316325 |
| 2020-07-15 10:23:00 | 565.5 | 3.26250006 |  
0.004813387735026845 |
| 2020-07-15 10:22:00 |   571.125 | 3.1997 | 
0.0048826512000132135 |
| 2020-07-15 10:21:00 |   573 |3.2 
|  NULL |
+-+---++---+
6 rows in set (0.001 sec)


Op dinsdag 14 juli 2020 om 21:09:02 UTC+2 schreef flor...@pre-vost.fr:

> Updated my git for rainfall at midnight and added UV, radiation. Can you 
> try ?
>
> For ET, it is evapotranspiration ? I not found value like ET in API 
>
> :) 
>
> Le mardi 14 juillet 2020 à 19:08:26 UTC+2, flor...@pre-vost.fr a écrit :
>
>> Yeah of course ! Thank a lot for your support !
>>
>> Weewx calculate the average of rainRate with the archive interval.
>>
>> If you can check the high rainRate between weatherlink.com and the daily 
>> database of rainRate
>>
>> :)
>>
>> Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :
>>
>>> New rain this afternoon! 1.2 mm after starting weewx. Looking good! I 
>>> will let weewx run at least until tomorrow, to see if midnight-changes (for 
>>> example daily rain reset) goes okay. I am unknowledgeable about verifying 
>>> the rainrate. I assume these  values are okay, as they are taken directly 
>>> from the device.
>>>
>>> MariaDB [weewx_import]> select 
>>> from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
>>> archive order by datetime desc limit 100;
>>>
>>> +-+-+-+---+--+--++
>>> | from_unixtime(datetime) | rain| rainrate| 
>>> radiation | uv   | et   | extratemp1 |
>>>
>>> +-+-+-+---+--+--++
>>> | 2020-07-14 18:50:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.6319446 |
>>> | 2020-07-14 18:49:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.612 |
>>> | 2020-07-14 18:48:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.612 |
>>> | 2020-07-14 18:47:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.612 |
>>> | 2020-07-14 18:46:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.612 |
>>> | 2020-07-14 18:45:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.612 |
>>> | 2020-07-14 18:44:00 |   0 |  0.9501 
>>> |  NULL | NULL | NULL | 15.557 |
>>> | 2020-07-14 18:43:00 |   0 |   1 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:42:00 |   0 |  1.1501 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:41:00 |   0 |  1.1501 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:40:00 | 0.20004 | 1.1 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:39:00 |   0 | 1.11875 
>>> |  NULL | NULL | NULL | 15.4791666 |
>>> | 2020-07-14 18:38:00 |   0 |  1.3005 
>>> |  NULL | NULL | NULL | 15.445 |
>>> | 2020-07-14 18:37:00 |   0 |  1.41250005 
>>> |  NULL | NULL | NULL | 15.445 |
>>> | 2020-07-14 18:36:00 |   0 |   1.699 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:35:00 |   0 |  1.84375004 
>>> |  NULL | NULL | NULL |   15.5 |
>>> | 2020-07-14 18:34:00 |   0 |  2.13749993 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-15 Thread Maarten van der Hoeven
About rainrate, I checked. Although I see some differences, I could explain 
those by the diferent archive intervals and how weatherlink and weewx 
treats them different. I do not see strange values.

In my database (grouped by 5 minutes, and took the average, to compare it 
with weatherlink with 5 minutes archive):
MariaDB [weewx_import]> select from_unixtime(dateTime), 
sum(rain),avg(rainrate) from archive where from_unixtime(datetime) >= 
'2020-07-14 18:00%' and from_unixtime(datetime) <= '2020-07-14 19:00%'group 
by datetime DIV 300 order by datetime asc;
+-+-+-+
| from_unixtime(dateTime) | sum(rain)   | avg(rainrate)   |
+-+-+-+
| 2020-07-14 18:00:00 |   0 |   0 |
| 2020-07-14 18:05:00 |   0 |   0 |
| 2020-07-14 18:10:00 |   0 |   0 |
| 2020-07-14 18:15:00 |  0.4001 | 0.58125 |
| 2020-07-14 18:20:00 |  0.4001 |4.24 |
| 2020-07-14 18:25:00 | 0.20004 |   3.975 |
| 2020-07-14 18:30:00 |   0 |  2.9575 |
| 2020-07-14 18:35:00 |   0 |   1.475 |
| 2020-07-14 18:40:00 | 0.20004 |1.07 |
| 2020-07-14 18:45:00 |   0 |0.95 |
| 2020-07-14 18:50:00 |   0 |  0.9101 |
| 2020-07-14 18:55:00 |   0 | 0.29015 |
| 2020-07-14 19:00:00 |   0 |   0 |
+-+-+-+
13 rows in set (0.004 sec)


Weatherlink.com reports:
Date & TimeRain - mmHigh Rain Rate - mm/h
14/07/2020 18:000,00,0
14/07/2020 18:050,00,0
14/07/2020 18:100,00,0
14/07/2020 18:150,00,0
14/07/2020 18:200,45,8
14/07/2020 18:250,45,8
14/07/2020 18:300,24,8
14/07/2020 18:350,03,4
14/07/2020 18:400,21,6
14/07/2020 18:450,01,0
14/07/2020 18:500,01,0
14/07/2020 18:550,01,0
14/07/2020 19:000,00,8


Op dinsdag 14 juli 2020 om 19:08:26 UTC+2 schreef flor...@pre-vost.fr:

> Yeah of course ! Thank a lot for your support !
>
> Weewx calculate the average of rainRate with the archive interval.
>
> If you can check the high rainRate between weatherlink.com and the daily 
> database of rainRate
>
> :)
>
> Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :
>
>> New rain this afternoon! 1.2 mm after starting weewx. Looking good! I 
>> will let weewx run at least until tomorrow, to see if midnight-changes (for 
>> example daily rain reset) goes okay. I am unknowledgeable about verifying 
>> the rainrate. I assume these  values are okay, as they are taken directly 
>> from the device.
>>
>> MariaDB [weewx_import]> select 
>> from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
>> archive order by datetime desc limit 100;
>>
>> +-+-+-+---+--+--++
>> | from_unixtime(datetime) | rain| rainrate| 
>> radiation | uv   | et   | extratemp1 |
>>
>> +-+-+-+---+--+--++
>> | 2020-07-14 18:50:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.6319446 |
>> | 2020-07-14 18:49:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:48:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:47:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:46:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:45:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:44:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.557 |
>> | 2020-07-14 18:43:00 |   0 |   1 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:42:00 |   0 |  1.1501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:41:00 |   0 |  1.1501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:40:00 | 0.20004 | 1.1 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:39:00 |   0 | 1.11875 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Updated my git for rainfall at midnight and added UV, radiation. Can you 
try ?

For ET, it is evapotranspiration ? I not found value like ET in API 

:) 

Le mardi 14 juillet 2020 à 19:08:26 UTC+2, flor...@pre-vost.fr a écrit :

> Yeah of course ! Thank a lot for your support !
>
> Weewx calculate the average of rainRate with the archive interval.
>
> If you can check the high rainRate between weatherlink.com and the daily 
> database of rainRate
>
> :)
>
> Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :
>
>> New rain this afternoon! 1.2 mm after starting weewx. Looking good! I 
>> will let weewx run at least until tomorrow, to see if midnight-changes (for 
>> example daily rain reset) goes okay. I am unknowledgeable about verifying 
>> the rainrate. I assume these  values are okay, as they are taken directly 
>> from the device.
>>
>> MariaDB [weewx_import]> select 
>> from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
>> archive order by datetime desc limit 100;
>>
>> +-+-+-+---+--+--++
>> | from_unixtime(datetime) | rain| rainrate| 
>> radiation | uv   | et   | extratemp1 |
>>
>> +-+-+-+---+--+--++
>> | 2020-07-14 18:50:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.6319446 |
>> | 2020-07-14 18:49:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:48:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:47:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:46:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:45:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:44:00 |   0 |  0.9501 
>> |  NULL | NULL | NULL | 15.557 |
>> | 2020-07-14 18:43:00 |   0 |   1 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:42:00 |   0 |  1.1501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:41:00 |   0 |  1.1501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:40:00 | 0.20004 | 1.1 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:39:00 |   0 | 1.11875 
>> |  NULL | NULL | NULL | 15.4791666 |
>> | 2020-07-14 18:38:00 |   0 |  1.3005 
>> |  NULL | NULL | NULL | 15.445 |
>> | 2020-07-14 18:37:00 |   0 |  1.41250005 
>> |  NULL | NULL | NULL | 15.445 |
>> | 2020-07-14 18:36:00 |   0 |   1.699 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:35:00 |   0 |  1.84375004 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:34:00 |   0 |  2.13749993 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:33:00 |   0 |   2.5125001 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:32:00 |   0 |  3.04374984 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:31:00 |   0 |   3.5437501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:30:00 |   0 |   3.551 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:29:00 |   0 |   3.551 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:28:00 | 0.20004 |   3.5187501 
>> |  NULL | NULL | NULL |   15.5 |
>> | 2020-07-14 18:27:00 |   0 |  4.00625005 
>> |  NULL | NULL | NULL |  15.513889 |
>> | 2020-07-14 18:26:00 |   0 |  4.3995 
>> |  NULL | NULL | NULL | 15.529 |
>> | 2020-07-14 18:25:00 |   0 |  4.3995 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:24:00 | 0.20004 |   4.0624999 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:23:00 |   0 |   3.902 
>> |  NULL | NULL | NULL | 15.612 |
>> | 2020-07-14 18:22:00 | 0.20004 |   

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Yeah of course ! Thank a lot for your support !

Weewx calculate the average of rainRate with the archive interval.

If you can check the high rainRate between weatherlink.com and the daily 
database of rainRate

:)

Le mardi 14 juillet 2020 à 18:55:21 UTC+2, hoev...@gmail.com a écrit :

> New rain this afternoon! 1.2 mm after starting weewx. Looking good! I will 
> let weewx run at least until tomorrow, to see if midnight-changes (for 
> example daily rain reset) goes okay. I am unknowledgeable about verifying 
> the rainrate. I assume these  values are okay, as they are taken directly 
> from the device.
>
> MariaDB [weewx_import]> select 
> from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
> archive order by datetime desc limit 100;
>
> +-+-+-+---+--+--++
> | from_unixtime(datetime) | rain| rainrate| 
> radiation | uv   | et   | extratemp1 |
>
> +-+-+-+---+--+--++
> | 2020-07-14 18:50:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.6319446 |
> | 2020-07-14 18:49:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:48:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:47:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:46:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:45:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:44:00 |   0 |  0.9501 
> |  NULL | NULL | NULL | 15.557 |
> | 2020-07-14 18:43:00 |   0 |   1 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:42:00 |   0 |  1.1501 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:41:00 |   0 |  1.1501 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:40:00 | 0.20004 | 1.1 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:39:00 |   0 | 1.11875 
> |  NULL | NULL | NULL | 15.4791666 |
> | 2020-07-14 18:38:00 |   0 |  1.3005 
> |  NULL | NULL | NULL | 15.445 |
> | 2020-07-14 18:37:00 |   0 |  1.41250005 
> |  NULL | NULL | NULL | 15.445 |
> | 2020-07-14 18:36:00 |   0 |   1.699 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:35:00 |   0 |  1.84375004 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:34:00 |   0 |  2.13749993 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:33:00 |   0 |   2.5125001 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:32:00 |   0 |  3.04374984 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:31:00 |   0 |   3.5437501 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:30:00 |   0 |   3.551 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:29:00 |   0 |   3.551 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:28:00 | 0.20004 |   3.5187501 
> |  NULL | NULL | NULL |   15.5 |
> | 2020-07-14 18:27:00 |   0 |  4.00625005 
> |  NULL | NULL | NULL |  15.513889 |
> | 2020-07-14 18:26:00 |   0 |  4.3995 
> |  NULL | NULL | NULL | 15.529 |
> | 2020-07-14 18:25:00 |   0 |  4.3995 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:24:00 | 0.20004 |   4.0624999 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:23:00 |   0 |   3.902 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:22:00 | 0.20004 |   3.902 
> |  NULL | NULL | NULL | 15.612 |
> | 2020-07-14 18:21:00 |   0 |  4.5875 
> |  NULL | NULL | NULL | 15.6458334 |
> | 2020-07-14 18:20:00 |   0 |4.75 
> |  NULL | NULL | NULL | 15.668 |
> | 2020-07-14 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
New rain this afternoon! 1.2 mm after starting weewx. Looking good! I will 
let weewx run at least until tomorrow, to see if midnight-changes (for 
example daily rain reset) goes okay. I am unknowledgeable about verifying 
the rainrate. I assume these  values are okay, as they are taken directly 
from the device.

MariaDB [weewx_import]> select 
from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
archive order by datetime desc limit 100;
+-+-+-+---+--+--++
| from_unixtime(datetime) | rain| rainrate| 
radiation | uv   | et   | extratemp1 |
+-+-+-+---+--+--++
| 2020-07-14 18:50:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.6319446 |
| 2020-07-14 18:49:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:48:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:47:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:46:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:45:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:44:00 |   0 |  0.9501 
|  NULL | NULL | NULL | 15.557 |
| 2020-07-14 18:43:00 |   0 |   1 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:42:00 |   0 |  1.1501 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:41:00 |   0 |  1.1501 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:40:00 | 0.20004 | 1.1 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:39:00 |   0 | 1.11875 
|  NULL | NULL | NULL | 15.4791666 |
| 2020-07-14 18:38:00 |   0 |  1.3005 
|  NULL | NULL | NULL | 15.445 |
| 2020-07-14 18:37:00 |   0 |  1.41250005 
|  NULL | NULL | NULL | 15.445 |
| 2020-07-14 18:36:00 |   0 |   1.699 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:35:00 |   0 |  1.84375004 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:34:00 |   0 |  2.13749993 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:33:00 |   0 |   2.5125001 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:32:00 |   0 |  3.04374984 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:31:00 |   0 |   3.5437501 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:30:00 |   0 |   3.551 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:29:00 |   0 |   3.551 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:28:00 | 0.20004 |   3.5187501 
|  NULL | NULL | NULL |   15.5 |
| 2020-07-14 18:27:00 |   0 |  4.00625005 
|  NULL | NULL | NULL |  15.513889 |
| 2020-07-14 18:26:00 |   0 |  4.3995 
|  NULL | NULL | NULL | 15.529 |
| 2020-07-14 18:25:00 |   0 |  4.3995 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:24:00 | 0.20004 |   4.0624999 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:23:00 |   0 |   3.902 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:22:00 | 0.20004 |   3.902 
|  NULL | NULL | NULL | 15.612 |
| 2020-07-14 18:21:00 |   0 |  4.5875 
|  NULL | NULL | NULL | 15.6458334 |
| 2020-07-14 18:20:00 |   0 |4.75 
|  NULL | NULL | NULL | 15.668 |
| 2020-07-14 18:19:00 | 0.20004 |   2.375 
|  NULL | NULL | NULL | 15.668 |
| 2020-07-14 18:18:00 |   0 |0.35 
|  NULL | NULL | NULL | 15.725 |
| 2020-07-14 18:17:00 | 0.20004 | 0.181250005 
|  NULL | NULL | NULL | 15.775 |
| 2020-07-14 18:16:00 |   0 |   0 
|  NULL | NULL | NULL | 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Running the latest version, emptied the archive table, dropped 
daily_archive tables. I kept extraTemp1 alive in the config. These are the 
results. It was not raining, first record (started weewx at 17:19) contains 
zero rain, which is correct. Attached the first 5 minutes of syslog, after 
starting weewx



MariaDB [weewx_import]> select 
from_unixtime(datetime),rain,rainrate,radiation,uv,et,extratemp1 from 
archive order by datetime desc limit 100;
+-+--+--+---+--+--++
| from_unixtime(datetime) | rain | rainrate | radiation | uv   | et   | 
extratemp1 |
+-+--+--+---+--+--++
| 2020-07-14 17:22:00 |0 |0 |  NULL | NULL | NULL 
|   17.5 |
| 2020-07-14 17:21:00 |0 |0 |  NULL | NULL | NULL | 
17.4791664 |
| 2020-07-14 17:20:00 |0 |0 |  NULL | NULL | NULL | 
17.443 |
+-+--+--+---+--+--++
3 rows in set (0.001 sec)


Op dinsdag 14 juli 2020 om 15:40:36 UTC+2 schreef flor...@pre-vost.fr:

>
> Stupid that i am,  the problem is an if loop that not check value in dict 
> ... 
>
> I fix it. Can you try ?
>
> :)  
>
> Le mardi 14 juillet 2020 à 15:25:40 UTC+2, flor...@pre-vost.fr a écrit :
>
>> Thank's a lot ! 
>>
>> Can you remove extraTemp1 in setting WLLDriver in weewx.conf for testing. 
>> I think that when extra is setting, the program recuperate rainfall_daily = 
>> 0 set in extra sensor
>>
>> Attach syslog when the program is launch 5minutes ago
>>
>> Le mardi 14 juillet 2020 à 14:46:08 UTC+2, hoev...@gmail.com a écrit :
>>
>>> Now it's looking much better. I emptied the archive table, as well as 
>>> the daily archive tables, and started weewx.
>>>
>>> First record (I started weewx at 13:30) is the exact amount of current 
>>> daily rainfall. It was not raining then, so this amount at 13:31 should be 
>>> zero. One raintick at 13:33, which is correct.
>>>
>>> Also attached the syslog, first 30 minutes after starting weewx (13:30).
>>>
>>> MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate 
>>> from archive order by datetime desc limit 100;
>>> +-+-++
>>> | from_unixtime(datetime) | rain| rainrate   |
>>> +-+-++
>>>
>>> | 2020-07-14 14:35:00 |   0 |  0 |
>>> | 2020-07-14 14:34:00 |   0 |  0 |
>>> | 2020-07-14 14:33:00 |   0 |  0 |
>>> | 2020-07-14 14:32:00 |   0 |  0 |
>>> 
>>> | 2020-07-14 13:53:00 |   0 |  0 |
>>> | 2020-07-14 13:52:00 |   0 |  0 |
>>> | 2020-07-14 13:51:00 |   0 |  0 |
>>> | 2020-07-14 13:50:00 |   0 |   0.25 |
>>> | 2020-07-14 13:49:00 |   0 | 0.6003 |
>>> | 2020-07-14 13:48:00 |   0 | 0.6754 |
>>> | 2020-07-14 13:47:00 |   0 | 0.8005 |
>>> | 2020-07-14 13:46:00 |   0 |  1.5562499 |
>>> | 2020-07-14 13:45:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:44:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:43:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:42:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:41:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:40:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:39:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:38:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:37:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:36:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:35:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:34:00 |   0 | 3.5507 |
>>> | 2020-07-14 13:33:00 | 0.20004 |  3.475 |
>>> | 2020-07-14 13:32:00 |   0 | 3.3505 |
>>> | 2020-07-14 13:31:00 | 2.6 | 2.8571428571428577 |
>>> +-+-++
>>> 65 rows in set (0.001 sec)
>>>
>>>
>>>
>>> Op dinsdag 14 juli 2020 om 13:08:43 UTC+2 schreef flor...@pre-vost.fr:
>>>
 Adding debug syslog and move function, can you try rightnow with my 
 latest repo

 Thank you

 Le mardi 14 juillet 2020 à 12:31:57 UTC+2, hoev...@gmail.com a écrit :

> Hmm, not good. UDP enabled. Not 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr

Stupid that i am,  the problem is an if loop that not check value in dict 
... 

I fix it. Can you try ?

:)  

Le mardi 14 juillet 2020 à 15:25:40 UTC+2, flor...@pre-vost.fr a écrit :

> Thank's a lot ! 
>
> Can you remove extraTemp1 in setting WLLDriver in weewx.conf for testing. 
> I think that when extra is setting, the program recuperate rainfall_daily = 
> 0 set in extra sensor
>
> Attach syslog when the program is launch 5minutes ago
>
> Le mardi 14 juillet 2020 à 14:46:08 UTC+2, hoev...@gmail.com a écrit :
>
>> Now it's looking much better. I emptied the archive table, as well as the 
>> daily archive tables, and started weewx.
>>
>> First record (I started weewx at 13:30) is the exact amount of current 
>> daily rainfall. It was not raining then, so this amount at 13:31 should be 
>> zero. One raintick at 13:33, which is correct.
>>
>> Also attached the syslog, first 30 minutes after starting weewx (13:30).
>>
>> MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate from 
>> archive order by datetime desc limit 100;
>> +-+-++
>> | from_unixtime(datetime) | rain| rainrate   |
>> +-+-++
>>
>> | 2020-07-14 14:35:00 |   0 |  0 |
>> | 2020-07-14 14:34:00 |   0 |  0 |
>> | 2020-07-14 14:33:00 |   0 |  0 |
>> | 2020-07-14 14:32:00 |   0 |  0 |
>> 
>> | 2020-07-14 13:53:00 |   0 |  0 |
>> | 2020-07-14 13:52:00 |   0 |  0 |
>> | 2020-07-14 13:51:00 |   0 |  0 |
>> | 2020-07-14 13:50:00 |   0 |   0.25 |
>> | 2020-07-14 13:49:00 |   0 | 0.6003 |
>> | 2020-07-14 13:48:00 |   0 | 0.6754 |
>> | 2020-07-14 13:47:00 |   0 | 0.8005 |
>> | 2020-07-14 13:46:00 |   0 |  1.5562499 |
>> | 2020-07-14 13:45:00 |   0 | 3.5507 |
>> | 2020-07-14 13:44:00 |   0 | 3.5507 |
>> | 2020-07-14 13:43:00 |   0 | 3.5507 |
>> | 2020-07-14 13:42:00 |   0 | 3.5507 |
>> | 2020-07-14 13:41:00 |   0 | 3.5507 |
>> | 2020-07-14 13:40:00 |   0 | 3.5507 |
>> | 2020-07-14 13:39:00 |   0 | 3.5507 |
>> | 2020-07-14 13:38:00 |   0 | 3.5507 |
>> | 2020-07-14 13:37:00 |   0 | 3.5507 |
>> | 2020-07-14 13:36:00 |   0 | 3.5507 |
>> | 2020-07-14 13:35:00 |   0 | 3.5507 |
>> | 2020-07-14 13:34:00 |   0 | 3.5507 |
>> | 2020-07-14 13:33:00 | 0.20004 |  3.475 |
>> | 2020-07-14 13:32:00 |   0 | 3.3505 |
>> | 2020-07-14 13:31:00 | 2.6 | 2.8571428571428577 |
>> +-+-++
>> 65 rows in set (0.001 sec)
>>
>>
>>
>> Op dinsdag 14 juli 2020 om 13:08:43 UTC+2 schreef flor...@pre-vost.fr:
>>
>>> Adding debug syslog and move function, can you try rightnow with my 
>>> latest repo
>>>
>>> Thank you
>>>
>>> Le mardi 14 juillet 2020 à 12:31:57 UTC+2, hoev...@gmail.com a écrit :
>>>
 Hmm, not good. UDP enabled. Not raining at the moment. Syslog added 
 from the start

 MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate 
 from 
 archiv 

  
 e order by datetime desc limit 10;
 +-++-+
 | from_unixtime(datetime) | rain   | rainrate|
 +-++-+
 | 2020-07-14 12:26:00 |3.2 |   9.406 |
 | 2020-07-14 12:25:00 |3.2 |   6.202 |
 | 2020-07-14 12:24:00 |3.2 |   3 |
 | 2020-07-14 12:23:00 | 1.2002 | 0.43636363636363645 |
 +-++-+
 4 rows in set (0.001 sec)


 Op dinsdag 14 juli 2020 om 12:24:30 UTC+2 schreef Maarten van der 
 Hoeven:

> New fresh code coming straight from the factory. It's still wet. 
> Running it now. Deleted all archived records, and dropped the daily 
> archives. More rain coming up this 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Thank's a lot ! 

Can you remove extraTemp1 in setting WLLDriver in weewx.conf for testing. I 
think that when extra is setting, the program recuperate rainfall_daily = 0 
set in extra sensor

Attach syslog when the program is launch 5minutes ago

Le mardi 14 juillet 2020 à 14:46:08 UTC+2, hoev...@gmail.com a écrit :

> Now it's looking much better. I emptied the archive table, as well as the 
> daily archive tables, and started weewx.
>
> First record (I started weewx at 13:30) is the exact amount of current 
> daily rainfall. It was not raining then, so this amount at 13:31 should be 
> zero. One raintick at 13:33, which is correct.
>
> Also attached the syslog, first 30 minutes after starting weewx (13:30).
>
> MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate from 
> archive order by datetime desc limit 100;
> +-+-++
> | from_unixtime(datetime) | rain| rainrate   |
> +-+-++
>
> | 2020-07-14 14:35:00 |   0 |  0 |
> | 2020-07-14 14:34:00 |   0 |  0 |
> | 2020-07-14 14:33:00 |   0 |  0 |
> | 2020-07-14 14:32:00 |   0 |  0 |
> 
> | 2020-07-14 13:53:00 |   0 |  0 |
> | 2020-07-14 13:52:00 |   0 |  0 |
> | 2020-07-14 13:51:00 |   0 |  0 |
> | 2020-07-14 13:50:00 |   0 |   0.25 |
> | 2020-07-14 13:49:00 |   0 | 0.6003 |
> | 2020-07-14 13:48:00 |   0 | 0.6754 |
> | 2020-07-14 13:47:00 |   0 | 0.8005 |
> | 2020-07-14 13:46:00 |   0 |  1.5562499 |
> | 2020-07-14 13:45:00 |   0 | 3.5507 |
> | 2020-07-14 13:44:00 |   0 | 3.5507 |
> | 2020-07-14 13:43:00 |   0 | 3.5507 |
> | 2020-07-14 13:42:00 |   0 | 3.5507 |
> | 2020-07-14 13:41:00 |   0 | 3.5507 |
> | 2020-07-14 13:40:00 |   0 | 3.5507 |
> | 2020-07-14 13:39:00 |   0 | 3.5507 |
> | 2020-07-14 13:38:00 |   0 | 3.5507 |
> | 2020-07-14 13:37:00 |   0 | 3.5507 |
> | 2020-07-14 13:36:00 |   0 | 3.5507 |
> | 2020-07-14 13:35:00 |   0 | 3.5507 |
> | 2020-07-14 13:34:00 |   0 | 3.5507 |
> | 2020-07-14 13:33:00 | 0.20004 |  3.475 |
> | 2020-07-14 13:32:00 |   0 | 3.3505 |
> | 2020-07-14 13:31:00 | 2.6 | 2.8571428571428577 |
> +-+-++
> 65 rows in set (0.001 sec)
>
>
>
> Op dinsdag 14 juli 2020 om 13:08:43 UTC+2 schreef flor...@pre-vost.fr:
>
>> Adding debug syslog and move function, can you try rightnow with my 
>> latest repo
>>
>> Thank you
>>
>> Le mardi 14 juillet 2020 à 12:31:57 UTC+2, hoev...@gmail.com a écrit :
>>
>>> Hmm, not good. UDP enabled. Not raining at the moment. Syslog added from 
>>> the start
>>>
>>> MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate 
>>> from 
>>> archiv  
>>> 
>>>
>>> e order by datetime desc limit 10;
>>> +-++-+
>>> | from_unixtime(datetime) | rain   | rainrate|
>>> +-++-+
>>> | 2020-07-14 12:26:00 |3.2 |   9.406 |
>>> | 2020-07-14 12:25:00 |3.2 |   6.202 |
>>> | 2020-07-14 12:24:00 |3.2 |   3 |
>>> | 2020-07-14 12:23:00 | 1.2002 | 0.43636363636363645 |
>>> +-++-+
>>> 4 rows in set (0.001 sec)
>>>
>>>
>>> Op dinsdag 14 juli 2020 om 12:24:30 UTC+2 schreef Maarten van der Hoeven:
>>>
 New fresh code coming straight from the factory. It's still wet. 
 Running it now. Deleted all archived records, and dropped the daily 
 archives. More rain coming up this way this afternoon

 Op dinsdag 14 juli 2020 om 12:18:04 UTC+2 schreef flor...@pre-vost.fr:

> Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
> Github and enable udp ?
>
> Thank you :)
>
> Le mardi 14 juillet 2020 à 11:17:31 UTC+2, 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Adding debug syslog and move function, can you try rightnow with my latest 
repo

Thank you

Le mardi 14 juillet 2020 à 12:31:57 UTC+2, hoev...@gmail.com a écrit :

> Hmm, not good. UDP enabled. Not raining at the moment. Syslog added from 
> the start
>
> MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate from 
> archiv
>   
>
> e order by datetime desc limit 10;
> +-++-+
> | from_unixtime(datetime) | rain   | rainrate|
> +-++-+
> | 2020-07-14 12:26:00 |3.2 |   9.406 |
> | 2020-07-14 12:25:00 |3.2 |   6.202 |
> | 2020-07-14 12:24:00 |3.2 |   3 |
> | 2020-07-14 12:23:00 | 1.2002 | 0.43636363636363645 |
> +-++-+
> 4 rows in set (0.001 sec)
>
>
> Op dinsdag 14 juli 2020 om 12:24:30 UTC+2 schreef Maarten van der Hoeven:
>
>> New fresh code coming straight from the factory. It's still wet. Running 
>> it now. Deleted all archived records, and dropped the daily archives. More 
>> rain coming up this way this afternoon
>>
>> Op dinsdag 14 juli 2020 om 12:18:04 UTC+2 schreef flor...@pre-vost.fr:
>>
>>> Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
>>> Github and enable udp ?
>>>
>>> Thank you :)
>>>
>>> Le mardi 14 juillet 2020 à 11:17:31 UTC+2, hoev...@gmail.com a écrit :
>>>
 Find attached

 Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:

> Can you share syslog between 09:44 and 10:13 please,
>
> With this syslog, I can't see the problem. I don't have this problem 
> but I not enable udp so I think the problem is in udp function. 
>  
> Thank you :) 
>
> Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :
>
>> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick 
>> at about 09:50 and second rain tick at about 10:08 (verified with my 
>> other 
>> weewx-environment, my live-environment). Not looking good, see below. 
>> Also, 
>> radiation, UV and ET are NULL, although I have data for these variables.
>>
>> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, 
>> rainrate, radiation, uv, et from archive order by datetime desc limit 30;
>>
>> +-+-+-+---+--+--+
>> | from_unixtime(dateTime) | rain| rainrate
>> | radiation | uv   | et   |
>>
>> +-+-+-+---+--+--+
>> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:56:00 | 1.6 |  10.843 
>> |   

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Hmm, not good. UDP enabled. Not raining at the moment. Syslog added from 
the start

MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate from 
archiv  

   
e order by datetime desc limit 10;
+-++-+
| from_unixtime(datetime) | rain   | rainrate|
+-++-+
| 2020-07-14 12:26:00 |3.2 |   9.406 |
| 2020-07-14 12:25:00 |3.2 |   6.202 |
| 2020-07-14 12:24:00 |3.2 |   3 |
| 2020-07-14 12:23:00 | 1.2002 | 0.43636363636363645 |
+-++-+
4 rows in set (0.001 sec)


Op dinsdag 14 juli 2020 om 12:24:30 UTC+2 schreef Maarten van der Hoeven:

> New fresh code coming straight from the factory. It's still wet. Running 
> it now. Deleted all archived records, and dropped the daily archives. More 
> rain coming up this way this afternoon
>
> Op dinsdag 14 juli 2020 om 12:18:04 UTC+2 schreef flor...@pre-vost.fr:
>
>> Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
>> Github and enable udp ?
>>
>> Thank you :)
>>
>> Le mardi 14 juillet 2020 à 11:17:31 UTC+2, hoev...@gmail.com a écrit :
>>
>>> Find attached
>>>
>>> Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:
>>>
 Can you share syslog between 09:44 and 10:13 please,

 With this syslog, I can't see the problem. I don't have this problem 
 but I not enable udp so I think the problem is in udp function. 
  
 Thank you :) 

 Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :

> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
> about 09:50 and second rain tick at about 10:08 (verified with my other 
> weewx-environment, my live-environment). Not looking good, see below. 
> Also, 
> radiation, UV and ET are NULL, although I have data for these variables.
>
> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, 
> rainrate, radiation, uv, et from archive order by datetime desc limit 30;
>
> +-+-+-+---+--+--+
> | from_unixtime(dateTime) | rain| rainrate
> | radiation | uv   | et   |
>
> +-+-+-+---+--+--+
> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:56:00 | 1.6 |  10.843 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:55:00 | 1.6 |   9.248 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:54:00 | 1.6 |   7.652 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:53:00 |

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Yes ahah ^^ 

I think udp problem appear when rainfaill_daily is more than > 0. So if you 
enable udp now, you've the problem ?

In my home in France, not rain at the moment ... ^^ 

Le mardi 14 juillet 2020 à 12:24:30 UTC+2, hoev...@gmail.com a écrit :

> New fresh code coming straight from the factory. It's still wet. Running 
> it now. Deleted all archived records, and dropped the daily archives. More 
> rain coming up this way this afternoon
>
> Op dinsdag 14 juli 2020 om 12:18:04 UTC+2 schreef flor...@pre-vost.fr:
>
>> Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
>> Github and enable udp ?
>>
>> Thank you :)
>>
>> Le mardi 14 juillet 2020 à 11:17:31 UTC+2, hoev...@gmail.com a écrit :
>>
>>> Find attached
>>>
>>> Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:
>>>
 Can you share syslog between 09:44 and 10:13 please,

 With this syslog, I can't see the problem. I don't have this problem 
 but I not enable udp so I think the problem is in udp function. 
  
 Thank you :) 

 Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :

> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
> about 09:50 and second rain tick at about 10:08 (verified with my other 
> weewx-environment, my live-environment). Not looking good, see below. 
> Also, 
> radiation, UV and ET are NULL, although I have data for these variables.
>
> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, 
> rainrate, radiation, uv, et from archive order by datetime desc limit 30;
>
> +-+-+-+---+--+--+
> | from_unixtime(dateTime) | rain| rainrate
> | radiation | uv   | et   |
>
> +-+-+-+---+--+--+
> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:56:00 | 1.6 |  10.843 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:55:00 | 1.6 |   9.248 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:54:00 | 1.6 |   7.652 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:52:00 | 1.6 |   4.453 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:48:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:47:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:46:00 |

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
New fresh code coming straight from the factory. It's still wet. Running it 
now. Deleted all archived records, and dropped the daily archives. More 
rain coming up this way this afternoon

Op dinsdag 14 juli 2020 om 12:18:04 UTC+2 schreef flor...@pre-vost.fr:

> Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
> Github and enable udp ?
>
> Thank you :)
>
> Le mardi 14 juillet 2020 à 11:17:31 UTC+2, hoev...@gmail.com a écrit :
>
>> Find attached
>>
>> Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:
>>
>>> Can you share syslog between 09:44 and 10:13 please,
>>>
>>> With this syslog, I can't see the problem. I don't have this problem but 
>>> I not enable udp so I think the problem is in udp function. 
>>>  
>>> Thank you :) 
>>>
>>> Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :
>>>
 Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
 about 09:50 and second rain tick at about 10:08 (verified with my other 
 weewx-environment, my live-environment). Not looking good, see below. 
 Also, 
 radiation, UV and ET are NULL, although I have data for these variables.

 MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
 radiation, uv, et from archive order by datetime desc limit 30;

 +-+-+-+---+--+--+
 | from_unixtime(dateTime) | rain| rainrate| 
 radiation | uv   | et   |

 +-+-+-+---+--+--+
 | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:12:00 | 3.2 |   32.049993 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:11:00 | 3.2 |   30.449994 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:09:00 | 3.2 |   27.249995 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:08:00 | 3.2 |   25.649995 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:06:00 | 1.6 |   24.131245 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:03:00 | 1.6 |   22.049996 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:01:00 | 1.6 |   18.849997 
 |  NULL | NULL | NULL |
 | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:58:00 | 1.6 |   14.049998 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:56:00 | 1.6 |  10.843 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:55:00 | 1.6 |   9.248 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:54:00 | 1.6 |   7.652 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:53:00 | 1.6 |  6.0525 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:52:00 | 1.6 |   4.453 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:51:00 | 1.6 |  2.8514 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:50:00 | 1.6 |  1.2502 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:48:00 |   0 |   0 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:47:00 |   0 |   0 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:46:00 |   0 |   0 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:45:00 |   0 |   0 
 |  NULL | NULL | NULL |
 | 2020-07-14 09:44:00 |   0 |   0 
 |  NULL | NULL | NULL |

 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Yes, it's this problem. I try to fix it. Can you try my lastest fix on 
Github and enable udp ?

Thank you :)

Le mardi 14 juillet 2020 à 11:17:31 UTC+2, hoev...@gmail.com a écrit :

> Find attached
>
> Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:
>
>> Can you share syslog between 09:44 and 10:13 please,
>>
>> With this syslog, I can't see the problem. I don't have this problem but 
>> I not enable udp so I think the problem is in udp function. 
>>  
>> Thank you :) 
>>
>> Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :
>>
>>> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
>>> about 09:50 and second rain tick at about 10:08 (verified with my other 
>>> weewx-environment, my live-environment). Not looking good, see below. Also, 
>>> radiation, UV and ET are NULL, although I have data for these variables.
>>>
>>> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
>>> radiation, uv, et from archive order by datetime desc limit 30;
>>>
>>> +-+-+-+---+--+--+
>>> | from_unixtime(dateTime) | rain| rainrate| 
>>> radiation | uv   | et   |
>>>
>>> +-+-+-+---+--+--+
>>> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:56:00 | 1.6 |  10.843 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:55:00 | 1.6 |   9.248 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:54:00 | 1.6 |   7.652 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:52:00 | 1.6 |   4.453 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:48:00 |   0 |   0 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:47:00 |   0 |   0 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:46:00 |   0 |   0 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:45:00 |   0 |   0 
>>> |  NULL | NULL | NULL |
>>> | 2020-07-14 09:44:00 |   0 |   0 
>>> |  NULL | NULL | NULL |
>>>
>>> +-+-+-+---+--+--+
>>> 30 rows in set (0.001 sec)
>>>
>>> Console output:
>>> maarten@weewximport:~$ tail -f /var/log/syslog
>>> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set 
>>> previous period rain to: 2
>>> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: rainRate 
>>> rightnow is : 0.007874015748031498
>>> 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
You might be right, to look for the problem in UDP. I've switched off UDP 
at 11:53, and the rainticks came back to zero, as well as rainrate

MariaDB [weewx_import]> select from_unixtime(datetime),rain,rainrate from 
archive order by datetime desc limit 10;
+-+--+---+
| from_unixtime(datetime) | rain | rainrate  |
+-+--+---+
| 2020-07-14 11:55:00 |0 | 0 |
| 2020-07-14 11:54:00 |0 | 0 |
| 2020-07-14 11:53:00 |0 | 0 |
| 2020-07-14 11:52:00 |  3.2 | 48.31 |
| 2020-07-14 11:51:00 |  3.2 | 48.31 |
| 2020-07-14 11:50:00 |  3.2 | 48.31 |
| 2020-07-14 11:49:00 |  3.2 | 48.31 |
| 2020-07-14 11:48:00 |  3.2 | 48.31 |
| 2020-07-14 11:47:00 |  3.2 | 48.31 |
| 2020-07-14 11:46:00 |  3.6 | 52.70303030303021 |
+-+--+---+
10 rows in set (0.001 sec)


Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:

> Can you share syslog between 09:44 and 10:13 please,
>
> With this syslog, I can't see the problem. I don't have this problem but I 
> not enable udp so I think the problem is in udp function. 
>  
> Thank you :) 
>
> Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :
>
>> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
>> about 09:50 and second rain tick at about 10:08 (verified with my other 
>> weewx-environment, my live-environment). Not looking good, see below. Also, 
>> radiation, UV and ET are NULL, although I have data for these variables.
>>
>> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
>> radiation, uv, et from archive order by datetime desc limit 30;
>>
>> +-+-+-+---+--+--+
>> | from_unixtime(dateTime) | rain| rainrate| 
>> radiation | uv   | et   |
>>
>> +-+-+-+---+--+--+
>> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:56:00 | 1.6 |  10.843 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:55:00 | 1.6 |   9.248 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:54:00 | 1.6 |   7.652 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:52:00 | 1.6 |   4.453 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:48:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:47:00 |   0 |   0 
>> |  

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Find attached

Op dinsdag 14 juli 2020 om 11:09:03 UTC+2 schreef flor...@pre-vost.fr:

> Can you share syslog between 09:44 and 10:13 please,
>
> With this syslog, I can't see the problem. I don't have this problem but I 
> not enable udp so I think the problem is in udp function. 
>  
> Thank you :) 
>
> Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :
>
>> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
>> about 09:50 and second rain tick at about 10:08 (verified with my other 
>> weewx-environment, my live-environment). Not looking good, see below. Also, 
>> radiation, UV and ET are NULL, although I have data for these variables.
>>
>> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
>> radiation, uv, et from archive order by datetime desc limit 30;
>>
>> +-+-+-+---+--+--+
>> | from_unixtime(dateTime) | rain| rainrate| 
>> radiation | uv   | et   |
>>
>> +-+-+-+---+--+--+
>> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:56:00 | 1.6 |  10.843 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:55:00 | 1.6 |   9.248 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:54:00 | 1.6 |   7.652 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:52:00 | 1.6 |   4.453 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:48:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:47:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:46:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:45:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>> | 2020-07-14 09:44:00 |   0 |   0 
>> |  NULL | NULL | NULL |
>>
>> +-+-+-+---+--+--+
>> 30 rows in set (0.001 sec)
>>
>> Console output:
>> maarten@weewximport:~$ tail -f /var/log/syslog
>> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set previous 
>> period rain to: 2
>> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: rainRate 
>> rightnow is : 0.007874015748031498
>> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Packet 
>> received from WLL module {'dateTime': 1594714658, 'usUnits': 1, 
>> 'windSpeed': 2.0, 'windDir': 234, 'windGust': 5.0, 'windGustDir': 227, 
>> 'rain': 0.0, 'rainRate': 0.007874015748031498}:
>> Jul 14 10:17:40 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread flor...@pre-vost.fr
Can you share syslog between 09:44 and 10:13 please,

With this syslog, I can't see the problem. I don't have this problem but I 
not enable udp so I think the problem is in udp function. 
 
Thank you :) 

Le mardi 14 juillet 2020 à 10:19:23 UTC+2, hoev...@gmail.com a écrit :

> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
> about 09:50 and second rain tick at about 10:08 (verified with my other 
> weewx-environment, my live-environment). Not looking good, see below. Also, 
> radiation, UV and ET are NULL, although I have data for these variables.
>
> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
> radiation, uv, et from archive order by datetime desc limit 30;
>
> +-+-+-+---+--+--+
> | from_unixtime(dateTime) | rain| rainrate| 
> radiation | uv   | et   |
>
> +-+-+-+---+--+--+
> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:56:00 | 1.6 |  10.843 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:55:00 | 1.6 |   9.248 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:54:00 | 1.6 |   7.652 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:52:00 | 1.6 |   4.453 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:48:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:47:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:46:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:45:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:44:00 |   0 |   0 
> |  NULL | NULL | NULL |
>
> +-+-+-+---+--+--+
> 30 rows in set (0.001 sec)
>
> Console output:
> maarten@weewximport:~$ tail -f /var/log/syslog
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set previous 
> period rain to: 2
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: rainRate 
> rightnow is : 0.007874015748031498
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Packet 
> received from WLL module {'dateTime': 1594714658, 'usUnits': 1, 
> 'windSpeed': 2.0, 'windDir': 234, 'windGust': 5.0, 'windGustDir': 227, 
> 'rain': 0.0, 'rainRate': 0.007874015748031498}:
> Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
> Starting new HTTP connection (1): 192.168.2.33:80
> Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
> 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Screen shot of weatherlink, two rainticks



Op dinsdag 14 juli 2020 om 10:19:23 UTC+2 schreef Maarten van der Hoeven:

> Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
> about 09:50 and second rain tick at about 10:08 (verified with my other 
> weewx-environment, my live-environment). Not looking good, see below. Also, 
> radiation, UV and ET are NULL, although I have data for these variables.
>
> MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
> radiation, uv, et from archive order by datetime desc limit 30;
>
> +-+-+-+---+--+--+
> | from_unixtime(dateTime) | rain| rainrate| 
> radiation | uv   | et   |
>
> +-+-+-+---+--+--+
> | 2020-07-14 10:13:00 | 3.2 |  33.6499935 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:12:00 | 3.2 |   32.049993 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:11:00 | 3.2 |   30.449994 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:10:00 | 3.2 |  28.8499945 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:09:00 | 3.2 |   27.249995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:08:00 | 3.2 |   25.649995 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:07:00 | 2.2 |  24.2124956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:06:00 | 1.6 |   24.131245 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:05:00 | 1.6 |  24.1499956 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:04:00 | 1.6 |  23.6249954 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:03:00 | 1.6 |   22.049996 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:02:00 | 1.6 |  20.4499964 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:01:00 | 1.6 |   18.849997 
> |  NULL | NULL | NULL |
> | 2020-07-14 10:00:00 | 1.6 |  17.2499968 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:59:00 | 1.6 |  15.6499974 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:58:00 | 1.6 |   14.049998 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:57:00 | 1.6 |  12.4499985 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:56:00 | 1.6 |  10.843 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:55:00 | 1.6 |   9.248 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:54:00 | 1.6 |   7.652 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:53:00 | 1.6 |  6.0525 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:52:00 | 1.6 |   4.453 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:51:00 | 1.6 |  2.8514 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:50:00 | 1.6 |  1.2502 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:49:00 | 0.20004 | 0.06251 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:48:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:47:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:46:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:45:00 |   0 |   0 
> |  NULL | NULL | NULL |
> | 2020-07-14 09:44:00 |   0 |   0 
> |  NULL | NULL | NULL |
>
> +-+-+-+---+--+--+
> 30 rows in set (0.001 sec)
>
> Console output:
> maarten@weewximport:~$ tail -f /var/log/syslog
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set previous 
> period rain to: 2
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: rainRate 
> rightnow is : 0.007874015748031498
> Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Packet 
> received from WLL module {'dateTime': 1594714658, 'usUnits': 1, 
> 'windSpeed': 2.0, 'windDir': 234, 'windGust': 5.0, 'windGustDir': 227, 
> 'rain': 0.0, 'rainRate': 0.007874015748031498}:
> Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
> Starting new HTTP connection (1): 192.168.2.33:80
> Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
> http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
> Jul 14 10:17:40 weewximport weewx[881] INFO weewx.restx: MQTT: Published 
> record 2020-07-14 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Okay, got the first to rain ticks (of 0.2 mm each). First rain tick at 
about 09:50 and second rain tick at about 10:08 (verified with my other 
weewx-environment, my live-environment). Not looking good, see below. Also, 
radiation, UV and ET are NULL, although I have data for these variables.

MariaDB [weewx_import]> select from_unixtime(dateTime), rain, rainrate, 
radiation, uv, et from archive order by datetime desc limit 30;
+-+-+-+---+--+--+
| from_unixtime(dateTime) | rain| rainrate| 
radiation | uv   | et   |
+-+-+-+---+--+--+
| 2020-07-14 10:13:00 | 3.2 |  33.6499935 
|  NULL | NULL | NULL |
| 2020-07-14 10:12:00 | 3.2 |   32.049993 
|  NULL | NULL | NULL |
| 2020-07-14 10:11:00 | 3.2 |   30.449994 
|  NULL | NULL | NULL |
| 2020-07-14 10:10:00 | 3.2 |  28.8499945 
|  NULL | NULL | NULL |
| 2020-07-14 10:09:00 | 3.2 |   27.249995 
|  NULL | NULL | NULL |
| 2020-07-14 10:08:00 | 3.2 |   25.649995 
|  NULL | NULL | NULL |
| 2020-07-14 10:07:00 | 2.2 |  24.2124956 
|  NULL | NULL | NULL |
| 2020-07-14 10:06:00 | 1.6 |   24.131245 
|  NULL | NULL | NULL |
| 2020-07-14 10:05:00 | 1.6 |  24.1499956 
|  NULL | NULL | NULL |
| 2020-07-14 10:04:00 | 1.6 |  23.6249954 
|  NULL | NULL | NULL |
| 2020-07-14 10:03:00 | 1.6 |   22.049996 
|  NULL | NULL | NULL |
| 2020-07-14 10:02:00 | 1.6 |  20.4499964 
|  NULL | NULL | NULL |
| 2020-07-14 10:01:00 | 1.6 |   18.849997 
|  NULL | NULL | NULL |
| 2020-07-14 10:00:00 | 1.6 |  17.2499968 
|  NULL | NULL | NULL |
| 2020-07-14 09:59:00 | 1.6 |  15.6499974 
|  NULL | NULL | NULL |
| 2020-07-14 09:58:00 | 1.6 |   14.049998 
|  NULL | NULL | NULL |
| 2020-07-14 09:57:00 | 1.6 |  12.4499985 
|  NULL | NULL | NULL |
| 2020-07-14 09:56:00 | 1.6 |  10.843 
|  NULL | NULL | NULL |
| 2020-07-14 09:55:00 | 1.6 |   9.248 
|  NULL | NULL | NULL |
| 2020-07-14 09:54:00 | 1.6 |   7.652 
|  NULL | NULL | NULL |
| 2020-07-14 09:53:00 | 1.6 |  6.0525 
|  NULL | NULL | NULL |
| 2020-07-14 09:52:00 | 1.6 |   4.453 
|  NULL | NULL | NULL |
| 2020-07-14 09:51:00 | 1.6 |  2.8514 
|  NULL | NULL | NULL |
| 2020-07-14 09:50:00 | 1.6 |  1.2502 
|  NULL | NULL | NULL |
| 2020-07-14 09:49:00 | 0.20004 | 0.06251 
|  NULL | NULL | NULL |
| 2020-07-14 09:48:00 |   0 |   0 
|  NULL | NULL | NULL |
| 2020-07-14 09:47:00 |   0 |   0 
|  NULL | NULL | NULL |
| 2020-07-14 09:46:00 |   0 |   0 
|  NULL | NULL | NULL |
| 2020-07-14 09:45:00 |   0 |   0 
|  NULL | NULL | NULL |
| 2020-07-14 09:44:00 |   0 |   0 
|  NULL | NULL | NULL |
+-+-+-+---+--+--+
30 rows in set (0.001 sec)

Console output:
maarten@weewximport:~$ tail -f /var/log/syslog
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set previous 
period rain to: 2
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: rainRate 
rightnow is : 0.007874015748031498
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Packet 
received from WLL module {'dateTime': 1594714658, 'usUnits': 1, 
'windSpeed': 2.0, 'windDir': 234, 'windGust': 5.0, 'windGustDir': 227, 
'rain': 0.0, 'rainRate': 0.007874015748031498}:
Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
Starting new HTTP connection (1): 192.168.2.33:80
Jul 14 10:17:40 weewximport weewx[881] DEBUG urllib3.connectionpool: 
http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
Jul 14 10:17:40 weewximport weewx[881] INFO weewx.restx: MQTT: Published 
record 2020-07-14 10:17:38 CEST (1594714658)
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Rain rightnow 
is :-0.02
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Set previous 
period rain to: 0
Jul 14 10:17:40 weewximport weewx[881] DEBUG user.WLLDriver: Packet 
received from WLL module 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-14 Thread Maarten van der Hoeven
Yup, started your driver this morning. Will watch it.

Op maandag 13 juli 2020 om 22:34:12 UTC+2 schreef flor...@pre-vost.fr:

> Can you try my latest version ?
>
> It seems that tomorrow rain ^^
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/75e3122b-202b-4c92-a380-c89866410b26n%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-13 Thread Florentin Prevost
Can you try my latest version ?

It seems that tomorrow rain ^^

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/9a9cc18f-61f4-4183-9f61-80a7ca80ef25o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-12 Thread Maarten van der Hoeven
Okay. Any new stuff to test? To take special attention to?

Op zondag 12 juli 2020 om 20:37:04 UTC+2 schreef flor...@pre-vost.fr:

> Hi,
>
> See new git for more visibility :  
> https://github.com/Drealine/weatherlinklive-driver-weewx  
>
> Le mercredi 8 juillet 2020 à 22:12:44 UTC+2, flor...@pre-vost.fr a écrit :
>
>> Hi :)
>>
>> Can you try my fix on the repo ?
>>
>> Seems that I calculate 0 / 25.4 or 2.54. I fixed it.
>>
>> Le mercredi 8 juillet 2020 à 21:36:48 UTC+2, hoev...@gmail.com a écrit :
>>
>>> I'm happy to help! Some progress :)
>>>
>>> Outtemp, extratemp1, windspeed and windgust seem okay. Radiation, UV, ET 
>>> still NULL.
>>>
>>> Rain and rainrate are weird. It is currently not raining, yet rain > 0. 
>>> Rainrate goes through the roof (and increasing)
>>>
>>> mysql> select 
>>> datetime,from_unixtime(datetime),round(outtemp,1),round(windspeed,1),round(windgust,1),radiation,uv,et,round(rain,1),round(rainrate,1),round(extratemp1,1)
>>>  
>>> from weewxtest.archive order by datetime desc limit 10;
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> | datetime   | from_unixtime(datetime) | round(outtemp,1) | 
>>> round(windspeed,1) | round(windgust,1) | radiation | uv   | et   | 
>>> round(rain,1) | round(rainrate,1) | round(extratemp1,1) |
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> | 1594236660 | 2020-07-08 21:31:00 | 14.6 
>>> |1.1 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 321.9 |14.4 |
>>> | 1594236600 | 2020-07-08 21:30:00 | 14.6 
>>> |1.3 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 262.7 |14.4 |
>>> | 1594236540 | 2020-07-08 21:29:00 | 14.6 
>>> |0.9 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 203.5 |14.4 |
>>> | 1594236480 | 2020-07-08 21:28:00 | 14.6 
>>> |1.1 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 | 144.3 |14.4 |
>>> | 1594236420 | 2020-07-08 21:27:00 | 14.6 
>>> |1.4 |   2.7 |  NULL | NULL | NULL 
>>> |  59.2 |  88.8 |14.4 |
>>> | 1594236360 | 2020-07-08 21:26:00 | 14.6 
>>> |1.3 |   2.7 |  NULL | NULL | NULL 
>>> |  51.8 |  23.9 |14.4 |
>>>
>>> ++-+--++---+---+--+--+---+---+-+
>>> 6 rows in set (0.00 sec)
>>>
>>> Console output:
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>>> is :-0.37
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>>> period rain to: 0
>>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet 
>>> received from WLL module {'dateTime': 1594236848, 'usUnits': 1, 'outTemp': 
>>> 58.2, 'outHumidity': 97.2, 'dewpoint': 57.4, 'heatindex': 58.9, 
>>> 'windchill': 58.2, 'windSpeed': 3.0, 'windDir': 43, 'windGust': 6.0, 
>>> 'windGustDir': 36, 'barometer': 29.972, 'pressure': 29.96, 'inTemp': 68.8, 
>>> 'inHumidity': 64.1, 'inDewpoint': 56.2, 'extraTemp1': 58.0}:
>>> Jul  8 21:34:09 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>>> record 2020-07-08 21:34:08 CEST (1594236848)
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>>> Jul  8 21:34:11 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
>>> user.WLLDriver: extraTemp1]
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>>> is :0.2913385826771654
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>>> period rain to: 37
>>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet 
>>> received from WLL module {'dateTime': 1594236850, 'usUnits': 1, 
>>> 'windSpeed': 4.0, 'windDir': 42, 'windGust': 6.0, 'windGustDir': 37, 
>>> 'rain': 0.2913385826771654, 'rainRate': 0.0}:
>>> Jul  8 21:34:11 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>>> record 2020-07-08 21:34:10 CEST (1594236850)
>>> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>>> Jul  

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-12 Thread flor...@pre-vost.fr
Hi,

See new git for more visibility :  
https://github.com/Drealine/weatherlinklive-driver-weewx  

Le mercredi 8 juillet 2020 à 22:12:44 UTC+2, flor...@pre-vost.fr a écrit :

> Hi :)
>
> Can you try my fix on the repo ?
>
> Seems that I calculate 0 / 25.4 or 2.54. I fixed it.
>
> Le mercredi 8 juillet 2020 à 21:36:48 UTC+2, hoev...@gmail.com a écrit :
>
>> I'm happy to help! Some progress :)
>>
>> Outtemp, extratemp1, windspeed and windgust seem okay. Radiation, UV, ET 
>> still NULL.
>>
>> Rain and rainrate are weird. It is currently not raining, yet rain > 0. 
>> Rainrate goes through the roof (and increasing)
>>
>> mysql> select 
>> datetime,from_unixtime(datetime),round(outtemp,1),round(windspeed,1),round(windgust,1),radiation,uv,et,round(rain,1),round(rainrate,1),round(extratemp1,1)
>>  
>> from weewxtest.archive order by datetime desc limit 10;
>>
>> ++-+--++---+---+--+--+---+---+-+
>> | datetime   | from_unixtime(datetime) | round(outtemp,1) | 
>> round(windspeed,1) | round(windgust,1) | radiation | uv   | et   | 
>> round(rain,1) | round(rainrate,1) | round(extratemp1,1) |
>>
>> ++-+--++---+---+--+--+---+---+-+
>> | 1594236660 | 2020-07-08 21:31:00 | 14.6 
>> |1.1 |   2.7 |  NULL | NULL | NULL 
>> |  59.2 | 321.9 |14.4 |
>> | 1594236600 | 2020-07-08 21:30:00 | 14.6 
>> |1.3 |   2.7 |  NULL | NULL | NULL 
>> |  59.2 | 262.7 |14.4 |
>> | 1594236540 | 2020-07-08 21:29:00 | 14.6 
>> |0.9 |   2.7 |  NULL | NULL | NULL 
>> |  59.2 | 203.5 |14.4 |
>> | 1594236480 | 2020-07-08 21:28:00 | 14.6 
>> |1.1 |   2.7 |  NULL | NULL | NULL 
>> |  59.2 | 144.3 |14.4 |
>> | 1594236420 | 2020-07-08 21:27:00 | 14.6 
>> |1.4 |   2.7 |  NULL | NULL | NULL 
>> |  59.2 |  88.8 |14.4 |
>> | 1594236360 | 2020-07-08 21:26:00 | 14.6 
>> |1.3 |   2.7 |  NULL | NULL | NULL 
>> |  51.8 |  23.9 |14.4 |
>>
>> ++-+--++---+---+--+--+---+---+-+
>> 6 rows in set (0.00 sec)
>>
>> Console output:
>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>> is :-0.37
>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>> period rain to: 0
>> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
>> from WLL module {'dateTime': 1594236848, 'usUnits': 1, 'outTemp': 58.2, 
>> 'outHumidity': 97.2, 'dewpoint': 57.4, 'heatindex': 58.9, 'windchill': 
>> 58.2, 'windSpeed': 3.0, 'windDir': 43, 'windGust': 6.0, 'windGustDir': 36, 
>> 'barometer': 29.972, 'pressure': 29.96, 'inTemp': 68.8, 'inHumidity': 64.1, 
>> 'inDewpoint': 56.2, 'extraTemp1': 58.0}:
>> Jul  8 21:34:09 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>> record 2020-07-08 21:34:08 CEST (1594236848)
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>> Jul  8 21:34:11 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
>> user.WLLDriver: extraTemp1]
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow 
>> is :0.2913385826771654
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
>> period rain to: 37
>> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
>> from WLL module {'dateTime': 1594236850, 'usUnits': 1, 'windSpeed': 4.0, 
>> 'windDir': 42, 'windGust': 6.0, 'windGustDir': 37, 'rain': 
>> 0.2913385826771654, 'rainRate': 0.0}:
>> Jul  8 21:34:11 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
>> record 2020-07-08 21:34:10 CEST (1594236850)
>> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
>> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
>> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
>> Jul  8 21:34:14 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread flor...@pre-vost.fr
Hi :)

Can you try my fix on the repo ?

Seems that I calculate 0 / 25.4 or 2.54. I fixed it.

Le mercredi 8 juillet 2020 à 21:36:48 UTC+2, hoev...@gmail.com a écrit :

> I'm happy to help! Some progress :)
>
> Outtemp, extratemp1, windspeed and windgust seem okay. Radiation, UV, ET 
> still NULL.
>
> Rain and rainrate are weird. It is currently not raining, yet rain > 0. 
> Rainrate goes through the roof (and increasing)
>
> mysql> select 
> datetime,from_unixtime(datetime),round(outtemp,1),round(windspeed,1),round(windgust,1),radiation,uv,et,round(rain,1),round(rainrate,1),round(extratemp1,1)
>  
> from weewxtest.archive order by datetime desc limit 10;
>
> ++-+--++---+---+--+--+---+---+-+
> | datetime   | from_unixtime(datetime) | round(outtemp,1) | 
> round(windspeed,1) | round(windgust,1) | radiation | uv   | et   | 
> round(rain,1) | round(rainrate,1) | round(extratemp1,1) |
>
> ++-+--++---+---+--+--+---+---+-+
> | 1594236660 | 2020-07-08 21:31:00 | 14.6 |
> 1.1 |   2.7 |  NULL | NULL | NULL |  59.2 
> | 321.9 |14.4 |
> | 1594236600 | 2020-07-08 21:30:00 | 14.6 |
> 1.3 |   2.7 |  NULL | NULL | NULL |  59.2 
> | 262.7 |14.4 |
> | 1594236540 | 2020-07-08 21:29:00 | 14.6 |
> 0.9 |   2.7 |  NULL | NULL | NULL |  59.2 
> | 203.5 |14.4 |
> | 1594236480 | 2020-07-08 21:28:00 | 14.6 |
> 1.1 |   2.7 |  NULL | NULL | NULL |  59.2 
> | 144.3 |14.4 |
> | 1594236420 | 2020-07-08 21:27:00 | 14.6 |
> 1.4 |   2.7 |  NULL | NULL | NULL |  59.2 
> |  88.8 |14.4 |
> | 1594236360 | 2020-07-08 21:26:00 | 14.6 |
> 1.3 |   2.7 |  NULL | NULL | NULL |  51.8 
> |  23.9 |14.4 |
>
> ++-+--++---+---+--+--+---+---+-+
> 6 rows in set (0.00 sec)
>
> Console output:
> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow is 
> :-0.37
> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
> period rain to: 0
> Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1594236848, 'usUnits': 1, 'outTemp': 58.2, 
> 'outHumidity': 97.2, 'dewpoint': 57.4, 'heatindex': 58.9, 'windchill': 
> 58.2, 'windSpeed': 3.0, 'windDir': 43, 'windGust': 6.0, 'windGustDir': 36, 
> 'barometer': 29.972, 'pressure': 29.96, 'inTemp': 68.8, 'inHumidity': 64.1, 
> 'inDewpoint': 56.2, 'extraTemp1': 58.0}:
> Jul  8 21:34:09 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
> record 2020-07-08 21:34:08 CEST (1594236848)
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
> Jul  8 21:34:11 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
> user.WLLDriver: extraTemp1]
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow is 
> :0.2913385826771654
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
> period rain to: 37
> Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1594236850, 'usUnits': 1, 'windSpeed': 4.0, 
> 'windDir': 42, 'windGust': 6.0, 'windGustDir': 37, 'rain': 
> 0.2913385826771654, 'rainRate': 0.0}:
> Jul  8 21:34:11 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
> record 2020-07-08 21:34:10 CEST (1594236850)
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
> Jul  8 21:34:14 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
> user.WLLDriver: extraTemp1]
> Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
> Jul  8 21:34:14 ubuntu weewx[19395] 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread Maarten van der Hoeven
I'm happy to help! Some progress :)

Outtemp, extratemp1, windspeed and windgust seem okay. Radiation, UV, ET 
still NULL.

Rain and rainrate are weird. It is currently not raining, yet rain > 0. 
Rainrate goes through the roof (and increasing)

mysql> select 
datetime,from_unixtime(datetime),round(outtemp,1),round(windspeed,1),round(windgust,1),radiation,uv,et,round(rain,1),round(rainrate,1),round(extratemp1,1)
 
from weewxtest.archive order by datetime desc limit 10;
++-+--++---+---+--+--+---+---+-+
| datetime   | from_unixtime(datetime) | round(outtemp,1) | 
round(windspeed,1) | round(windgust,1) | radiation | uv   | et   | 
round(rain,1) | round(rainrate,1) | round(extratemp1,1) |
++-+--++---+---+--+--+---+---+-+
| 1594236660 | 2020-07-08 21:31:00 | 14.6 |
1.1 |   2.7 |  NULL | NULL | NULL |  59.2 
| 321.9 |14.4 |
| 1594236600 | 2020-07-08 21:30:00 | 14.6 |
1.3 |   2.7 |  NULL | NULL | NULL |  59.2 
| 262.7 |14.4 |
| 1594236540 | 2020-07-08 21:29:00 | 14.6 |
0.9 |   2.7 |  NULL | NULL | NULL |  59.2 
| 203.5 |14.4 |
| 1594236480 | 2020-07-08 21:28:00 | 14.6 |
1.1 |   2.7 |  NULL | NULL | NULL |  59.2 
| 144.3 |14.4 |
| 1594236420 | 2020-07-08 21:27:00 | 14.6 |
1.4 |   2.7 |  NULL | NULL | NULL |  59.2 
|  88.8 |14.4 |
| 1594236360 | 2020-07-08 21:26:00 | 14.6 |
1.3 |   2.7 |  NULL | NULL | NULL |  51.8 
|  23.9 |14.4 |
++-+--++---+---+--+--+---+---+-+
6 rows in set (0.00 sec)

Console output:
Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow is 
:-0.37
Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
period rain to: 0
Jul  8 21:34:09 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594236848, 'usUnits': 1, 'outTemp': 58.2, 
'outHumidity': 97.2, 'dewpoint': 57.4, 'heatindex': 58.9, 'windchill': 
58.2, 'windSpeed': 3.0, 'windDir': 43, 'windGust': 6.0, 'windGustDir': 36, 
'barometer': 29.972, 'pressure': 29.96, 'inTemp': 68.8, 'inHumidity': 64.1, 
'inDewpoint': 56.2, 'extraTemp1': 58.0}:
Jul  8 21:34:09 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
record 2020-07-08 21:34:08 CEST (1594236848)
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
Jul  8 21:34:11 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
user.WLLDriver: extraTemp1]
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow is 
:0.2913385826771654
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
period rain to: 37
Jul  8 21:34:11 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594236850, 'usUnits': 1, 'windSpeed': 4.0, 
'windDir': 42, 'windGust': 6.0, 'windGustDir': 37, 'rain': 
0.2913385826771654, 'rainRate': 0.0}:
Jul  8 21:34:11 ubuntu weewx[19395] INFO weewx.restx: MQTT: Published 
record 2020-07-08 21:34:10 CEST (1594236850)
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: iss
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp1
Jul  8 21:34:14 ubuntu weewx[19395] message repeated 2 times: [ DEBUG 
user.WLLDriver: extraTemp1]
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: extraTemp2
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: Rain rightnow is 
:0.0
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: Set previous 
period rain to: 37
Jul  8 21:34:14 ubuntu weewx[19395] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594236853, 'usUnits': 1, 'windSpeed': 4.0, 
'windDir': 61, 'windGust': 6.0, 'windGustDir': 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread flor...@pre-vost.fr
Hi,

Thank you for testing my driver.

I update the code on Github. 
: https://github.com/Drealine/WLLDriver/blob/master/bin/user/WLLDriver.py

Just download the WLLDriver.py in my repo and put on your user folder.

Let me know if it's ok with modulate sensor in WLLDriver conf.

Thank you :) 

Le mercredi 8 juillet 2020 à 19:15:41 UTC+2, hoev...@gmail.com a écrit :

> We got some sustained rain this afternoon; rain seems to be 
> missed. First column (rain and rainrate) from my production server, second 
> column (rain, rainrate) from WLLDriver v0.2. All rain are zero, 
> although it did rain (first columns)
>
> mysql> select 
> weewx.archive.datetime,from_unixtime(weewx.archive.datetime),weewx.archive.rain,weewxtest.archive.rain,weewx.archive.rainrate,weewxtest.archive.rainrate
>  
> from weewx.archive,weewxtest.archive where 
> weewx.archive.datetime=weewxtest.archive.datetime order by 
> weewx.archive.datetime desc limit 100;
>
> ++---+---+--++--+
> | datetime   | from_unixtime(weewx.archive.datetime) | rain  | 
> rain | rainrate   | rainrate |
>
> ++---+---+--++--+
> | 1594228320 | 2020-07-08 19:12:00   | 0.1999878 |
> 0 |  1.1999268 |0 |
> | 1594228260 | 2020-07-08 19:11:00   | 0 |
> 0 |  1.1999268 |0 |
> | 1594228200 | 2020-07-08 19:10:00   | 0 |
> 0 |  1.1999268 |0 |
> | 1594228140 | 2020-07-08 19:09:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594228080 | 2020-07-08 19:08:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594228020 | 2020-07-08 19:07:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227960 | 2020-07-08 19:06:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227900 | 2020-07-08 19:05:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227840 | 2020-07-08 19:04:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227780 | 2020-07-08 19:03:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227720 | 2020-07-08 19:02:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227660 | 2020-07-08 19:01:00   | 0.1999878 |
> 0 |  1.7998902 |0 |
> | 1594227600 | 2020-07-08 19:00:00   | 0 |
> 0 |  1.7998902 |0 |
> | 1594227540 | 2020-07-08 18:59:00   | 0 |
> 0 |   1.999878 |0 |
> | 1594227480 | 2020-07-08 18:58:00   | 0 |
> 0 |   1.999878 |0 |
> | 1594227420 | 2020-07-08 18:57:00   | 0 |
> 0 |   1.999878 |0 |
> | 1594227360 | 2020-07-08 18:56:00   | 0 |
> 0 |   1.999878 |0 |
> | 1594227300 | 2020-07-08 18:55:00   | 0 |
> 0 |   1.999878 |0 |
> | 1594227240 | 2020-07-08 18:54:00   | 0.1999878 |
> 0 |   1.999878 |0 |
> | 1594227180 | 2020-07-08 18:53:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594227120 | 2020-07-08 18:52:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594227060 | 2020-07-08 18:51:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594227000 | 2020-07-08 18:50:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594226940 | 2020-07-08 18:49:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594226880 | 2020-07-08 18:48:00   | 0.1999878 |
> 0 |  1.3999146 |0 |
> | 1594226820 | 2020-07-08 18:47:00   | 0 |
> 0 |  1.3999146 |0 |
> | 1594226760 | 2020-07-08 18:46:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226700 | 2020-07-08 18:45:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226640 | 2020-07-08 18:44:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226580 | 2020-07-08 18:43:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226520 | 2020-07-08 18:42:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226460 | 2020-07-08 18:41:00   | 0 |
> 0 |  1.5999024 |0 |
> | 1594226400 | 2020-07-08 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread Maarten van der Hoeven
We got some sustained rain this afternoon; rain seems to be 
missed. First column (rain and rainrate) from my production server, second 
column (rain, rainrate) from WLLDriver v0.2. All rain are zero, 
although it did rain (first columns)

mysql> select 
weewx.archive.datetime,from_unixtime(weewx.archive.datetime),weewx.archive.rain,weewxtest.archive.rain,weewx.archive.rainrate,weewxtest.archive.rainrate
 
from weewx.archive,weewxtest.archive where 
weewx.archive.datetime=weewxtest.archive.datetime order by 
weewx.archive.datetime desc limit 100;
++---+---+--++--+
| datetime   | from_unixtime(weewx.archive.datetime) | rain  | rain 
| rainrate   | rainrate |
++---+---+--++--+
| 1594228320 | 2020-07-08 19:12:00   | 0.1999878 |0 
|  1.1999268 |0 |
| 1594228260 | 2020-07-08 19:11:00   | 0 |0 
|  1.1999268 |0 |
| 1594228200 | 2020-07-08 19:10:00   | 0 |0 
|  1.1999268 |0 |
| 1594228140 | 2020-07-08 19:09:00   | 0 |0 
|  1.3999146 |0 |
| 1594228080 | 2020-07-08 19:08:00   | 0 |0 
|  1.5999024 |0 |
| 1594228020 | 2020-07-08 19:07:00   | 0 |0 
|  1.7998902 |0 |
| 1594227960 | 2020-07-08 19:06:00   | 0 |0 
|  1.7998902 |0 |
| 1594227900 | 2020-07-08 19:05:00   | 0 |0 
|  1.7998902 |0 |
| 1594227840 | 2020-07-08 19:04:00   | 0 |0 
|  1.7998902 |0 |
| 1594227780 | 2020-07-08 19:03:00   | 0 |0 
|  1.7998902 |0 |
| 1594227720 | 2020-07-08 19:02:00   | 0 |0 
|  1.7998902 |0 |
| 1594227660 | 2020-07-08 19:01:00   | 0.1999878 |0 
|  1.7998902 |0 |
| 1594227600 | 2020-07-08 19:00:00   | 0 |0 
|  1.7998902 |0 |
| 1594227540 | 2020-07-08 18:59:00   | 0 |0 
|   1.999878 |0 |
| 1594227480 | 2020-07-08 18:58:00   | 0 |0 
|   1.999878 |0 |
| 1594227420 | 2020-07-08 18:57:00   | 0 |0 
|   1.999878 |0 |
| 1594227360 | 2020-07-08 18:56:00   | 0 |0 
|   1.999878 |0 |
| 1594227300 | 2020-07-08 18:55:00   | 0 |0 
|   1.999878 |0 |
| 1594227240 | 2020-07-08 18:54:00   | 0.1999878 |0 
|   1.999878 |0 |
| 1594227180 | 2020-07-08 18:53:00   | 0 |0 
|  1.3999146 |0 |
| 1594227120 | 2020-07-08 18:52:00   | 0 |0 
|  1.3999146 |0 |
| 1594227060 | 2020-07-08 18:51:00   | 0 |0 
|  1.3999146 |0 |
| 1594227000 | 2020-07-08 18:50:00   | 0 |0 
|  1.3999146 |0 |
| 1594226940 | 2020-07-08 18:49:00   | 0 |0 
|  1.3999146 |0 |
| 1594226880 | 2020-07-08 18:48:00   | 0.1999878 |0 
|  1.3999146 |0 |
| 1594226820 | 2020-07-08 18:47:00   | 0 |0 
|  1.3999146 |0 |
| 1594226760 | 2020-07-08 18:46:00   | 0 |0 
|  1.5999024 |0 |
| 1594226700 | 2020-07-08 18:45:00   | 0 |0 
|  1.5999024 |0 |
| 1594226640 | 2020-07-08 18:44:00   | 0 |0 
|  1.5999024 |0 |
| 1594226580 | 2020-07-08 18:43:00   | 0 |0 
|  1.5999024 |0 |
| 1594226520 | 2020-07-08 18:42:00   | 0 |0 
|  1.5999024 |0 |
| 1594226460 | 2020-07-08 18:41:00   | 0 |0 
|  1.5999024 |0 |
| 1594226400 | 2020-07-08 18:40:00   | 0.1999878 |0 
|  1.5999024 |0 |
| 1594226340 | 2020-07-08 18:39:00   | 0 |0 
|  1.5999024 |0 |
| 1594226280 | 2020-07-08 18:38:00   | 0 |0 
|  1.7998902 |0 |
| 1594226220 | 2020-07-08 18:37:00   | 0 |0 
|   1.999878 |0 |
| 1594226160 | 2020-07-08 18:36:00   | 0 |0 
|   1.999878 |0 |
| 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread Maarten van der Hoeven
Okay, got v0.2 running now. My weewx.conf stanza shows (ISS on ID=2, 
extratemp1 on ID=3).
[WLLDriver]
driver = user.WLLDriver
max_tries = 5
retry_wait = 5
poll_interval = 5
udp_enable = 1
hostname = 192.168.2.33
wl_apikey = nivwsekqwfbkhqtqwo8nximhl7zgxpcs
wl_apisecret = *secret*
wl_stationid = 92884
time_out = 10
device_id = 2:iss-3:extraTemp1

Output MySQL:
mysql> select 
datetime,from_unixtime(datetime),outtemp,windspeed,windgust,radiation,uv,et,rain,rainrate,extratemp1
 
from weewxtest.archive order by datetime des
c limit 5;
++-++---+--+---+--+--+--+--++
| datetime   | from_unixtime(datetime) | outtemp| windspeed | 
windgust | radiation | uv   | et   | rain | rainrate | extratemp1 |
++-++---+--+---+--+--+--+--++
| 1594216440 | 2020-07-08 15:54:00 |  16.11 |  NULL 
| NULL |  NULL | NULL | NULL |0 |0 |   NULL |
| 1594216380 | 2020-07-08 15:53:00 | 16.1805557 |  NULL 
| NULL |  NULL | NULL | NULL |0 |0 |   NULL |
| 1594216320 | 2020-07-08 15:52:00 |  16.11 |  NULL 
| NULL |  NULL | NULL | NULL |0 |0 |   NULL |
| 1594216260 | 2020-07-08 15:51:00 | 16.0972225 |  NULL 
| NULL |  NULL | NULL | NULL |0 |0 |   NULL |
| 1594216200 | 2020-07-08 15:50:00 | 16.057 |  NULL 
| NULL |  NULL | NULL | NULL |0 |0 |   NULL |
++-++---+--+---+--+--+--+--++
5 rows in set (0.00 sec)

Console output (syslog):
Jul  8 15:49:31 ubuntu weewx[3696] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594216170, 'usUnits': 1, 'outTemp': 60.9, 
'outHumidity': 94.4, 'dewpoint': 57.7, 'heatindex': 59.7, 'windchill': 
59.3, 'windSpeed': None, 'windDir': None, 'windGust': None, 'windGustDir': 
None, 'barometer': 29.998, 'pressure': 29.986, 'inTemp': 70.4, 
'inHumidity': 60.9, 'inDewpoint': 56.3}:
Jul  8 15:49:31 ubuntu weewx[3696] INFO weewx.restx: MQTT: Published record 
2020-07-08 15:49:30 CEST (1594216170)
Jul  8 15:49:33 ubuntu weewx[3696] DEBUG user.WLLDriver: Rain rightnow is 
:0.0
Jul  8 15:49:33 ubuntu weewx[3696] DEBUG user.WLLDriver: Set previous 
period rain to: 0
Jul  8 15:49:33 ubuntu weewx[3696] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594216173, 'usUnits': 1, 'windSpeed': None, 
'windDir': None, 'windGust': None, 'windGustDir': None, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  8 15:49:33 ubuntu weewx[3696] INFO weewx.restx: MQTT: Published record 
2020-07-08 15:49:33 CEST (1594216173)
Jul  8 15:49:36 ubuntu weewx[3696] DEBUG user.WLLDriver: Rain rightnow is 
:0.0
Jul  8 15:49:36 ubuntu weewx[3696] DEBUG user.WLLDriver: Set previous 
period rain to: 0
Jul  8 15:49:36 ubuntu weewx[3696] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1594216175, 'usUnits': 1, 'windSpeed': None, 
'windDir': None, 'windGust': None, 'windGustDir': None, 'rain': 0.0, 
'rainRate': 0.0}:

Findings:
Windspeed, windgust, UV, radiation, et, extratemp1 remain NULL

JSON output of current conditions attached



Op woensdag 8 juli 2020 om 12:52:19 UTC+2 schreef flor...@pre-vost.fr:

> Hi,
>
> Thank for your feadback.
>
> I pushed the v0.2 in my github. You can install it by using wee_extension 
> :  https://github.com/Drealine/WLLDriver/releases/tag/0.2
>
> Le mardi 7 juillet 2020 à 13:52:34 UTC+2, hoev...@gmail.com a écrit :
>
>> Rain and rainrate goes askew. First column (rain, rainrate) coming from 
>> production (weewx with Weatherlink IP,  running for years), second column 
>> (rain,rainrate) coming from weewxtest (WLLArchive).
>>
>> mysql> select 
>> from_unixtime(weewx.archive.datetime),weewx.archive.rain,weewxtest.archive.rain,weewx.archive.rainrate,weewxtest.archive.rainrate
>>  
>> from weewx.archive,weewxtest.archive where 
>> weewx.archive.datetime=weewxtest.archive.datetime
>> and from_unixtime(weewx.archive.datetime) like '2020-07-06%' and 
>> weewx.archive.rainrate > 0 and weewxtest.archive.rainrate >= 0 limit 100;
>>
>> +---+---+--++--+
>> | from_unixtime(weewx.archive.datetime) | rain  | rain | 
>> rainrate   | rainrate |
>>
>> +---+---+--++--+
>> | 2020-07-06 09:25:00   | 0.1999878 |  0.6 | 
>> 5.79964624 |   11 |
>> | 2020-07-06 09:30:00   | 0 |0 |   
>> 1.999878 |  5.6 |
>> | 2020-07-06 09:35:00   | 0 |0 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-08 Thread flor...@pre-vost.fr
Hi,

Thank for your feadback.

I pushed the v0.2 in my github. You can install it by using wee_extension 
:  https://github.com/Drealine/WLLDriver/releases/tag/0.2

Le mardi 7 juillet 2020 à 13:52:34 UTC+2, hoev...@gmail.com a écrit :

> Rain and rainrate goes askew. First column (rain, rainrate) coming from 
> production (weewx with Weatherlink IP,  running for years), second column 
> (rain,rainrate) coming from weewxtest (WLLArchive).
>
> mysql> select 
> from_unixtime(weewx.archive.datetime),weewx.archive.rain,weewxtest.archive.rain,weewx.archive.rainrate,weewxtest.archive.rainrate
>  
> from weewx.archive,weewxtest.archive where 
> weewx.archive.datetime=weewxtest.archive.datetime
> and from_unixtime(weewx.archive.datetime) like '2020-07-06%' and 
> weewx.archive.rainrate > 0 and weewxtest.archive.rainrate >= 0 limit 100;
>
> +---+---+--++--+
> | from_unixtime(weewx.archive.datetime) | rain  | rain | 
> rainrate   | rainrate |
>
> +---+---+--++--+
> | 2020-07-06 09:25:00   | 0.1999878 |  0.6 | 
> 5.79964624 |   11 |
> | 2020-07-06 09:30:00   | 0 |0 |   
> 1.999878 |  5.6 |
> | 2020-07-06 09:35:00   | 0 |0 |   
> 0.39 |2 |
> | 2020-07-06 09:40:00   | 0 |0 |  
> 0.7999512 |1 |
> | 2020-07-06 11:30:00   | 0.1999878 |  0.8 |  
> 9.5994144 | 12.4 |
> | 2020-07-06 11:35:00   | 0 |  0.6 |  
> 5.1996828 | 27.8 |
> | 2020-07-06 11:40:00   | 0 |0 |  
> 1.7998902 |  5.2 |
> | 2020-07-06 11:45:00   | 0 |0 |   
> 0.39 |  1.6 |
> | 2020-07-06 11:50:00   | 0 |0 |  
> 0.7999512 |1 |
> | 2020-07-06 12:45:00   | 0 |  0.4 |  
> 4.7997072 |  4.8 |
> | 2020-07-06 12:50:00   | 0 |0 |  
> 1.5999024 |  4.8 |
> | 2020-07-06 12:55:00   | 0 |0 |   
> 0.39 |  1.6 |
> | 2020-07-06 13:30:00   | 0.1999878 |  0.8 | 
> 24.3985116 | 24.4 |
> | 2020-07-06 13:35:00   | 0.1999878 |  2.8 |  
> 16.998963 |  128 |
> | 2020-07-06 13:40:00   | 0 |  0.4 |   
> 3.999756 |   16 |
> | 2020-07-06 13:45:00   | 0 |0 |  
> 1.3999146 |  3.6 |
> | 2020-07-06 13:50:00   | 0 |0 |   
> 0.39 |  1.4 |
> | 2020-07-06 15:00:00   | 0.1999878 |  0.6 | 
> 16.3989996 | 16.4 |
> | 2020-07-06 15:05:00   | 0 |  0.6 | 
> 3.39979264 | 30.8 |
> | 2020-07-06 15:10:00   | 0 |0 |  
> 1.3999146 |  3.2 |
> | 2020-07-06 15:15:00   | 0 |0 |  
> 0.7999512 |  1.4 |
>
> +---+---+--++--+
> 21 rows in set (0.86 sec)
>
>
> Op dinsdag 7 juli 2020 om 12:12:57 UTC+2 schreef Maarten van der Hoeven:
>
>> Same goes when records come from WLLDriver, same mismatch in 
>> rounding/conversion
>>
>> mysql> select 
>> from_unixtime(weewx.archive.datetime),weewx.archive.outtemp,weewxtest.archive.outtemp,weewx.archive.windspeed,weewxtest.archive.windspeed
>>  
>> from weewx.archive,weewxtest.archive where 
>> weewx.archive.datetime=weewxtest.archive.datetime and 
>> from_unixtime(weewx.archive.datetime) like '2020-07-07 12%' and 
>> weewxtest.archive.outtemp > -100 limit 10;
>>
>> +---+++---++
>>
>> | from_unixtime(weewx.archive.datetime) | outtemp| 
>> outtemp| windspeed | windspeed  |
>>
>> +---+++---++
>> | 2020-07-07 12:00:00   |  16.78 
>> |  16.72 |4.4704 |  4.729354838709677 |
>> | 2020-07-07 12:01:00   |  16.72 | 
>> 16.716 |   4.02336 |  4.171818181818182 |
>> | 2020-07-07 12:02:00   |  16.72 |  
>> 16.69142857142857 |   4.02336 |  4.038064516129032 |
>> | 2020-07-07 12:03:00   |  16.72 
>> |  16.67 |4.4704 |  4.577878787878787 |
>> | 2020-07-07 12:04:00   |  16.72 
>> |  16.67 |   3.57632 |  3.4228124 |
>> | 2020-07-07 12:05:00 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-07 Thread Maarten van der Hoeven
Rain and rainrate goes askew. First column (rain, rainrate) coming from 
production (weewx with Weatherlink IP,  running for years), second column 
(rain,rainrate) coming from weewxtest (WLLArchive).

mysql> select 
from_unixtime(weewx.archive.datetime),weewx.archive.rain,weewxtest.archive.rain,weewx.archive.rainrate,weewxtest.archive.rainrate
 
from weewx.archive,weewxtest.archive where 
weewx.archive.datetime=weewxtest.archive.datetime
and from_unixtime(weewx.archive.datetime) like '2020-07-06%' and 
weewx.archive.rainrate > 0 and weewxtest.archive.rainrate >= 0 limit 100;
+---+---+--++--+
| from_unixtime(weewx.archive.datetime) | rain  | rain | 
rainrate   | rainrate |
+---+---+--++--+
| 2020-07-06 09:25:00   | 0.1999878 |  0.6 | 
5.79964624 |   11 |
| 2020-07-06 09:30:00   | 0 |0 |   
1.999878 |  5.6 |
| 2020-07-06 09:35:00   | 0 |0 |   
0.39 |2 |
| 2020-07-06 09:40:00   | 0 |0 |  
0.7999512 |1 |
| 2020-07-06 11:30:00   | 0.1999878 |  0.8 |  
9.5994144 | 12.4 |
| 2020-07-06 11:35:00   | 0 |  0.6 |  
5.1996828 | 27.8 |
| 2020-07-06 11:40:00   | 0 |0 |  
1.7998902 |  5.2 |
| 2020-07-06 11:45:00   | 0 |0 |   
0.39 |  1.6 |
| 2020-07-06 11:50:00   | 0 |0 |  
0.7999512 |1 |
| 2020-07-06 12:45:00   | 0 |  0.4 |  
4.7997072 |  4.8 |
| 2020-07-06 12:50:00   | 0 |0 |  
1.5999024 |  4.8 |
| 2020-07-06 12:55:00   | 0 |0 |   
0.39 |  1.6 |
| 2020-07-06 13:30:00   | 0.1999878 |  0.8 | 
24.3985116 | 24.4 |
| 2020-07-06 13:35:00   | 0.1999878 |  2.8 |  
16.998963 |  128 |
| 2020-07-06 13:40:00   | 0 |  0.4 |   
3.999756 |   16 |
| 2020-07-06 13:45:00   | 0 |0 |  
1.3999146 |  3.6 |
| 2020-07-06 13:50:00   | 0 |0 |   
0.39 |  1.4 |
| 2020-07-06 15:00:00   | 0.1999878 |  0.6 | 
16.3989996 | 16.4 |
| 2020-07-06 15:05:00   | 0 |  0.6 | 
3.39979264 | 30.8 |
| 2020-07-06 15:10:00   | 0 |0 |  
1.3999146 |  3.2 |
| 2020-07-06 15:15:00   | 0 |0 |  
0.7999512 |  1.4 |
+---+---+--++--+
21 rows in set (0.86 sec)


Op dinsdag 7 juli 2020 om 12:12:57 UTC+2 schreef Maarten van der Hoeven:

> Same goes when records come from WLLDriver, same mismatch in 
> rounding/conversion
>
> mysql> select 
> from_unixtime(weewx.archive.datetime),weewx.archive.outtemp,weewxtest.archive.outtemp,weewx.archive.windspeed,weewxtest.archive.windspeed
>  
> from weewx.archive,weewxtest.archive where 
> weewx.archive.datetime=weewxtest.archive.datetime and 
> from_unixtime(weewx.archive.datetime) like '2020-07-07 12%' and 
> weewxtest.archive.outtemp > -100 limit 10;
>
> +---+++---++
>
> | from_unixtime(weewx.archive.datetime) | outtemp| 
> outtemp| windspeed | windspeed  |
>
> +---+++---++
> | 2020-07-07 12:00:00   |  16.78 
> |  16.72 |4.4704 |  4.729354838709677 |
> | 2020-07-07 12:01:00   |  16.72 | 
> 16.716 |   4.02336 |  4.171818181818182 |
> | 2020-07-07 12:02:00   |  16.72 |  
> 16.69142857142857 |   4.02336 |  4.038064516129032 |
> | 2020-07-07 12:03:00   |  16.72 
> |  16.67 |4.4704 |  4.577878787878787 |
> | 2020-07-07 12:04:00   |  16.72 
> |  16.67 |   3.57632 |  3.4228124 |
> | 2020-07-07 12:05:00   | 16.668 | 
> 16.655 |   3.57632 | 3.77187488 |
> | 2020-07-07 12:06:00   |  16.72 | 
> 16.661428571428573 |   4.02336 |  3.648064516129032 |
> | 2020-07-07 12:07:00   |  16.78 |  
> 16.69 |4.4704 |  4.321515151515152 |
> | 2020-07-07 12:08:00   |  

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-07 Thread Maarten van der Hoeven
Same goes when records come from WLLDriver, same mismatch in 
rounding/conversion

mysql> select 
from_unixtime(weewx.archive.datetime),weewx.archive.outtemp,weewxtest.archive.outtemp,weewx.archive.windspeed,weewxtest.archive.windspeed
 
from weewx.archive,weewxtest.archive where 
weewx.archive.datetime=weewxtest.archive.datetime and 
from_unixtime(weewx.archive.datetime) like '2020-07-07 12%' and 
weewxtest.archive.outtemp > -100 limit 10;
+---+++---++
| from_unixtime(weewx.archive.datetime) | outtemp| 
outtemp| windspeed | windspeed  |
+---+++---++
| 2020-07-07 12:00:00   |  16.78 |  
16.72 |4.4704 |  4.729354838709677 |
| 2020-07-07 12:01:00   |  16.72 | 
16.716 |   4.02336 |  4.171818181818182 |
| 2020-07-07 12:02:00   |  16.72 |  
16.69142857142857 |   4.02336 |  4.038064516129032 |
| 2020-07-07 12:03:00   |  16.72 |  
16.67 |4.4704 |  4.577878787878787 |
| 2020-07-07 12:04:00   |  16.72 |  
16.67 |   3.57632 |  3.4228124 |
| 2020-07-07 12:05:00   | 16.668 | 
16.655 |   3.57632 | 3.77187488 |
| 2020-07-07 12:06:00   |  16.72 | 
16.661428571428573 |   4.02336 |  3.648064516129032 |
| 2020-07-07 12:07:00   |  16.78 |  
16.69 |4.4704 |  4.321515151515152 |
| 2020-07-07 12:08:00   |  16.89 |
16.7975 |   4.02336 |   4.036875 |
| 2020-07-07 12:09:00   | 17 
|   16.9 |   4.91744 |  4.6381251 |
+---+++---++
10 rows in set (1.92 sec)


Op dinsdag 7 juli 2020 12:10:45 UTC+2 schreef Maarten van der Hoeven:
>
> Did testing with WLLArchive. 
>
> WLLArchive is picking up archived records, just from the point where 
> records are missing.Thats good. I've stopped weewx for two days (weewxtest 
> in my case, not production), and Weatherlink.com is queried to get the 
> missing records.
>
> I see in mysql there's a mismatch in rounding, or perhaps typecasting 
> between float and double. The first column (outtemp, windspeed) is from my 
> production database (which I consider as correct, as this driver is live 
> for several years now), the second column (outtemp, windspeed) is from my 
> test-enviroment. Records shown are coming from WLLArchive. Maybe, not sure, 
> this rounding-mismatched is cause by calculating temp (F->C) and windspeed 
> (mph->m/s) within the driver itself (float? double?), instead of letting 
> weewx doing the conversion. Whatever the case, I would prefer to skip the 
> conversion withing the driver, and make use of the weewx-tooling thats 
> available for unit-conversions. That makes is more stable, like, for 
> example, I decided in the future to report my windspeed in km/h in stead of 
> m/s. Now it's fixed in the driver to m/s, when using metricwx
>
> mysql> select 
> from_unixtime(weewx.archive.datetime),weewx.archive.outtemp,weewxtest.archive.outtemp,weewx.archive.windspeed,weewxtest.archive.windspeed
>  
> from weewx.archive,weewxtest.archive where 
> weewx.archive.datetime=weewxtest.archive.datetime and 
> from_unixtime(weewx.archive.datetime) like '2020-07-07%' and 
> weewxtest.archive.outtemp > -100 limit 10;
>
> +---++-+---+---+
> | from_unixtime(weewx.archive.datetime) | outtemp| outtemp | 
> windspeed | windspeed |
>
> +---++-+---+---+
> | 2020-07-07 00:00:00   |  11.39 |   11.33 |   
> 1.34112 |  1.39 |
> | 2020-07-07 00:05:00   |  11.39 |   11.33 |   
> 1.34112 |   1.2 |
> | 2020-07-07 00:10:00   |  11.39 |   11.33 |   
> 1.34112 |  1.53 |
> | 2020-07-07 00:15:00   | 11.334 |   11.28 |   
> 1.34112 |  1.62 |
> | 2020-07-07 00:20:00   | 11.334 |   11.28 |   
> 1.34112 |  1.26 |
> | 2020-07-07 00:25:00   | 11.277 |   11.22 |   
> 0.89408 |  0.92 |
> | 2020-07-07 00:30:00   | 11.223 |   11.17 |   
> 0.89408 |  1.09 |
> | 2020-07-07 00:35:00   | 11.166 |   11.11 |   
> 1.34112 |  1.26 |
> | 2020-07-07 00:40:00   |  11.11 |   11.06 |   
> 1.34112 |  1.23 |
> | 2020-07-07 00:45:00   

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-07 Thread Maarten van der Hoeven
Did testing with WLLArchive. 

WLLArchive is picking up archived records, just from the point where 
records are missing.Thats good. I've stopped weewx for two days (weewxtest 
in my case, not production), and Weatherlink.com is queried to get the 
missing records.

I see in mysql there's a mismatch in rounding, or perhaps typecasting 
between float and double. The first column (outtemp, windspeed) is from my 
production database (which I consider as correct, as this driver is live 
for several years now), the second column (outtemp, windspeed) is from my 
test-enviroment. Records shown are coming from WLLArchive. Maybe, not sure, 
this rounding-mismatched is cause by calculating temp (F->C) and windspeed 
(mph->m/s) within the driver itself (float? double?), instead of letting 
weewx doing the conversion. Whatever the case, I would prefer to skip the 
conversion withing the driver, and make use of the weewx-tooling thats 
available for unit-conversions. That makes is more stable, like, for 
example, I decided in the future to report my windspeed in km/h in stead of 
m/s. Now it's fixed in the driver to m/s, when using metricwx

mysql> select 
from_unixtime(weewx.archive.datetime),weewx.archive.outtemp,weewxtest.archive.outtemp,weewx.archive.windspeed,weewxtest.archive.windspeed
 
from weewx.archive,weewxtest.archive where 
weewx.archive.datetime=weewxtest.archive.datetime and 
from_unixtime(weewx.archive.datetime) like '2020-07-07%' and 
weewxtest.archive.outtemp > -100 limit 10;
+---++-+---+---+
| from_unixtime(weewx.archive.datetime) | outtemp| outtemp | 
windspeed | windspeed |
+---++-+---+---+
| 2020-07-07 00:00:00   |  11.39 |   11.33 |   
1.34112 |  1.39 |
| 2020-07-07 00:05:00   |  11.39 |   11.33 |   
1.34112 |   1.2 |
| 2020-07-07 00:10:00   |  11.39 |   11.33 |   
1.34112 |  1.53 |
| 2020-07-07 00:15:00   | 11.334 |   11.28 |   
1.34112 |  1.62 |
| 2020-07-07 00:20:00   | 11.334 |   11.28 |   
1.34112 |  1.26 |
| 2020-07-07 00:25:00   | 11.277 |   11.22 |   
0.89408 |  0.92 |
| 2020-07-07 00:30:00   | 11.223 |   11.17 |   
0.89408 |  1.09 |
| 2020-07-07 00:35:00   | 11.166 |   11.11 |   
1.34112 |  1.26 |
| 2020-07-07 00:40:00   |  11.11 |   11.06 |   
1.34112 |  1.23 |
| 2020-07-07 00:45:00   |  11.11 |   11.06 |   
1.34112 |  1.28 |
+---++-+---+---+
10 rows in set (0.88 sec)


Op zondag 5 juli 2020 12:06:24 UTC+2 schreef flor...@pre-vost.fr:
>
> Hi,
>
> Yes I see. I put speed 2min on current_conditions, and UDP packet, it's 
> speed 10min.
>
> I fix it. 
> Thank's a lot. 
>
> Le dimanche 5 juillet 2020 à 01:17:44 UTC+2, hoev...@gmail.com a écrit :
>
>> Updated the driver, thanks for that. Windspeed/-gust is much better now. 
>> However, I see some differences in the windgust, when it is within a 
>> UDP-packet and when it's within a current-condition-packet. Some piece of 
>> syslog, where I highlighted the difference in values. For what I 
>> understand, windgust is the max speed that occured in the last 2 minutes. 
>> So I expect it to be the same when it's getting reported by UDP and 
>> current-conditions, at least within a timespan of two minutes...
>>
>> Jul  5 01:10:23 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
>> from WLL module {'dateTime': 1593904223, 'usUnits': 17, 'outTemp': 18.11, 
>> 'outHumidity': 97.0, 'dewpoint': 17.61, 'heatindex': 19.06, 'windchill': 
>> 17.17, 'windSpeed': 3.58, 'windDir': 229, '*windGust': 6.71*, 
>> 'windGustDir': 224, 'barometer': 1009.89, 'pressure': 1009.49, 'rain': 0.0, 
>> 'rainRate': 0.0, 'inTemp': 21.5, 'inHumidity': 71.1, 'inDewpoint': 16.06}:
>> Jul  5 01:10:23 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
>> record 2020-07-05 01:10:23 CEST (1593904223)
>> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this 
>> period: 0.0
>> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
>> period rain to: 3
>> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
>> from WLL module {'dateTime': 1593904225, 'usUnits': 17, 'windSpeed': 4.02, 
>> 'windDir': 229,* 'windGust': 7.15,* 'windGustDir': 249, 'rain': 0.0, 
>> 'rainRate': 0.0}:
>> Jul  5 01:10:26 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
>> record 2020-07-05 01:10:25 CEST (1593904225)
>> Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this 
>> period: 0.0
>> Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
>> period 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-05 Thread flor...@pre-vost.fr
Hi,

Yes I see. I put speed 2min on current_conditions, and UDP packet, it's 
speed 10min.

I fix it. 
Thank's a lot. 

Le dimanche 5 juillet 2020 à 01:17:44 UTC+2, hoev...@gmail.com a écrit :

> Updated the driver, thanks for that. Windspeed/-gust is much better now. 
> However, I see some differences in the windgust, when it is within a 
> UDP-packet and when it's within a current-condition-packet. Some piece of 
> syslog, where I highlighted the difference in values. For what I 
> understand, windgust is the max speed that occured in the last 2 minutes. 
> So I expect it to be the same when it's getting reported by UDP and 
> current-conditions, at least within a timespan of two minutes...
>
> Jul  5 01:10:23 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904223, 'usUnits': 17, 'outTemp': 18.11, 
> 'outHumidity': 97.0, 'dewpoint': 17.61, 'heatindex': 19.06, 'windchill': 
> 17.17, 'windSpeed': 3.58, 'windDir': 229, '*windGust': 6.71*, 
> 'windGustDir': 224, 'barometer': 1009.89, 'pressure': 1009.49, 'rain': 0.0, 
> 'rainRate': 0.0, 'inTemp': 21.5, 'inHumidity': 71.1, 'inDewpoint': 16.06}:
> Jul  5 01:10:23 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:23 CEST (1593904223)
> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904225, 'usUnits': 17, 'windSpeed': 4.02, 
> 'windDir': 229,* 'windGust': 7.15,* 'windGustDir': 249, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  5 01:10:26 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:25 CEST (1593904225)
> Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904228, 'usUnits': 17, 'windSpeed': 5.36, 
> 'windDir': 217, *'windGust': 7.15**,* 'windGustDir': 249, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  5 01:10:28 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:28 CEST (1593904228)
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904230, 'usUnits': 17, 'windSpeed': 5.81, 
> 'windDir': 232, 'windGust': 7.15, 'windGustDir': 249, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG urllib3.connectionpool: Starting 
> new HTTP connection (1): 192.168.2.33:80
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG urllib3.connectionpool: 
> http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
> Jul  5 01:10:31 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:30 CEST (1593904230)
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904230, 'usUnits': 17, 'outTemp': 18.11, 
> 'outHumidity': 97.0, 'dewpoint': 17.61, 'heatindex': 19.06, 'windchill': 
> 17.17, 'windSpeed': 5.81, 'windDir': 232,* 'windGust': 6.71*, 
> 'windGustDir': 224, 'barometer': 1009.89, 'pressure': 1009.49, 'rain': 0.0, 
> 'rainRate': 0.0, 'inTemp': 21.5, 'inHumidity': 71.1, 'inDewpoint': 16.06}:
> Jul  5 01:10:31 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:30 CEST (1593904230)
> Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904233, 'usUnits': 17, 'windSpeed': 5.36, 
> 'windDir': 225, *'windGust': 7.15*, 'windGustDir': 249, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  5 01:10:33 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:33 CEST (1593904233)
> Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
> 0.0
> Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
> period rain to: 3
> Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593904235, 'usUnits': 17, 'windSpeed': 4.02, 
> 'windDir': 225, *'windGust': 7.15*, 'windGustDir': 249, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  5 01:10:36 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published 
> record 2020-07-05 01:10:35 CEST (1593904235)
> Jul  5 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Updated the driver, thanks for that. Windspeed/-gust is much better now. 
However, I see some differences in the windgust, when it is within a 
UDP-packet and when it's within a current-condition-packet. Some piece of 
syslog, where I highlighted the difference in values. For what I 
understand, windgust is the max speed that occured in the last 2 minutes. 
So I expect it to be the same when it's getting reported by UDP and 
current-conditions, at least within a timespan of two minutes...

Jul  5 01:10:23 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904223, 'usUnits': 17, 'outTemp': 18.11, 
'outHumidity': 97.0, 'dewpoint': 17.61, 'heatindex': 19.06, 'windchill': 
17.17, 'windSpeed': 3.58, 'windDir': 229, '*windGust': 6.71*, 
'windGustDir': 224, 'barometer': 1009.89, 'pressure': 1009.49, 'rain': 0.0, 
'rainRate': 0.0, 'inTemp': 21.5, 'inHumidity': 71.1, 'inDewpoint': 16.06}:
Jul  5 01:10:23 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:23 CEST (1593904223)
Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:26 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904225, 'usUnits': 17, 'windSpeed': 4.02, 
'windDir': 229,* 'windGust': 7.15,* 'windGustDir': 249, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  5 01:10:26 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:25 CEST (1593904225)
Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:28 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904228, 'usUnits': 17, 'windSpeed': 5.36, 
'windDir': 217, *'windGust': 7.15**,* 'windGustDir': 249, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  5 01:10:28 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:28 CEST (1593904228)
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904230, 'usUnits': 17, 'windSpeed': 5.81, 
'windDir': 232, 'windGust': 7.15, 'windGustDir': 249, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG urllib3.connectionpool: Starting 
new HTTP connection (1): 192.168.2.33:80
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG urllib3.connectionpool: 
http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
Jul  5 01:10:31 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:30 CEST (1593904230)
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:31 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904230, 'usUnits': 17, 'outTemp': 18.11, 
'outHumidity': 97.0, 'dewpoint': 17.61, 'heatindex': 19.06, 'windchill': 
17.17, 'windSpeed': 5.81, 'windDir': 232,* 'windGust': 6.71*, 
'windGustDir': 224, 'barometer': 1009.89, 'pressure': 1009.49, 'rain': 0.0, 
'rainRate': 0.0, 'inTemp': 21.5, 'inHumidity': 71.1, 'inDewpoint': 16.06}:
Jul  5 01:10:31 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:30 CEST (1593904230)
Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:33 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904233, 'usUnits': 17, 'windSpeed': 5.36, 
'windDir': 225, *'windGust': 7.15*, 'windGustDir': 249, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  5 01:10:33 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:33 CEST (1593904233)
Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:36 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904235, 'usUnits': 17, 'windSpeed': 4.02, 
'windDir': 225, *'windGust': 7.15*, 'windGustDir': 249, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  5 01:10:36 ubuntu weewx[4508] INFO weewx.restx: MQTT: Published record 
2020-07-05 01:10:35 CEST (1593904235)
Jul  5 01:10:38 ubuntu weewx[4508] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  5 01:10:38 ubuntu weewx[4508] DEBUG user.WLLDriver: Set Previous 
period rain to: 3
Jul  5 01:10:38 ubuntu weewx[4508] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593904238, 'usUnits': 17, 'windSpeed': 3.58, 
'windDir': 227, *'windGust': 7.15*, 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread flor...@pre-vost.fr
Thank you ! 

I'm very stupid ahah, this is an error that I put on code ! I push to my 
git a fix to windSpeed and windGust. 

For others sensors, I make this change this we. 

Le samedi 4 juillet 2020 à 17:41:33 UTC+2, hoev...@gmail.com a écrit :

> Jul  4 17:39:37 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593877175, 'usUnits': 17, 'windSpeed': 5.36, 
> 'windDir': 210, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  4 17:39:37 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
> record 2020-07-04 17:39:35 CEST (1593877175)
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this 
> period: 0.0
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
> period rain to: 0
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593877178, 'usUnits': 17, 'windSpeed': 4.47, 
> 'windDir': 217, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG urllib3.connectionpool: Starting 
> new HTTP connection (1): 192.168.2.33:80
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG urllib3.connectionpool: 
> http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
> Jul  4 17:39:40 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
> record 2020-07-04 17:39:38 CEST (1593877178)
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this 
> period: 0.0
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
> period rain to: 0
> Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593877178, 'usUnits': 17, 'outTemp': 17.33, 
> 'outHumidity': 93.3, 'dewpoint': 16.22, 'heatindex': 18.06, 'windchill': 
> 15.72, 'windSpeed': 10.0, 'windDir': 217, 'windGust': 14.0, 'windGustDir': 
> 213, 'barometer': 1012.67, 'pressure': 1012.26, 'rain': 0.0, 'rainRate': 
> 0.0, 'inTemp': 22.61, 'inHumidity': 63.2, 'inDewpoint': 15.28}:
> Jul  4 17:39:40 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
> record 2020-07-04 17:39:38 CEST (1593877178)
> Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this 
> period: 0.0
> Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
> period rain to: 0
> Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593877180, 'usUnits': 17, 'windSpeed': 4.47, 
> 'windDir': 204, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  4 17:39:42 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
> record 2020-07-04 17:39:40 CEST (1593877180)
> Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this 
> period: 0.0
> Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
> period rain to: 0
> Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
> from WLL module {'dateTime': 1593877183, 'usUnits': 17, 'windSpeed': 3.58, 
> 'windDir': 214, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
> 'rainRate': 0.0}:
> Jul  4 17:39:45 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
> record 2020-07-04 17:39:43 CEST (1593877183)
>
> MySQL-output latest 5 records
> mysql> select 
> datetime,from_unixtime(datetime),outtemp,windspeed,windgust,radiation,uv,et,rain,extratemp1
>  
> from archive order by datetime desc limit 5;
>
> ++-+---+---+--+---+--+--+--++
>
> | datetime   | from_unixtime(datetime) | outtemp   | 
> windspeed | windgust | radiation | uv   | et   | rain | extratemp1 |
>
> ++-+---+---+--+---+--+--+--++
> | 1593877200 | 2020-07-04 17:40:00 | 17.33 | 
> 5.195454545454546 |   14 |  NULL | NULL | NULL |0 |   NULL |
> | 1593877140 | 2020-07-04 17:39:00 | 17.30857142857143 | 
> 4.514193548387096 |   15 |  NULL | NULL | NULL |0 |   NULL |
> | 1593877080 | 2020-07-04 17:38:00 | 17.33 | 
> 6.0581251 |   15 |  NULL | NULL | NULL |0 |   NULL |
> | 1593877020 | 2020-07-04 17:37:00 | 17.33 | 
> 6.1765625 |   17 |  NULL | NULL | NULL |0 |   NULL |
> | 1593876960 | 2020-07-04 17:36:00 | 17.33 | 
> 6.4096875 |   18 |  NULL | NULL | NULL |0 |   NULL |
>
> ++-+---+---+--+---+--+--+--++
>
> 5 rows in set (0.00 sec)
>
>
>
> Op zaterdag 4 juli 2020 om 15:40:52 UTC+2 schreef flor...@pre-vost.fr:
>
>> Hm it's strange because you show that the packet including value for Wind 
>> and Rain
>>
>> On syslog, can you share packet where all sensor 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Jul  4 17:39:37 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593877175, 'usUnits': 17, 'windSpeed': 5.36, 
'windDir': 210, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  4 17:39:37 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
record 2020-07-04 17:39:35 CEST (1593877175)
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
period rain to: 0
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593877178, 'usUnits': 17, 'windSpeed': 4.47, 
'windDir': 217, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG urllib3.connectionpool: Starting 
new HTTP connection (1): 192.168.2.33:80
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG urllib3.connectionpool: 
http://192.168.2.33:80 "GET /v1/current_conditions HTTP/1.1" 200 None
Jul  4 17:39:40 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
record 2020-07-04 17:39:38 CEST (1593877178)
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
period rain to: 0
Jul  4 17:39:40 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593877178, 'usUnits': 17, 'outTemp': 17.33, 
'outHumidity': 93.3, 'dewpoint': 16.22, 'heatindex': 18.06, 'windchill': 
15.72, 'windSpeed': 10.0, 'windDir': 217, 'windGust': 14.0, 'windGustDir': 
213, 'barometer': 1012.67, 'pressure': 1012.26, 'rain': 0.0, 'rainRate': 
0.0, 'inTemp': 22.61, 'inHumidity': 63.2, 'inDewpoint': 15.28}:
Jul  4 17:39:40 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
record 2020-07-04 17:39:38 CEST (1593877178)
Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
period rain to: 0
Jul  4 17:39:42 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593877180, 'usUnits': 17, 'windSpeed': 4.47, 
'windDir': 204, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  4 17:39:42 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
record 2020-07-04 17:39:40 CEST (1593877180)
Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Rain this period: 
0.0
Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Set Previous 
period rain to: 0
Jul  4 17:39:45 ubuntu weewx[20924] DEBUG user.WLLDriver: Packet received 
from WLL module {'dateTime': 1593877183, 'usUnits': 17, 'windSpeed': 3.58, 
'windDir': 214, 'windGust': 8.05, 'windGustDir': 211, 'rain': 0.0, 
'rainRate': 0.0}:
Jul  4 17:39:45 ubuntu weewx[20924] INFO weewx.restx: MQTT: Published 
record 2020-07-04 17:39:43 CEST (1593877183)

MySQL-output latest 5 records
mysql> select 
datetime,from_unixtime(datetime),outtemp,windspeed,windgust,radiation,uv,et,rain,extratemp1
 
from archive order by datetime desc limit 5;
++-+---+---+--+---+--+--+--++
| datetime   | from_unixtime(datetime) | outtemp   | 
windspeed | windgust | radiation | uv   | et   | rain | extratemp1 |
++-+---+---+--+---+--+--+--++
| 1593877200 | 2020-07-04 17:40:00 | 17.33 | 
5.195454545454546 |   14 |  NULL | NULL | NULL |0 |   NULL |
| 1593877140 | 2020-07-04 17:39:00 | 17.30857142857143 | 
4.514193548387096 |   15 |  NULL | NULL | NULL |0 |   NULL |
| 1593877080 | 2020-07-04 17:38:00 | 17.33 | 
6.0581251 |   15 |  NULL | NULL | NULL |0 |   NULL |
| 1593877020 | 2020-07-04 17:37:00 | 17.33 | 
6.1765625 |   17 |  NULL | NULL | NULL |0 |   NULL |
| 1593876960 | 2020-07-04 17:36:00 | 17.33 | 
6.4096875 |   18 |  NULL | NULL | NULL |0 |   NULL |
++-+---+---+--+---+--+--+--++
5 rows in set (0.00 sec)


Op zaterdag 4 juli 2020 om 15:40:52 UTC+2 schreef flor...@pre-vost.fr:

> Hm it's strange because you show that the packet including value for Wind 
> and Rain
>
> On syslog, can you share packet where all sensor are display.
>
> Thank you
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Florentin Prevost
Hm it's strange because you show that the packet including value for Wind and 
Rain

On syslog, can you share packet where all sensor are display.

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/868e833a-f0b4-4fcb-982c-cead295c7905o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Florentin Prevost
On /syslog, can you share the log when the driver received udp data and when it 
request from /current_conditions.

Thank you :)

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/7e23a02a-4616-495a-8772-9353497e119bo%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Florentin Prevost
Thank you for you report !

Yes, I also the same problem. Maybe the driver not check if Weew raise a stop 
service.

For StdArchive, you've totaly reason. I will implement it this week end. But, I 
don't know if it possible to yield packet in service and not use a _addrecord 
function that not implement the StdConvert. Now I need to calculate each value 
from the Weewx database unit. If you have info for this ^^

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/3937304d-a09c-4da5-9105-3e5e8511c057o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Windspeed/windgust (UDP) seems not okay. radiation, uv, et, extratemp are 
NULL (but I think thats because you still need to implement that, right)?

With WLLDriver, I got:
mysql> select 
datetime,from_unixtime(datetime),outtemp,windspeed,windgust,radiation,uv,et,rain,extratemp1
 
from archive order by datetime desc limit 5;
++-+-++--+---+--+--+--++
| datetime   | from_unixtime(datetime) | outtemp | windspeed  | 
windgust | radiation | uv   | et   | rain | extratemp1 |
++-+-++--+---+--+--+--++
| 1593864000 | 2020-07-04 14:00:00 |16.5 | 5.61562505 
|   16 |  NULL | NULL | NULL |0 |   NULL |
| 1593863940 | 2020-07-04 13:59:00 |16.5 | 6.9475 
|   16 |  NULL | NULL | NULL |0 |   NULL |
| 1593863880 | 2020-07-04 13:58:00 |16.5 |  6.0440625 
|   16 |  NULL | NULL | NULL |0 |   NULL |
| 1593863820 | 2020-07-04 13:57:00 |16.5 |  7.1581252 
|   17 |  NULL | NULL | NULL |0 |   NULL |
| 1593863760 | 2020-07-04 13:56:00 |16.5 |  5.9568749 
|   17 |  NULL | NULL | NULL |0 |   NULL |
++-+-++--+---+--+--+--++
5 rows in set (0.00 sec)



In my other virtual machine (hooked with a WeatherLink IP, my production 
environment), I got for the same datetime.
mysql> select 
datetime,from_unixtime(datetime),outtemp,windspeed,windgust,radiation,uv,et,rain,extratemp1
 
from weewx.archive order by datetime desc limit 5;
++-++---+--+---+--++--++
| datetime   | from_unixtime(datetime) | outtemp| windspeed | 
windgust | radiation | uv   | et | rain | extratemp1 |
++-++---+--+---+--++--++
| 1593864000 | 2020-07-04 14:00:00 | 16.557 |4.4704 |  
5.81152 |   123 |  1.1 | 0.0762 |0 | 16.668 |
| 1593863940 | 2020-07-04 13:59:00 | 16.557 |   5.36448 |   
6.7056 |   138 |  1.1 |  0 |0 | 16.668 |
| 1593863880 | 2020-07-04 13:58:00 | 16.557 |4.4704 |  
7.15264 |   127 |1 |  0 |0 | 16.668 |
| 1593863820 | 2020-07-04 13:57:00 | 16.557 |   5.36448 |  
7.15264 |   116 |  0.9 |  0 |0 | 16.668 |
| 1593863760 | 2020-07-04 13:56:00 | 16.557 |4.4704 |  
6.25856 |   107 |  0.9 |  0 |0 | 16.668 |
++-++---+--+---+--++--++
5 rows in set (0.01 sec)



I've got my wanted units set in weewx.conf:
[[[Units]]]

# The following section sets what unit to use for each unit 
group.
# NB: The unit is always in the singular. I.e., 'mile_per_hour',
# NOT 'miles_per_hour'
Groups

group_altitude = meter# Options are 'foot' or 'meter'
group_degree_day = degree_C_day# Options are 
'degree_F_day' or 'degree_C_day'
group_distance = km# Options are 'mile' or 'km'
group_pressure = mbar# Options are 'inHg', 'mmHg', 
'mbar', or 'hPa'
group_rain = mm# Options are 'inch', 'cm', or 'mm'
group_rainrate = mm_per_hour# Options are 
'inch_per_hour', 'cm_per_hour', or 'mm_per_hour'
group_speed = meter_per_second# Options are 
'mile_per_hour', 'km_per_hour', 'knot', or 'meter_per_second'
group_speed2 = meter_per_second2# Options are 
'mile_per_hour2', 'km_per_hour2', 'knot2', or 'meter_per_second2'
group_temperature = degree_C# Options are 'degree_F' or 
'degree_C'





Op zaterdag 4 juli 2020 13:44:15 UTC+2 schreef Maarten van der Hoeven:
>
> Some findings
>
> I cannot stop the weewx process by ' /etc/init.d/weewx stop', it keeps 
> running for several minutes (and keeps on going). I need to find the 
> process ID, and kill it by
>
> root@ubuntu:/etc/weewx# ps -ef | grep weewx
> root   17394   1 17 13:27 ?00:01:59 python3 
> /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid 
> /etc/weewx/weewx.conf
> root   17899   1  0 13:37 ?00:00:00 /bin/sh 
> /etc/init.d/weewx stop
> root   18084   13623  0 13:38 pts/000:00:00 grep --color=auto weewx
> root@ubuntu:/etc/weewx# kill -9 17394
>
>
> Question: why do you have the 

[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Some findings

I cannot stop the weewx process by ' /etc/init.d/weewx stop', it keeps 
running for several minutes (and keeps on going). I need to find the 
process ID, and kill it by

root@ubuntu:/etc/weewx# ps -ef | grep weewx
root   17394   1 17 13:27 ?00:01:59 python3 
/usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid 
/etc/weewx/weewx.conf
root   17899   1  0 13:37 ?00:00:00 /bin/sh 
/etc/init.d/weewx stop
root   18084   13623  0 13:38 pts/000:00:00 grep --color=auto weewx
root@ubuntu:/etc/weewx# kill -9 17394


Question: why do you have the WLLArchive placed into StdReport-services? 
And not in StdArchive-service? Reading the Weewx-architecture (see 
http://www.weewx.com/docs/customizing.htm#The_WeeWX_service_architecture), 
it should have its place as an archive_service, dont you agree? Quote: 
"weewx.engine.StdArchive Archive any new data to the SQL databases."

[Engine]
[[Services]]
# This section specifies the services that should be run. They are
# grouped by type, and the order of services within each group
# determines the order in which the services will be run.
prep_services = weewx.engine.StdTimeSynch
data_services = ,
process_services = weewx.engine.StdConvert, 
weewx.engine.StdCalibrate, weewx.engine.StdQC, 
weewx.wxservices.StdWXCalculate, user.calcdrought.CalcDrought
archive_services = weewx.engine.StdArchive
restful_services = weewx.restx.StdStationRegistry, 
weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, 
user.mqtt.MQTT
report_services = weewx.engine.StdPrint, weewx.engine.StdReport, 
user.WLLArchive.WLLArchive



Op zaterdag 4 juli 2020 13:28:16 UTC+2 schreef Maarten van der Hoeven:
>
> Yes, apologies. Working now. I had the 'old'  config of WLL still in 
> place. Did only change WLLArchive according to the readme...
>
> It is getting archive records, will test it today!
>
>
> Op zaterdag 4 juli 2020 om 12:35:04 UTC+2 schreef flor...@pre-vost.fr:
>
>> Hi, 
>>
>> Like in Readme on Github, you've to set device id like this 1:iss. Or if 
>> you have iss on id 2, set this : 2:iss.
>>
>> I make this to implement extra sensor in future.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/202d40b8-eba3-4c7d-aaee-d19992613f44o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Yes, apologies. Working now. I had the 'old'  config of WLL still in place. 
Did only change WLLArchive according to the readme...

It is getting archive records, will test it today!


Op zaterdag 4 juli 2020 om 12:35:04 UTC+2 schreef flor...@pre-vost.fr:

> Hi, 
>
> Like in Readme on Github, you've to set device id like this 1:iss. Or if 
> you have iss on id 2, set this : 2:iss.
>
> I make this to implement extra sensor in future.
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/7b362082-7f28-49dd-a1e5-0e776e4f7dfan%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Florentin Prevost
Hi, 

Like in Readme on Github, you've to set device id like this 1:iss. Or if you 
have iss on id 2, set this : 2:iss.

I make this to implement extra sensor in future.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/729e2dba-e02b-4d8e-b116-4c5d21aa1ed6o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-07-04 Thread Maarten van der Hoeven
Hi, not sure it the driver is ready to go. But I saw a commit on github 12 
hours ago, so I thought, lets give it a try :)

weewx.conf:
[WLLDriver]
driver = user.WLLDriver
max_tries = 5
retry_wait = 5
poll_interval = 5
udp_enable = 1
hostname = 192.168.2.33
wl_apikey = nivwsekqwfbkhqtqwo8nximhl7zgxpcs
wl_apisecret = [not telling you, it's a secret :)]
wl_stationid = 92844
time_out = 10
device_id = 2



syslog:
Jul  4 11:51:21 ubuntu weewx[14191] INFO weewx.engine: Loading station type 
WLLDriver (user.WLLDriver)
Jul  4 11:51:21 ubuntu weewx[14191] ERROR weewx.engine: Import of driver 
failed: not enough values to unpack (expected 2, got 1) ()
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
Traceback (most recent call last):
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/engine.py", line 103, in setupStation
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
self.console = loader_function(config_dict, self)
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: File 
"/usr/share/weewx/user/WLLDriver.py", line 58, in loader
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
return WLLDriver(**config_dict[DRIVER_NAME], **config_dict)
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: File 
"/usr/share/weewx/user/WLLDriver.py", line 93, in __init__
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
self.dict_device_id = dict((int(k), v) for k, v in (e.split(':') for e in 
device_id.split('-')))
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine: File 
"/usr/share/weewx/user/WLLDriver.py", line 93, in 
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
self.dict_device_id = dict((int(k), v) for k, v in (e.split(':') for e in 
device_id.split('-')))
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL weewx.engine:   
ValueError: not enough values to unpack (expected 2, got 1)
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL __main__: Unable to load 
driver: not enough values to unpack (expected 2, got 1)
Jul  4 11:51:21 ubuntu weewx[14191] CRITICAL __main__:   Exiting...


Op woensdag 1 juli 2020 om 00:03:03 UTC+2 schreef flor...@pre-vost.fr:

> Hi,
>
> Yes is on the way, I finished to implement lost data as a service on Weewx 
>
> Also, added extra sensor will come. I check just if it's not fail when 
> check a key in json that not exist.
>
> I will implement also the udp for real time like MQTT with the 
> berlchertown skin, is more stable thant request by /current_conditions but 
> it's sames values and json format.  
>
> Le mardi 30 juin 2020 à 22:10:05 UTC+2, hoev...@gmail.com a écrit :
>
>> Yes, I like the idea. A seperate program that pulls data from Weatherlink 
>> and stores the data in sqlite or mysql (whatever is configured in 
>> weewx.conf). And let weewx do the aggreate and daily summaries
>>
>> Op dinsdag 30 juni 2020 19:05:43 UTC+2 schreef Bastiaan Meelberg:
>>
>>> Ik like the idea of getting missing data from Weatherlink to weewx. But 
>>> isn't it better to make it a separate program (say like a 'reverse' 
>>> wunderfixer)? 
>>> This way the driver is the most clean, getting and filling de database 
>>> with old data can be very time consuming and slow the current collection 
>>> down.
>>>
>>>
>>>
>>> On Sunday, June 21, 2020 at 7:18:41 PM UTC+2, Florentin Prevost wrote:

 Hi,

 I worked with the fork of 
 https://github.com/vinceskahan/weewx-weatherlinklive-json and I would 
 like to ask some questions about driver developpment. 

 - How can I passed argument of weewx.conf to my driver ? I work to 
 request lost data from Weewx on Weatherlink.com because WeatherLink Live 
 don't have API to take archive directly and I would like to passed some 
 arguments like archive_interval, sql password & etc 
 - How work genArchiveRecords when it call? It run as each report ? Or 
 it is a loop that waiting to have return values ?


 Thank you for your answer and support. 



-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/64c1d5dc-7118-43f9-aaea-1556e017f544n%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-06-30 Thread flor...@pre-vost.fr
Hi,

Yes is on the way, I finished to implement lost data as a service on Weewx 

Also, added extra sensor will come. I check just if it's not fail when 
check a key in json that not exist.

I will implement also the udp for real time like MQTT with the berlchertown 
skin, is more stable thant request by /current_conditions but it's sames 
values and json format.  

Le mardi 30 juin 2020 à 22:10:05 UTC+2, hoev...@gmail.com a écrit :

> Yes, I like the idea. A seperate program that pulls data from Weatherlink 
> and stores the data in sqlite or mysql (whatever is configured in 
> weewx.conf). And let weewx do the aggreate and daily summaries
>
> Op dinsdag 30 juni 2020 19:05:43 UTC+2 schreef Bastiaan Meelberg:
>
>> Ik like the idea of getting missing data from Weatherlink to weewx. But 
>> isn't it better to make it a separate program (say like a 'reverse' 
>> wunderfixer)? 
>> This way the driver is the most clean, getting and filling de database 
>> with old data can be very time consuming and slow the current collection 
>> down.
>>
>>
>>
>> On Sunday, June 21, 2020 at 7:18:41 PM UTC+2, Florentin Prevost wrote:
>>>
>>> Hi,
>>>
>>> I worked with the fork of 
>>> https://github.com/vinceskahan/weewx-weatherlinklive-json and I would 
>>> like to ask some questions about driver developpment. 
>>>
>>> - How can I passed argument of weewx.conf to my driver ? I work to 
>>> request lost data from Weewx on Weatherlink.com because WeatherLink Live 
>>> don't have API to take archive directly and I would like to passed some 
>>> arguments like archive_interval, sql password & etc 
>>> - How work genArchiveRecords when it call? It run as each report ? Or it 
>>> is a loop that waiting to have return values ?
>>>
>>>
>>> Thank you for your answer and support. 
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/1f8e6d0b-71ac-45f4-9816-b2b9a58d3b95n%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-06-30 Thread Maarten van der Hoeven
Yes, I like the idea. A seperate program that pulls data from Weatherlink 
and stores the data in sqlite or mysql (whatever is configured in 
weewx.conf). And let weewx do the aggreate and daily summaries

Op dinsdag 30 juni 2020 19:05:43 UTC+2 schreef Bastiaan Meelberg:
>
> Ik like the idea of getting missing data from Weatherlink to weewx. But 
> isn't it better to make it a separate program (say like a 'reverse' 
> wunderfixer)? 
> This way the driver is the most clean, getting and filling de database 
> with old data can be very time consuming and slow the current collection 
> down.
>
>
>
> On Sunday, June 21, 2020 at 7:18:41 PM UTC+2, Florentin Prevost wrote:
>>
>> Hi,
>>
>> I worked with the fork of 
>> https://github.com/vinceskahan/weewx-weatherlinklive-json and I would 
>> like to ask some questions about driver developpment. 
>>
>> - How can I passed argument of weewx.conf to my driver ? I work to 
>> request lost data from Weewx on Weatherlink.com because WeatherLink Live 
>> don't have API to take archive directly and I would like to passed some 
>> arguments like archive_interval, sql password & etc 
>> - How work genArchiveRecords when it call? It run as each report ? Or it 
>> is a loop that waiting to have return values ?
>>
>>
>> Thank you for your answer and support. 
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/b4fa3701-d8d6-4d1e-91a3-87ce715b5e09o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-06-30 Thread Bastiaan Meelberg
Ik like the idea of getting missing data from Weatherlink to weewx. But 
isn't it better to make it a separate program (say like a 'reverse' 
wunderfixer)? 
This way the driver is the most clean, getting and filling de database with 
old data can be very time consuming and slow the current collection down.



On Sunday, June 21, 2020 at 7:18:41 PM UTC+2, Florentin Prevost wrote:
>
> Hi,
>
> I worked with the fork of 
> https://github.com/vinceskahan/weewx-weatherlinklive-json and I would 
> like to ask some questions about driver developpment. 
>
> - How can I passed argument of weewx.conf to my driver ? I work to request 
> lost data from Weewx on Weatherlink.com because WeatherLink Live don't have 
> API to take archive directly and I would like to passed some arguments like 
> archive_interval, sql password & etc 
> - How work genArchiveRecords when it call? It run as each report ? Or it 
> is a loop that waiting to have return values ?
>
>
> Thank you for your answer and support. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/08981aef-3112-466b-bc3b-1849a5ac0b98o%40googlegroups.com.


[weewx-development] Re: Weatherlink Live driver developpment

2020-06-21 Thread Maarten van der Hoeven
I am happy to test your driver in development. I have a Weather Link Live 
running for test purposes, so I can play with it.

Op zondag 21 juni 2020 19:18:41 UTC+2 schreef Florentin Prevost:
>
> Hi,
>
> I worked with the fork of 
> https://github.com/vinceskahan/weewx-weatherlinklive-json and I would 
> like to ask some questions about driver developpment. 
>
> - How can I passed argument of weewx.conf to my driver ? I work to request 
> lost data from Weewx on Weatherlink.com because WeatherLink Live don't have 
> API to take archive directly and I would like to passed some arguments like 
> archive_interval, sql password & etc 
> - How work genArchiveRecords when it call? It run as each report ? Or it 
> is a loop that waiting to have return values ?
>
>
> Thank you for your answer and support. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-development+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/62a6b314-82bf-4218-854c-ae28c01dbd18o%40googlegroups.com.