- also use sel_month and sel_years
- settings: use current date (today) for data as default
This commit is contained in:
+1
-1
@@ -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")
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user