Alltime low values missing date

44 views
Skip to first unread message

metalmi...@gmail.com

unread,
Feb 13, 2021, 9:38:03 AM2/13/21
to weewx-user
Hi guys, 

I added the stats for alltime and seven days, but unfortunately for the alltime low values, there's no date displayed. For example: Lowest outside Temperature -10,9 °C N/A. So there is no date and time displayed, only N/A. It is only for low values, the other ones are shown correctly. It is also only for alltime, for seven day everything is as expected. 

I changed this (week--> alltime) in stats.py.

# First, create TimespanBinder object for all time. This one is easy
        # because the object timespan already holds all valid times to be
        # used in the report.
        all_stats = TimespanBinder(timespan,
                                   db_lookup,
                                   context='alltime',
                                   formatter=self.generator.formatter,
                                   converter=self.generator.converter,
                                   skin_dict=self.generator.skin_dict)       # 4

Afterwards I added alltime = %x %X to weewx.conf, restarted weewx, but that didn't help.

Can someone help me with this?

Thank you very much!

Florian

Tom Keffer

unread,
Feb 13, 2021, 11:30:29 AM2/13/21
to weewx-user
1. What version of WeeWX?

2. Let's see what's in your database. If you used a package installer, your database is likely located at /var/lib/weewx/weewx.sdb. If you did a setup.py install, it's at /home/weewx/archive/weewx.sdb. Assuming the former,

sqlite3 /var/lib/weewx/weewx.sdb
sqlite> select dateTime, datetime(mintime, 'unixepoch','localtime'), min from archive_day_outTemp order by min asc limit 5;
sqlite> select dateTime, datetime(dateTime, 'unixepoch','localtime'), outTemp from archive order by outTemp asc limit 5;
sqlite> select dateTime, datetime(dateTime, 'unixepoch','localtime'), outTemp from archive where outTemp is not null order by outTemp asc limit 5;
sqlite> .quit

This will print out the five days with the lowest temperatures and their times using 3 different methods. Post the results.

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7b215826-5b7b-4cb7-b5ba-82c1ccc3e2fdn%40googlegroups.com.

metalmi...@gmail.com

unread,
Feb 13, 2021, 1:07:43 PM2/13/21
to weewx-user
Hi Tom and thank you for your answer. To your questions:

1. 4.3.0

2. 
2.1 
1566079200||
1610319600|2021-01-11 06:02:28|12.38
1610665200|2021-01-15 08:20:05|12.38
1548025200|2019-01-21 06:47:24|14.54
1549234800|2019-02-04 07:18:20|14.9

2.2
1541936700|2018-11-11 12:45:00|
1541937600|2018-11-11 13:00:00|
1542195900|2018-11-14 12:45:00|
1542196800|2018-11-14 13:00:00|
1542200400|2018-11-14 14:00:00|

2.3
1610694000|2021-01-15 08:00:00|12.605
1610695800|2021-01-15 08:30:00|12.6060465116279
1610343000|2021-01-11 06:30:00|12.6846153846154
1610341200|2021-01-11 06:00:00|12.9183928571429
1610692200|2021-01-15 07:30:00|13.0592857142857

fyi: I had to install sqlite3.
To give you a little more background: First, the weather station was connected to a Raspberry Pi 3, now I moved to a vm on my unraid host. On the Raspberry Pi, which has now nothing to do, I switched from Fineoffset USB to Simulator to make it sort of test instance for weewx. On this Pi, the behaviour reported above occurs. If everything works, I will transfer it to the vm. 

Florian

Tom Keffer

unread,
Feb 13, 2021, 1:28:34 PM2/13/21
to weewx-user
As suspected. You are getting bitten by issue #635. This can happen when there is no data in an archive interval. 

The fix is to upgrade to V4.4.

-tk

metalmi...@gmail.com

unread,
Feb 13, 2021, 2:02:34 PM2/13/21
to weewx-user
Thank you very much, that fixed it!
Reply all
Reply to author
Forward
0 new messages