scaarup / aula

Fetches information from Aula about your children
GNU General Public License v3.0
52 stars 13 forks source link

Ugeplan unavailable #58

Closed Hoekeren closed 1 year ago

Hoekeren commented 1 year ago

Describe the bug or problem (In Danish is OK)

Ugeplan og ugeplan_next er unavailable. Kalenderen bliver oprettet i HA med skema - OK MIN UDDANNELSE åbner i en ny fane når jeg tilgår den fra AULA image image

Please answer the following

Please provide debug log from the integration

Logger: custom_components.aula.client Source: custom_components/aula/client.py:168 Integration: Aula (documentation, issues) First occurred: 12.11.47 (7 occurrences) Last logged: 12.32.13

You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

Denne fejl stammer fra en brugerdefineret integration.

Logger: custom_components.aula.client Source: custom_components/aula/client.py:137 Integration: Aula (documentation, issues) First occurred: 12.11.46 (7 occurrences) Last logged: 12.32.12

Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities.

Logger: homeassistant.components.calendar Source: runner.py:120 Integration: Kalender (documentation, issues) First occurred: 12.12.07 (1 occurrences) Last logged: 12.12.07

Setup of calendar platform aula is taking over 10 seconds.

Hoekeren commented 1 year ago

Udklip af alt med AULA fra den fulde log. Håber det giver mening og er brugbart til debugging.

2022-12-19 12:11:11.679 WARNING (SyncWorker_1) [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

2022-12-19 12:11:28.754 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'script', 'lovelace', 'input_number', 'camera', 'co2signal', 'energy', 'system_health', 'auth', 'utility_meter', 'ble_monitor', 'openuv', 'brother', 'wiz', 'input_text', 'homeassistant_sky_connect', 'schedule', 'history', 'homeassistant_alerts', 'powercalc', 'light', 'template', 'stream', 'sun', 'met', 'samsungtv', 'homeassistant_hardware', 'raspberry_pi', 'device_automation', 'logbook', 'mqtt', 'onboarding', 'file_upload', 'analytics', 'scrape', 'repairs', 'default_config', 'person', 'aula', 'automation', 'config', 'media_source', 'vacuum', 'nest_protect', 'switch_as_x', 'ibeacon', 'shelly', 'hardware', 'plant', 'blueprint', 'diagnostics', 'sensor', 'sonoff', 'search', 'radio_browser', 'unifi', 'hacs', 'input_button', 'select', 'ffmpeg', 'my', 'foscam', 'landroid_cloud', 'timer', 'dreame_vacuum', 'esphome', 'image', 'input_select', 'mobile_app', 'min_max', 'sonos', 'watchman', 'counter', 'xiaomi_miot', 'sonos_cloud', 'energidataservice', 'application_credentials', 'mutesync', 'group', 'zone', 'tag', 'cast', 'input_boolean', 'rpi_power', 'map', 'input_datetime', 'trace', 'binary_sensor', 'scene', 'persistent_notification', 'xiaomi_ble'}

2022-12-19 12:11:42.942 INFO (MainThread) [homeassistant.setup] Setting up aula 2022-12-19 12:11:42.942 INFO (MainThread) [homeassistant.setup] Setup of domain aula took 0.0 seconds

