- also use sel_month and sel_years

- settings: use current date (today) for data as default
This commit is contained in:
2024-11-14 08:35:42 +01:00
parent 0873229206
commit 16bf180c70
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ if __name__ == '__main__':
end_points.append(Endpoint(k, settings.eps[k]))
# Process data and store into endpoints
process(end_points, settings.BASE, settings.USER, settings.VIN, sel_days=settings.sel_days)
process(end_points, settings.BASE, settings.USER, settings.VIN, sel_days=settings.sel_days, sel_months=settings.sel_month, sel_years=settings.sel_years)
# get endpoints
ep_odo = find_ep_by_name(end_points, name="odo")
+3 -3
View File
@@ -7,9 +7,9 @@ VIN = 'WVWZZZE1ZMP010760'
USER = 'alex'
# Default show data of today
sel_years = (2024, time.gmtime().tm_year)
sel_month = (10, time.gmtime().tm_mon)
sel_days = (31, time.gmtime().tm_mday)
sel_years = (time.gmtime().tm_year, time.gmtime().tm_year)
sel_month = (time.gmtime().tm_mon, time.gmtime().tm_mon)
sel_days = (time.gmtime().tm_mday, time.gmtime().tm_mday)
t_interval_s = 5 * 60
eps = {