mirror of
https://github.com/FAUSheppy/ths-datenlogger
synced 2025-12-06 04:11:34 +01:00
wip:
This commit is contained in:
25
src/main/python/fallback_csv.py
Normal file
25
src/main/python/fallback_csv.py
Normal file
@@ -0,0 +1,25 @@
|
||||
import glob
|
||||
import os
|
||||
|
||||
|
||||
def read_file=
|
||||
|
||||
def generate(master_dir, from_time, to_time, cache_dir_fullpath):
|
||||
|
||||
timeframes = dict()
|
||||
|
||||
# read files
|
||||
files = glob.glob(master_dir + "/*.txt"):
|
||||
print(files)
|
||||
|
||||
for f in files:
|
||||
timeframes
|
||||
|
||||
|
||||
# glob files
|
||||
# parse start end dates
|
||||
# find a file that is a superset
|
||||
# load the file
|
||||
# generate a correct cache file from it return
|
||||
# fix the dates
|
||||
# if no suiteable file is found return an appropriate error
|
||||
Reference in New Issue
Block a user