diff --git a/metobsapi/templates/data_index.html b/metobsapi/templates/data_index.html index eb8ee981adbf526f2eb56df723d67f0a9b922c9c..38e1ff4a48db130d7bfee5f4e379e0fe48eaaccd 100644 --- a/metobsapi/templates/data_index.html +++ b/metobsapi/templates/data_index.html @@ -773,7 +773,7 @@ </h2> <ul> <li style='font-size: 15px'> - Last 2 minutes of temperature, dewpoint, pressure for AOSS Tower: + Last 5 minutes (default) of temperature, dewpoint, pressure for AOSS Tower: <ul> <a href="{{ url_for('get_data', fmt='csv', symbols='aoss.tower.air_temp:aoss.tower.dewpoint:aoss.tower.pressure') }}" }}> {{ url_for('get_data', fmt='csv', symbols='aoss.tower.air_temp:aoss.tower.dewpoint:aoss.tower.pressure') | replace('%3A', ':') }} @@ -781,7 +781,7 @@ </ul> </li> <li style='font-size: 15px'> - Last 2 minutes of temperature, dewpoint, pressure for AOSS Tower with Unix epoch millisecond timestamps: + Last 5 minutes (default) of temperature, dewpoint, pressure for AOSS Tower with Unix epoch millisecond timestamps: <ul> <a href="{{ url_for('get_data', fmt='csv', symbols='aoss.tower.air_temp:aoss.tower.dewpoint:aoss.tower.pressure', epoch='ms') }}"> {{ url_for('get_data', fmt='csv', symbols='aoss.tower.air_temp:aoss.tower.dewpoint:aoss.tower.pressure', epoch='ms') | replace('%3A', ':') }} diff --git a/metobsapi/util/query_influx.py b/metobsapi/util/query_influx.py index 48b68e941b57e2a225f2d2129286be26aa0d7b4f..25153ccb611bb03dcca6b0902329c1c0a84e5230 100644 --- a/metobsapi/util/query_influx.py +++ b/metobsapi/util/query_influx.py @@ -17,7 +17,7 @@ def parse_dt(d): def build_queries(symbols, begin, end, value): if begin is None: # TODO: This should use the "FIRST(symbol_name)" function - begin = timedelta(minutes=2) + begin = timedelta(minutes=5) begin = parse_dt(begin) end = parse_dt(end)