Comments (14)
We will need more information than this. At the very least:
- What kind of station?
- What do you mean by "Total rain"? Do you mean the value in the Seasons skin under "Statistics" for "Today"? Something else? Or, did you see this in the NOAA reports?
- Are you using hardware or software record generation?
- What is in your database for
rain
over this time period?
from weewx.
We will need more information than this. At the very least:
- What kind of station?
- What do you mean by "Total rain"? Do you mean the value in the Seasons skin under "Statistics" for "Today"? Something else? Or, did you see this in the NOAA reports?
- Are you using hardware or software record generation?
- What is in your database for
rain
over this time period?
Hi,
Ad 1: Davis Vantage Pro, I use also the Belchertown Skin
Ad 2: In the Graphs its shown as "Rain Total" but I think its "dayRain_mm" coming from the WeatherlivelinkUDP
Ad 3: hardware
Ad 4: Good question, I am not the DB Expert. Any hints for the correct query?
Br,
Johannes
from weewx.
I am not familiar with the Belchertown skin. Do you know what tag it uses for "Rain Total"?
What version of WeeWX?
How did you install WeeWX?
To query the database, find the path to the sqlite database weewx.sdb
. If you did a package install it will be at /var/lib/weewx/weewx.sdb
. If you used setup.py
, it will be at /home/weewx/archive/weewx.sdb
. If you are using V5, it will be at ~/weewx-data/archive/weewx.sdb
. Then
sqlite3 /path/to/weewx.sdb
sqlite> select dateTime, date(dateTime, 'unixepoch','localtime') as t, sum from archive_day_rain where t>="2024-03-01";
from weewx.
Version is 5.0.2
I installed it via apt on a Raspbian.
This are the last two days in the DB
1711922400|2024-04-01|0.900000000000001
1712008800|2024-04-02|0.9
its correct for the 1st of april, but wrong for the 2nd of april.
What is interesting is, that the Graph shows the 9mm only until 1am in the morning. thats why my assumption is that it is related to the daylight-saving.
What I have done now: I have rebooted myDavis Weatherlivelink - mybe it had some timing issues. I need to wait now until the next day with rain.
How can I set this value to zero for today?
Br,
Johannes
from weewx.
Let's see what's in the main archive table.
I'm assuming your archive interval is 5 minutes (300 seconds). Adjust as necessary.
sqlite> select datetime(max(dateTime),'unixepoch','localtime'), sum(rain) from archive group by date(dateTime-300,'unixepoch','localtime') order by dateTime desc limit 10;
from weewx.
2024-04-02 13:00:00|0.9
2024-04-02 00:00:00|0.900000000000001
2024-04-01 00:00:00|0.12
2024-03-31 00:00:00|0.0
2024-03-30 00:00:00|0.0
2024-03-29 00:00:00|0.46
2024-03-28 00:00:00|1.68
2024-03-27 00:00:00|0.0
2024-03-26 00:00:00|0.0
2024-03-25 00:00:00|0.04
from weewx.
I think I messed up that last SELECT
statement. Try this:
sqlite> select date(min(dateTime),'unixepoch','localtime'), sum(rain) from archive group by date(dateTime-300,'unixepoch','localtime') order by dateTime desc limit 10;
Compare to what you think is correct.
from weewx.
2024-04-02|0.9
2024-04-01|0.900000000000001
2024-03-31|0.12
2024-03-30|0.0
2024-03-29|0.0
2024-03-28|0.46
2024-03-27|1.68
2024-03-26|0.0
2024-03-25|0.0
2024-03-24|0.04
Everything looks good, except the 02.04. as we had no rain today.
from weewx.
OK, then let's look at the raw data for today:
sqlite> select dateTime,datetime(dateTime,'unixepoch','localtime') as t,rain from archive where t>="2024-04-02";
Thanks for your patience!
from weewx.
sqlite> select dateTime,datetime(dateTime,'unixepoch','localtime') as t,rain from archive where t>="2024-04-02";
1712008800|2024-04-02 00:00:00|0.0
1712009100|2024-04-02 00:05:00|0.9
1712009400|2024-04-02 00:10:00|0.0
1712009700|2024-04-02 00:15:00|0.0
1712010000|2024-04-02 00:20:00|0.0
1712010300|2024-04-02 00:25:00|0.0
1712010600|2024-04-02 00:30:00|0.0
1712010900|2024-04-02 00:35:00|0.0
1712011200|2024-04-02 00:40:00|0.0
1712011500|2024-04-02 00:45:00|0.0
1712011800|2024-04-02 00:50:00|0.0
1712012100|2024-04-02 00:55:00|0.0
1712012400|2024-04-02 01:00:00|0.0
1712012700|2024-04-02 01:05:00|
1712013000|2024-04-02 01:10:00|
1712013300|2024-04-02 01:15:00|
1712013600|2024-04-02 01:20:00|
1712013900|2024-04-02 01:25:00|
1712014200|2024-04-02 01:30:00|
1712014500|2024-04-02 01:35:00|
1712014800|2024-04-02 01:40:00|
1712015100|2024-04-02 01:45:00|
1712015400|2024-04-02 01:50:00|
1712015700|2024-04-02 01:55:00|
1712016000|2024-04-02 02:00:00|
1712016300|2024-04-02 02:05:00|
1712016600|2024-04-02 02:10:00|
1712016900|2024-04-02 02:15:00|
1712017200|2024-04-02 02:20:00|
1712017500|2024-04-02 02:25:00|
1712017800|2024-04-02 02:30:00|
1712018100|2024-04-02 02:35:00|
1712018400|2024-04-02 02:40:00|
1712018700|2024-04-02 02:45:00|
1712019000|2024-04-02 02:50:00|
1712019300|2024-04-02 02:55:00|
1712019600|2024-04-02 03:00:00|
1712019900|2024-04-02 03:05:00|
1712020200|2024-04-02 03:10:00|
1712020500|2024-04-02 03:15:00|
1712020800|2024-04-02 03:20:00|
1712021100|2024-04-02 03:25:00|
1712021400|2024-04-02 03:30:00|
1712021700|2024-04-02 03:35:00|
1712022000|2024-04-02 03:40:00|
1712022300|2024-04-02 03:45:00|
1712022600|2024-04-02 03:50:00|
1712022900|2024-04-02 03:55:00|
1712023200|2024-04-02 04:00:00|
1712023500|2024-04-02 04:05:00|
1712023800|2024-04-02 04:10:00|
1712024100|2024-04-02 04:15:00|
1712024400|2024-04-02 04:20:00|
1712024700|2024-04-02 04:25:00|
1712025000|2024-04-02 04:30:00|
1712025300|2024-04-02 04:35:00|
1712025600|2024-04-02 04:40:00|
1712025900|2024-04-02 04:45:00|
1712026200|2024-04-02 04:50:00|
1712026500|2024-04-02 04:55:00|
1712026800|2024-04-02 05:00:00|
1712027100|2024-04-02 05:05:00|
1712027400|2024-04-02 05:10:00|
1712027700|2024-04-02 05:15:00|
1712028000|2024-04-02 05:20:00|
1712028300|2024-04-02 05:25:00|
1712028600|2024-04-02 05:30:00|
1712028900|2024-04-02 05:35:00|
1712029200|2024-04-02 05:40:00|
1712029500|2024-04-02 05:45:00|
1712029800|2024-04-02 05:50:00|
1712030100|2024-04-02 05:55:00|
1712030400|2024-04-02 06:00:00|
1712030700|2024-04-02 06:05:00|0.0
1712031000|2024-04-02 06:10:00|0.0
1712031300|2024-04-02 06:15:00|0.0
everything later looks the same
from weewx.
It appears that, for whatever reason, the logger put a whole day's worth of rain in the archive record at 2024-04-02 00:05:00. This seems to be a Vantage firmware problem. Could you show us the results of
weectl device --info
To fix, you'll have to correct the value for 1712009100.
sqlite> update archive set rain=0.0 where dateTime=1712009100;
Make a backup of the database!
Then rebuild the daily summary for that day:
weectl database rebuild-daily --date 2024-04-02
from weewx.
pi@Weewx:~ $ weectl device --info
Using configuration file /etc/weewx/weewx.conf
Using driver user.weatherlinkliveudp.
Cannot load configurator for WeatherLinkLiveUDP.
from weewx.
Thanks the cleanup-commands were working.
As you stated, I also think it is related to the Davis System. Maybe this Device had an hickup after the change to daylight savings.
I have rebooted the device and will monitor.
Many thanks for your great support here!
from weewx.
Hang on, hang on. Sorry, but I missed that you are using the WeatherLinkLive driver. I have no idea how it calculates rain
. You should check with the author. That could be where the problem is.
from weewx.
Related Issues (20)
- weewx v5.0.2 PID file? HOT 7
- weewx.conf apt upgrade keep overwrites station_type HOT 5
- Reopen #247 HOT 1
- WeeWX starts before clock correct when using ntp HOT 12
- Running WeeWX as executable (for apparmor use) HOT 5
- Upgrade setting permissions on weewx.conf HOT 5
- WMR300 permission error HOT 3
- Add RSync options capability - exclude files/directories HOT 1
- Bug in Debian postinst prevent installing 5.0.2 debs HOT 2
- issues with wee_extensions install HOT 1
- View from Reports / NOAA (Belchertown Skin) HOT 4
- Problems with "Zambretti" forecast HOT 2
- *BSD rc script HOT 2
- Document formats in [[DeltaTimeFormats]]
- [Question] How to regenerate reports for months and years HOT 6
- v4 setup to v5 pip instructions are missing a step HOT 1
- On the first weewx generation cycle the extreme temperatures are not updated HOT 3
- shim deprecated wee_ commands for a while HOT 2
- Error when starting weewxd HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from weewx.