Hi,

Your 'fix' has merely forced the csv service to always generate data.csv 
based on archive records rather than the default loop packets. Using 
archive records rather than loop packets would make sense for a station 
that emits partial loop packets (ie a station that does not include 
radiation and UV in every loop packet) but based on the log extract you 
provided your station does not appear to be a partial packet type. In any 
case, if generating data.csv based on archive records rather than loop 
packets solves your problem a far better approach would be to return csv.py 
to its original state and change your [CSV] stanza in weewx.conf to read:

[CSV]
    filename = /var/tmp/tmp/data.csv
    binding = archive

This will require a WeeWX restart. This achieves the same effect as your 
changes whilst ensuring your system will continue to work across future 
upgrades.

Gary


On Sunday, 26 May 2019 16:48:16 UTC+10, JanC wrote:
>
> I found the solution myself.
>
> In csv.py :
>
>         if self.binding == 'binding':
>
>
>         self.binding = d.get('binding', 'loop')
>  ##       if self.binding == 'loop':
>         if self.binding == 'binding':
>             self.bind(weewx.NEW_LOOP_PACKET, self.handle_new_loop)
>         else:
>             self.bind(weewx.NEW_ARCHIVE_RECORD, self.handle_new_archive)
>
> janc
>
> Op zaterdag 25 mei 2019 11:39:11 UTC+2 schreef JanC:
>>
>> I use a WH2600 weatherstation with a raspberry pi
>>
>> debian8
>> weewx 3.9.1
>> driver interceptor observer
>> csv.py to collect the data to a csv-file
>>
>> with weewx 3.8 it works ok, after upgrade to 3.9 it fails
>>
>> I have some things overlooked?
>>
>> JanC
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ce9f2ae8-f603-4189-a6e3-139dfeaec064%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to