Hi Andrew, thanks for the reply. Yes the 20mm definitely fell during the 24hrs yesterday as reported by the console (and a manual rain gauge). Weewx was restarted a couple hours before the rain event.
The log shows it failed updating the database for a period of 50mins during the rain. Every 5mins it reported a new failure plus the previous ones. This is the final block of ten for that period:
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:15:00 AEDT (1572754500) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:20:00 AEDT (1572754800) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:25:00 AEDT (1572755100) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:30:00 AEDT (1572755400) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:35:00 AEDT (1572755700) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:40:00 AEDT (1572756000) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:45:00 AEDT (1572756300) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:50:00 AEDT (1572756600) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 15:55:00 AEDT (1572756900) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
Nov 3 16:00:16 viking weewx[21343]: manager: unable to add record 2019-11-03 16:00:00 AEDT (1572757200) to database 'weewx.sdb': UNIQUE constraint failed: archive.dateTime
After this it seems to continue OK:
Nov 3 16:10:16 viking weewx[21343]: manager: added record 2019-11-03 16:10:00 AEDT (1572757800) to database 'weewx.sdb'
Nov 3 16:10:16 viking weewx[21343]: manager: added record 2019-11-03 16:10:00 AEDT (1572757800) to daily summary in 'weewx.sdb'
I don't have the tools at the moment to browse the database directly but "Yesterday's" rainfall, the "weekly" and "monthly" web page, the NOAA monthy summary and a custom local PHP page that queries the database directly all show incorrect rainfall. The PHP page reports hourly obs and there is no rainfall for the hour at 1500 but there is for 1400 and 1600. So I assume the database doesn't have the data.
The main thing I want to know is if I can ask weewx to restore the data for me from the station. Accurate rainfall records are important for a farmer :-)