2022-12-19 12:11:43.234 INFO (MainThread) [customcomponents.aula]
/\ | |
/ \ | | / /\ | | | | |/ ` | / __ \ || | | (| | // __,||_,|
Aula integration, version: 0.1.26 This is a custom integration If you have any issues with this you need to open an issue here: https://github.com/scaarup/aula/issues

2022-12-19 12:11:43.285 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula

2022-12-19 12:11:43.388 DEBUG (SyncWorker_5) [custom_components.aula.client] is_logged_in? False 2022-12-19 12:11:43.388 DEBUG (SyncWorker_5) [custom_components.aula.client] Logging in

2022-12-19 12:11:45.957 DEBUG (SyncWorker_5) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15

2022-12-19 12:11:46.188 DEBUG (SyncWorker_5) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 2022-12-19 12:11:46.432 DEBUG (SyncWorker_5) [custom_components.aula.client] LOGIN: True 2022-12-19 12:11:46.433 DEBUG (SyncWorker_5) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True 2022-12-19 12:11:46.433 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:11:46.434 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:11:46.434 DEBUG (SyncWorker_5) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:11:46.521 WARNING (SyncWorker_5) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:11:46.572 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:11:46.573 DEBUG (SyncWorker_5) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:11:47.432 DEBUG (SyncWorker_5) [custom_components.aula.client] Widgets found: {'0047': 'Fravær - forældreindberetning', '0023': 'MinUddannelse - SSO', '0051': 'SFO Børn (forældre)', '0049': 'Karakterer - synlig for forældre'} 2022-12-19 12:11:47.432 ERROR (SyncWorker_5) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

2022-12-19 12:11:47.798 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 4.414 seconds (success: True)

2022-12-19 12:11:47.973 DEBUG (SyncWorker_6) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:11:47.973 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:11:47.973 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:11:47.973 DEBUG (SyncWorker_6) [custom_components.aula.client] Institution codes: ['631017']

2022-12-19 12:11:48.079 DEBUG (SyncWorker_6) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:11:48.079 DEBUG (SyncWorker_6) [custom_components.aula.client] Fetching calendars...

2022-12-19 12:11:48.915 ERROR (SyncWorker_6) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

2022-12-19 12:11:51.784 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 938520 aula938520 2022-12-19 12:11:51.784 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 938520 aula938520 2022-12-19 12:11:51.784 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 938520 aula938520 2022-12-19 12:11:51.785 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:11:51.785 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:11:52.983 INFO (MainThread) [homeassistant.components.calendar] Setting up calendar.aula

2022-12-19 12:12:07.527 WARNING (MainThread) [homeassistant.components.calendar] Setup of calendar platform aula is taking over 10 seconds.

2022-12-19 12:12:07.863 DEBUG (SyncWorker_9) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:12:07.864 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:12:07.864 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:12:07.864 DEBUG (SyncWorker_9) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:12:07.945 WARNING (SyncWorker_9) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:12:07.953 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:12:07.954 DEBUG (SyncWorker_9) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:12:09.070 ERROR (SyncWorker_9) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

2022-12-19 12:12:09.313 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 1.564 seconds (success: True) 2022-12-19 12:12:09.313 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:12:09.313 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:13:07.780 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Updating calendars... 2022-12-19 12:13:07.795 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Parsing skoleskema.json...

2022-12-19 12:17:09.736 DEBUG (SyncWorker_10) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:17:09.737 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:17:09.737 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:17:09.737 DEBUG (SyncWorker_10) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:17:09.822 WARNING (SyncWorker_10) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:17:09.828 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:17:09.829 DEBUG (SyncWorker_10) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:17:10.202 ERROR (SyncWorker_10) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:17:10.206 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.780 seconds (success: True) 2022-12-19 12:17:10.207 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:17:10.207 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:22:10.739 DEBUG (SyncWorker_9) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:22:10.739 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:22:10.739 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:22:10.740 DEBUG (SyncWorker_9) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:22:10.809 WARNING (SyncWorker_9) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:22:10.813 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:22:10.814 DEBUG (SyncWorker_9) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:22:11.384 ERROR (SyncWorker_9) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:22:11.403 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.977 seconds (success: True) 2022-12-19 12:22:11.403 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:22:11.404 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:24:07.790 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Updating calendars... 2022-12-19 12:24:07.796 DEBUG (SyncWorker_10) [custom_components.aula.calendar] Parsing skoleskema.json...

2022-12-19 12:27:11.671 DEBUG (SyncWorker_10) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:27:11.672 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:27:11.672 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:27:11.672 DEBUG (SyncWorker_10) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:27:11.753 WARNING (SyncWorker_10) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:27:11.756 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:27:11.757 DEBUG (SyncWorker_10) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:27:12.407 ERROR (SyncWorker_10) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:27:12.411 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.985 seconds (success: True) 2022-12-19 12:27:12.412 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:27:12.412 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:27:31.915 INFO (MainThread) [homeassistant.components.analytics] Submitted analytics to Home Assistant servers. Information submitted includes {'uuid': '0d6344d6206f40e89768e44b25a34087', 'version': '2022.12.7', 'installation_type': 'Home Assistant OS', 'supervisor': {'healthy': True, 'supported': True, 'arch': 'aarch64'}, 'operating_system': {'board': 'rpi4-64', 'version': '9.4'}, 'certificate': False, 'integrations': ['lovelace', 'hassio', 'auth', 'ssdp', 'utility_meter', 'openuv', 'brother', 'input_text', 'wiz', 'homeassistant_sky_connect', 'schedule', 'cover', 'history', 'bluetooth', 'homeassistant_alerts', 'stream', 'sun', 'remote', 'met', 'water_heater', 'homeassistant_hardware', 'device_automation', 'raspberry_pi', 'mqtt', 'dhcp', 'frontend', 'onboarding', 'file_upload', 'analytics', 'repairs', 'cloud', 'automation', 'config', 'switch_as_x', 'ibeacon', 'google_assistant', 'shelly', 'plant', 'notify', 'diagnostics', 'siren', 'search', 'radio_browser', 'api', 'recorder', 'input_button', 'select', 'text', 'ffmpeg', 'humidifier', 'image', 'system_log', 'mobile_app', 'websocket_api', 'button', 'usb', 'switch', 'tag', 'cast', 'xiaomi_ble', 'script', 'input_number', 'stt', 'workday', 'camera', 'alarm_control_panel', 'co2signal', 'network', 'calendar', 'homeassistant', 'number', 'energy', 'system_health', 'lock', 'http', 'media_player', 'light', 'template', 'samsungtv', 'statistics', 'logbook', 'scrape', 'default_config', 'person', 'media_source', 'vacuum', 'weather', 'hardware', 'blueprint', 'tts', 'sensor', 'climate', 'unifi', 'zeroconf', 'logger', 'rest', 'my', 'foscam', 'timer', 'esphome', 'device_tracker', 'input_select', 'min_max', 'update', 'sonos', 'counter', 'application_credentials', 'mutesync', 'group', 'webhook', 'zone', 'input_boolean', 'rpi_power', 'map', 'input_datetime', 'trace', 'binary_sensor', 'scene', 'persistent_notification', 'fan'], 'custom_integrations': [{'domain': 'nest_protect', 'version': <AwesomeVersion SemVer '0.3.8'>}, {'domain': 'sonoff', 'version': <AwesomeVersion SemVer '3.3.1'>}, {'domain': 'hacs', 'version': <AwesomeVersion SemVer '1.29.0'>}, {'domain': 'landroid_cloud', 'version': <AwesomeVersion SemVer '2.3.4'>}, {'domain': 'dreame_vacuum', 'version': <AwesomeVersion SemVer '0.16.1'>}, {'domain': 'watchman', 'version': <AwesomeVersion SemVer '0.5.1'>}, {'domain': 'xiaomi_miot', 'version': <AwesomeVersion SemVer '0.7.3'>}, {'domain': 'sonos_cloud', 'version': <AwesomeVersion SemVer '0.3.3'>}, {'domain': 'energidataservice', 'version': <AwesomeVersion SemVer '0.4.9'>}, {'domain': 'ble_monitor', 'version': <AwesomeVersion CalVer '10.9.2'>}, {'domain': 'powercalc', 'version': <AwesomeVersion SemVer '1.1.7'>}, {'domain': 'anniversary', 'version': <AwesomeVersion SemVer '0.2.2'>}, {'domain': 'audiconnect', 'version': <AwesomeVersion CalVer '2021.1.1'>}, {'domain': 'aula', 'version': <AwesomeVersion SemVer '0.1.26'>}], 'addons': [{'slug': 'core_duckdns', 'protected': True, 'version': '1.15.0', 'auto_update': True}, {'slug': 'core_mariadb', 'protected': True, 'version': '2.5.1', 'auto_update': True}, {'slug': 'cebe7a76_hassio_google_drive_backup', 'protected': True, 'version': '0.109.2', 'auto_update': True}, {'slug': 'core_mosquitto', 'protected': True, 'version': '6.1.3', 'auto_update': True}, {'slug': 'a0d7b954_appdaemon', 'protected': True, 'version': '0.11.0', 'auto_update': True}, {'slug': 'core_samba', 'protected': True, 'version': '10.0.0', 'auto_update': True}, {'slug': 'a0d7b954_ssh', 'protected': False, 'version': '13.0.0', 'auto_update': True}, {'slug': 'a0d7b954_vscode', 'protected': True, 'version': '5.5.0', 'auto_update': True}, {'slug': '45df7312_zigbee2mqtt', 'protected': True, 'version': '1.28.4-1', 'auto_update': True}, {'slug': 'core_configurator', 'protected': True, 'version': '5.4.2', 'auto_update': True}, {'slug': 'a0d7b954_glances', 'protected': False, 'version': '0.17.2', 'auto_update': True}, {'slug': '5c53de3b_esphome', 'protected': True, 'version': '2022.12.1', 'auto_update': True}], 'energy': {'configured': True}, 'state_count': 984, 'automation_count': 92, 'integration_count': 120, 'addon_count': 12, 'user_count': 7}

2022-12-19 12:32:12.682 DEBUG (SyncWorker_8) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:32:12.684 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:32:12.684 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:32:12.685 DEBUG (SyncWorker_8) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:32:12.762 WARNING (SyncWorker_8) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:32:12.763 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:32:12.764 DEBUG (SyncWorker_8) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:32:13.372 ERROR (SyncWorker_8) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:32:13.377 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.952 seconds (success: True) 2022-12-19 12:32:13.377 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:32:13.378 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:35:07.798 DEBUG (SyncWorker_4) [custom_components.aula.calendar] Updating calendars... 2022-12-19 12:35:07.805 DEBUG (SyncWorker_4) [custom_components.aula.calendar] Parsing skoleskema.json...

2022-12-19 12:37:13.684 DEBUG (SyncWorker_5) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:37:13.685 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:37:13.685 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:37:13.686 DEBUG (SyncWorker_5) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:37:13.773 WARNING (SyncWorker_5) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:37:13.775 DEBUG (SyncWorker_5) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:37:13.775 DEBUG (SyncWorker_5) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:37:14.298 ERROR (SyncWorker_5) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:37:14.303 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.877 seconds (success: True) 2022-12-19 12:37:14.304 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:37:14.304 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

2022-12-19 12:42:14.702 DEBUG (SyncWorker_10) [custom_components.aula.client] is_logged_in? True 2022-12-19 12:42:14.702 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and names: {938520: 'Frederik Skallerup-Børgesen'} 2022-12-19 12:42:14.702 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and institution names: {938520: 'Hældagerskolen'} 2022-12-19 12:42:14.703 DEBUG (SyncWorker_10) [custom_components.aula.client] Institution codes: ['631017'] 2022-12-19 12:42:14.775 WARNING (SyncWorker_10) [custom_components.aula.client] Unable to retrieve presence data from Aula from child with id 938520. Some data will be missing from sensor entities. 2022-12-19 12:42:14.778 DEBUG (SyncWorker_10) [custom_components.aula.client] Child ids and presence data status: {'938520': 0} 2022-12-19 12:42:14.778 DEBUG (SyncWorker_10) [custom_components.aula.client] Fetching calendars... 2022-12-19 12:42:15.163 ERROR (SyncWorker_10) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula. 2022-12-19 12:42:15.167 DEBUG (MainThread) [custom_components.aula.sensor] Finished fetching sensor data in 0.741 seconds (success: True) 2022-12-19 12:42:15.167 DEBUG (MainThread) [custom_components.aula.sensor] Setting state to n/a for child 938520 2022-12-19 12:42:15.167 DEBUG (MainThread) [custom_components.aula.sensor] Could not get ugeplan for next week for child Frederik. Perhaps not available yet.

scaarup commented 1 year ago

Tak @Hoekeren .

Integrationen understøtter ikke ugeplaner i det format, som din skole præsenterer dem i Min Uddannelse. Det kan vi se på disse loglinjer:

Widgets found: {'0047': 'Fravær - forældreindberetning', '0023': 'MinUddannelse - SSO', '0051': 'SFO Børn (forældre)', '0049': 'Karakterer - synlig for forældre'}
You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

Hvis det er noget vi skal have til at virke, så kræver det en masse information fra dig.

Skal lige være sikker på, at du ikke forveksler Ugeplaner med Skoleskemaer? Skoleskemaer hentes fra Aula's kalender og oprettes i HA som kalendre.

Hoekeren commented 1 year ago

Hej Søren

Jeg er klar over forskellen på ugeplaner og kalender 😊

Spørgsmålet er om det kun vil være til gavn for mig eller om det generelt vil komme andre til glæde.

Jeg lægger gerne noget arbejde i det for fællesskabets bedste, men hvis det giver dig en masse arbejde kun for min skyld, klarer jeg mig nok uden .

Hvad skal du bruge?

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:20 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Tak @Hoekeren https://github.com/Hoekeren .

Integrationen understøtter ikke ugeplaner i det format, som din skole præsenterer dem i Min Uddannelse. Det kan vi se på disse loglinjer:

Widgets found: {'0047': 'Fravær - forældreindberetning', '0023': 'MinUddannelse - SSO', '0051': 'SFO Børn (forældre)', '0049': 'Karakterer - synlig for forældre'}

You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.

Hvis det er noget vi skal have til at virke, så kræver det en masse information fra dig.

Skal lige være sikker på, at du ikke forveksler Ugeplaner med Skoleskemaer? Skoleskemaer hentes fra Aula's kalender og oprettes i HA som kalendre.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357589245 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WRRPWHH4IBICQ4T3TWOBHHVANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T6DP5Y2V3THFXA6DLWOBHHVA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5MVP2.gif Message ID: @. @.> >

scaarup commented 1 year ago

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

Hoekeren commented 1 year ago

Skal vi sige det sådan – jeg kan åbne developer tools ….og derfra er jeg klar til at lære 😉

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:54 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357621703 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WKST2LOQ67GXDTNYDWOBLHHANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T42UYPNP3VID5ZZ5DWOBLHHA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5OU4O.gif Message ID: @. @.> >

Hoekeren commented 1 year ago

Det handler jo nok mest af alt om at finde ud af hvilket menupunkt jeg skal ind under 😊

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:54 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357621703 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WKST2LOQ67GXDTNYDWOBLHHANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T42UYPNP3VID5ZZ5DWOBLHHA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5OU4O.gif Message ID: @. @.> >

Hoekeren commented 1 year ago

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:54 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357621703 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WKST2LOQ67GXDTNYDWOBLHHANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T42UYPNP3VID5ZZ5DWOBLHHA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5OU4O.gif Message ID: @. @.> >

Hoekeren commented 1 year ago

Hvis jeg vælger ”UNDERSØG” på knappen for MIN UDDANNELSE – mon det er dette vi leder efter:

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:54 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357621703 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WKST2LOQ67GXDTNYDWOBLHHANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T42UYPNP3VID5ZZ5DWOBLHHA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5OU4O.gif Message ID: @. @.> >

Hoekeren commented 1 year ago

Hvis der er en bedre måde at dele på, må du lige guide mig

<form data-v-89b6a8bc="" method="POST" target="_blank" action= https://api.minuddannelse.net/aula/redirect?redirectUrl=https://www.minuddannelse.net/ https://api.minuddannelse.net/aula/redirect?redirectUrl=https://www.minuddannelse.net/> <button data-v-89b6a8bc="" role="link" title= https://www.minuddannelse.net https://www.minuddannelse.net type="submit" class="btn muSSOButton btn-secondary"><img data-v-89b6a8bc="" src= https://www.minuddannelse.net/Content/Graphics/Frontpage/frontpage_logo.svg https://www.minuddannelse.net/Content/Graphics/Frontpage/frontpage_logo.svg alt="MinUddannelse logo" class="img-fluid">

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 13:54 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er du skarp til din browsers Developer Tools? Du skal fange de requests, der får dig fra Aula og over til Min Uddannelse. Der bliver sikkert genereret et token i Aula til auth i MU og efter det, et kald til MU.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357621703 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WKST2LOQ67GXDTNYDWOBLHHANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2T42UYPNP3VID5ZZ5DWOBLHHA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ5OU4O.gif Message ID: @. @.> >

scaarup commented 1 year ago

Du er på rette spor :)

Men vi er ikke rigtig ude efter HTML - vi vil gerne se nogle http kald. Prøv fx at se her:

image

Og hvis du gerne vil dele sådan et http kald her, så brug "copy as curl":

image

Der er nok at kald til "getToken" og dernæst nogle kald til MU. De kunne være spændende at se på.

Hoekeren commented 1 year ago

Håber jeg er kommet frem til det rigtige.

Widget 23 er knappen til Min Uddannelse

curl https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023 https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023 ^

-H "authority: http://www.aula.dk www.aula.dk" ^

-H "accept: application/json, text/plain, /" ^

-H "accept-language: da-DK,da;q=0.9,en-US;q=0.8,en-DK;q=0.7,en;q=0.6" ^

-H "cookie: Csrfp-Token=acfa4d397cd9d44df57a4762cf25e689; initialLogin=true; PHPSESSID=ku51mchpjs60h13hre8cv90goad9c0pu; profile_change=19" ^

-H "dnt: 1" ^

-H "referer: https://www.aula.dk/portal/ https://www.aula.dk/portal/" ^

-H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^

-H "sec-ch-ua-mobile: ?0" ^

-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^

-H "sec-fetch-dest: empty" ^

-H "sec-fetch-mode: cors" ^

-H "sec-fetch-site: same-origin" ^

-H "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^

--compressed

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 18:10 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Du er på rette spor :)

Men vi er ikke rigtig ude efter HTML - vi vil gerne se nogle http kald. Prøv fx at se her:

https://user-images.githubusercontent.com/8055470/208480976-b17df66a-6999-4482-b95b-46bdfbad9577.png

Og hvis du gerne vil dele sådan et http kald her, så brug "copy as curl": https://user-images.githubusercontent.com/8055470/208481075-4d3d08d1-133f-4070-ab40-cdd520f47747.png

Der er nok at kald til "getToken" og dernæst nogle kald til MU. De kunne være spændende at se på.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1357975508 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2SGOEJJWH2FZ25TJ6TWOCJFXANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2U6VXTVDDO7DIAD26DWOCJFXA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ6EH5I.gif Message ID: @.***>

scaarup commented 1 year ago

Okay 23 - så ved vi det. Så skal vi se på et eller flere kald til api.minuddannelse.net, med samme fremgangsmåde.

Hoekeren commented 1 year ago

Jeg famler lidt i blinde

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 20:05 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Okay 23 - så ved vi det. Så skal vi se på et eller flere kald til api.minuddannelse.net, med samme fremgangsmåde.

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1358119843 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2VF2TXGATIZQNBHCDLWOCWWRANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2SHWZPPIEXN5P7FOCTWOCWWRA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ6NB2G.gif Message ID: @. @.> >

scaarup commented 1 year ago

Her er der fx et kald til MU:

image
Hoekeren commented 1 year ago

Jeg kaster snart håndklædet i ringen.

Jeg kan ikke finde andet der peger på minuddannelse end en svg-fil?

Jeg griber det sikker forkert an.

Fra: Søren Christian Aarup @.> Sendt: 19. december 2022 20:15 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Her er der fx et kald til MU: https://user-images.githubusercontent.com/8055470/208502240-59d33946-e951-4a1c-82aa-ddcfb583e6e4.png

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1358138175 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2WC4EFJFURRPXJHY2TWOCX4VANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2SDXJNOIQPMWU233QTWOCX4VA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSQ6OFT6.gif Message ID: @. @.> >

scaarup commented 1 year ago

Er det mon samme issue som her?

https://github.com/scaarup/aula/issues/49#issuecomment-1344195772

Du har skoleskemaer i Min Uddannelse?

Hoekeren commented 1 year ago

Hej Søren.Den første del er samme udfordring som jeg har. Knappen MinUddannelse åbner "MinUddannelse" i en ny fane hvor man så er logget. Ligesom det screenshot han har vedhæftet.Den del hvor han kan se ugeplanen i Aula, har jeg ikke.Med venlig hilsenChristian

Hoekeren commented 1 year ago

Hej Søren

Det er disse kald jeg kan finde:

Det jeg har fundet frem til at det er widget 23, der er knappen til Minuddannelse

Kunne det være dette kald du er interesseret i?:

curl https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023 https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023 ^

-H "authority: http://www.aula.dk www.aula.dk" ^

-H "accept: application/json, text/plain, /" ^

-H "accept-language: da-DK,da;q=0.9,en-US;q=0.8,en-DK;q=0.7,en;q=0.6" ^

-H "cookie: Csrfp-Token=02a6165d717ac3def47bd585f753bdbb; PHPSESSID=07blvvkcpfjqi1c7oji8ml1knqicg2q9; initialLogin=true; profile_change=26" ^

-H "dnt: 1" ^

-H "referer: https://www.aula.dk/portal/ https://www.aula.dk/portal/" ^

-H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^

-H "sec-ch-ua-mobile: ?0" ^

-H "sec-ch-ua-platform: ^\^"Windows^\^"" ^

-H "sec-fetch-dest: empty" ^

-H "sec-fetch-mode: cors" ^

-H "sec-fetch-site: same-origin" ^

-H "user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^

--compressed

Mvh Christian

Fra: Søren Christian Aarup @.> Sendt: 20. december 2022 09:00 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er det mon samme issue som her?

49 (comment) https://github.com/scaarup/aula/issues/49#issuecomment-1344195772

Du har skoleskemaer i Min Uddannelse?

— Reply to this email directly, https://github.com/scaarup/aula/issues/58#issuecomment-1358968016 view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AH5WE2XS673MCEUGYQZTYQTWOFRQTANCNFSM6AAAAAATDINH54 unsubscribe. You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2TYVKPBXRCZZHWBCEDWOFRQTA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRAA2NA.gif Message ID: < @.> @.>

Hoekeren commented 1 year ago

Der er lagt skoleskema ind under ”KALENDER”

Fra: Søren Christian Aarup @.> Sendt: 20. december 2022 09:00 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er det mon samme issue som her?

49 (comment) https://github.com/scaarup/aula/issues/49#issuecomment-1344195772

Du har skoleskemaer i Min Uddannelse?

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1358968016 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2XS673MCEUGYQZTYQTWOFRQTANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2TYVKPBXRCZZHWBCEDWOFRQTA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRAA2NA.gif Message ID: @. @.> >

Hoekeren commented 1 year ago

Min uddannelse ser sådan ud.

Fra: Søren Christian Aarup @.> Sendt: 20. december 2022 09:00 Til: scaarup/aula @.> Cc: Hoekeren @.>; Mention @.> Emne: Re: [scaarup/aula] Ugeplan unavailable (Issue #58)

Er det mon samme issue som her?

49 (comment) https://github.com/scaarup/aula/issues/49#issuecomment-1344195772

Du har skoleskemaer i Min Uddannelse?

— Reply to this email directly, view it on GitHub https://github.com/scaarup/aula/issues/58#issuecomment-1358968016 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AH5WE2XS673MCEUGYQZTYQTWOFRQTANCNFSM6AAAAAATDINH54 . You are receiving this because you were mentioned. https://github.com/notifications/beacon/AH5WE2TYVKPBXRCZZHWBCEDWOFRQTA5CNFSM6AAAAAATDINH56WGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSRAA2NA.gif Message ID: @. @.> >

ttronier commented 1 year ago

Hej @scaarup og @Hoekeren

Fedt arbejde med integrationen i øvrigt. Jeg har lige sat integrationen om i weekende, men arbejder jævnligt med en HTTP proxy, så jeg hjælper gerne til med at indsamle de informationer der er nødvendige.

Jeg får umiddelbart samme fejl når jeg prøver at hente ugeplanen for begge mine døtre. (You have enabled ugeplaner, but we cannot find any matching widgets (0029,0004) in Aula.)

Det vil være en stor hjælp for mit venkommende i stedet for at logge ind flere gange om ugen på app'en. :-)

Jeg ser følgende get requests når jeg klikker på ugeplan (uden grafik, scripts mv). Det er getUgeBreve der er interessant i mit tilfælde. Der kommer lidt JSON retur som udgør beskeden vi bruger i hverdagen. Er det samme hos dig @Hoekeren?

https://www.minuddannelse.net/Node/minuge/2754978 https://www.minuddannelse.net/Node/update?_=1672755820844 https://www.minuddannelse.net/Node/api/api/stamdata/ugeplan/minugeFilter?elevId=2754978&_=1672755820845 https://www.minuddannelse.net/Node/api/api/stamdata/aulaskema/getElevSkema?elevId=2754978&tidspunkt=2023-W1&_=1672755820846 https://www.minuddannelse.net/Node/api/api/aarsplanlaegning/skolekalender/getKalender?id=2754978&typeOfId=Elev&tidspunkt=2023-W1&_=1672755820847 https://www.minuddannelse.net/Node/api/api/forloebsafvikling/opgaver/getOpgaveliste?tidspunkt=2023-W1&elevId=2754978&_=1672755820848 https://www.minuddannelse.net/Node/api/api/aarsplanlaegning/forloeb/getAktiveForloeb?tidspunkt=2023-W1&elevId=2754978&_=1672755820849 https://www.minuddannelse.net/Node/api/api/stamdata/ugeplan/getUgeBreve?tidspunkt=2023-W1&elevId=2754978&_=1672755820850 https://matomo.uvdata.dk/matomo.php?action_name=MinUddannelse&idsite=1&rec=1&r=290021&h=15&m=23&s=41&url=https://www.minuddannelse.net/Node/minuge/2754978&urlref=https://www.minuddannelse.net/Node/&uid=2326128&_id=&_idn=1&send_image=0&_refts=0&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=2560x1440&dimension1=280186&dimension2=true&dimension3=Far&pv_id=yYlkIt&devicePixelRatio=0.6666666865348816&pf_net=0&pf_srv=34&pf_tfr=1&pf_dm1=627&pf_dm2=1228&pf_onl=7

2023-01-03 15_16_45-MinUddannelse 2023-01-03 15_44_28-MinUddannelse 2023-01-03 15_19_16-Developer Tools – Home Assistant

Request af getUgeBreve: mu_getUgeBreve.json.txt

scaarup commented 1 year ago

Hej @ttronier Tak for noget detaljeret data. Kigger lidt på dit request til "getUgeBreve". Jeg kan ikke rigtig forstå hvor authentication sker.

curl 'https://www.minuddannelse.net/Node/api/api/stamdata/ugeplan/getUgeBreve?tidspunkt=2023-W1&elevId=2754978&_=1672755820850' \
  -H 'Accept: application/json; charset=utf-8' \
  -H 'Accept-Language: en-US,en;q=0.9,da;q=0.8' \
  -H 'Connection: keep-alive' \
d=bfnpBAkb3hhCtenIUspk' \
  -H 'Referer: https://www.minuddannelse.net/Node/minuge/2754978' \
  -H 'Sec-Fetch-Dest: empty' \
  -H 'Sec-Fetch-Mode: cors' \
  -H 'Sec-Fetch-Site: same-origin' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' \
  -H 'X-Correlation-ID: cd50c253-ae31-4022-bd5b-aa4e0f0eb58c' \
  -H 'X-Originating-From: //www.minuddannelse.net/Node/minuge/2754978' \
  -H 'X-Requested-With: XMLHttpRequest' \
  -H 'sec-ch-ua: "Not?A_Brand";v="8", "Chromium";v="108", "Google Chrome";v="108"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'sec-ch-ua-platform: "Windows"' \
  --compressed ;

Du sender ingen Cookie header med - det har jeg ellers set på andre requests til Min Uddannelse.

ttronier commented 1 year ago

Sorry @scaarup - det er bare mig der er pananoid og klippede det ud. De er naturligvis med i alle de forskellige get requests til minuddannelse. Vil du have mere detaljeret data, så bare sig til. image

scaarup commented 1 year ago

Er der nogen af de cookies, der kommer fra Aula's eget "?method=aulaToken.getAulaToken" ?

ttronier commented 1 year ago

Yes, når jeg henter Aula Overblik, så laver den to requests for hhv. widgetID 0019 og 0023. image

Når jeg åbner MinUddannelse får jeg en ny tab image

Her klikker jeg på Ugeplan for en af ungerne image

OVERBLIK


curl "https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9,da;q=0.8" ^ -H "cookie: initialLogin=true; Csrfp-Token=2320d6362b8e6d71315d044764362457; PHPSESSID=xxxxxxxxxxxxxxxxxxxxxj3tsq62sloa; profile_change=7" ^ -H "referer: https://www.aula.dk/portal/" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ -H "sec-fetch-dest: empty" ^ -H "sec-fetch-mode: cors" ^ -H "sec-fetch-site: same-origin" ^ -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ --compressed

curl "https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0023" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9,da;q=0.8" ^ -H "cookie: initialLogin=true; Csrfp-Token=2320d6362b8e6d71315d044764362457; PHPSESSID=xxxxxxxxxxxxxxx2h4bs3j3tsq62sloa; profile_change=7" ^ -H "referer: https://www.aula.dk/portal/" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ -H "sec-fetch-dest: empty" ^ -H "sec-fetch-mode: cors" ^ -H "sec-fetch-site: same-origin" ^ -H "user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ --compressed

MINUDDANNELSE


curl "https://api.minuddannelse.net/aula/redirect?redirectUrl=https://www.minuddannelse.net/" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Content-Type: application/x-www-form-urlencoded" ^ -H "Origin: https://www.aula.dk" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --data-raw "sessionUUID=thom64j2&placement=narrow&currentWeekNumber=2023-W2&isMobileApp=false&assuranceLevel=2&userProfile=guardian&childFilter=aman64XX^%^2Csxxx0433&institutionFilter=280186^%^2CG23748&group=&aulaToken=exxxxxxxxxxxxxxxxxx1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjczMzU3NDg5LCJhdWQiOiIwMDIzIiwiQXNzdXJhbmNlTGV2ZWwiOjIsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzMzNjA4MjAsImp0aSI6IjYzYmQ2NjY5YTA2OWMxLjY1MzgyMDUzIiwic3ViIjoidGhvbTY0ajIifQ.GjEK2B-9Z57bH0vpyO0guVpvTSPGqjT_1UPWTn8zK9-uCdfI1Rl8qXCafcpWXSQQn6Csr0y6qrwMIa-ptkNu4B7UNQD0E_kfIjTBKleJfXho2pAiAcm1_0v-QpOaovdZRExobe-gO4Nu9V5UwqxBX5y2JklQ7KjwSXcltkz6hm7wHZiypM4uXiIb9KM5VPRpqbhLoWSPPnb4MWUn2EBA_R1xa22QrRknG1SxreOLQyBRvPaNcppaLzjV8al-ckbAC_kQ6ssnC6kfy3O-USO35JwlTfeVnINutDlKPRPMCJaYMXF9YNh3UZXoqYOTt142Q1d1AV4C0EQMCzLCNhO8MA&Csrfp-Token=xxxxx6362b8e6d71315d044764362457" ^ --compressed

curl "https://www.minuddannelse.net/AutoLogin/54e5690d-0dc2-4136-acc7-6749583a4341" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web06~pi0pjjpzkilz1md0kl1fdyar; ss-pid=u46LyUsYoVwPHB1DPbS6; ss-id=zUlkY5DGKHFlskgzfwgQ; mu-node-sessionid=93b52-1db4-4fa8-8e71-f7a40f6fe45d; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoATuLwN5wwAd1y0zh6OF6FOzCvH2sj9YkwBBc62sVYjWjjNhaIdbzB4f5UQsxNfN7x7wxxxxxxaLwAq3-dq_KFCC1wkN1YAnTNkr2Uxz9b4jq5LpWbhCxvvC3Scg8e78I77rx3IXssn9c1t-SKb5qcTzyWxwJD-dhejv4FlMwcqNiu5TeQOwaHoVcvyzqSyukPBRbhR55xHoJcsFpRzKgqnQpw426uHe0hCgt-QM5KvcSWsizg-uEVVtPEXcDqM5Tl2d87g_AeYBb22MkIwzyr7P4yDImygE2bY8gTX_2hzemqYgIYJ-m-f4g3EIJAsMQhWQLmgdZcDCjtjwM2rYHG5dUBN86rjGqKgz7GrO8JnRlB51MowR-W-ZD_K0NS1KHEyTDFhR0vM-apn6mLZ6d8kanN5G3xq7pBVSszO-NGZwTj0IEY3_uTWz9l7SZ4p5C-Pwqkb4ZAj09pPHl6FQ4voFk5zjWKUwBkBNEDgUotCyMqtzejKjCF6Kt_FyWMW2zbYCsntQVft0Ox1EDym_BWiGps8HtSvH5GYZE1eIvc4OjtvYrKbOS0vhpmWPcDRnEESpAf2jsX0JnvnVRTpYUpsoiAI2aayrnXg7_pUhzZZEnjw4PAdXwP2LXhmS2EkerIaqEbxazXDXIxJF1rYApa5u2pCi-3b94LGWxGoCm5yEF4IwgzFu1F7thFacJc0e9FF1kw2UKPASxpxrGm2f5Cg; connect.sid=s^%^3AxxxxxxMGDO0UjgB9kd1F1Wo5E9k6b922.TqgLjf6dcjdUgaxqpK61nUSG0ynBBQ1bPT6EGU5fQ7M" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --compressed

curl "https://www.minuddannelse.net/Home/AuthenticationPostAuthenticate" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web06~pi0pjjpzkilz1md0kl1fdyar; ss-pid=u46LyUsYoVwPHB1DPbS6; ss-id=zUlkY5DGKHFlskgzfwgQ; mu-node-sessionid=93b52-1db4-4fa8-8e71-f7a40f6fe45d; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoATuLwN5wwAd1y0zh6OF6FOzCvH2sj9YkwBBc62sVYjWjjNhaIdbzB4f5UQsxNfN7x7wgOzwdFaLwAq3-dq_KFCC1wkN1YAnTNkr2Uxz9b4jq5LpWbhCxvvC3Scg8e78I77rx3IXssn9c1t-SKb5qcTzyWxwJD-dhejv4FlMwcqNiu5TexxxxxHoVcvyzqSyukPBRbxx5xHoJcsFpRzKgqnQpw426uHe0hCgt-QM5KvcSWsizg-uEVVtPEXcDqM5Tl2d87g_AeYBb22MkIwzyr7P4yDImygE2bY8gTX_2hzemqYgIYJ-m-f4g3EIJAsMQhWQLmxxxxxN86rjGqKgz7GrO8JnRlB51MowR-W-ZD_K0NS1KHEyTDFhR0vM-apn6mLZ6d8kanN5G3xq7pBVSszO-NGZwTj0IEY3_uTWz9l7SZ4p5C-Pwqkb4ZAj09pPHl6FQ4voFk5zjWKUwBkBNEDgUotCyMqtzejKjCF6Kt_FyWMW2zbYCsntQVft0Ox1EDym_BWiGps8HtSvH5GYZE1eIvc4OjtvYrKbOS0vhpmWPcDRnEESpAf2jsX0JnvnVRTpYUpsoiAI2aayrnXg7_pUhzZZEnjw4PAdXwP2LXhmS2EkerIaqEbxazXDXIxJF1rYApa5u2pCi-3b94LGWxGoCm5yEF4IwgzFu1F7thFacJc0e9FF1kw2UKPASxpxrGm2f5Cg; connect.sid=s^%^3A4XQ78IMGDO0xxxxkd1F1Wo5E9k6b922.TqgLjf6dcjdUgaxqpK61nUSG0ynBBQ1bPT6EGU5fQ7M" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --compressed

curl "https://www.minuddannelse.net/" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web06~pi0pjjpzkilz1md0kl1fdyar; ss-pid=u46LyUsYoVwPHB1DPbS6; ss-id=zUlkY5DGKHFlskgzfwgQ; connect.sid=s^%^3A4XQ78IMGDO0UjgB9kd1F1Wo5E9k6b922.TqgLjf6dcjdUgaxqpK61nUSG0ynBBQ1bPT6EGU5fQ7M; mu-node-sessionid=3cf06-ff93-4899-8176-04596ce3fd27; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoA07iPvMufO3F1XRUbiqPNqzZEZvUUcj4QzJ0dW2Yaxt6LZECmYMA2kXqV1esS39TBVHnam0VZnt3PVdSqBr2FQvJz3vpqbvcxyzxApf0ZYPLrTIkh2yAs3eSr3rL3fk2KtNxCoVXDhw7Sz9JGais8Vqfpmr7Ix0uxr-swkUJaMYEqsTsdoAWdzyz7dkaVozvZ9JyExvf-8ww-zFqah-UqQO8QaneVJlMOL2HPEuMzHFxE3D8am-v41qom_UjprPWpDaw1Xpxxxxxxxx3fOKe0n_Htf1kPsobdp_7DPd8VBWIGHkdLnqCqNG8EGBhmAQLsydZBfHYGoyJ1n-DWx_u-kOoo_u1s72ejYorqX6_fu9wkcrhoHzIJLF2NjPjEWjWmL_I1z0WbKRf2TuFVbxZcg_tpbcRSt-DfPdxkgpokDMH-Jc2qk291VaTJ0ooQ3RzSdxWqJb09fNpif5yeS9Exsck4Nl2L-55KwRFy35tl_S7HRVs35ua6cpMMWDIPEYZZIjtYk6UGC_caK2ZUZ14OZTAEGFB3rq_fp9T7sl5PaAEZoQGm9PRpJyuW1YSsA4uWEljW_G7ctHflsUDdv0x2qgKHmhW9qJsp1e2K89iHAEacVNs2BygWwZXlzc6au7uKHzykEmsSKnasRJPUxO-0zeVlzLMUa6eiPxIRDcVw7wvOdwlIMQsVcGvco4F526F9HurLlr2XE3hoDgiz0g" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --compressed

curl "https://www.minuddannelse.net/Foraelder" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web06~pi0pjjpzkilz1md0kl1fdyar; ss-pid=u46LyUsYoVwPHB1DPbS6; ss-id=zUlkY5DGKHFlskgzfwgQ; connect.sid=s^%^3A4XQ78IMGDO0UjgB9kd1F1Wo5E9k6b922.TqgLjf6dcjdUgaxqpK61nUSG0ynBBQ1bPT6EGU5fQ7M; mu-node-sessionid=3cf06-ff93-4899-8176-04596ce3fd27; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoA07iPvMufO3F1XRUbiqPNqzZEZvUUcj4QzJ0dW2Yaxt6LZECmYMA2kXqV1esS39TBVHnam0VZnt3PVdSqBr2FQvJz3vpqbvcxyzxApf0ZYPLrTIkh2yAs3eSr3rL3fk2KtNxCoVXDhw7Sz9JGais8Vqfpmr7Ix0uxr-swkUJaMYEqsTsdoAWdzyzxxxxxxxExvf-8ww-zFqah-UqQO8QaneVJlMOL2HPEuMzHFxE3D8am-v41qom_UjprPWpDaw1XpVbVgeE1MnQf3fOKe0n_Htf1kPsobdp_7DPd8VBWIGHkdLnqCqNG8EGBhmAQLsydZBfHYGoyJ1n-DWx_u-kOoo_u1s72ejYorqX6_fu9wkcrhoHzIJLF2NjPjEWjWmL_I1z0WbKRf2TuFVbxZcg_tpbcRSt-DfPdxkgpokDMH-Jc2qk291VaTJ0ooQ3RzSdxWqJb09fNpif5yeS9Exsck4Nl2L-55KwRFy35tl_S7HRVs35ua6cpMMWDIPEYZZIjtYk6UGC_caK2ZUZ14OZTAEGFB3rq_fp9T7sl5PaAEZoQGm9PRpJyuW1YSsA4uWEljW_G7ctHflsUDdv0x2qgKHmhW9qJsp1e2K89iHAEacVNs2BygWwZXlzc6au7uKHzykEmsSKnasRJPUxO-0zeVlzLMUa6eiPxIRDcVw7wvOdwlIMQsVcGvco4F526F9HurLlr2XE3hoDgiz0g" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --compressed

curl "https://www.minuddannelse.net/Node/" ^ -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^ -H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^ -H "Cache-Control: max-age=0" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web06~pi0pjjpzkilz1md0kl1fdyar; ss-pid=u46LyUsYoVwPHB1DPbS6; ss-id=zUlkY5DGKHFlskgzfwgQ; connect.sid=s^%^3A4XQ78IMGDO0UjgB9kd1F1Wo5E9k6b922.TqgLjf6dcjdUgaxqpK61nUSG0ynBBQ1bPT6EGU5fQ7M; mu-node-sessionid=3cf06-ff93-4899-8176-04596ce3fd27; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoA07iPvMufO3F1XRUbiqPNqzZEZvUUcj4QzJ0dW2Yaxt6LZECmYMA2kXqV1esS39TBVHnam0VZnt3PVdSqBr2FQvJz3vpqbvcxyzxApf0ZYPLrTIkh2yAs3eSr3rL3fk2KtNxCoVXDhw7Sz9JGais8Vqfpmr7Ix0uxr-swkUJaMYEqsTsdoAWdzyz7dkaVozvZ9JyExvf-8ww-zFqah-UqQO8QaneVJlMOL2HPEuMzHFxE3D8am-v41qom_UjprPWpDaw1XpVbVgeE1MnQf3fOKe0n_Htf1kPsobdp_7DPd8VBWIGHkdLnqCqNG8EGBhmAQLsydZBfHYGoyJ1n-DWx_u-kOoo_u1s72ejYorqX6_fu9wkcrhoHzIJLF2NjPjEWjWmL_I1z0WbKRf2TuFVbxZcg_tpbcRSt-DfPdxkgpokDMH-Jc2qk291VaTJ0ooQ3RzSdxWqJb09fNpif5yeS9Exsck4Nl2L-55KwRFy35tl_S7HRVs35ua6cpMMWDIPEYZZIjtYk6UGC_caK2ZUZ14OZTAEGFB3rq_fp9T7sl5PaAEZoQGm9PRpJyuW1YSsA4uWEljW_G7ctHflsUDdv0x2qgKHmhW9qJsp1e2K89iHAEacVNs2BygWwZXlzc6au7uKHzykEmsSKnasRJPUxO-0zeVlzLMUa6eiPxIRDcVw7wvOdwlIMQsVcGvco4F526F9HurLlr2XE3hoDgiz0g" ^ -H "Referer: https://www.aula.dk/" ^ -H "Sec-Fetch-Dest: document" ^ -H "Sec-Fetch-Mode: navigate" ^ -H "Sec-Fetch-Site: cross-site" ^ -H "Sec-Fetch-User: ?1" ^ -H "Upgrade-Insecure-Requests: 1" ^ -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^ -H "sec-ch-ua: ^\^"Not?A_Brand^\^";v=^\^"8^\^", ^\^"Chromium^\^";v=^\^"108^\^", ^\^"Google Chrome^\^";v=^\^"108^\^"" ^ -H "sec-ch-ua-mobile: ?0" ^ -H "sec-ch-ua-platform: ^\^"Windows^\^"" ^ --compressed

UGEPLAN


https://github.com/scaarup/aula/issues/58#issuecomment-1369859777

scaarup commented 1 year ago

I det første request til MU efter aula:

curl "https://api.minuddannelse.net/aula/redirect?redirectUrl=https://www.minuddannelse.net/" ^
-H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" ^
-H "Accept-Language: en-US,en;q=0.9,da;q=0.8" ^
-H "Cache-Control: max-age=0" ^
-H "Connection: keep-alive" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-H "Origin: https://www.aula.dk/" ^
-H "Referer: https://www.aula.dk/" ^
-H "Sec-Fetch-Dest: document" ^
-H "Sec-Fetch-Mode: navigate" ^
-H "Sec-Fetch-Site: cross-site" ^
-H "Sec-Fetch-User: ?1" ^
-H "Upgrade-Insecure-Requests: 1" ^
-H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" ^
-H "sec-ch-ua: ^^"Not?A_Brand^^";v=^^"8^^", ^^"Chromium^^";v=^^"108^^", ^^"Google Chrome^^";v=^^"108^^"" ^
-H "sec-ch-ua-mobile: ?0" ^
-H "sec-ch-ua-platform: ^^"Windows^^"" ^
--data-raw "sessionUUID=thom64j2&placement=narrow&currentWeekNumber=2023-W2&isMobileApp=false&assuranceLevel=2&userProfile=guardian&childFilter=aman64XX^%^2Csxxx0433&institutionFilter=280186^%^2CG23748&group=&aulaToken=exxxxxxxxxxxxxxxxxx1NiIsImtpZCI6IjQ4YTNiYTIzMzVlM2YxMjhkNWUwMzQzMjM0YzRjMTgwZjMyOWY4YjkifQ.eyJpc3MiOiJBdWxhIiwiaWF0IjoxNjczMzU3NDg5LCJhdWQiOiIwMDIzIiwiQXNzdXJhbmNlTGV2ZWwiOjIsImlzUGlsb3QiOmZhbHNlLCJleHAiOjE2NzMzNjA4MjAsImp0aSI6IjYzYmQ2NjY5YTA2OWMxLjY1MzgyMDUzIiwic3ViIjoidGhvbTY0ajIifQ.GjEK2B-9Z57bH0vpyO0guVpvTSPGqjT_1UPWTn8zK9-uCdfI1Rl8qXCafcpWXSQQn6Csr0y6qrwMIa-ptkNu4B7UNQD0E_kfIjTBKleJfXho2pAiAcm1_0v-QpOaovdZRExobe-gO4Nu9V5UwqxBX5y2JklQ7KjwSXcltkz6hm7wHZiypM4uXiIb9KM5VPRpqbhLoWSPPnb4MWUn2EBA_R1xa22QrRknG1SxreOLQyBRvPaNcppaLzjV8al-ckbAC_kQ6ssnC6kfy3O-USO35JwlTfeVnINutDlKPRPMCJaYMXF9YNh3UZXoqYOTt142Q1d1AV4C0EQMCzLCNhO8MA&Csrfp-Token=xxxxx6362b8e6d71315d044764362457" ^
--compressed

har vi aulaToken= i selve post-data - det antager jeg så er det samme som vi fik tilbage fra Aula. Post-data indeholder desuden "Csrfp-Token" - det må vel også komme fra Aula?

ttronier commented 1 year ago

Ja præcis. Det er helt samme aula+csrf token der bliver oprettet ved første login på aula.dk/

initialLogin=true; profile_change=8; PHPSESSID=2d78n6bgfaabfr7j31atormsadlfpcss; Csrfp-Token=1f98acf454b08f1c10d9f38ec41fb362

image

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.

ttronier commented 1 year ago

Hej @scaarup

Er den lagt i graven, mangler du info eller bare tid til at udvikle i en hverdag fyldt med alt andet?

Det ville stadig være en super hjælp, hvis det kunne lade sig gøre at kopiere indholdet ned i et par attributter (widgets 0029,0004) :-)

scaarup commented 1 year ago

hej @ttronier

Nej jeg satser på at få brugt noget tid på det snart. Men jo, der sker en del andet her for tiden. Jeg har nemlig skiftet job :).

ttronier commented 1 year ago

Tillykke med det @scaarup - det stjæler altid en del tid i starten. :-) Sig endelig til, hvis der opstår behov for at teste noget ift. ugeplanen. Tak.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.