How do I correct my daily rain data?

103 views
Skip to first unread message

dens...@yahoo.com

unread,
Aug 4, 2025, 1:13:29 PM8/4/25
to weewx-user
Hardware maintenance resulted in 1.63" of daily rain data that is not real. Is there an easy way to correct this error?
I am running WeeWX 5.0 on a Raspberry Pi.
Thanks,
Den

vince

unread,
Aug 4, 2025, 3:43:25 PM8/4/25
to weewx-user

dens...@yahoo.com

unread,
Aug 4, 2025, 4:16:39 PM8/4/25
to weewx-user
Thank you for the quick reply... I am sure my lack of Pi / SQLite knowledge is at issue here.
I pasted:
echo "select datetime(dateTime,'unixepoch','localtime'),dateTime,rain,rainRate from archive order by rowid desc limit 20;" | sqlite3 weewx.sdb
into the terminal as the user Pi  (pi@raspberrypi:) and get back:
bash: sqlite3: command not found.

Adding the preface sudo did not change the response.

If more explicit instructions would help, please advise.
Den

vince

unread,
Aug 4, 2025, 6:29:05 PM8/4/25
to weewx-user
You likely need to install the sqlite3 utility. 

dens...@yahoo.com

unread,
Aug 4, 2025, 7:33:30 PM8/4/25
to weewx-user
! I have been researching this and found just what you suggest: I need to install sqlite3. Not knowing much I have been concerned that sqlite3 will interfere with the weewx database. From what I see it is a stand alone utility that I can use to access weewx.sdb AND not a database installer. 
THANKS Vince, a project for tomorrow. Wish me luck.

vince

unread,
Aug 4, 2025, 9:07:03 PM8/4/25
to weewx-user
After you clear out the bad records in the archive table, the official way to rebuild the daily summary table would be to run weectl database with the rebuild-daily option and specify just the date in question.  My example kinda slam dunks the value an unofficial way.

Reply all
Reply to author
Forward
0 new messages