Thx for helpinh me so fast.
My parameter for rain in the config file was:
[[[rain]]]
source_field = rain
unit = mm
is_cumulative = False
After I removed the line with is_cumulative, everything works as it should.
So it makes a difference whether I use 'is_cumulative = False' or the
default value.
Carlo
gjr80 schrieb am Samstag, 7. Dezember 2024 um 23:42:54 UTC+1:
> Sounds like expected operation to me. WeeWX records rainfall on a
> per-period basis; so an archive record (or for that matter a loop packet)
> should contain the total rainfall recorded for the period covered by that
> archive period (or since the last loop packet for loop packets). The field
> map in an import config file determines which source data is mapped to
> which WeeWX field and for each field the is_cumulative config option
> determines whether the source data is a cumulative value or not. If
> is_cumulative is set True the imported value is the difference between
> successive values. The default value for is_cumulative is False, but the
> example import config file has is_cumulative set True for the example
> rainfall entry (as experience shows most csv imports use a cumulative
> rainfall value).
>
> Without knowing the nature of your source data, the field map config for
> your rainfall field and what is actually imported into your archive (you
> say 'no data is imported' - does the mean the value zero was the result or
> there is no data at all (the two are quite different)) it's impossible to
> say what is wrong, if anything at all. If the above does not explain what
> you are seeing please post an extract of your source data, your import
> config file and an extract of the imported data (covering the source data
> extract provided) and we will see what is going on.
>
> Gary
> On Sunday, 8 December 2024 at 06:01:22 UTC+10 [email protected] wrote:
>
>> I am using WeeWX 5.1.0 on a Debian Server. I have installed WeeWX with
>> apt.
>> I want to import CSV-files into WeeWX. I configured a import conf file
>> and the import seems ok.
>> Each import line contains the data for one minute.
>> After checking the data, I noticed that certain rain data had not been
>> transferred. No rain data is imported if the previous data line also
>> contained rain with the same quantity. The remaining data in the line is
>> being imported correctly. Only the rain is not.
>> The rain is only transferred again when the value in the import field for
>> the rain has changed.
>> Everything looks like an initialization error in the programming.
>>
>>
--
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 visit
https://groups.google.com/d/msgid/weewx-user/f2cf2bc0-1748-4b1c-b7c5-6c4adde031b7n%40googlegroups.com.