ethanpartida / MMM-MyStudyLife

Module to display info from the website MyStudyLife
MIT License
11 stars 1 forks source link

Scuedule on A and b day #6

Closed Beastlynoob closed 3 years ago

Beastlynoob commented 4 years ago

Hi, I love your module so much and I am so glad you made it. I am having an issue. I am currently in high school so we have days and bdays in our school so I have day classes on Monday, Wednesday, Friday, Tuesday and Thursday. and B day classes on Tuesday Thursday, Monday, Wednesday, and Friday. So my classes alternate. Is there a way I could put that into the config file?

Beastlynoob commented 3 years ago

Good News! The test code works. This must mean that there is an error on my side with my study life classes or code or my config file. I will keep you updated. Thank you so so so much for helping me through this. You are an amazing person and I absolutely love your module (from the pictures I have seen) even though I haven't gotten it working just yet. Thank you!

Beastlynoob commented 3 years ago

I was wondering what type of magic you are using to make this work. I created a new account and added 2 classes "Algebra" on bdays and "Chemistry" on a-days. I double-checked the code thing for my study life as well but the module is stuck at loading. I know the issue is on my side since your code worked perfectly.

here is my code: { module: "MMM-MyStudyLife", position: "top_right", config: { code: "------:------=", showSchedule: true, showExams: true, showTasks: true, useCycles: true, daysOff: [0,6], // offset: 0, // classFontScale: 1, // examFontScale: 2, // taskFontScale: .2, // averageScheduleHeight: 1000, classes: { "Algebra": [1], "Chemistry": [0], }, } },

ethanpartida commented 3 years ago

That all looks good on my end. Are you from a different country than the US? Maybe the api call i make only works for data hosted on US servers. That would explain why the account I made worked for you but none of your accounts work

Best, Ethan On Oct 3, 2020, 1:13 PM -0500, Beastlynoob notifications@github.com, wrote:

I was wondering what type of magic you are using to make this work. I created a new account and added 2 classes "Algebra" on bdays and "Chemistry" on a-days. I double-checked the code thing for my study life as well but the module is stuck at loading. I know the issue is on my side since your code worked perfectly. here is my code: { module: "MMM-MyStudyLife", position: "top_right", config: { code: "------:------=", showSchedule: true, showExams: true, showTasks: true, useCycles: true, daysOff: [0,6], // offset: 0, // classFontScale: 1, // examFontScale: 2, // taskFontScale: .2, // averageScheduleHeight: 1000, classes: { "Algebra": [1], "Chemistry": [0], }, } }, — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Beastlynoob commented 3 years ago

I am in the U.S. When I made the new account, I first created a New School Term and seet my classes to a day rotation on a lettered bases. I set 2 rotation days: A and B, and set school days from Monday to Friday. I then created a New subject called Chemistry and set in on a day from 8:50 - 10:20. I then created another subject called Algebra on B-days. I added both subjects to the term. I made sure that they also had the same names in the config file.

ethanpartida commented 3 years ago

hmmmm, try not using lettered bases. Make like an 1 day and 2 day using the "Classes occur on a numbered or lettered day (day rotation)" option. Thats all I can see that would be wrong.

Beastlynoob commented 3 years ago

Hey I know it has been awhile but I decided to try getting this module working on my mirror. I started off by deleting the module folder od my rasberry pi 4 and reinstalling it. I then went to my study life, created a new account, and made 2 classes: "test1"(days:1,3,5) and test2" (days: 2,4). I then copied your config example and changed the classes and dates. I launched MM and with no luck I was presented with loading where the modules is supposed to be. I have attached my config file and a screenshot of Mystudylife.

IMG_9064

Config.Js file

{ module: "MMM-MyStudyLife", position: "bottom_right", config: { code: "my code", showSchedule: true, showExams: true, showTasks: true, classes: { "test1": [1,3,5], "test2": [2,4] } } },

Beastlynoob commented 3 years ago

I ran it through the API tester and it passed with no errors. I put that same api code from the website into the config, loaded MM, but it didn't work and just goes onto loading. In addition, I noticed that the local storage code was different on every device. My raspberry pi gave me a different one compared to my mac book.

ethanpartida commented 3 years ago

Hi, No worries on the time. Uni has taken most of my time until now anyways. I'll take a peak at this again rn and get back to you soon.

The local storage code method is a bit of a kludge and you noticed one of its many faults. This was not actually meant to be used for api's and hence every time a new login occurs, MyStudyLife will generate a new local storage code. This can mess up the access for the mirror.

ethanpartida commented 3 years ago

Try using this code: W8NHAWE2IMTRP23TCE5C:55AYNU8o5UDOpZc2tHQ3aAY3h8A=

I also made a new account and copied your exact config, except it worked for me. This is really quite strange. Could you try running the mirror with npm start dev and pasting the terminal output?

Beastlynoob commented 3 years ago

{ module: "MMM-MyStudyLife", position: "bottom_right", config: { code:"W8NHAWE2IMTRP23TCE5C:55AYNU8o5UDOpZc2tHQ3aAY3h8A=", showSchedule: true, showExams: true, showTasks: true, classes: { "test1": [1,3,5], "test2": [2,4] } } },

Beastlynoob commented 3 years ago

There is my config with your key. DId not work was just stuck on loading.

Beastlynoob commented 3 years ago

Im not sure if this is what you needed but this was in the terminal once I launched then quit MM.

`pi@raspberrypi:~/MagicMirror $ npm start dev

magicmirror@2.13.0 start /home/pi/MagicMirror DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev"

[2021-01-02 22:18:13.471] [LOG] Starting MagicMirror: v2.13.0 [2021-01-02 22:18:13.478] [LOG] Loading config ... [2021-01-02 22:18:13.489] [LOG] Loading module helpers ... [2021-01-02 22:18:13.492] [LOG] No helper found for module: alert. [2021-01-02 22:18:14.078] [LOG] Initializing new module helper ... [2021-01-02 22:18:14.079] [LOG] Module helper loaded: MMM-MyStudyLife [2021-01-02 22:18:14.696] [LOG] Initializing new module helper ... [2021-01-02 22:18:14.696] [LOG] Module helper loaded: MMM-UpdateNotification [2021-01-02 22:18:14.697] [LOG] No helper found for module: clock. [2021-01-02 22:18:15.380] [LOG] Initializing new module helper ... [2021-01-02 22:18:15.381] [LOG] Module helper loaded: calendar [2021-01-02 22:18:15.382] [LOG] No helper found for module: compliments. [2021-01-02 22:18:15.383] [LOG] No helper found for module: currentweather. [2021-01-02 22:18:15.385] [LOG] No helper found for module: weatherforecast. [2021-01-02 22:18:15.494] [LOG] Initializing new module helper ... [2021-01-02 22:18:15.494] [LOG] Module helper loaded: MMM-GmailFeed [2021-01-02 22:18:16.695] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.695] [LOG] Module helper loaded: MMM-TelegramBot [2021-01-02 22:18:16.699] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.700] [LOG] Module helper loaded: mmm-systemtemperature [2021-01-02 22:18:16.703] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.704] [LOG] Module helper loaded: MMM-Dad-Jokes [2021-01-02 22:18:16.765] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.766] [LOG] Module helper loaded: newsfeed [2021-01-02 22:18:20.463] [LOG] Initializing new module helper ... [2021-01-02 22:18:20.464] [LOG] Module helper loaded: MMM-GoogleAssistant [2021-01-02 22:18:21.998] [LOG] Initializing new module helper ... [2021-01-02 22:18:21.999] [LOG] Module helper loaded: MMM-Assistant2Display [2021-01-02 22:18:22.005] [LOG] Initializing new module helper ... [2021-01-02 22:18:22.006] [LOG] Module helper loaded: MMM-Wallpaper [2021-01-02 22:18:23.588] [LOG] Initializing new module helper ... [2021-01-02 22:18:23.589] [LOG] Check MagicMirror version for node helper 'MMM-Ring' - Minimum version: 2.11.0 - Current version: 2.13.0 [2021-01-02 22:18:23.590] [LOG] Version is ok! [2021-01-02 22:18:23.590] [LOG] Module helper loaded: MMM-Ring [2021-01-02 22:18:23.590] [LOG] All module helpers loaded. [2021-01-02 22:18:23.776] [LOG] Starting server on port 8080 ... [2021-01-02 22:18:23.781] [INFO] You're using a full whitelist configuration to allow for all IPs [2021-01-02 22:18:23.788] [LOG] Server started ... [2021-01-02 22:18:23.788] [LOG] Connecting socket for: MMM-MyStudyLife [2021-01-02 22:18:23.789] [LOG] Connecting socket for: MMM-UpdateNotification [2021-01-02 22:18:23.794] [LOG] [UN] MMM-UpdateNotification Version: 1.2.2 [2021-01-02 22:18:23.795] [LOG] [UN] MagicMirror is running on pid: 10982 [2021-01-02 22:18:23.797] [LOG] Connecting socket for: calendar [2021-01-02 22:18:23.798] [LOG] Starting node helper for: calendar [2021-01-02 22:18:23.799] [LOG] Connecting socket for: MMM-GmailFeed [2021-01-02 22:18:23.799] [LOG] MMM-GmailFeed helper started... [2021-01-02 22:18:23.800] [LOG] Connecting socket for: MMM-TelegramBot [2021-01-02 22:18:23.801] [LOG] Connecting socket for: mmm-systemtemperature [2021-01-02 22:18:23.801] [LOG] Starting node helper: mmm-systemtemperature [2021-01-02 22:18:23.802] [LOG] Connecting socket for: MMM-Dad-Jokes [2021-01-02 22:18:23.803] [LOG] MMM-Dad-Jokes helper started [2021-01-02 22:18:23.803] [LOG] Connecting socket for: newsfeed [2021-01-02 22:18:23.804] [LOG] Starting node helper for: newsfeed [2021-01-02 22:18:23.805] [LOG] Connecting socket for: MMM-GoogleAssistant [2021-01-02 22:18:23.806] [LOG] Connecting socket for: MMM-Assistant2Display [2021-01-02 22:18:23.809] [LOG] Connecting socket for: MMM-Wallpaper [2021-01-02 22:18:23.810] [LOG] Starting node helper for: MMM-Wallpaper [2021-01-02 22:18:23.821] [LOG] Connecting socket for: MMM-Ring [2021-01-02 22:18:23.873] [LOG] MMM-Ring at (1/2/2021, 10:18:23 PM): Starting module: MMM-Ring [2021-01-02 22:18:23.873] [LOG] Sockets connected & modules started ... [2021-01-02 22:18:24.084] [LOG] Launching application. [2021-01-02 22:18:31.623] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [2021-01-02 22:18:31.630] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/aarishrajwani1%40gmail.com/private-2fca53a257d4394db7b875460727c034/basic.ics - Interval: 300000 [2021-01-02 22:18:31.647] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/beastlynoob12%40gmail.com/private-efd2d7e101572b881eb77a9a3fb78c04/basic.ics - Interval: 300000 [2021-01-02 22:18:31.662] [LOG] [TELBOT] MMM-TelegramBot Version: 1.3.7 [2021-01-02 22:18:31.750] [LOG] [TELBOT] Ready! [2021-01-02 22:18:31.757] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [2021-01-02 22:18:31.836] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.4.15 [2021-01-02 22:18:31.860] [LOG] [ASSISTANT] YouTube Search Function initilized. [2021-01-02 22:18:31.869] [LOG] [SNOWBOY] Model selected: jarvis [2021-01-02 22:18:31.881] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-TelegramBot.js [2021-01-02 22:18:31.896] [LOG] [ASSISTANT] RECIPE_LOADED: with-A2DSpotify.js [2021-01-02 22:18:31.897] [LOG] [ASSISTANT] Assistant2Display Server Started [2021-01-02 22:18:31.920] [LOG] [NPM] Initialized v0.9.9 [2021-01-02 22:18:32.298] [LOG] [ASSISTANT] Google Assistant is initialized. [2021-01-02 22:18:32.302] [LOG] [A2D] MMM-Assistant2Display Version: 2.3.20 [2021-01-02 22:18:32.326] [LOG] [SPOTIFY] Launch Librespot... [2021-01-02 22:18:32.336] [LOG] [NPM] Initialized v0.9.9 [2021-01-02 22:18:32.652] [LOG] [A2D] Assistant2Display is initialized. [2021-01-02 22:18:33.327] [LOG] [PM2] Connected! [2021-01-02 22:18:34.416] [LOG] [PM2] Librespot started ! [2021-01-02 22:18:35.306] [LOG] MMM-Ring at (1/2/2021, 10:18:35 PM): Refresh Token Updated [2021-01-02 22:18:35.506] [INFO] Calendar-Fetcher: Broadcasting 10 events. [2021-01-02 22:18:35.708] [INFO] Calendar-Fetcher: Broadcasting 0 events. [2021-01-02 22:18:36.780] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. [2021-01-02 22:18:37.703] [INFO] Calendar-Fetcher: Broadcasting 10 events. [2021-01-02 22:18:38.241] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Found 1 location(s) with 5 camera(s). [2021-01-02 22:18:38.244] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Location Lewisville has the following 5 camera(s): [2021-01-02 22:18:38.245] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 49477031: Front Door (lpd_v2) [2021-01-02 22:18:38.246] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 4940246: Front (hp_cam_v1) [2021-01-02 22:18:38.247] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 17964993: Side (hp_cam_v1) [2021-01-02 22:18:38.248] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 4303942: Backyard (hp_cam_v1) [2021-01-02 22:18:38.251] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 17569696: Trash (hp_cam_v1) [2021-01-02 22:18:38.252] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Location Lewisville has the following 0 device(s): [2021-01-02 22:18:38.253] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.255] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.257] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.258] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.260] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.264] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.267] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.269] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.270] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.271] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:48.875] [LOG] Shutting down server... [2021-01-02 22:18:48.876] [LOG] Stopping module helper: MMM-MyStudyLife [2021-01-02 22:18:48.876] [LOG] Stopping module helper: MMM-UpdateNotification [2021-01-02 22:18:48.877] [LOG] Stopping module helper: calendar [2021-01-02 22:18:48.878] [LOG] Stopping module helper: MMM-GmailFeed [2021-01-02 22:18:48.878] [LOG] Stopping module helper: MMM-TelegramBot [2021-01-02 22:18:48.879] [LOG] Stopping module helper: mmm-systemtemperature [2021-01-02 22:18:48.879] [LOG] Stopping module helper: MMM-Dad-Jokes [2021-01-02 22:18:48.880] [LOG] Stopping module helper: newsfeed [2021-01-02 22:18:48.880] [LOG] Stopping module helper: MMM-GoogleAssistant [2021-01-02 22:18:48.880] [LOG] Stopping module helper: MMM-Assistant2Display [2021-01-02 22:18:48.881] [LOG] Stopping module helper: MMM-Wallpaper [2021-01-02 22:18:48.881] [LOG] MMM-Ring at (1/2/2021, 10:18:48 PM): Stopping module helper: MMM-Ring [2021-01-02 22:18:49.207] [LOG] [LIBRESPOT] Killed

`

ethanpartida commented 3 years ago

There should be a white sidebar interface that appears on top of the normal mirror when you run 'npm start dev'. This is a terminal which my program can write updates to. If you have other modules active this terminal can get quite congested. Maybe try commenting out the other modules and let me know if you see that sidebar.

Best, Ethan On Jan 2, 2021, 10:20 PM -0600, Beastlynoob notifications@github.com, wrote:

Im not sure if this is what you needed but this was in the terminal once I launched then quit MM. `pi@raspberrypi:~/MagicMirror $ npm start dev

magicmirror@2.13.0 start /home/pi/MagicMirror DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "dev" [2021-01-02 22:18:13.471] [LOG] Starting MagicMirror: v2.13.0 [2021-01-02 22:18:13.478] [LOG] Loading config ... [2021-01-02 22:18:13.489] [LOG] Loading module helpers ... [2021-01-02 22:18:13.492] [LOG] No helper found for module: alert. [2021-01-02 22:18:14.078] [LOG] Initializing new module helper ... [2021-01-02 22:18:14.079] [LOG] Module helper loaded: MMM-MyStudyLife [2021-01-02 22:18:14.696] [LOG] Initializing new module helper ... [2021-01-02 22:18:14.696] [LOG] Module helper loaded: MMM-UpdateNotification [2021-01-02 22:18:14.697] [LOG] No helper found for module: clock. [2021-01-02 22:18:15.380] [LOG] Initializing new module helper ... [2021-01-02 22:18:15.381] [LOG] Module helper loaded: calendar [2021-01-02 22:18:15.382] [LOG] No helper found for module: compliments. [2021-01-02 22:18:15.383] [LOG] No helper found for module: currentweather. [2021-01-02 22:18:15.385] [LOG] No helper found for module: weatherforecast. [2021-01-02 22:18:15.494] [LOG] Initializing new module helper ... [2021-01-02 22:18:15.494] [LOG] Module helper loaded: MMM-GmailFeed [2021-01-02 22:18:16.695] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.695] [LOG] Module helper loaded: MMM-TelegramBot [2021-01-02 22:18:16.699] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.700] [LOG] Module helper loaded: mmm-systemtemperature [2021-01-02 22:18:16.703] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.704] [LOG] Module helper loaded: MMM-Dad-Jokes [2021-01-02 22:18:16.765] [LOG] Initializing new module helper ... [2021-01-02 22:18:16.766] [LOG] Module helper loaded: newsfeed [2021-01-02 22:18:20.463] [LOG] Initializing new module helper ... [2021-01-02 22:18:20.464] [LOG] Module helper loaded: MMM-GoogleAssistant [2021-01-02 22:18:21.998] [LOG] Initializing new module helper ... [2021-01-02 22:18:21.999] [LOG] Module helper loaded: MMM-Assistant2Display [2021-01-02 22:18:22.005] [LOG] Initializing new module helper ... [2021-01-02 22:18:22.006] [LOG] Module helper loaded: MMM-Wallpaper [2021-01-02 22:18:23.588] [LOG] Initializing new module helper ... [2021-01-02 22:18:23.589] [LOG] Check MagicMirror version for node helper 'MMM-Ring' - Minimum version: 2.11.0 - Current version: 2.13.0 [2021-01-02 22:18:23.590] [LOG] Version is ok! [2021-01-02 22:18:23.590] [LOG] Module helper loaded: MMM-Ring [2021-01-02 22:18:23.590] [LOG] All module helpers loaded. [2021-01-02 22:18:23.776] [LOG] Starting server on port 8080 ... [2021-01-02 22:18:23.781] [INFO] You're using a full whitelist configuration to allow for all IPs [2021-01-02 22:18:23.788] [LOG] Server started ... [2021-01-02 22:18:23.788] [LOG] Connecting socket for: MMM-MyStudyLife [2021-01-02 22:18:23.789] [LOG] Connecting socket for: MMM-UpdateNotification [2021-01-02 22:18:23.794] [LOG] [UN] MMM-UpdateNotification Version: 1.2.2 [2021-01-02 22:18:23.795] [LOG] [UN] MagicMirror is running on pid: 10982 [2021-01-02 22:18:23.797] [LOG] Connecting socket for: calendar [2021-01-02 22:18:23.798] [LOG] Starting node helper for: calendar [2021-01-02 22:18:23.799] [LOG] Connecting socket for: MMM-GmailFeed [2021-01-02 22:18:23.799] [LOG] MMM-GmailFeed helper started... [2021-01-02 22:18:23.800] [LOG] Connecting socket for: MMM-TelegramBot [2021-01-02 22:18:23.801] [LOG] Connecting socket for: mmm-systemtemperature [2021-01-02 22:18:23.801] [LOG] Starting node helper: mmm-systemtemperature [2021-01-02 22:18:23.802] [LOG] Connecting socket for: MMM-Dad-Jokes [2021-01-02 22:18:23.803] [LOG] MMM-Dad-Jokes helper started [2021-01-02 22:18:23.803] [LOG] Connecting socket for: newsfeed [2021-01-02 22:18:23.804] [LOG] Starting node helper for: newsfeed [2021-01-02 22:18:23.805] [LOG] Connecting socket for: MMM-GoogleAssistant [2021-01-02 22:18:23.806] [LOG] Connecting socket for: MMM-Assistant2Display [2021-01-02 22:18:23.809] [LOG] Connecting socket for: MMM-Wallpaper [2021-01-02 22:18:23.810] [LOG] Starting node helper for: MMM-Wallpaper [2021-01-02 22:18:23.821] [LOG] Connecting socket for: MMM-Ring [2021-01-02 22:18:23.873] [LOG] MMM-Ring at (1/2/2021, 10:18:23 PM): Starting module: MMM-Ring [2021-01-02 22:18:23.873] [LOG] Sockets connected & modules started ... [2021-01-02 22:18:24.084] [LOG] Launching application. [2021-01-02 22:18:31.623] [LOG] Create new calendar fetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000 [2021-01-02 22:18:31.630] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/aarishrajwani1%40gmail.com/private-2fca53a257d4394db7b875460727c034/basic.ics - Interval: 300000 [2021-01-02 22:18:31.647] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/beastlynoob12%40gmail.com/private-efd2d7e101572b881eb77a9a3fb78c04/basic.ics - Interval: 300000 [2021-01-02 22:18:31.662] [LOG] [TELBOT] MMM-TelegramBot Version: 1.3.7 [2021-01-02 22:18:31.750] [LOG] [TELBOT] Ready! [2021-01-02 22:18:31.757] [LOG] Create new news fetcher for url: http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000 [2021-01-02 22:18:31.836] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.4.15 [2021-01-02 22:18:31.860] [LOG] [ASSISTANT] YouTube Search Function initilized. [2021-01-02 22:18:31.869] [LOG] [SNOWBOY] Model selected: jarvis [2021-01-02 22:18:31.881] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-TelegramBot.js [2021-01-02 22:18:31.896] [LOG] [ASSISTANT] RECIPE_LOADED: with-A2DSpotify.js [2021-01-02 22:18:31.897] [LOG] [ASSISTANT] Assistant2Display Server Started [2021-01-02 22:18:31.920] [LOG] [NPM] Initialized v0.9.9 [2021-01-02 22:18:32.298] [LOG] [ASSISTANT] Google Assistant is initialized. [2021-01-02 22:18:32.302] [LOG] [A2D] MMM-Assistant2Display Version: 2.3.20 [2021-01-02 22:18:32.326] [LOG] [SPOTIFY] Launch Librespot... [2021-01-02 22:18:32.336] [LOG] [NPM] Initialized v0.9.9 [2021-01-02 22:18:32.652] [LOG] [A2D] Assistant2Display is initialized. [2021-01-02 22:18:33.327] [LOG] [PM2] Connected! [2021-01-02 22:18:34.416] [LOG] [PM2] Librespot started ! [2021-01-02 22:18:35.306] [LOG] MMM-Ring at (1/2/2021, 10:18:35 PM): Refresh Token Updated [2021-01-02 22:18:35.506] [INFO] Calendar-Fetcher: Broadcasting 10 events. [2021-01-02 22:18:35.708] [INFO] Calendar-Fetcher: Broadcasting 0 events. [2021-01-02 22:18:36.780] [INFO] Newsfeed-Fetcher: Broadcasting 53 items. [2021-01-02 22:18:37.703] [INFO] Calendar-Fetcher: Broadcasting 10 events. [2021-01-02 22:18:38.241] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Found 1 location(s) with 5 camera(s). [2021-01-02 22:18:38.244] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Location Lewisville has the following 5 camera(s): [2021-01-02 22:18:38.245] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 49477031: Front Door (lpd_v2) [2021-01-02 22:18:38.246] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 4940246: Front (hp_cam_v1) [2021-01-02 22:18:38.247] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 17964993: Side (hp_cam_v1) [2021-01-02 22:18:38.248] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 4303942: Backyard (hp_cam_v1) [2021-01-02 22:18:38.251] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): - 17569696: Trash (hp_cam_v1) [2021-01-02 22:18:38.252] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Location Lewisville has the following 0 device(s): [2021-01-02 22:18:38.253] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.255] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.257] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.258] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.260] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.264] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.267] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.269] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:38.270] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for doorbell presses [2021-01-02 22:18:38.271] [LOG] MMM-Ring at (1/2/2021, 10:18:38 PM): Actively listening for Motion events [2021-01-02 22:18:48.875] [LOG] Shutting down server... [2021-01-02 22:18:48.876] [LOG] Stopping module helper: MMM-MyStudyLife [2021-01-02 22:18:48.876] [LOG] Stopping module helper: MMM-UpdateNotification [2021-01-02 22:18:48.877] [LOG] Stopping module helper: calendar [2021-01-02 22:18:48.878] [LOG] Stopping module helper: MMM-GmailFeed [2021-01-02 22:18:48.878] [LOG] Stopping module helper: MMM-TelegramBot [2021-01-02 22:18:48.879] [LOG] Stopping module helper: mmm-systemtemperature [2021-01-02 22:18:48.879] [LOG] Stopping module helper: MMM-Dad-Jokes [2021-01-02 22:18:48.880] [LOG] Stopping module helper: newsfeed [2021-01-02 22:18:48.880] [LOG] Stopping module helper: MMM-GoogleAssistant [2021-01-02 22:18:48.880] [LOG] Stopping module helper: MMM-Assistant2Display [2021-01-02 22:18:48.881] [LOG] Stopping module helper: MMM-Wallpaper [2021-01-02 22:18:48.881] [LOG] MMM-Ring at (1/2/2021, 10:18:48 PM): Stopping module helper: MMM-Ring [2021-01-02 22:18:49.207] [LOG] [LIBRESPOT] Killed ` — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Beastlynoob commented 3 years ago

oh, okay. i noticed that but did not see any errors in that. I can send you what I see.

Beastlynoob commented 3 years ago

`/home/pi/MagicMirror…rity-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure protocols.This exposes users of this app to unnecessary security risks. Consider loading the following resources over HTTPS or FTPS.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. /home/pi/MagicMirror…ity-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. MMM-MyStudyLife.js:274 Uncaught Could not find current term  ​ `

ethanpartida commented 3 years ago

Make sure to git checkout master and then try git pull. I merged the branch which should fix this issue with the master branch. If this also doesn't work, try pasting the npm start dev console again.

ethanpartida commented 3 years ago

(doing the git commands with your terminal located at the MMM-MyStudyLife folder)

Beastlynoob commented 3 years ago

IT WORKED

ethanpartida commented 3 years ago

!!!!!!

Beastlynoob commented 3 years ago

Thank you so much, time to test my luck with my own api key

ethanpartida commented 3 years ago

Great, keep me updated!

Beastlynoob commented 3 years ago

Unfortunately it still gets stuck on loading. I did Npm start dev and here were the results `/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure protocols.This exposes users of this app to unnecessary security risks. Consider loading the following resources over HTTPS or FTPS.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 logSecurityWarnings @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:214 loadHandler @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:233 /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Promise.then (async) warnAboutInsecureCSP @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:139 logSecurityWarnings @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:218 loadHandler @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:233 MMM-MyStudyLife.js:278 code worked MMM-MyStudyLife.js:287 added schedule stuff MMM-MyStudyLife.js:306 added term stuff MMM-MyStudyLife.js:329 added class stuff MMM-MyStudyLife.js:333 added tasks stuff MMM-MyStudyLife.js:338 added exam stuff MMM-MyStudyLife.js:79 Loading successful MMM-MyStudyLife.js:354 sorting classes MMM-MyStudyLife.js:356 null MMM-MyStudyLife.js:357 Uncaught (in promise) TypeError: Cannot read property 'includes' of undefined at Class.sortClasses (MMM-MyStudyLife.js:357) at Class.makeSchedule (MMM-MyStudyLife.js:217) at Class.getDom (MMM-MyStudyLife.js:81) at main.js:114 at new Promise () at updateDom (main.js:113) at Object.updateDom (main.js:554) at Class.updateDom (module.js:364) at Class.socketNotificationReceived (MMM-MyStudyLife.js:340) at module.js:250`

Beastlynoob commented 3 years ago

if you want to give it a shot here is the api from My study life. I am also pasting everything in the console that my study life shows me. I dont know if the blocked by client and stuff is normal

Failed to load resource: net::ERR_BLOCKED_BY_CLIENT about:blank:1 Failed to load resource: net::ERR_UNKNOWN_URLSCHEME localStorage. "KVF92M8HDPL5N2IEGXG2:d6tJwZQCZ+lwewFRqufjbZFEOJg="

ethanpartida commented 3 years ago

What is the config you are using for this code?

Beastlynoob commented 3 years ago

{ module: "MMM-MyStudyLife", position: "bottom_right", config: { code:"KVF92M8HDPL5N2IEGXG2:d6tJwZQCZ+lwewFRqufjbZFEOJg=", showSchedule: true, showExams: true, showTasks: true, classes: { "test1": [1,3,5], "test2": [2,4] } } },

Beastlynoob commented 3 years ago

I just want to ensure that a basic scuedule like this works so I can try the A day and B day scuedule again

ethanpartida commented 3 years ago

I think I figured out the issue. My module relies on the "module" section of a class to give classes their 'names'. Without them, it freaks out and doesn't work. It doesn't look like you filled in that section when creating the two classes. This s what the homescreen looks like with two classes with the same module value as their subject name: This i

Beastlynoob commented 3 years ago

Okay, so what needs to be in the module section? Does it have to be the class name or as long as something is inputted it will work?

ethanpartida commented 3 years ago

Whatever you would like. This is what my program thinks is your class name. So whatever is in this will be displayed as its class name on the mirror

Best, Ethan On Jan 2, 2021, 11:26 PM -0600, Beastlynoob notifications@github.com, wrote:

Okay, so what needs to be in the module section? Does it have to be the class name or as long as something is inputted it will work? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Beastlynoob commented 3 years ago

Yes, thank you. It worked.

Beastlynoob commented 3 years ago

Time to move onto a day and B-day scueduling. I will keep you updated on how that goes. Do I still need to install the "cycle" branch for that to work? or has that been pushed to master

ethanpartida commented 3 years ago

Oh and this should exactly match what you have in your config. So if you have a class with module name "test1" on Monday, Wednesday and Friday then your config should have "test1: [1,3,5]"

Best, Ethan On Jan 2, 2021, 11:27 PM -0600, Ethan Partida ethanpartida@msn.com, wrote:

Whatever you would like. This is what my program thinks is your class name. So whatever is in this will be displayed as its class name on the mirror

Best, Ethan On Jan 2, 2021, 11:26 PM -0600, Beastlynoob notifications@github.com, wrote:

Okay, so what needs to be in the module section? Does it have to be the class name or as long as something is inputted it will work? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ethanpartida commented 3 years ago

It has been pushed to master

On Jan 2, 2021, 11:29 PM -0600, Beastlynoob notifications@github.com, wrote:

Time to move onto a day and B-day scueduling. I will keep you updated on how that goes. Do I still need to install the "cycle" branch for that to work? or has that been pushed to master — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Beastlynoob commented 3 years ago

Sounds good will do, I am just going to use the same config that we had earlier in this issue and add module names to everything in my study life

Beastlynoob commented 3 years ago

thank you so much for your help ethan. I really, really am grateful for your support and taking time out of your night to help me even though college is probably really stressful. Once again thank you for your help and I will keep you posted on how it goes.

ethanpartida commented 3 years ago

Awesome! Its quite exciting to have people actually want to use my code, so its really no trouble. Thanks for sticking through with me, hopefully the rest of the process has much less hiccups for you!

On Jan 2, 2021, 11:32 PM -0600, Beastlynoob notifications@github.com, wrote:

thank you so much for your help ethan. I really, really am grateful for your support and taking time out of your night to help me even though college is probably really stressful. Once again thank you for your help and I will keep you posted on how it goes. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

Beastlynoob commented 3 years ago

Oh, I really hope so.

Beastlynoob commented 3 years ago

Hey I ran into an issue. i fixed all my classes in My study life to all have modules. I then updated the config.js yet it is still stuck on loading.

Here is the errors its giving me from npm start dev. MMM-MyStudyLife.js:357 Uncaught (in promise) TypeError: Cannot read property 'includes' of undefined at Class.sortClasses (MMM-MyStudyLife.js:357) at Class.makeSchedule (MMM-MyStudyLife.js:217) at Class.getDom (MMM-MyStudyLife.js:81) at main.js:114 at new Promise () at updateDom (main.js:113) at Object.updateDom (main.js:554) at Class.updateDom (module.js:364) at Class.socketNotificationReceived (MMM-MyStudyLife.js:340) at module.js:250 sortClasses @ MMM-MyStudyLife.js:357 makeSchedule @ MMM-MyStudyLife.js:217 getDom @ MMM-MyStudyLife.js:81 (anonymous) @ main.js:114 updateDom @ main.js:113 updateDom @ main.js:554 updateDom @ module.js:364 socketNotificationReceived @ MMM-MyStudyLife.js:340 (anonymous) @ module.js:250 (anonymous) @ socketclient.js:39 r.emit @ index.js:83 r.onevent @ index.js:83 MMSocket.self.socket.onevent @ socketclient.js:33 r.onpacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.ondecoded @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 a.add @ index.js:83 r.ondata @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 r.onData @ index.js:83 ws.onmessage @ index.js:83 module.js:206 weatherforecast is resumed.

Here is my config.js

{ module: "MMM-MyStudyLife", position: "top_right", config: { code:"my code", showSchedule: true, showExams: true, showTasks: true, useCycles: true, classes: { "English 2": [1], "AP Spanish IV": [1], "Algebra II": [1], "Computer Science I": [1], "Chemistry": [0], "Learner Leadership Council": [0], "Broadway Bound": [0], "AP World History": [0], "Lunch": [0], } } },

And here is a screenshot of My study life IMG_9066

Beastlynoob commented 3 years ago

I set A days as 0 and B days as 1 and I also made sure to have cycles turned on

ethanpartida commented 3 years ago

Could you also paste the rest of the dev log? I have it print some things out before that error, which might help me figure what is going wrong. On Jan 3, 2021, 12:28 AM -0600, Beastlynoob notifications@github.com, wrote:

I set A days as 0 and B days as 1 and I also made sure to have cycles turned on — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

ethanpartida commented 3 years ago

Also can you walk me through the steps to have A and B days. I am able to have 2-cycle but with days numbered 0 and 1.

Beastlynoob commented 3 years ago

it the same proocess, however for it to show numbers you go into settings on my study life it will have a scuedule for rotation scuedule. Yours is probably set to numbered. I have mine lettered.

Beastlynoob commented 3 years ago

here is the dev stuff

`main.js:487 Initializing MagicMirror. translator.js:129 Loading core translation file: translations/en.json translator.js:154 Loading core translation fallback file: translations/en.json loader.js:176 Load script: modules/MMM-MyStudyLife//MMM-MyStudyLife.js module.js:513 Module registered: MMM-MyStudyLife loader.js:148 Bootstrapping module: MMM-MyStudyLife loader.js:153 Scripts loaded for: MMM-MyStudyLife loader.js:195 Load stylesheet: modules/MMM-MyStudyLife/styles1.css loader.js:195 Load stylesheet: vendor/css/font-awesome.css loader.js:155 Styles loaded for: MMM-MyStudyLife loader.js:157 Translations loaded for: MMM-MyStudyLife loader.js:195 Load stylesheet: css/custom.css main.js:508 All modules started! /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 Electron Security Warning (Insecure Resources) This renderer process loads resources using insecure protocols.This exposes users of this app to unnecessary security risks. Consider loading the following resources over HTTPS or FTPS.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. warnAboutInsecureResources @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:95 /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security Policy set or a policy with "unsafe-eval" enabled. This exposes users of this app to unnecessary security risks.

For more information and help, consult https://electronjs.org/docs/tutorial/security. This warning will not show up once the app is packaged. (anonymous) @ /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js:145 MMM-MyStudyLife.js:278 code worked MMM-MyStudyLife.js:287 added schedule stuff MMM-MyStudyLife.js:306 added term stuff MMM-MyStudyLife.js:329 added class stuff MMM-MyStudyLife.js:333 added tasks stuff MMM-MyStudyLife.js:338 added exam stuff MMM-MyStudyLife.js:79 Loading successful MMM-MyStudyLife.js:354 sorting classes MMM-MyStudyLife.js:356 Chemistry MMM-MyStudyLife.js:356 null MMM-MyStudyLife.js:357 Uncaught (in promise) TypeError: Cannot read property 'includes' of undefined at Class.sortClasses (MMM-MyStudyLife.js:357) at Class.makeSchedule (MMM-MyStudyLife.js:217) at Class.getDom (MMM-MyStudyLife.js:81) at main.js:114 at new Promise () at updateDom (main.js:113) at Object.updateDom (main.js:554) at Class.updateDom (module.js:364) at Class.socketNotificationReceived (MMM-MyStudyLife.js:340) at module.js:250 sortClasses @ MMM-MyStudyLife.js:357 makeSchedule @ MMM-MyStudyLife.js:217 getDom @ MMM-MyStudyLife.js:81 (anonymous) @ main.js:114 updateDom @ main.js:113 updateDom @ main.js:554 updateDom @ module.js:364 socketNotificationReceived @ MMM-MyStudyLife.js:340 (anonymous) @ module.js:250 (anonymous) @ socketclient.js:39 r.emit @ index.js:83 r.onevent @ index.js:83 MMSocket.self.socket.onevent @ socketclient.js:33 r.onpacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.ondecoded @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 a.add @ index.js:83 r.ondata @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 (anonymous) @ index.js:83 r.emit @ index.js:83 r.onPacket @ index.js:83 r.onData @ index.js:83 ws.onmessage @ index.js:83`

Beastlynoob commented 3 years ago

i have teachers written in every class in my study life could that be cuasing an issue. Like I have the class name, then the class name again as the module, nothing for room number or stuff liek that except for teacher where I have the teachers name.

ethanpartida commented 3 years ago

That shouldn't cause an issue.

Do you have a both a subject and module for "learner leadership counsel"? The formatting of this one looks different than the rest on your screenshot

Beastlynoob commented 3 years ago

what do you mean?

ethanpartida commented 3 years ago

In your screenshot all entries have the form "English 2: English 2" while the learner leadership counsel's entry is just "Learner Leadership Counsel"

Beastlynoob commented 3 years ago

Yes, you were right. I forgot to mark a module for that one. I ran it again and it worked!!!

ethanpartida commented 3 years ago

Yay! I'll leave this issue open for a couple more days. Let me know if you run into something.

Beastlynoob commented 3 years ago

I do have one more thing. I put the module in the bottom_right corner. The module says loading for lik 1 second at the bottom right of mm where it should. Then when my tasks and "No Classes Today" pops up those are placed in the center right of MM instead of bottom right. Any ideas why?