Ok, since the 3 fields are all calculated fields the easiest thing to do will be to recalculate and save them all (if you need to check existing field values you will need to calculate the value anyway so you might as well calculate it and save it in your archive, that will simplify the code).
So far you have posted various code extracts. Can you attach the file containing the modified python code you are running, I appreciate this may seem like overkill, but it is easier to see the code in its entirety rather than pieces at a time. Also, what command did you enter to run the code? Finally, can you post the [DataBindings] and [Databases] sections from weewx.conf, I am sure that at some stage we will need to make sure we are accessing the right database. Gary On Tuesday, 7 March 2017 16:17:44 UTC+10, Hartmut Schweidler wrote: > > Good morning from Germany > > I would like to "add" and/or "update" the new values to the historical > database > "archive". > > If calculated values are missing these should be added > If calculated values are wrong these must be corrected > > > Hartmut > homepage: http://wetter.hes61.de > >> >>
