Skip to content

Commit

Permalink
adapt to removed parameter "grace" in archiveDaySpan for WeeWX 4.9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
roe-dl committed Oct 25, 2022
1 parent c44fe83 commit 231afc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/user/regionalwetterSachsenAnhalt.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
import weewx.xtypes
from weeutil.weeutil import TimeSpan

VERSION = "0.6.1"
VERSION = "0.7"

REQUIRED_WEEWX = "3.8.0"
if StrictVersion(weewx.__version__) < StrictVersion(REQUIRED_WEEWX):
Expand Down Expand Up @@ -466,7 +466,7 @@ def get_record(self, record, dbmanager):
# get midnight-to-midnight time span according to Tom Keffer
daytimespan = weeutil.weeutil.archiveDaySpan(_time_ts)
# yesterday
yesterdaytimespan = weeutil.weeutil.archiveDaySpan(_time_ts,1,1)
yesterdaytimespan = weeutil.weeutil.archiveDaySpan(_time_ts, days_ago=1)
# get actual month
monthtimespan = weeutil.weeutil.archiveMonthSpan(_time_ts)
# get actual year
Expand Down
2 changes: 2 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@
0.6.1 28sep2022
* remove unused api_key option
* correct percent encoding
0.7 25oct2022
* adapted to removed grace parameter in archiveDaySpan for WeeWX 4.9.x
2 changes: 1 addition & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def loader():
class RegionalwetterSachsenAnhaltInstaller(ExtensionInstaller):
def __init__(self):
super(RegionalwetterSachsenAnhaltInstaller, self).__init__(
version="0.6.1",
version="0.7",
name='Regionalwetter-Sachsen-Anhalt',
description='Upload weather data to Regionalwetter Sachsen-Anhalt.',
author="Johanna Roedenbeck",
Expand Down

0 comments on commit 231afc8

Please sign in to comment.