in the line print "weewx_copy_fill: ", "record %d unter %s tag" %(nrecs, msr) """
delete the >>> """ <<< sorry Hartmut Am Dienstag, 7. März 2017 09:06:39 UTC+1 schrieb Hartmut Schweidler: > > Supplement > have a look at https://github.com/hes19073/hesweewx > > Am Dienstag, 7. März 2017 09:01:17 UTC+1 schrieb Hartmut Schweidler: >> >> hallo Gary, >> >> i am using weewx development 3.7.0b2 and Own extensions in wxformulars >> and >> >> - die Datei (units.py), >> - die Datei (wxformulas.py), >> - sowie die Datei (tags.py ) >> >> Ein Beispiel zur Ermittlung der Anzahl der Tage wenn 'min' größer ist als >> nach: >> >> bin/weewx/tags.py >> def max_ge(self, val): >> return self._do_query('max_ge', val=val) >> >> zur Ermittlung der Tage ergänzt >> def *min_ge*(self, val): >> return self._do_query('*min_ge*', val=val) >> >> eingefügt. >> >> >> bin/weewx/manager.py >> 'max_ge': "SELECT SUM(max >= %(val)s) FROM %(table_name)s_day_%(obs_key)s >> WHERE dateTime >= %(start)s AND dateTime < %(stop)s", >> >> *'min_ge': "SELECT SUM(min >= %(val)s) FROM >> %(table_name)s_day_%(obs_key)s WHERE dateTime >= %(start)s AND dateTime < >> %(stop)s",* >> >> >> elif aggregate_type in ['mintime', 'maxmintime', 'maxtime', >> 'minmaxtime', 'maxsumtime', >> 'count', 'max_ge', 'max_le', *'min_ge',* 'min_le', 'sum_ge']: >> >> bin/weewx/units.py >> 'max_ge' : "group_count", >> 'max_le' : "group_count", >> >> >> *'min_ge' : "group_count",*These are uncritical since they have been >> functioning correctly for several months >> >> The only problem is the new update function and the writing of the values >> in the database >> >> Hartmut >> >> Am Dienstag, 7. März 2017 08:40:36 UTC+1 schrieb gjr80: >>> >>> Hallo Harmut, >>> >>> One final thing, could you please confirm what weeWX version you are >>> using. Your site says 3.7.1 and your weewx.conf say 3.7.2. But 3.7.0 has >>> not yet been released, are you using 3.6.2 (the latest release) or one of >>> the 3.7.0 betas? >>> >>> I will sit down tonite and work my way through the code. >>> >>> Gary >>> >>> On Tuesday, 7 March 2017 17:13:46 UTC+10, Hartmut Schweidler wrote: >>>> >>>> Hallo Gary, >>>> >>>> Not to scold >>>> >>>> The values are calculated but they are not found in the database >>>> >>>> from weewxwd_config.py i call weewxwd_config --clear-v2-data >>>> >>>> >>>> Am Dienstag, 7. März 2017 07:33:08 UTC+1 schrieb gjr80: >>>>> >>>>> 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 >>>>>> >>>>>>> >>>>>>>
