Dana Roode <
dana....@gmail.com> writes:
> Hello,
>
> I've had some issues with the rain collector on my Vantage Pro2 this year,
> I replaced it a few weeks back. There were some spurious high readings,
> plus my testing generated false readings. The data indicates over 60
> inches of rain in my desert location this year. I'd like to find the bad
> values and zero them out, and I see how to do this with sqlite3 on the
> database if I understood the data fields. "rain" is the field in the
> archive tables, but I don't know what time period thats for. The dateTime
> field has numbers like 1539650100 and I don't know how to convert to
> something meanful.
I would guess that rain is either the rain that arrived in that archive
interval, or some sort of cumulative value.
The dateTime is in seconds since the Unix epoch, which was
1970-01-01T00:00:00Z (Jan 1, 1970, midnight UTC).
On Unix, date -r will take that and convert it to human time. This is
just what is does normally, except it uses the provided value vs
gettimeofday().
$ date -r 1539650100
Mon Oct 15 20:35:00 EDT 2018
which isn't a few weeks ago.
On windows, you could install Unix and then run date -r. Probably
there's an easier way...