Closed Symbiot78 closed 1 year ago
Hi.
Which version are you on? Also we're gonna need the debug log.
Is the empty calendars because you are only looking at today - Sunday? Or also empty for tomorrow?
version is v0.1.24
I checked today.. same 'unavailable'
I set debug log but only thing I see is this :
2022-12-05 18:34:59.527 WARNING (SyncWorker_1) [custom_components.aula.client] API was expected at https://www.aula.dk/api/v14 but responded with HTTP 410.
reload component shows this:
022-12-05 18:37:29.552 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.aula 2022-12-05 18:37:31.650 WARNING (SyncWorker_2) [custom_components.aula.client] API was expected at https://www.aula.dk/api/v14 but responded with HTTP 410. 2022-12-05 18:37:33.067 INFO (MainThread) [uamqp.async_ops.client_async] Keeping 'ReceiveClientAsync' connection alive. b'SBReceiver-31c28e57-c473-4ed7-bbd1-cce3e9118758' 2022-12-05 18:37:34.950 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Aula for calendar Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 372, in async_setup result = await component.async_setup_entry(hass, self) File "/usr/src/homeassistant/homeassistant/components/calendar/init.py", line 84, in async_setup_entry return await component.async_setup_entry(entry) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 166, in async_setup_entry raise ValueError("Config entry has already been setup!") ValueError: Config entry has already been setup!
Relod doesn't really work, you need to restart ha.
Last post was after reload The one before after a restart
Roger that, but then you haven't enabled debug logging properly.
I get the same warning as you, but with debug logging enabled, I can see more:
hi
I got debugging up and running. here's a chunk of the log.. hopefully it will contain something useful.
' 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0023 MinUddannelse - SSO 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0018 EasyIQ Links 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0013 Nyttige links 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0072 MU Elev - fravær 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0030 MinUddannelse - Opgaver 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0029 MinUddannelse – Ugenoter 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected Min Uddannelse widget 2022-12-08 06:28:44.566 DEBUG (SyncWorker_5) [custom_components.aula.client] Detected widget 0028 MinUddannelse – Forløb 2022-12-08 06:28:44.749 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 1479609 adding sensor entity. 2022-12-08 06:28:44.749 DEBUG (MainThread) [custom_components.aula.sensor] Found presence data for childid 3731699 adding sensor entity. 2022-12-08 06:28:44.752 INFO (MainThread) [homeassistant.components.calendar] Setting up calendar.aula 2022-12-08 06:28:44.753 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=calendar.skoleskema_matilde_rask_thomsen, old_state=None, new_state=<state calendar.skoleskema_matilde_rask_thomsen=off; friendly_name=Skoleskema Matilde Rask Thomsen @ 2022-12-08T06:28:44.753344+01:00>> 2022-12-08 06:28:44.753 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=calendar.skoleskema_laerke_rask_thomsen, old_state=None, new_state=<state calendar.skoleskema_laerke_rask_thomsen=off; friendly_name=Skoleskema Lærke Rask Thomsen @ 2022-12-08T06:28:44.753706+01:00>> 2022-12-08 06:28:44.753 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1479609 aula1479609 2022-12-08 06:28:44.753 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1479609 aula1479609 2022-12-08 06:28:44.753 DEBUG (MainThread) [custom_components.aula.sensor] Unique ID for child 1479609 aula1479609 2022-12-08 06:28:44.754 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.nibe_skole_matilde, old_state=None, new_state=<state sensor.nibe_skole_matilde=Ikke kommet; ugeplan=
I cannot really make sense of your log. What is going on here? No timestamp but "ugenoter" in the log? I am not logging out ugenoter, so how is that even ending up in your log?
And here, some "ugenoter" and then a new logline without timestamp but containing some json presence/state information:
Can you make sure to restart HA and capture the log, without cutting/pasting/manipulating, in a raw file and attach it to here.
Also pop the developer tools, like here: and paste the "State attributes (YAML, optional)" for each child.
Thank you.
It looks like I have the same issue. I had the "Ugenoter" put into the "Ugeplan" within the the aula sensor for my oldest daughter (the only one in school) in this format: https://gyazo.com/ee7bb91e4d532d5a9d5e338ad8929bbb But now I don't have them anymore. I receive the message in the log: "You have enabled ugeplaner, but we cannot find them in Aula."
This is what I have in my log with debug activated:
2022-12-08 10:20:27.926 DEBUG (SyncWorker_8) [custom_components.aula.client] is_logged_in? False 2022-12-08 10:20:27.926 DEBUG (SyncWorker_8) [custom_components.aula.client] Logging in 2022-12-08 10:20:30.773 DEBUG (SyncWorker_8) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v14 2022-12-08 10:20:30.820 WARNING (SyncWorker_8) [custom_components.aula.client] API was expected at https://www.aula.dk/api/v14 but responded with HTTP 410. 2022-12-08 10:20:30.822 DEBUG (SyncWorker_8) [custom_components.aula.client] Trying API at https://www.aula.dk/api/v15 2022-12-08 10:20:31.021 DEBUG (SyncWorker_8) [custom_components.aula.client] Found API on https://www.aula.dk/api/v15 2022-12-08 10:20:31.285 DEBUG (SyncWorker_8) [custom_components.aula.client] LOGIN: True 2022-12-08 10:20:31.285 DEBUG (SyncWorker_8) [custom_components.aula.client] Config - schoolschedule: True, config - ugeplaner: True 2022-12-08 10:20:31.285 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and names: {896230: 'Sia Marie Christensen', 2525115: 'Ea Elisa Christensen'} 2022-12-08 10:20:31.285 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and institution names: {896230: 'Stouby Skole', 2525115: 'Børnehuset Skovly, Stouby'} 2022-12-08 10:20:31.503 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and presence data status: {'896230': 1, '2525115': 1} 2022-12-08 10:20:31.504 DEBUG (SyncWorker_8) [custom_components.aula.client] Fetching calendars... 2022-12-08 10:20:32.378 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0028 MinUddannelse – Forløb 2022-12-08 10:20:32.378 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0072 MU Elev - fravær 2022-12-08 10:20:32.378 ERROR (SyncWorker_8) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find them in Aula. 2022-12-08 10:20:32.628 DEBUG (SyncWorker_9) [custom_components.aula.client] is_logged_in? True 2022-12-08 10:20:32.628 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and names: {896230: 'Sia Marie Christensen', 2525115: 'Ea Elisa Christensen'} 2022-12-08 10:20:32.628 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and institution names: {896230: 'Stouby Skole', 2525115: 'Børnehuset Skovly, Stouby'} 2022-12-08 10:20:32.863 DEBUG (SyncWorker_9) [custom_components.aula.client] Child ids and presence data status: {'896230': 1, '2525115': 1} 2022-12-08 10:20:32.863 DEBUG (SyncWorker_9) [custom_components.aula.client] Fetching calendars... 2022-12-08 10:20:33.681 DEBUG (SyncWorker_9) [custom_components.aula.client] Detected widget 0072 MU Elev - fravær 2022-12-08 10:20:33.681 ERROR (SyncWorker_9) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find them in Aula. 2022-12-08 10:20:42.548 DEBUG (SyncWorker_8) [custom_components.aula.client] is_logged_in? True 2022-12-08 10:20:42.548 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and names: {896230: 'Sia Marie Christensen', 2525115: 'Ea Elisa Christensen'} 2022-12-08 10:20:42.548 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and institution names: {896230: 'Stouby Skole', 2525115: 'Børnehuset Skovly, Stouby'} 2022-12-08 10:20:42.758 DEBUG (SyncWorker_8) [custom_components.aula.client] Child ids and presence data status: {'896230': 1, '2525115': 1} 2022-12-08 10:20:42.759 DEBUG (SyncWorker_8) [custom_components.aula.client] Fetching calendars... 2022-12-08 10:20:43.498 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0028 MinUddannelse – Forløb 2022-12-08 10:20:43.498 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0072 MU Elev - fravær 2022-12-08 10:20:43.499 ERROR (SyncWorker_8) [custom_components.aula.client] You have enabled ugeplaner, but we cannot find them in Aula.
This is what I see in the dev-tools:
ugeplan: Not available ugeplan_next: Not available location: null sleepIntervals: [] checkInTime: '10:07' checkOutTime: '10:07' activityType: 3 entryTime: '06:00' exitTime: '17:00' exitWith: null comment: '' spareTimeActivity: null selfDeciderStartTime: '15:15' selfDeciderEndTime: '17:00' icon: mdi:account-school friendly_name: Stouby Skole Sia
Hope it gives you something, otherwise let me know, if I need to try something out
Oh "ugeplaner" and "ugenoter" - two words for the same thing. Sry about the confusion :).
So they are not found, because the integration cannot find the widget. You only seem to have these two:
2022-12-08 10:20:32.378 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0028 MinUddannelse – Forløb
2022-12-08 10:20:32.378 DEBUG (SyncWorker_8) [custom_components.aula.client] Detected widget 0072 MU Elev - fravær
We need a logline like this: Detected widget 0029 MinUddannelse – Ugenoter
Can you try to log in to Aula in your webbrowser and see if they are actually available to you? And are you expecting them to be served from "Min uddannelse"?
Yes the Ugenoter is there. The Gyazo link was the screenshot from MinUddannelse. i dont recall ever seeing them directly on Aula website if that is what you meant. From there I only have a link to Min Uddannelse where I Can see the ugenoter
When I log in to Aula in my browser, the "ugenoter" is on the far right:
Something could indicate, that your school is using a very different approach. If we are to get wiser on this, you need to "record" the steps for how you get to see your "ugenoter". In the browser using developer tools, so we can see how you are coming from Aula to Ugenoter.
I’ll try as well in browser
at our school ;
ugeplan is the weekly schedule - standard stuff
ugenoter is more specific - like what they’re doing in Danish on wednesday
both are found in ‘minuddannelse’
Okay roger that. Sounds to me like "ugeplan" is what you would interpret as "schoolschedule / skoleskema" ?
yes. Exactly. and ugenoter is the teachers 'plan' for the week.. so to speak. including if there are changes to standard 'skoleskema' :-)
Okay, so for this integration, there is already a concept defined as "schoolschedule/skoleskema" - when configured should pop up as calendar entities. And you should consider ugeplan the same as ugenoter, in the context of this integration.
But, we still do not see the "ugeplan/ugenoter" widget in Aula. Why you still need to tell me how you get from Aula to those.
not sure how to record it in browser.. what it is you need. I click a link to minuddannelse.net it opens a new page with that site
I have both my kids there and can click links to open ugeplaner, elevplan etc.
I know this is not what you want - but tell me what to export from dev tools and I'll attach it here
What does the link in Aula look like? Does it open a new browser window/tab?
Also are you not seeing "skoleskema" within Aula's kalender, like this:
Open Aula up, right click any where and select "inspect": Go to the "network" tab, refresh/reload the page and check if there are any calls to ?method=aulaToken.getAulaToken&widgetId=XX: If yes, right click the call, and copy as curl, and paste it here:
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" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=5" ^ -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=0018" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=5" ^ -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=0072" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=5" ^ -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
it opens a new tab.
in calendar I have ugeplan & ugenoter
if I do the inspecting on the calendar I get these 3:
curl "https://www.aula.dk/api/v15/?method=aulaToken.getAulaToken&widgetId=0030" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=6" ^ -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=0029" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=6" ^ -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=0028" ^ -H "authority: www.aula.dk" ^ -H "accept: application/json, text/plain, /" ^ -H "accept-language: en-US,en;q=0.9" ^ -H "cookie: Csrfp-Token=daf4ebdf4befef5a74c31cb85a31a923; PHPSESSID=nmpcg1b16vhteg071om549eahmc121ql; initialLogin=true; profile_change=6" ^ -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
@Symbiot78 your school has is populating the calender in Aula with the schoolschedule, while at the same time, using "Min uddannelse - ugenoter", for what also seems like a table for a schoolschedule? I am wondering why the Headline on your screenshot is "Ugenoter" - since we do not see that widget in Aula. I think it may originate from "Detected widget 0028 MinUddannelse – Forløb".
Now since you are an expert with your browsers "developer tools", could you try and find all requests to "api.minuddannelse.net", copy as curl and paste them here?
Example:
Lol… lemme find my dev expert cap and see what I can dig up😅
@scaarup - sorry this fell through the cracks..
there's nothing pointing to aula tokens.. this looks like something though:
not sure if this is useful in any way?
Thanks @Symbiot78.
"copy as curl" on the getUgeBreve request and let me see that.
@scaarup
curl "https://www.minuddannelse.net/Node/api/api/stamdata/ugeplan/getUgeBreve?tidspunkt=2023-W3&elevId=2493632&_=1673942846739" ^ -H "Accept: application/json; charset=utf-8" ^ -H "Accept-Language: en-US,en;q=0.9" ^ -H "Connection: keep-alive" ^ -H "Cookie: ASP.NET_SessionId=web03~ndzrjuv5ajbvn45x3hcquun4; ss-pid=tWCaY2BgdD5SwuheBqZm; ss-id=aTkIFWzI79UdZuV1QaHW; QueueITAccepted-SDFrts345E-V3_minuddannelseprod=EventId^%^3Dminuddannelseprod^%^26QueueId^%^3D00000000-0000-0000-0000-000000000000^%^26RedirectType^%^3Ddisabled^%^26IssueTime^%^3D1673942788^%^26Hash^%^3Db3df57ce00b8d6e15d11e78541af8887abad614e6630669fd0b632ef93e15847; CookieInformationConsent=^%^7B^%^22website_uuid^%^22^%^3A^%^22d4a90a6e-4de7-41e5-b8be-16554dc2f120^%^22^%^2C^%^22timestamp^%^22^%^3A^%^222023-01-17T08^%^3A06^%^3A32.088Z^%^22^%^2C^%^22consent_url^%^22^%^3A^%^22https^%^3A^%^2F^%^2Fwww.minuddannelse.net^%^2Fhome^%^2Fforside^%^3FreturnUrl^%^3D^%^252FNode^%^252F^%^23ATHS^%^22^%^2C^%^22consent_website^%^22^%^3A^%^22minuddannelse.net^%^22^%^2C^%^22consent_domain^%^22^%^3A^%^22www.minuddannelse.net^%^22^%^2C^%^22user_uid^%^22^%^3A^%^220c5092ed-cdc0-42da-a1a4-1168d2d591ab^%^22^%^2C^%^22consents_approved^%^22^%^3A^%^5B^%^22cookie_cat_necessary^%^22^%^2C^%^22cookie_cat_functional^%^22^%^2C^%^22cookie_cat_statistic^%^22^%^2C^%^22cookie_cat_marketing^%^22^%^2C^%^22cookie_cat_unclassified^%^22^%^5D^%^2C^%^22consents_denied^%^22^%^3A^%^5B^%^5D^%^2C^%^22user_agent^%^22^%^3A^%^22Mozilla^%^2F5.0^%^20^%^28Windows^%^20NT^%^2010.0^%^3B^%^20Win64^%^3B^%^20x64^%^29^%^20AppleWebKit^%^2F537.36^%^20^%^28KHTML^%^2C^%^20like^%^20Gecko^%^29^%^20Chrome^%^2F108.0.0.0^%^20Safari^%^2F537.36^%^22^%^7D; mu-node-sessionid=fe53c80d-a1de-4f6c-abc4-9c99fffe35de; .AspNet.SharedCookie=CfDJ8FCkYpcbpj5Crx6nxe_YBoAfuriVYsPIPuCEbmQKElYC7PAko1KuuvPMSy3Rj6dGzTtkXVm1hFzv_SKaOm6oYlpWYtPMirX4aEdwqXDDSUDDZbOF90qxORkV1YoQXZJQ8B-aPPGx5btAIMmm_ZhpR_a_O5MuXLe2lgcEu5LuUE9Bu_ZJgcgmtAaLuwmot2q7DZzkMnUyS3mcq7fdkF5T49t3PeDJSzQW0MSdppsAWQunnEmijGh_p9Tbhnj2_O6Me90guvqTvxG7uDpnYeT6o3qYON4mwBzguwtVsAnv3yUU-4OWBM6pMyz9WKHkMGBsWNp1ytFZAh173XJEFDMytZzos6SglgukOgYyT5dQqZn_Y67godLsZGAPvpCrdsFd-_u4ZLkN4-jPOWxu_DEIe0S8J-4REn3lnDsiehf92uOnru9readBRtj-O3EGyGQDyO4l0ejQH0-M4S1j8FgHBpBz1PvPt66MCCntLTGnF0dx3cs03FsWEsn_HWujKFCrJzhWUnoWrvgEBRJ9zH3kKCCkANsEii716Cow1yNQjzW0CV-AzKFB1ljM8KXdD4AMqjER6DVXdOjHJ0R4diNDdpVDKUgYUn92x8ilEKrd28w7XWW-6Bffhk88cHBZ6qBW5MUK8cI8Jsj93ZabpdXo2GCM45nt9Q_05qWoCjcwRC6SRnjJuxxkGqqxCUemln5so6jd3OllDnB_yCgYTDcttZz5S40iZ51HIA1_xlbhjgd5; connect.sid=s^%^3Azk--Mn_OPJ-d9-l_G_GzOyDY_ZKuecqg.ujcb^%^2FjR^%^2FYwAddMCmzoT6ZG8b1PHvUtkNYvVh2ZRhuUY" ^ -H "Referer: https://www.minuddannelse.net/Node/minuge/2493632" ^ -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: 235baa36-974b-41d5-bd65-8439090a7d2a" ^ -H "X-Originating-From: //www.minuddannelse.net/Node/minuge/2493632" ^ -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
I am not seeing how you are authenticated with MU. Aula's method=aulaToken.getAulaToken&widgetID returns a token - do you see that token in the request to MU?
could it be this?
curl "https://matomo.uvdata.dk/matomo.php?action_name=MinUddannelse&idsite=1&rec=1&r=435866&h=9&m=16&s=23&url=https^%^3A^%^2F^%^2Fwww.minuddannelse.net^%^2FNode^%^2F&urlref=https^%^3A^%^2F^%^2Fwww.aula.dk^%^2F&uid=2493642&_id=&_idn=1&send_image=0&_refts=1673943383&_ref=https^%^3A^%^2F^%^2Fwww.aula.dk^%^2F&pdf=1&qt=0&realp=0&wma=0&fla=0&java=0&ag=0&cookie=1&res=1920x1080&dimension1=831003&dimension2=true&dimension3=Far&pv_id=j7lApA&devicePixelRatio=1&pf_net=38&pf_srv=557&pf_tfr=1&pf_dm1=576&pf_dm2=1076&pf_onl=10" ^ -X "POST" ^ -H "Accept: /" ^ -H "Accept-Language: en-US,en;q=0.9" ^ -H "Connection: keep-alive" ^ -H "Content-Length: 0" ^ -H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" ^ -H "Origin: https://www.minuddannelse.net" ^ -H "Referer: https://www.minuddannelse.net/" ^ -H "Sec-Fetch-Dest: empty" ^ -H "Sec-Fetch-Mode: no-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/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
Is the token in there?
I have no idea... I don't see anything that stands out in the minuddannelse when I check network I'm going to try and make a video.
I've tried to show the queries etc being made.. maybe something stands out?
You need to catch the very first request to MU.
No you cannot just reload the page, your browser will use whatever cookies it already has. Try again in a private browser session and make sure Developer tools opens up automatically in the new tab, so you get the very first request.
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.
For my oldest daughter in 3rd grade the 'ugeplan' is populated. For the youngest in 0 grade there is no data.
Looking in 'minuddannelse' I see data for both.
'ugeplaner' in this integration appears to be 'ugenoter' - at least.. for me what it pulls is the 'ugenoter'.
Please answer the following
Not sure what I can provide for this - but let me know I'll do and send whatever I can.