mirror of
https://codeberg.org/langfingaz/bbb-status
synced 2024-11-21 20:23:17 +01:00
debug
This commit is contained in:
parent
a920d65b4b
commit
94b10f0300
@ -14,6 +14,8 @@ Save these two values in the first line of the following files:
|
|||||||
* URL inside `secret/url.txt`
|
* URL inside `secret/url.txt`
|
||||||
* API-secret inside `secret/secret.txt`
|
* API-secret inside `secret/secret.txt`
|
||||||
|
|
||||||
|
Note: You may `chmod 600` on the two above files.
|
||||||
|
|
||||||
## run
|
## run
|
||||||
|
|
||||||
Start logging in the background:
|
Start logging in the background:
|
||||||
|
@ -7,6 +7,8 @@ from langfingaz import logMeetingData
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
# logging.basicConfig(level=logging.DEBUG)
|
||||||
|
|
||||||
print("=== bbb-status ===")
|
print("=== bbb-status ===")
|
||||||
logging.debug(str(argv))
|
logging.debug(str(argv))
|
||||||
print()
|
print()
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List
|
from typing import List
|
||||||
from datetime import date
|
import logging
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import matplotlib.dates as mdates
|
import matplotlib.dates as mdates
|
||||||
@ -21,6 +21,7 @@ def plotMeetings(dataDir: Path = fileUtil.getProjectBaseDir().joinpath("data")):
|
|||||||
|
|
||||||
for file in dataDir.iterdir():
|
for file in dataDir.iterdir():
|
||||||
if file.name.endswith(".xml"):
|
if file.name.endswith(".xml"):
|
||||||
|
logging.debug("Reading from file " + str(file))
|
||||||
dataStr, t = loadData.loadData(file)
|
dataStr, t = loadData.loadData(file)
|
||||||
meetings: List[Meeting] = parseMeetings.parseMeetingsData(dataStr)
|
meetings: List[Meeting] = parseMeetings.parseMeetingsData(dataStr)
|
||||||
bbbStati.append(parseMeetings.BbbStatus(meetings, t))
|
bbbStati.append(parseMeetings.BbbStatus(meetings, t))
|
||||||
|
Loading…
Reference in New Issue
Block a user