The method addRecord() now has an "update <https://github.com/weewx/weewx/blob/development/src/weewx/manager.py#L361>" parameter, making it possible to update old records. To appear in V5.1.
On Wed, Feb 21, 2024 at 10:26 AM Karen K <[email protected]> wrote: > I read the roadmap.md file and I saw the item about supporting more than > one driver at the same time. > > So there are some thoughts. > > Some people not only have one single weather station but different sources > of data to process. That could be: > > - additional hardware (measurement devices) > - measurements from other locations in the neighborhood > - data received from governmental services to use for comparison > purposes like this > <https://www.woellsdorf-wetter.de/records/neighborhood.html>. > > Some of those data sources deliver their readings with some delay but > include a timestamp. Or they provide an update to a previously sent reading > after performing quality checks. In all those cases data do not arrive > within the archive interval they belong to. This involves updating database > records and summaries. > > I have got that case about governmental data and I actually work around > the limitations by > > - not using addRecord() for writing into the database > - using the binding for reading the database only > - writing to the database like this > > <https://github.com/roe-dl/weewx-DWD/blob/master/bin/user/weatherservicesdb.py> > . > > The disadvantage of that solution is, that the DaySummaryManager cannot be > used. > > Updating a database record is not only a question of importing. It is also > required if you want to use data that arrive with some delay and include a > timestamp of their own. > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/12bc601f-220d-4cfd-87c5-e4e956882a1bn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-development/12bc601f-220d-4cfd-87c5-e4e956882a1bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/CAPq0zEDg_BpL6kUE6JRixD-saO_aZV_Aip5rjj17poRevJc01A%40mail.gmail.com.
