This commit is contained in:
Daniel Langbein 2020-12-07 17:31:25 +01:00
parent a920d65b4b
commit 94b10f0300
3 changed files with 6 additions and 1 deletions

View File

@ -14,6 +14,8 @@ Save these two values in the first line of the following files:
* URL inside `secret/url.txt`
* API-secret inside `secret/secret.txt`
Note: You may `chmod 600` on the two above files.
## run
Start logging in the background:

View File

@ -7,6 +7,8 @@ from langfingaz import logMeetingData
def main():
# logging.basicConfig(level=logging.DEBUG)
print("=== bbb-status ===")
logging.debug(str(argv))
print()

View File

@ -1,6 +1,6 @@
from pathlib import Path
from typing import List
from datetime import date
import logging
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
@ -21,6 +21,7 @@ def plotMeetings(dataDir: Path = fileUtil.getProjectBaseDir().joinpath("data")):
for file in dataDir.iterdir():
if file.name.endswith(".xml"):
logging.debug("Reading from file " + str(file))
dataStr, t = loadData.loadData(file)
meetings: List[Meeting] = parseMeetings.parseMeetingsData(dataStr)
bbbStati.append(parseMeetings.BbbStatus(meetings, t))