def load_skipDays(): return int(FILES.loadline(FILENAME_SCHEDULE, ROW_SKIP_DAYS))
def save_percentage(percentage): FILES.saveline(FILENAME_NOW, ROW_PERCENTAGE, str(percentage))
def saveEvent(type, ml, date): data = FILES.load(FILENAME) record = type + "|" + TIMES.stringFrom(date) + "|" + str(ml) + "\n" data.append(record) FILES.save(FILENAME, data)
def load_volume(): return int(FILES.loadline(FILENAME_NOW, ROW_VOLUME))
def save_pouringInProgress(pouringInProgress): FILES.saveline(FILENAME_NOW, ROW_POURING_IN_PROGRESS, str(pouringInProgress))
def load_distanceEmpty(): return float(FILES.loadline(FILENAME_CUBE, ROW_DISTANCE_EMPTY))
def load_distance(): return float(FILES.loadline(FILENAME_NOW, ROW_DISTANCE))
def load_token(): return FILES.loadline(FILENAME_NOTIFICATION, ROW_TOKEN).rstrip()
def load_shouldSend(): return int(FILES.loadline(FILENAME_NOTIFICATION, ROW_SHOULD_SEND).rstrip())
def save_ml(ml): FILES.saveline(FILENAME_SCHEDULE, ROW_ML, str(ml))
def save_skipDays(skipDays): FILES.saveline(FILENAME_SCHEDULE, ROW_SKIP_DAYS, str(skipDays))
def save_date(date): FILES.saveline(FILENAME_SCHEDULE, ROW_DATE, date)
def save_name(name): FILES.saveline(FILENAME_SCHEDULE, ROW_NAME, name.rstrip())
def save_enabled(enabled): FILES.saveline(FILENAME_SCHEDULE, ROW_ENABLED, str(enabled))
def load_volumeMax(): return int(FILES.loadline(FILENAME_CUBE, ROW_VOLUME_MAX))
def load_sending(): return int(FILES.loadline(FILENAME_NOTIFICATION, ROW_SENDING).rstrip())
def load_distanceFull(): return float(FILES.loadline(FILENAME_CUBE, ROW_DISTANCE_FULL))
def save_token(token): # print("DATA - SAVE TOKEN = ") # print(token) FILES.saveline(FILENAME_NOTIFICATION, ROW_TOKEN, token.rstrip())
def load_pouringInProgress(): return int(FILES.loadline(FILENAME_NOW, ROW_POURING_IN_PROGRESS))
def save_shouldSend(shouldSend): FILES.saveline(FILENAME_NOTIFICATION, ROW_SHOULD_SEND, str(shouldSend).rstrip())
def load_percentage(): return float(FILES.loadline(FILENAME_NOW, ROW_PERCENTAGE))
def save_sending(sending): FILES.saveline(FILENAME_NOTIFICATION, ROW_SENDING, str(sending).rstrip())
def load_daysLeft(): return int(FILES.loadline(FILENAME_NOW, ROW_DAYS_LEFT))
def load_waitForInternetConnection(): return int(FILES.loadline(FILENAME_CUBE, ROW_WAIT_FOR_INTERNET_CONNECTION))
def save_distance(distance): FILES.saveline(FILENAME_NOW, ROW_DISTANCE, str(distance))
def load_warningPercentage(): return float(FILES.loadline(FILENAME_CUBE, ROW_WARNING_PERCENTAGE))
def load_allEvents(): print("HISTORY - LOAD: ALL EVENTS") return FILES.load(FILENAME)
def load_warningDaysLeft(): return int(FILES.loadline(FILENAME_CUBE, ROW_WARNING_DAYS_LEFT))
def reset(): data = 'HISTORY\n' FILES.save(FILENAME, data)
def load_ml(): return int(FILES.loadline(FILENAME_SCHEDULE, ROW_ML))