Closed carstenkruseh closed 1 year ago
Tak @carstenkruseh.
Vil du slå debug log til på integrationen, genstarte HA og sørge for at fange en loglinje lignende denne her:
2023-01-13 13:43:17.578 DEBUG (SyncWorker_2) [custom_components.aula.client] Widgets found: {'0069': 'KMD Educa Elev - Kontaktoplysninger', '0013': 'Nyttige links', '0029': 'MinUddannelse – Ugenoter', '0072': 'MU Elev - fravær'}
@carstenkruseh jeg kan ikke komme videre uden data fra dig.
Hej Søren!
Beklager mit sene svar.
Jeg har slået debug logging til på Aula under integrationer.
Og genstartet HA.
Men der kommer ikke nogen log frem om Aula under indstillinger -> System -> Logs.
Leder jeg det forkerte sted? :)
Fra: Søren Christian Aarup @.> Sendt: 16. januar 2023 10:10 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Tak @carstenkruseh https://github.com/carstenkruseh . Vil du slå debug log til, genstarte HA og sørge for at fange en loglinje lignende denne her: 2023-01-13 13:43:17.578 DEBUG (SyncWorker_2) [custom_components.aula.client] Widgets found: {'0069': 'KMD Educa Elev - Kontaktoplysninger', '0013': 'Nyttige links', '0029': 'MinUddannelse – Ugenoter', '0072': 'MU Elev - fravær'}
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1383706660 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW5ITDRHMIU2QAC6QITWSUF7BANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJWYP2RTFHSXVVO7HX7TWSUF7BA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSSPGYCI.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Hvad hvis du klikker på "load full log" nederst? Alternativt download loggen derfra.
Jeg plejer aldrig at kigge logs i UI, jeg tager den via en ssh forbindelse således:
Hej Søren!
Jeg har prøvet gennem terminalen.
Og får kun denne linje – Det ligner ikke rigtigt dit :)
Det er den samme linje som kom med når jeg valgte at vise den fulde log i UI.
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 08:31 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Hvad hvis du klikker på "load full log" nederst? Alternativt download loggen derfra.
Jeg plejer aldrig at kigge logs i UI, jeg tager den via en ssh forbindelse således:
https://user-images.githubusercontent.com/8055470/214235040-79406b34-88e6-436e-ad98-03cce1c53859.png
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401494966 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2XGZFBAZUDW7P2LW3WT6AMXANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW3U572FHRDL5DUTC2DWT6AMXA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTREO3M.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Så har du ikke fået enabled debug logging for integrationen.
Sørg for, at du har følgende i din configuration.yaml:
logger:
default: info
logs:
custom_components.aula: debug
Og genstart HA.
Arh, det havde åbenbart ikke fungeret at gøre det under integrationer i UI :)
Tak.
Her er en linje, der ligner:
2023-01-24 13:55:26.106 DEBUG (SyncWorker_4) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-24 13:55:26.106 DEBUG (SyncWorker_4) [custom_components.aula.client] Requesting token for widget 0029
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 13:53 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Så har du ikke fået enabled debug logging for integrationen.
Sørg for, at du har følgende i din configuration yaml:
logger:
default: info
logs:
custom_components.aula: debug
Og genstart HA.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401899124 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW3SHXHKYHWSULMWLPDWT7GB3ANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJWZUEGMUE4O3AYGTZH3WT7GB3A5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTR5EHI.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Vi skal bruge mange mange flere linjer. Alle linjer med "aula" helt fra genstart/opstart.
Super, de kommer her:
2023-01-24 13:55:08.485 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration aula which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-01-24 13:55:16.750 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'input_number', 'met', 'timer', 'zone', 'scene', 'zha', 'map', 'wemo', 'search', 'image_upload', 'hardware', 'onboarding', 'device_tracker', 'input_boolean', 'sun', 'switch', 'history', 'wake_on_lan', 'blueprint', 'device_automation', 'emporia_vue', 'home_connect', 'schedule', 'energy', 'homekit_controller', 'alarm_control_panel', 'logbook', 'analytics', 'repairs', 'file_upload', 'sonos', 'system_health', 'unifi', 'neato', 'script', 'person', 'energidataservice', 'esphome', 'lovelace', 'hacs', 'diagnostics', 'tag', 'google_assistant', 'python_script', 'auth', 'nordpool', 'config', 'camera', 'template', 'tado', 'default_config', 'homeassistant_alerts', 'input_datetime', 'zwave_js', 'tasmota', 'counter', 'mypv', 'blueiris', 'nodered', 'tts', 'group', 'my', 'aula', 'automation', 'forecast_solar', 'persistent_notification', 'sensor', 'trace', 'shopping_list', 'input_text', 'input_button', 'samsungtv', 'application_credentials', 'ios', 'filesize', 'mqtt', 'media_source', 'ffmpeg', 'homekit', 'uptimerobot', 'mobile_app', 'input_select', 'nissan_leaf'}
2023-01-24 13:55:21.369 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-24 13:55:21.369 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-24 13:55:21.399 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.26
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-24 13:55:21.487 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-24 13:55:21.535 DEBUG (SyncWorker_4) [custom_components.aula.client] is_logged_in? False
2023-01-24 13:55:21.535 DEBUG (SyncWorker_4) [custom_components.aula.client] Logging in
2023-01-24 13:55:24.101 DEBUG (SyncWorker_4) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-24 13:55:24.339 DEBUG (SyncWorker_4) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-24 13:55:24.583 DEBUG (SyncWorker_4) [custom_components.aula.client] LOGIN: True
2023-01-24 13:55:24.583 DEBUG (SyncWorker_4) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-24 13:55:24.583 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 13:55:24.583 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 13:55:24.583 DEBUG (SyncWorker_4) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 13:55:24.989 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 13:55:24.989 DEBUG (SyncWorker_4) [custom_components.aula.client] Fetching calendars...
2023-01-24 13:55:26.106 DEBUG (SyncWorker_4) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-24 13:55:26.106 DEBUG (SyncWorker_4) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:26.297 DEBUG (SyncWorker_4) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:26.476 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 4.946 seconds (success: True)
2023-01-24 13:55:26.616 DEBUG (SyncWorker_3) [custom_components.aula.client] is_logged_in? True
2023-01-24 13:55:26.616 DEBUG (SyncWorker_3) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 13:55:26.616 DEBUG (SyncWorker_3) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 13:55:26.617 DEBUG (SyncWorker_3) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 13:55:26.983 DEBUG (SyncWorker_3) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 13:55:26.983 DEBUG (SyncWorker_3) [custom_components.aula.client] Fetching calendars...
2023-01-24 13:55:27.832 DEBUG (SyncWorker_3) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:28.012 DEBUG (SyncWorker_3) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:28.167 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 1419527 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3686918 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3672358 adding sensor entity.
2023-01-24 13:55:28.169 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-24 13:55:28.169 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-24 13:55:28.169 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-24 13:55:28.169 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-24 13:55:28.174 INFO (MainThread) [homeassistant.components.calendar] Setting up calendar.aula
2023-01-24 13:55:28.174 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-24 13:55:28.174 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-24 13:55:28.174 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-24 13:55:28.174 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-24 13:55:28.194 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-24 13:55:28.194 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-24 13:55:28.194 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-24 13:55:28.194 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-24 13:55:36.596 DEBUG (SyncWorker_14) [custom_components.aula.client] is_logged_in? True
2023-01-24 13:55:36.596 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 13:55:36.597 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 13:55:36.597 DEBUG (SyncWorker_14) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 13:55:36.952 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 13:55:36.953 DEBUG (SyncWorker_14) [custom_components.aula.client] Fetching calendars...
2023-01-24 13:55:37.869 DEBUG (SyncWorker_14) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:38.035 DEBUG (SyncWorker_14) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 13:55:38.171 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 1.692 seconds (success: True)
2023-01-24 13:55:38.171 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-24 13:55:38.171 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-24 13:55:38.171 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-24 13:56:28.197 DEBUG (SyncWorker_5) [custom_components.aula.calendar] Updating calendars...
2023-01-24 13:56:28.210 DEBUG (SyncWorker_5) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:28.215 DEBUG (SyncWorker_7) [custom_components.aula.calendar] Updating calendars...
2023-01-24 13:56:28.218 DEBUG (SyncWorker_7) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:28.223 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Updating calendars...
2023-01-24 13:56:28.228 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:45.462 DEBUG (MainThread) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:45.466 DEBUG (MainThread) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:45.479 DEBUG (MainThread) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 13:56:46.597 DEBUG (MainThread) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 14:00:38.469 DEBUG (SyncWorker_1) [custom_components.aula.client] is_logged_in? True
2023-01-24 14:00:38.469 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 14:00:38.469 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 14:00:38.469 DEBUG (SyncWorker_1) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 14:00:38.800 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 14:00:38.800 DEBUG (SyncWorker_1) [custom_components.aula.client] Fetching calendars...
2023-01-24 14:00:39.923 DEBUG (SyncWorker_1) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:00:40.054 DEBUG (SyncWorker_1) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:00:40.182 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 1.978 seconds (success: True)
2023-01-24 14:00:40.182 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-24 14:00:40.183 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-24 14:00:40.183 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-24 14:05:40.513 DEBUG (SyncWorker_0) [custom_components.aula.client] is_logged_in? True
2023-01-24 14:05:40.513 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 14:05:40.513 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 14:05:40.513 DEBUG (SyncWorker_0) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 14:05:40.891 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 14:05:40.891 DEBUG (SyncWorker_0) [custom_components.aula.client] Fetching calendars...
2023-01-24 14:05:41.644 DEBUG (SyncWorker_0) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:05:41.832 DEBUG (SyncWorker_0) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:05:41.970 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 1.752 seconds (success: True)
2023-01-24 14:05:41.970 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-24 14:05:41.970 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-24 14:05:41.971 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-24 14:06:28.280 DEBUG (SyncWorker_12) [custom_components.aula.calendar] Updating calendars...
2023-01-24 14:06:28.294 DEBUG (SyncWorker_12) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 14:06:28.298 DEBUG (SyncWorker_9) [custom_components.aula.calendar] Updating calendars...
2023-01-24 14:06:28.301 DEBUG (SyncWorker_9) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 14:06:28.305 DEBUG (SyncWorker_4) [custom_components.aula.calendar] Updating calendars...
2023-01-24 14:06:28.308 DEBUG (SyncWorker_4) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-24 14:10:41.504 DEBUG (SyncWorker_14) [custom_components.aula.client] is_logged_in? True
2023-01-24 14:10:41.504 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 14:10:41.504 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 14:10:41.504 DEBUG (SyncWorker_14) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 14:10:41.865 DEBUG (SyncWorker_14) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 14:10:41.865 DEBUG (SyncWorker_14) [custom_components.aula.client] Fetching calendars...
2023-01-24 14:10:42.353 DEBUG (SyncWorker_14) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:10:42.499 DEBUG (SyncWorker_14) [custom_components.aula.client] Requesting token for widget 0029
2023-01-24 14:10:42.626 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 1.384 seconds (success: True)
2023-01-24 14:10:42.633 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-24 14:10:42.633 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-24 14:10:42.633 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-24 14:11:46.608 DEBUG (MainThread) [custom_components.aula.calendar] Parsing skoleskema.json...
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 14:05 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Vi skal bruge mange mange flere linjer. Alle linjer med "aula" helt fra genstart/opstart.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401916990 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW4MPZIRN76OK6ZJOHLWT7HQRANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW4WCE7H7DHA6NNSNCLWT7HQRA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTR6HD4.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Okay spændende, der var en masse.
Er du helt 100% på, at du ikke har entities for alle 3?
Der er flere indikationer, bl.a.:
2023-01-24 13:55:28.167 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 1419527 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3686918 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3672358 adding sensor entity.
Jeg har entities for alle 3 børn.
Jeg kan bare ikke se de lektier, som skolen opretter under ”Opgaver” :)
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 14:23 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Okay spændende, der var en masse.
Er du helt 100% på, at du ikke har entities for alle 3?
Der er flere indikationer, bl.a.:
2023-01-24 13:55:28.167 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 1419527 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3686918 adding sensor entity.
2023-01-24 13:55:28.168 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3672358 adding sensor entity.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401943271 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2FETJKFQJGW576PKDWT7JUJANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJWZXWJTMIXAHLBXCEE3WT7JUJA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTR72OO.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Ja sorry - det var bare mig, der blandede to issues sammen her :).
Så langt så godt. Vi kan se denne her "'0030': 'MinUddannelse - Opgaver'".
Så nu skal vi have fat i de requests Aula laver til MinUddannelse.
Så i Aula i din browser, højreklik (anywhere) og vælg "inspect":
Vælg "Network" tab'en og reload siden:
Find så alle requests til api.minuddannelse.net, vælg "copy as curl" og sæt resultatet herind (meget gerne i code blocks):
-X "OPTIONS" ^
-H "Accept: /" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Access-Control-Request-Headers: authorization" ^
-H "Access-Control-Request-Method: GET" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
--compressed
curl https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian ^
-H "Accept: application/json" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjc0NTY3NjYxLCJhdWQiOiIwMDI5IiwiQXNzdXJhbmNlTGV2ZWwiOjMsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzQ1NzEyMzcsImp0aSI6IjYzY2ZkZjhjOGMyNTk0LjgyNDI2MTYyIiwic3ViIjoiY2FyczIxNjIifQ.XR33EMCVrTORYc69uauxXDQpvZdqTevlRVnrRz_TWIbkErWv5QEUAl9LYjGFcEcgt4IhU5my7kkCyTU8TZdf6io1GTK9_WcXjVqRjp8OwsV_bGH9WvG_izUzexp2wIa1dhq_WNzODkdHsUcCxZ0gEiornytByfTohIjKdrvQT2OIW4IZ4uxVMGQm6kdy15unRyBIxq1Qjgh_lDXhIJhHiP50iff93scZOWaBNC06-Onl_uihxZdKRk8j_ZIJHKURny6vMfUWLMKZ2sljEtoa1Ba5oe0YY5g7eJ42L3enQ2oOLimy77KUaf7Okln5SnBP7fMquLNP9EHC4lxe2A143g" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"109^\^", ^\^"Chromium^\^";v=^\^"109^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
--compressed
curl https://api.minuddannelse.net/aula/forloeb?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian https://api.minuddannelse.net/aula/forloeb?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian ^
-H "Accept: application/json" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjc0NTY3NjYxLCJhdWQiOiIwMDI4IiwiQXNzdXJhbmNlTGV2ZWwiOjMsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzQ1NzEyMzcsImp0aSI6IjYzY2ZkZjhjOGMyNTk0LjgyNDI2MTYyIiwic3ViIjoiY2FyczIxNjIifQ.Ond9IwoIFTmxvK_sBIP1Vq5GIx1Remyep0u3kiLi8UceEOMLrtY4mqkkV5xbD1LYSkRd74hYOoa2Examw2UuFpYBZgnBLXHTiJJB5YECO2zQYo4-ljHfW5OQ8OZff_LaPE-7Kcqb6J86QOjzBc--AcD_74aCClqtK_r8OJXuwabCS4JUf25WO-FA4bTtrJ36pcWuxi8kAEQVTWYoBZI5NMnkJBrpVH1IcFZmfkfFCRU-toA2-XbtF3PV0DF5h5x7E-rWA6HP7wuRcyFmSWxLeBgkrZHS5Cb0wP5PGUn5tPUxYBJ8V2hGs0xTS3ajeBqiI46E5nMxhJIjPeQqGxqNjw" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"109^\^", ^\^"Chromium^\^";v=^\^"109^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
--compressed
curl https://api.minuddannelse.net/aula/opgaveliste?placement=narrow&sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter%5e\%5b%5e\%5d=neya0020&childFilter%5e\%5b%5e\%5d=noah217a&childFilter%5e\%5b%5e\%5d=feli5445&isMobileApp=false&institutionFilter%5e\%5b%5e\%5d=731004&institutionFilter%5e\%5b%5e\%5d=G19814 https://api.minuddannelse.net/aula/opgaveliste?placement=narrow&sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter^\[^\]=neya0020&childFilter^\[^\]=noah217a&childFilter^\[^\]=feli5445&isMobileApp=false&institutionFilter^\[^\]=731004&institutionFilter^\[^\]=G19814 ^
-H "Accept: application/json" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjc0NTY3NjYxLCJhdWQiOiIwMDMwIiwiQXNzdXJhbmNlTGV2ZWwiOjMsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzQ1NzEyMzcsImp0aSI6IjYzY2ZkZjhjOGMyNTk0LjgyNDI2MTYyIiwic3ViIjoiY2FyczIxNjIifQ.BRSsmlS0JcTQDo-niPbnLLDvFfmNXggZMLlXDrLDJKvtm3zeykvoVsG49AwBF5889BYhG9DoI-pqOdfhnhGYEWkJvH1OJCDZ-Pe0SMnBnsvqCxTdYoZuk91EhPv0IipiMuHedT2RThl9RW8lc4JgJ7j_NKta6ZLLEmlEhUa2hjE65_VdTIGPeiFke86L599qY4AXe37Xs7Kyhvgua1vpUqLqG8a9ACZMzAaITQ8BPTeKJynAUpP2kAXCDTjAM9NNEYUm3TRshll5_hSOfFVc4UT-t4gO1RsROkQk3oHPazUd3EIdt33fHMS7WXW5axVaTmTURXiXLgW9rP5IgmSSkw" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"109^\^", ^\^"Chromium^\^";v=^\^"109^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
--compressed
curl https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian ^
-X "OPTIONS" ^
-H "Accept: /" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Access-Control-Request-Headers: authorization" ^
-H "Access-Control-Request-Method: GET" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
--compressed
curl https://api.minuddannelse.net/aula/opgaveliste?placement=narrow&sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter%5e\%5b%5e\%5d=neya0020&childFilter%5e\%5b%5e\%5d=noah217a&childFilter%5e\%5b%5e\%5d=feli5445&isMobileApp=false&institutionFilter%5e\%5b%5e\%5d=731004&institutionFilter%5e\%5b%5e\%5d=G19814 https://api.minuddannelse.net/aula/opgaveliste?placement=narrow&sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter^\[^\]=neya0020&childFilter^\[^\]=noah217a&childFilter^\[^\]=feli5445&isMobileApp=false&institutionFilter^\[^\]=731004&institutionFilter^\[^\]=G19814 ^
-X "OPTIONS" ^
-H "Accept: /" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Access-Control-Request-Headers: authorization" ^
-H "Access-Control-Request-Method: GET" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
--compressed
Således – Jeg håber det var sådan du mente :)
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 14:37 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Så langt så godt. Vi kan se denne her "'0030': 'MinUddannelse - Opgaver'".
Så nu skal vi have fat i de requests Aula laver til MinUddannelse.
Så i Aula i din browser, højreklik (anywhere) og vælg "inspect": https://user-images.githubusercontent.com/8055470/214308427-cea6f172-3ead-4fc5-90eb-ad5f46b2b73e.png
Vælg "Network" tab'en og reload siden: https://user-images.githubusercontent.com/8055470/214308680-84431e17-362f-44f9-9e5f-f8fb567eebaf.png
Find så alle requests til api.minuddannelse.net, vælg "copy as curl" og sæt resultatet herind (meget gerne i code blocks): https://user-images.githubusercontent.com/8055470/214308936-e14635dc-04e6-48b3-b1d9-36b2b07456d7.png
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401963056 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW5YFAM5LC3JIOSC6G3WT7LJRANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW6KNWMPE7NUKEOOS6LWT7LJRA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTSBBDA.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Yes perfekt.
Jeg tror det er kaldene til "https://api.minuddannelse.net/aula/opgaveliste?" vi skal gå efter.
Kan du ikke smide dem ind i code tags? Det ser forfærdeligt ud og min browser prøve at lave halvdelen om til links osv.
Jeg Googlede lige code-tags 😃
Jeg ved ikke om det her er bedre, ellers sig til.
curl https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian https://api.minuddannelse.net/aula/ugebrev?assuranceLevel=3&childFilter=neya0020,noah217a,feli5445¤tWeekNumber=2023-W4&institutionFilter=731004,G19814&isMobileApp=false&placement=narrow&sessionUUID=cars2162&userProfile=guardian ^
-H "Accept: application/json" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjc0NTY4NzA1LCJhdWQiOiIwMDI5IiwiQXNzdXJhbmNlTGV2ZWwiOjMsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzQ1NzIzMDQsImp0aSI6IjYzY2ZkZjhjOGMyNTk0LjgyNDI2MTYyIiwic3ViIjoiY2FyczIxNjIifQ.jzbWYc9u_7_skjBHJFcIJC018_Z-VJFrW8hQHUtKBzZMuYw8PIkkjHEBz5W4IToLPMgRffccfDOSylVjDWiyqg4kccVIHEo3V7E0iuQvU2AL6n672CMCknLsxBrH63ltxgLJ2qe1Qjx6yE8w-EHVOencG7nSWbE7Gk7eL2lRbzUNtXx9mwJ_M9E2ViJVN4JSd5tmUce8IJPCVmytsAVyESiiZ4VPfy3LoGPW0wSDnkNCCHURbIwqemPLPm2R1vH6EZ6JlgFF0R5Y8m8RzHH5KFdqoGNmt4QW9rhpfqPQHVZPkx8KOZZdlCNZ5On2nRL8dyUmZIpXgRDUk5UnlC4Nig" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/ https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"109^\^", ^\^"Chromium^\^";v=^\^"109^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
--compressed
curl https://api.minuddannelse.net/aula/opgaveliste?placement=narrow https://api.minuddannelse.net/aula/opgaveliste?placement=narrow&sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter%5e\%5b%5e\%5d=neya0020&childFilter%5e\%5b%5e\%5d=noah217a&childFilter%5e\%5b%5e\%5d=feli5445&isMobileApp=false&institutionFilter%5e\%5b%5e\%5d=731004&institutionFilter%5e\%5b%5e\%5d=G19814 &sessionUUID=cars2162&userProfile=guardian¤tWeekNumber=2023-W4&childFilter^[^]=neya0020&childFilter^[^]=noah217a&childFilter^[^]=feli5445&isMobileApp=false&institutionFilter^[^]=731004&institutionFilter^[^]=G19814 ^
-H "Accept: application/json" ^
-H "Accept-Language: da-DK,da;q=0.9,en-US;q=0.8,en;q=0.7,nl;q=0.6,pl;q=0.5" ^
-H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjc0NTY4NzA1LCJhdWQiOiIwMDMwIiwiQXNzdXJhbmNlTGV2ZWwiOjMsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzQ1NzIzMDQsImp0aSI6IjYzY2ZkZjhjOGMyNTk0LjgyNDI2MTYyIiwic3ViIjoiY2FyczIxNjIifQ.dCJtL_ctPyn1eH60WeaXC5SbXUojPouNUNduukWmnTcEbo1DPGp6P8fdbmmXvf7CIhxy3jOyk34YNDEhHLlrFM_i2oCNC7W4MrnD19mpySHn_CuwM8sg_4dmbXd--ozOrtM7ATn17AggfJmYrXEBvNosV-8CktPjGV-MMQXRIuzP8muIOvw1-22MDJ9z2OTkwiZgH6vizni_an4u8xNWVf4gUa-850Ih2zsjkleif_zsV6o2_4xmHPmoB8uGvucrfSAdhFsN1tbTJxyWE7Ujd4WXYHKLHD-ww9akkOwK5IEna4BI1Xah3lXkXgFZ2L6Lkk76_0XOPdNyyp_8OURz0Q" ^
-H "Connection: keep-alive" ^
-H "Origin: https://www.aula.dk" ^
-H "Referer: https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: empty" ^
-H "Sec-Fetch-Mode: cors" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^\^"Not_A Brand^\^";v=^\^"99^\^", ^\^"Google Chrome^\^";v=^\^"109^\^", ^\^"Chromium^\^";v=^\^"109^\^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^
--compressed
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 14:53 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Yes perfekt.
Jeg tror det er kaldene til "https://api.minuddannelse.net/aula/opgaveliste?" vi skal gå efter.
Kan du ikke smide dem ind i code tags? Det ser forfærdeligt ud og min browser prøve at lave halvdelen om til links osv.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1401985135 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW7QA4KGFD6IG3BHW3LWT7NDLANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJWYILZENII327RT6LCTWT7NDLA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTSCMG6.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Det er det ikke :) Her på Github er det 4 backticks, der starter og slutter "kode"
i kodetag
Men anyway, jeg har hvad jeg skal bruge nu. Så jeg kommer på et tidspunkt med en branch du skal teste. Du må gerne lige læse op på hvordan man downloader (cloner) en specifik branch og får den ind i Home Assistant.
Så er der en branch du gerne må teste: https://github.com/scaarup/aula/tree/feature-opgaver-fra-MU
Jeg har indtil videre kun rettet i client.py, så du kan i princippet tage denne her client.py og overskrive din egen med: https://github.com/scaarup/aula/blob/feature-opgaver-fra-MU/custom_components/aula/client.py
Vi er interesserede i at fange denne her loglinje, der indeholder "Got the following response from MU opgaver:" og ellers hvis der er nogen fejl.
Jeg får følgende linjer…
Hvis jeg har fejlet i at klone, så må jeg lige prøve igen :)
2023-01-24 21:11:10.810 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-24 21:11:10.810 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-24 21:11:10.879 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.26
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-24 21:11:11.004 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-24 21:11:11.121 DEBUG (SyncWorker_8) [custom_components.aula.client] is_logged_in? False
2023-01-24 21:11:11.121 DEBUG (SyncWorker_8) [custom_components.aula.client] Logging in
2023-01-24 21:11:13.035 DEBUG (SyncWorker_8) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-24 21:11:13.260 DEBUG (SyncWorker_8) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-24 21:11:13.493 DEBUG (SyncWorker_8) [custom_components.aula.client] LOGIN: True
2023-01-24 21:11:13.493 DEBUG (SyncWorker_8) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-24 21:11:13.493 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 21:11:13.493 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 21:11:13.493 DEBUG (SyncWorker_8) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 21:11:13.809 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 21:11:14.930 DEBUG (SyncWorker_8) [custom_components.aula.client] tid 89467105
2023-01-24 21:11:15.179 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: 'NoneType' object is not subscriptable
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 155, in update_data
2023-01-24 21:11:15.180 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 4.060 seconds (success: False)
2023-01-24 21:11:15.300 DEBUG (SyncWorker_11) [custom_components.aula.client] is_logged_in? True
2023-01-24 21:11:15.300 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-24 21:11:15.300 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-24 21:11:15.300 DEBUG (SyncWorker_11) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-24 21:11:15.637 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-24 21:11:16.778 DEBUG (SyncWorker_11) [custom_components.aula.client] tid 89467105
2023-01-24 21:11:16.992 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor
File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry
File "/config/custom_components/aula/client.py", line 155, in update_data
Fra: Søren Christian Aarup @.> Sendt: 24. januar 2023 15:19 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Så er der en branch du gerne må teste: https://github.com/scaarup/aula/tree/feature-opgaver-fra-MU
Jeg har indtil videre kun rettet i client.py, så du kan i princippet tage denne her client.py og overskrive din egen med: https://github.com/scaarup/aula/blob/feature-opgaver-fra-MU/custom_components/aula/client.py
Vi er interesserede i at fange denne her loglinje, der indeholder "Got the following response from MU opgaver:" og ellers hvis der er nogen fejl.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1402026269 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW56T3EVHHAQIITY3ZLWT7QG3ANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW4D6SMGO4XUNB7OC2TWT7QG3A5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTSE4R2.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Hvad er der helt præcist på linje 155 i /config/custom_components/aula/client.py ?
Linje 155 er:
self.message["text"] = message["text"]["html"]
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 08:15 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Hvad er der helt præcist på linje 155 i /config/custom_components/aula/client.py ?
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403186821 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2Z5BUOUBWYT6C7L5TWUDHFZANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW5WZRABKXSXYBXT2Y3WUDHFZA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTULXIK.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Der er et eller andet, der ikke passer sammen.
Du kører 0.1.26 men det er versionen før "beskeder" blev introduceret. Og linje 155 er, som du beskriver det, en del af den funktion. Kan du ikke lige prøve at slette det hele og så bare clone denne her branch ud fra ny: https://github.com/scaarup/aula/blob/feature-opgaver-fra-MU ?
Dit link virker ikke.
Jeg har opdateret via HACS, rettet clients.py og genstartet.
Den skriver følgende i log:
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 12:45:54.924 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 12:45:55.672 DEBUG (SyncWorker_4) [custom_components.aula.client] is_logged_in? False
2023-01-25 12:45:55.672 DEBUG (SyncWorker_4) [custom_components.aula.client] Logging in
2023-01-25 12:45:58.967 DEBUG (SyncWorker_4) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 12:45:59.234 DEBUG (SyncWorker_4) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 12:45:59.522 DEBUG (SyncWorker_4) [custom_components.aula.client] LOGIN: True
2023-01-25 12:45:59.522 DEBUG (SyncWorker_4) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 12:45:59.523 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 12:45:59.523 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 12:45:59.523 DEBUG (SyncWorker_4) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 12:46:00.063 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 12:46:00.503 DEBUG (SyncWorker_4) [custom_components.aula.client] tid 89467105
2023-01-25 12:46:00.795 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: 'NoneType' object is not subscriptable
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 155, in update_data
2023-01-25 12:46:00.797 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 5.125 seconds (success: False)
2023-01-25 12:46:00.932 DEBUG (SyncWorker_7) [custom_components.aula.client] is_logged_in? True
2023-01-25 12:46:00.932 DEBUG (SyncWorker_7) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 12:46:00.932 DEBUG (SyncWorker_7) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 12:46:00.932 DEBUG (SyncWorker_7) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 12:46:01.276 DEBUG (SyncWorker_7) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 12:46:02.504 DEBUG (SyncWorker_7) [custom_components.aula.client] tid 89467105
2023-01-25 12:46:02.708 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor
File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry
File "/config/custom_components/aula/client.py", line 155, in update_data
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 12:38 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Der er et eller andet, der ikke passer sammen.
Du kører 0.1.26 men det er versionen før "beskeder" blev introduceret. Og linje 155 er, som du beskriver det, en del af den funktion. Kan du ikke lige prøve at slette det hele og så bare clone denne her branch ud fra ny: https://github.com/scaarup/aula/blob/feature-opgaver-fra-MU ?
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403476276 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2KAEOUBFOGFFCWGDTWUEGCZANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW5IDJYJVECMZOAGT6LWUEGCZA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTU5MTI.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Prøv lige at tage client.py herfra og genstart: https://github.com/scaarup/aula/blob/hot-fix-messages/custom_components/aula/client.py
Hej Søren!
Jeg beklager, at jeg er lidt op af bakke at arbejde med :)
Jeg kan ikke se, hvor jeg downloader filen fra Github.
Jeg har trykket på kopier-knappen, fundet client.py i File Editor og erstattet al koden i filen.
Men det tyder ikke på at være den rigtige måde at gøre det på :)
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 13:02 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Prøv lige at tage client.py herfra og genstart: https://github.com/scaarup/aula/blob/hot-fix-messages/custom_components/aula/client.py
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403502348 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW4DJJEPBUFD6WQ4EQTWUEI5BANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW5IKYNWR35MQLVILULWUEI5BA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTU67QY.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Jo altså du kan bare copy-paste hele indholdet :)
Det var pokkers, så er det ikke det, der er fejlen.
Den melder vidst stadig samme fejl.
2023-01-25 13:40:13.072 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-25 13:40:13.072 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-25 13:40:13.080 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 13:40:13.208 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 13:40:13.234 DEBUG (SyncWorker_13) [custom_components.aula.client] is_logged_in? False
2023-01-25 13:40:13.234 DEBUG (SyncWorker_13) [custom_components.aula.client] Logging in
2023-01-25 13:40:15.646 DEBUG (SyncWorker_13) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 13:40:15.870 DEBUG (SyncWorker_13) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 13:40:16.114 DEBUG (SyncWorker_13) [custom_components.aula.client] LOGIN: True
2023-01-25 13:40:16.115 DEBUG (SyncWorker_13) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 13:40:16.116 DEBUG (SyncWorker_13) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 13:40:16.116 DEBUG (SyncWorker_13) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 13:40:16.116 DEBUG (SyncWorker_13) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 13:40:16.524 DEBUG (SyncWorker_13) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 13:40:17.821 DEBUG (SyncWorker_13) [custom_components.aula.client] tid 89467105
2023-01-25 13:40:18.151 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: 'NoneType' object is not subscriptable
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 155, in update_data
2023-01-25 13:40:18.152 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 4.919 seconds (success: False)
2023-01-25 13:40:18.283 DEBUG (SyncWorker_2) [custom_components.aula.client] is_logged_in? True
2023-01-25 13:40:18.283 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 13:40:18.283 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 13:40:18.284 DEBUG (SyncWorker_2) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 13:40:18.627 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 13:40:19.081 DEBUG (SyncWorker_2) [custom_components.aula.client] tid 89467105
2023-01-25 13:40:19.304 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor
File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry
File "/config/custom_components/aula/client.py", line 155, in update_data
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 13:52 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Jo altså du kan bare copy-paste hele indholdet :)
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403559437 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJWZQ36GD72FALORRUYTWUEOWLANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW4IHWVZZJ6FPNQX3ALWUEOWLA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTVCPA2.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Det kan ikke passe, at den melder fejl på linje 155 stadig. På 155 er der nu en "try", der skal fange eventuelle fejl.
Nu prøvede jeg at gøre det forfra, nu ser det ud til at den er kommet videre fra linje 155.
Men nu beklager den sig over linje 163…
Den indeholder: self.message["sender"] = message["sender"]["fullName"]
2023-01-25 14:11:04.322 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-25 14:11:04.322 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-25 14:11:04.367 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 14:11:04.506 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 14:11:05.202 DEBUG (SyncWorker_9) [custom_components.aula.client] is_logged_in? False
2023-01-25 14:11:05.202 DEBUG (SyncWorker_9) [custom_components.aula.client] Logging in
2023-01-25 14:11:07.162 DEBUG (SyncWorker_9) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:11:07.425 DEBUG (SyncWorker_9) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:11:07.668 DEBUG (SyncWorker_9) [custom_components.aula.client] LOGIN: True
2023-01-25 14:11:07.677 DEBUG (SyncWorker_9) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 14:11:07.677 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:11:07.677 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:11:07.677 DEBUG (SyncWorker_9) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:11:08.108 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:11:09.388 DEBUG (SyncWorker_9) [custom_components.aula.client] tid 89467105
2023-01-25 14:11:09.633 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: 'NoneType' object is not subscriptable
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 163, in update_data
2023-01-25 14:11:09.635 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 4.436 seconds (success: False)
2023-01-25 14:11:09.785 DEBUG (SyncWorker_1) [custom_components.aula.client] is_logged_in? True
2023-01-25 14:11:09.785 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:11:09.785 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:11:09.785 DEBUG (SyncWorker_1) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:11:10.160 DEBUG (SyncWorker_1) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:11:10.652 DEBUG (SyncWorker_1) [custom_components.aula.client] tid 89467105
2023-01-25 14:11:10.856 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor
File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry
File "/config/custom_components/aula/client.py", line 163, in update_data
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 14:05 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Det kan ikke passe, at den melder fejl på linje 155 stadig. På 155 er der nu en "try", der skal fange eventuelle fejl.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403576039 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2SFICYZVMCI73EJMDWUEQGVANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW5TEDBEIEOYR3I2XL3WUEQGVA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTVDPOO.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Okay, det er meget mærkeligt. Du har en eller flere ulæste beskeder i Aula, men vi kan ikke få afsender, subject eller text ud af dem... Prøv en ny version af client.py: https://github.com/scaarup/aula/blob/hot-fix-messages/custom_components/aula/client.py
Nu tror jeg du ramte noget rigtigt – Nu melder den ikke fejl mere.
2023-01-25 14:21:47.138 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-25 14:21:47.138 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-25 14:21:47.224 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 14:21:47.475 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 14:21:47.512 DEBUG (SyncWorker_11) [custom_components.aula.client] is_logged_in? False
2023-01-25 14:21:47.512 DEBUG (SyncWorker_11) [custom_components.aula.client] Logging in
2023-01-25 14:21:49.549 DEBUG (SyncWorker_11) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:21:49.956 DEBUG (SyncWorker_11) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:21:50.208 DEBUG (SyncWorker_11) [custom_components.aula.client] LOGIN: True
2023-01-25 14:21:50.208 DEBUG (SyncWorker_11) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 14:21:50.208 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:21:50.208 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:21:50.208 DEBUG (SyncWorker_11) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:21:50.536 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:21:51.804 DEBUG (SyncWorker_11) [custom_components.aula.client] tid 89467105
2023-01-25 14:21:52.061 DEBUG (SyncWorker_11) [custom_components.aula.client] Full dump of Aula messages: <Response [200]>
2023-01-25 14:21:52.062 DEBUG (SyncWorker_11) [custom_components.aula.client] Fetching calendars...
2023-01-25 14:21:53.326 DEBUG (SyncWorker_11) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-25 14:21:53.326 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:21:53.499 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:21:53.651 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 6.142 seconds (success: True)
2023-01-25 14:21:53.801 DEBUG (SyncWorker_4) [custom_components.aula.client] is_logged_in? True
2023-01-25 14:21:53.801 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:21:53.801 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:21:53.801 DEBUG (SyncWorker_4) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:21:54.126 DEBUG (SyncWorker_4) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:21:54.633 DEBUG (SyncWorker_4) [custom_components.aula.client] tid 89467105
2023-01-25 14:21:54.882 DEBUG (SyncWorker_4) [custom_components.aula.client] Full dump of Aula messages: <Response [200]>
2023-01-25 14:21:54.882 DEBUG (SyncWorker_4) [custom_components.aula.client] Fetching calendars...
2023-01-25 14:21:55.870 DEBUG (SyncWorker_4) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:21:56.036 DEBUG (SyncWorker_4) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:21:56.180 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 1419527 adding sensor entity.
2023-01-25 14:21:56.180 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3686918 adding sensor entity.
2023-01-25 14:21:56.180 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3672358 adding sensor entity.
2023-01-25 14:21:56.182 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.aula
2023-01-25 14:21:56.183 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-25 14:21:56.183 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-25 14:21:56.183 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1419527 aula1419527
2023-01-25 14:21:56.183 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-25 14:21:56.184 DEBUG (SyncWorker_3) [custom_components.aula.binary_sensor] There are unread message(s)
2023-01-25 14:21:56.184 DEBUG (SyncWorker_3) [custom_components.aula.binary_sensor] Latest message: {'text': None, 'sender': '', 'subject': 'Vikar for Pia Bundgaard'}
2023-01-25 14:21:56.188 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new binary_sensor.aula entity: binary_sensor.aula_aulamessage
2023-01-25 14:21:56.191 INFO (MainThread) [homeassistant.components.calendar] Setting up calendar.aula
2023-01-25 14:21:56.191 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-25 14:21:56.191 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-25 14:21:56.191 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3686918 aula3686918
2023-01-25 14:21:56.191 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 1419527 aulacalendar1419527
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 1419527 aulacalendar1419527
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 1419527 aulacalendar1419527
2023-01-25 14:21:56.208 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new calendar.aula entity: calendar.skoleskema_neya_amdi_kruse_bodker
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3686918 aulacalendar3686918
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3686918 aulacalendar3686918
2023-01-25 14:21:56.208 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3686918 aulacalendar3686918
2023-01-25 14:21:56.209 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new calendar.aula entity: calendar.skoleskema_noah_amdi_kruse_bodker
2023-01-25 14:21:56.209 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3672358 aulacalendar3672358
2023-01-25 14:21:56.209 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3672358 aulacalendar3672358
2023-01-25 14:21:56.209 DEBUG (MainThread) [custom_components.aula.calendar] Unique ID for calendar 3672358 aulacalendar3672358
2023-01-25 14:21:56.209 INFO (MainThread) [homeassistant.helpers.entity_registry] Registered new calendar.aula entity: calendar.skoleskema_felix_amdi_kruse_bodker
2023-01-25 14:21:56.209 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-25 14:21:56.212 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-25 14:21:56.212 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 3672358 aula3672358
2023-01-25 14:21:56.212 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-25 14:22:03.766 DEBUG (SyncWorker_0) [custom_components.aula.client] is_logged_in? True
2023-01-25 14:22:03.767 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:22:03.767 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:22:03.767 DEBUG (SyncWorker_0) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:22:04.111 DEBUG (SyncWorker_0) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:22:05.093 DEBUG (SyncWorker_0) [custom_components.aula.client] tid 89467105
2023-01-25 14:22:05.337 DEBUG (SyncWorker_0) [custom_components.aula.client] Full dump of Aula messages: <Response [200]>
2023-01-25 14:22:05.337 DEBUG (SyncWorker_0) [custom_components.aula.client] Fetching calendars...
2023-01-25 14:22:06.306 DEBUG (SyncWorker_0) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:22:06.448 DEBUG (SyncWorker_0) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:22:06.575 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 2.923 seconds (success: True)
2023-01-25 14:22:06.575 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Neya. Perhaps not available yet.
2023-01-25 14:22:06.575 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Noah. Perhaps not available yet.
2023-01-25 14:22:06.576 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Felix. Perhaps not available yet.
2023-01-25 14:22:26.268 DEBUG (SyncWorker_8) [custom_components.aula.binary_sensor] There are unread message(s)
2023-01-25 14:22:26.268 DEBUG (SyncWorker_8) [custom_components.aula.binary_sensor] Latest message: {'text': None, 'sender': '', 'subject': 'Vikar for Pia Bundgaard'}
2023-01-25 14:22:56.245 DEBUG (SyncWorker_5) [custom_components.aula.calendar] Updating calendars...
2023-01-25 14:22:56.248 DEBUG (SyncWorker_5) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-25 14:22:56.252 DEBUG (SyncWorker_6) [custom_components.aula.calendar] Updating calendars...
2023-01-25 14:22:56.255 DEBUG (SyncWorker_6) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-25 14:22:56.258 DEBUG (SyncWorker_0) [custom_components.aula.calendar] Updating calendars...
2023-01-25 14:22:56.261 DEBUG (SyncWorker_0) [custom_components.aula.calendar] Parsing skoleskema.json...
2023-01-25 14:22:56.285 DEBUG (SyncWorker_12) [custom_components.aula.binary_sensor] There are unread message(s)
2023-01-25 14:22:56.285 DEBUG (SyncWorker_12) [custom_components.aula.binary_sensor] Latest message: {'text': None, 'sender': '', 'subject': 'Vikar for Pia Bundgaard'}
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 25. januar 2023 14:20 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Okay, det er meget mærkeligt. Du har en eller flere ulæste beskeder i Aula, men vi kan ikke få afsender, subject eller text ud af dem... Prøv en ny version af client.py: https://github.com/scaarup/aula/blob/hot-fix-messages/custom_components/aula/client.py
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1403596395 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW2FQTCW2AVQKIQSWCTWUER7LANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW54CUXP3LNBXVX25BLWUER7LA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTVEXGW.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Ja det er perfekt :)
Vil du lige tage seneste rettelse og genstarte igen? Der skulle den gerne logge hele "besked" svaret ud.
Nu er der i hvert fald masser af linjer :)
2023-01-25 14:28:06.631 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-25 14:28:06.631 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-25 14:28:06.870 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 14:28:07.156 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 14:28:07.219 DEBUG (SyncWorker_11) [custom_components.aula.client] is_logged_in? False
2023-01-25 14:28:07.219 DEBUG (SyncWorker_11) [custom_components.aula.client] Logging in
2023-01-25 14:28:09.393 DEBUG (SyncWorker_11) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:28:09.710 DEBUG (SyncWorker_11) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:28:09.962 DEBUG (SyncWorker_11) [custom_components.aula.client] LOGIN: True
2023-01-25 14:28:09.962 DEBUG (SyncWorker_11) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 14:28:09.962 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:28:09.962 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:28:09.962 DEBUG (SyncWorker_11) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:28:10.403 DEBUG (SyncWorker_11) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:28:11.719 DEBUG (SyncWorker_11) [custom_components.aula.client] tid 89467105
2023-01-25 14:28:11.995 DEBUG (SyncWorker_11) [custom_components.aula.client] Full dump of Aula messages: {"status":{"code":0,"message":"OK"},"data":{"messages":[{"id":"63ce944c10b8c7.42274225","sendDateTime":"2023-01-23T14:06:02+00:00","deletedAt":null,"text":null,"hasAttachments":false,"pendingMedia":false,"messageType":"RecipientsRemoved","leaverNames":["Mette Sofie Christensen (Alfred 0D, Ella 6H)"],"inviterName":null,"sender":null,"newRecipients":null,"originalRecipients":null,"attachments":null,"canReplyToMessage":false},{"id":"63ce91f3bf40f2.15207633","sendDateTime":"2023-01-23T13:56:02+00:00","deletedAt":null,"text":{"html":"
2023-01-25 14:28:11.995 DEBUG (SyncWorker_11) [custom_components.aula.client] Fetching calendars...
2023-01-25 14:28:12.659 DEBUG (SyncWorker_11) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-25 14:28:12.659 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:28:12.808 DEBUG (SyncWorker_11) [custom_components.aula.client] Requesting token for widget 0029
2023-01-25 14:28:12.971 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 5.754 seconds (success: True)
2023-01-25 14:28:13.137 DEBUG (SyncWorker_2) [custom_components.aula.client] is_logged_in? True
2023-01-25 14:28:13.137 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:28:13.137 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:28:13.137 DEBUG (SyncWorker_2) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:28:13.472 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:28:14.688 DEBUG (SyncWorker_2) [custom_components.aula.client] tid 89467105
2023-01-25 14:28:14.903 DEBUG (SyncWorker_2) [custom_components.aula.client] Full dump of Aula messages: {"status":{"code":0,"message":"OK"},"data":{"messages":[{"id":"63ce944c10b8c7.42274225","sendDateTime":"2023-01-23T14:06:02+00:00","deletedAt":null,"text":null,"hasAttachments":false,"pendingMedia":false,"messageType":"RecipientsRemoved","leaverNames":["Mette Sofie Christensen (Alfred 0D, Ella 6H)"],"inviterName":null,"sender":null,"newRecipients":null,"originalRecipients":null,"attachments":null,"canReplyToMessage":false},{"id":"63ce91f3bf40f2.15207633","sendDateTime":"2023-01-23T13:56:02+00:00","deletedAt":null,"text":{"html":"
Ja det er super :)
Så må du godt lige teste denne branch: https://github.com/scaarup/aula/tree/feature-opgaver-fra-MU
Det er work-in-progress - lige for at se om vi får noget data ned.
Nu fangede jeg ikke lige om det bare var client.py jeg skulle prøve at sætte ind igen fra dit nye link.
Men det var det jeg gjorde:
2023-01-25 14:52:49.825 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-25 14:52:49.825 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-25 14:52:49.840 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-25 14:52:49.938 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-25 14:52:50.497 DEBUG (SyncWorker_10) [custom_components.aula.client] is_logged_in? False
2023-01-25 14:52:50.497 DEBUG (SyncWorker_10) [custom_components.aula.client] Logging in
2023-01-25 14:52:52.591 DEBUG (SyncWorker_10) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:52:52.824 DEBUG (SyncWorker_10) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-25 14:52:53.068 DEBUG (SyncWorker_10) [custom_components.aula.client] LOGIN: True
2023-01-25 14:52:53.068 DEBUG (SyncWorker_10) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-25 14:52:53.068 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:52:53.068 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:52:53.068 DEBUG (SyncWorker_10) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:52:53.551 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:52:54.781 DEBUG (SyncWorker_10) [custom_components.aula.client] tid 89467105
2023-01-25 14:52:55.719 DEBUG (SyncWorker_10) [custom_components.aula.client] Full dump of Aula messages: {"status":{"code":0,"message":"OK"},"data":{"messages":[{"id":"63ce944c10b8c7.42274225","sendDateTime":"2023-01-23T14:06:02+00:00","deletedAt":null,"text":null,"hasAttachments":false,"pendingMedia":false,"messageType":"RecipientsRemoved","leaverNames":["Mette Sofie Christensen (Alfred 0D, Ella 6H)"],"inviterName":null,"sender":null,"newRecipients":null,"originalRecipients":null,"attachments":null,"canReplyToMessage":false},{"id":"63ce91f3bf40f2.15207633","sendDateTime":"2023-01-23T13:56:02+00:00","deletedAt":null,"text":{"html":"
2023-01-25 14:52:55.719 DEBUG (SyncWorker_10) [custom_components.aula.client] Fetching calendars...
2023-01-25 14:52:56.259 DEBUG (SyncWorker_10) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-25 14:52:56.259 DEBUG (SyncWorker_10) [custom_components.aula.client] Proceeding with MU Opgaver...
2023-01-25 14:52:56.708 DEBUG (SyncWorker_10) [custom_components.aula.client] Requesting token for widget 0030
2023-01-25 14:52:56.860 DEBUG (SyncWorker_10) [custom_components.aula.client] Got the following response from MU opgaver: 404
2023-01-25 14:52:56.867 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: the JSON object must be str, bytes or bytearray, not Response
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 216, in update_data
2023-01-25 14:52:56.871 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 6.376 seconds (success: False)
2023-01-25 14:52:56.974 DEBUG (SyncWorker_2) [custom_components.aula.client] is_logged_in? True
2023-01-25 14:52:56.974 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-25 14:52:56.974 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-25 14:52:56.974 DEBUG (SyncWorker_2) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-25 14:52:57.337 DEBUG (SyncWorker_2) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-25 14:52:58.752 DEBUG (SyncWorker_2) [custom_components.aula.client] tid 89467105
2023-01-25 14:52:59.057 DEBUG (SyncWorker_2) [custom_components.aula.client] Full dump of Aula messages: {"status":{"code":0,"message":"OK"},"data":{"messages":[{"id":"63ce944c10b8c7.42274225","sendDateTime":"2023-01-23T14:06:02+00:00","deletedAt":null,"text":null,"hasAttachments":false,"pendingMedia":false,"messageType":"RecipientsRemoved","leaverNames":["Mette Sofie Christensen (Alfred 0D, Ella 6H)"],"inviterName":null,"sender":null,"newRecipients":null,"originalRecipients":null,"attachments":null,"canReplyToMessage":false},{"id":"63ce91f3bf40f2.15207633","sendDateTime":"2023-01-23T13:56:02+00:00","deletedAt":null,"text":{"html":"
Kan se du fik en:
2023-01-25 14:52:56.860 DEBUG (SyncWorker_10) [custom_components.aula.client] Got the following response from MU opgaver: 404
Det var en fejl fra min side. Der er en opdateret client.py nu.
Der kommer følgende log:
2023-01-26 08:51:08.873 INFO (MainThread) [homeassistant.setup] Setting up aula
2023-01-26 08:51:08.873 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds
2023-01-26 08:51:08.990 INFO (MainThread) [custom_components.aula]
Aula integration, version: 0.1.28
https://github.com/scaarup/aula/issues https://github.com/scaarup/aula/issues
2023-01-26 08:51:09.118 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula
2023-01-26 08:51:09.195 DEBUG (SyncWorker_6) [custom_components.aula.client] is_logged_in? False
2023-01-26 08:51:09.195 DEBUG (SyncWorker_6) [custom_components.aula.client] Logging in
2023-01-26 08:51:10.986 DEBUG (SyncWorker_6) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-26 08:51:11.232 DEBUG (SyncWorker_6) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 https://www.aula.dk/api/v15
2023-01-26 08:51:11.504 DEBUG (SyncWorker_6) [custom_components.aula.client] LOGIN: True
2023-01-26 08:51:11.504 DEBUG (SyncWorker_6) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True
2023-01-26 08:51:11.504 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-26 08:51:11.504 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-26 08:51:11.504 DEBUG (SyncWorker_6) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-26 08:51:11.919 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-26 08:51:13.210 DEBUG (SyncWorker_6) [custom_components.aula.client] tid 89467105
2023-01-26 08:51:13.434 DEBUG (SyncWorker_6) [custom_components.aula.client] Fetching calendars...
2023-01-26 08:51:14.388 DEBUG (SyncWorker_6) [custom_components.aula.client] Widgets found: {'0030': 'MinUddannelse - Opgaver', '0029': 'MinUddannelse – Ugenoter', '0028': 'MinUddannelse – Forløb', '0047': 'Fravær - forældreindberetning'}
2023-01-26 08:51:14.388 DEBUG (SyncWorker_6) [custom_components.aula.client] Proceeding with MU Opgaver...
2023-01-26 08:51:14.614 DEBUG (SyncWorker_6) [custom_components.aula.client] Requesting token for widget 0030
2023-01-26 08:51:14.848 DEBUG (SyncWorker_6) [custom_components.aula.client] Got the following response from MU opgaver: {"opgaver":[{"id":"75c55f039b5943069dcb9afe260dc5fd","opgaveType":"SimpelLektie","title":"HUSK BIBLIOTEKSBØGER","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url": https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDc1YzU1ZjAzLTliNTktNDMwNi05ZGNiLTlhZmUyNjBkYzVmZCUyNnVnZSUzZDIwMjMtVzQ= https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDc1YzU1ZjAzLTliNTktNDMwNi05ZGNiLTlhZmUyNjBkYzVmZCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"0bb0c135e00040d0a691aff57afd69f5","opgaveType":"SimpelLektie","title":"Kreativ værksted","afleveringsdato":"\/Date(1674428400000-0000)\/","ugedag":"Mandag","ugenummer":4,"erFaerdig":false,"url": https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBiYjBjMTM1LWUwMDAtNDBkMC1hNjkxLWFmZjU3YWZkNjlmNSUyNnVnZSUzZDIwMjMtVzQ= https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBiYjBjMTM1LWUwMDAtNDBkMC1hNjkxLWFmZjU3YWZkNjlmNSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"85f7ba201e6f47489153df5b4533248d","opgaveType":"SimpelLektie","title":"kreativ værksted","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url": https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDg1ZjdiYTIwLTFlNmYtNDc0OC05MTUzLWRmNWI0NTMzMjQ4ZCUyNnVnZSUzZDIwMjMtVzQ= https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDg1ZjdiYTIwLTFlNmYtNDc0OC05MTUzLWRmNWI0NTMzMjQ4ZCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"aea080c2954446a19fe82221bc5f38c4","opgaveType":"SimpelLektie","title":"kreativ værksted","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url": https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZGFlYTA4MGMyLTk1NDQtNDZhMS05ZmU4LTIyMjFiYzVmMzhjNCUyNnVnZSUzZDIwMjMtVzQ= https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZGFlYTA4MGMyLTk1NDQtNDZhMS05ZmU4LTIyMjFiYzVmMzhjNCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"0ca8b8bf6a574df6a9a3b88fc573a036","opgaveType":"SimpelLektie","title":"Vi bager","afleveringsdato":"\/Date(1674687600000-0000)\/","ugedag":"Torsdag","ugenummer":4,"erFaerdig":false,"url": https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBjYThiOGJmLTZhNTctNGRmNi1hOWEzLWI4OGZjNTczYTAzNiUyNnVnZSUzZDIwMjMtVzQ= https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBjYThiOGJmLTZhNTctNGRmNi1hOWEzLWI4OGZjNTczYTAzNiUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"18e81c198e46425abefe68c3e6cb9fba","opgaveType":"SimpelLektie","title":"Vi hygger på stuen","afleveringsdato":"\/Date(1674774000000-0000)\/","ugedag":"Fredag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDE4ZTgxYzE5LThlNDYtNDI1YS1iZWZlLTY4YzNlNmNiOWZiYSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"09437f531b7f4d3cb9591e1c5439f8c7","opgaveType":"SimpelLektie","title":"LEKTIE:Engelsk: Lav side 16 og 18 i den grå mappe - i afsnittet Animals. Jeg samler mapperne ind, så er der \"huller\" må de også laves. :-)","afleveringsdato":"\/Date(1674428400000-0000)\/","ugedag":"Mandag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDA5NDM3ZjUzLTFiN2YtNGQzYy1iOTU5LTFlMWM1NDM5ZjhjNyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502991,"navn":"Engelsk 3C","fagId":1341,"fagNavn":"Engelsk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"e08494a12d1e47688e9380df500242bc","opgaveType":"SimpelLektie","title":"Lektie:Dansk: Øv kapitel 8 - find 3 navneord, 3 udsagnsord og 3 tillægsord og skriv dem på det udleverede ark.","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZGUwODQ5NGExLTJkMWUtNDc2OC04ZTkzLTgwZGY1MDAyNDJiYyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"179d640ee2ce4454909643f23581333a","opgaveType":"SimpelLektie","title":"LEKTIE: Engelsk: Øv side 35.","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDE3OWQ2NDBlLWUyY2UtNDQ1NC05MDk2LTQzZjIzNTgxMzMzYSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"6664e703516c46c6a83a51c4ba622d61","opgaveType":"SimpelLektie","title":"MÅ: Lav KREA til Pelle","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDY2NjRlNzAzLTUxNmMtNDZjNi1hODNhLTUxYzRiYTYyMmQ2MSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"41ef3a40791946879c90c71316393173","opgaveType":"SimpelLektie","title":"LEKTIE: Find 5 navneord, 5 udsagnsord og 5 tillægsord i Pelle-teksten - så der ialt er 8 ord af hver ordklasse. ","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDQxZWYzYTQwLTc5MTktNDY4Ny05YzkwLWM3MTMxNjM5MzE3MyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"}]}
2023-01-26 08:51:14.852 ERROR (MainThread) [custom_components.aula.sensor] Unexpected error fetching sensor data: the JSON object must be str, bytes or bytearray, not Response
File "/config/custom_components/aula/sensor.py", line 43, in async_update_data
File "/config/custom_components/aula/client.py", line 216, in update_data
2023-01-26 08:51:14.856 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 5.661 seconds (success: False)
2023-01-26 08:51:14.966 DEBUG (SyncWorker_12) [custom_components.aula.client] is_logged_in? True
2023-01-26 08:51:14.966 DEBUG (SyncWorker_12) [custom_components.aula.client] Child ids and names: {1419527: 'Neya Amdi Kruse Bødker', 3686918: 'Noah Amdi Kruse Bødker', 3672358: 'Felix Amdi Kruse Bødker'}
2023-01-26 08:51:14.966 DEBUG (SyncWorker_12) [custom_components.aula.client] Child ids and institution names: {1419527: 'Kristrup Skole', 3686918: 'Kristrup Skole', 3672358: 'Kristrup Vuggestue'}
2023-01-26 08:51:14.966 DEBUG (SyncWorker_12) [custom_components.aula.client] Institution codes: ['731004', 'G19814']
2023-01-26 08:51:15.348 DEBUG (SyncWorker_12) [custom_components.aula.client] Child ids and presence data status: {'1419527': 1, '3686918': 1, '3672358': 1}
2023-01-26 08:51:15.926 DEBUG (SyncWorker_12) [custom_components.aula.client] tid 89467105
2023-01-26 08:51:16.334 DEBUG (SyncWorker_12) [custom_components.aula.client] Fetching calendars...
2023-01-26 08:51:16.966 DEBUG (SyncWorker_12) [custom_components.aula.client] Proceeding with MU Opgaver...
2023-01-26 08:51:17.255 DEBUG (SyncWorker_12) [custom_components.aula.client] Requesting token for widget 0030
2023-01-26 08:51:17.398 DEBUG (SyncWorker_12) [custom_components.aula.client] Got the following response from MU opgaver: {"opgaver":[{"id":"75c55f039b5943069dcb9afe260dc5fd","opgaveType":"SimpelLektie","title":"HUSK BIBLIOTEKSBØGER","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDc1YzU1ZjAzLTliNTktNDMwNi05ZGNiLTlhZmUyNjBkYzVmZCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"0bb0c135e00040d0a691aff57afd69f5","opgaveType":"SimpelLektie","title":"Kreativ værksted","afleveringsdato":"\/Date(1674428400000-0000)\/","ugedag":"Mandag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBiYjBjMTM1LWUwMDAtNDBkMC1hNjkxLWFmZjU3YWZkNjlmNSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"85f7ba201e6f47489153df5b4533248d","opgaveType":"SimpelLektie","title":"kreativ værksted","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDg1ZjdiYTIwLTFlNmYtNDc0OC05MTUzLWRmNWI0NTMzMjQ4ZCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"aea080c2954446a19fe82221bc5f38c4","opgaveType":"SimpelLektie","title":"kreativ værksted","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZGFlYTA4MGMyLTk1NDQtNDZhMS05ZmU4LTIyMjFiYzVmMzhjNCUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"0ca8b8bf6a574df6a9a3b88fc573a036","opgaveType":"SimpelLektie","title":"Vi bager","afleveringsdato":"\/Date(1674687600000-0000)\/","ugedag":"Torsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDBjYThiOGJmLTZhNTctNGRmNi1hOWEzLWI4OGZjNTczYTAzNiUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"18e81c198e46425abefe68c3e6cb9fba","opgaveType":"SimpelLektie","title":"Vi hygger på stuen","afleveringsdato":"\/Date(1674774000000-0000)\/","ugedag":"Fredag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjg5MDM3NSUzZm9wZ2F2ZSUzZDE4ZTgxYzE5LThlNDYtNDI1YS1iZWZlLTY4YzNlNmNiOWZiYSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1642440,"navn":"SFO 0. årgang","fagId":4342,"fagNavn":"SFO"}],"unilogin":"noah217a","kuvertnavn":"Noah Amdi Kruse Bødker","placering":"Nederst"},{"id":"09437f531b7f4d3cb9591e1c5439f8c7","opgaveType":"SimpelLektie","title":"LEKTIE:Engelsk: Lav side 16 og 18 i den grå mappe - i afsnittet Animals. Jeg samler mapperne ind, så er der \"huller\" må de også laves. :-)","afleveringsdato":"\/Date(1674428400000-0000)\/","ugedag":"Mandag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDA5NDM3ZjUzLTFiN2YtNGQzYy1iOTU5LTFlMWM1NDM5ZjhjNyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502991,"navn":"Engelsk 3C","fagId":1341,"fagNavn":"Engelsk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"e08494a12d1e47688e9380df500242bc","opgaveType":"SimpelLektie","title":"Lektie:Dansk: Øv kapitel 8 - find 3 navneord, 3 udsagnsord og 3 tillægsord og skriv dem på det udleverede ark.","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZGUwODQ5NGExLTJkMWUtNDc2OC04ZTkzLTgwZGY1MDAyNDJiYyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"179d640ee2ce4454909643f23581333a","opgaveType":"SimpelLektie","title":"LEKTIE: Engelsk: Øv side 35.","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDE3OWQ2NDBlLWUyY2UtNDQ1NC05MDk2LTQzZjIzNTgxMzMzYSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"6664e703516c46c6a83a51c4ba622d61","opgaveType":"SimpelLektie","title":"MÅ: Lav KREA til Pelle","afleveringsdato":"\/Date(1674514800000-0000)\/","ugedag":"Tirsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDY2NjRlNzAzLTUxNmMtNDZjNi1hODNhLTUxYzRiYTYyMmQ2MSUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"},{"id":"41ef3a40791946879c90c71316393173","opgaveType":"SimpelLektie","title":"LEKTIE: Find 5 navneord, 5 udsagnsord og 5 tillægsord i Pelle-teksten - så der ialt er 8 ord af hver ordklasse. ","afleveringsdato":"\/Date(1674601200000-0000)\/","ugedag":"Onsdag","ugenummer":4,"erFaerdig":false,"url":https://api.minuddannelse.net/aula/redirect/731004/aHR0cHMlM2ElMmYlMmZ3d3cubWludWRkYW5uZWxzZS5uZXQlMmZOb2RlJTJmbWludWdlJTJmMjQ4NjM4NCUzZm9wZ2F2ZSUzZDQxZWYzYTQwLTc5MTktNDY4Ny05YzkwLWM3MTMxNjM5MzE3MyUyNnVnZSUzZDIwMjMtVzQ=,"hold":[{"id":1502989,"navn":"Dansk 3C","fagId":1331,"fagNavn":"Dansk"}],"unilogin":"neya0020","kuvertnavn":"Neya Amdi Kruse Bødker","placering":"Nederst"}]}
2023-01-26 08:51:17.410 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up aula platform for sensor
File "/config/custom_components/aula/sensor.py", line 58, in async_setup_entry
File "/config/custom_components/aula/client.py", line 216, in update_data
Fra: Søren Christian Aarup @.> Sendt: 26. januar 2023 08:11 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Kan se du fik en:
2023-01-25 14:52:56.860 DEBUG (SyncWorker_10) [custom_components.aula.client] Got the following response from MU opgaver: 404
Det var en fejl fra min side. Der er en opdateret client.py nu.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1404628835 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJWYJPIDV4E3LD3NQLATWUIPO7ANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJW6GY32H7AJKQREAKRTWUIPO7A5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSTXDXWG.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
Det ser godt ud 👍. Vi fik data fra MinUddannelse. Jeg vender retur snarest.
Beklager ventetiden - der kommer snart en update.
Det er bare helt ok :)
Mange tak – Jeg ser frem til det!
Med venlig hilsen Carsten Kruse
Kristrupvej 33 8960 Randers SØ
T:
31 61 31 21 .
E:
@.> @.
Fra: Søren Christian Aarup @.> Sendt: 8. februar 2023 12:28 Til: scaarup/aula @.> Cc: carstenkruseh @.>; Mention @.> Emne: Re: [scaarup/aula] Feature request: "Opgaver" fra MU (Issue #70)
Beklager ventetiden - der kommer snart en update.
— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/70#issuecomment-1422444579 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AOMWJW5ATF5E4NZYVLOVSPDWWN7MBANCNFSM6AAAAAAT4O67NQ . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AOMWJWYTEEKMFEESORFF5KTWWN7MBA5CNFSM6AAAAAAT4O67NSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSUZDECG.gif Message ID: @. @.> >
-- Denne mail er blevet tjekket for vira af AVG-antivirussoftware. www.avg.com
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
"Opgaver" fra "Min Uddannelse" vises ikke i Home Assistant.
Den del benyttes på mine børns skole til lektier - Det ville være glimrende at få ind i HA :)