Read the statement by Michael Teeuw here.
MMM-PGA
-
Description:
A module to show the Upcoming PGA tournament and leaderboard information once the tournament is in progress. The data is retrieved from ESPN. The module also allows you to pick favorite players and and show their status as well.
I started building a magic mirror and found that there was not any modules to display golf scores. So i delayed my mirror build and wrote the module. This is the initial release so I’m interested in any feedback.
Download:
https://github.com/mcl8on/MMM-PGA
Screenshots
Upcoming Tournament View
Leaderboard View
Favorite View
-
I’m not a fan of golf myself , but I’m sure this will be helpful for someone who is! Nice looking module too 😃
-
Very nice. Makes me think of my father. who, would have loved this module. :thumbsup:
-
@Mykle1 Big shout out to you. I used your MMM-UFO to get started
-
:thumbsup:
-
Great job, just added it to my mirror!
-
Added a quick fix to github. The ESPN API was showing a cancelled tournament. If you reinstall it will show upcoming tournaments. Once Bermuda Championship starts it will show leader boards for that tournament
-
Getting this error now…can anyone help? Tried update uninstall/reinstall etc
1|MagicMirror | [2020-12-05 17:02:23.100] [ERROR] App threw an error during load 1|MagicMirror | [2020-12-05 17:02:23.102] [ERROR] Error: Cannot find module 'jsdom' 1|MagicMirror | Require stack: 1|MagicMirror | - /home/pi/MagicMirror/modules/MMM-PGA/OWGR.js 1|MagicMirror | - /home/pi/MagicMirror/modules/MMM-PGA/node_helper.js 1|MagicMirror | - /home/pi/MagicMirror/js/app.js 1|MagicMirror | - /home/pi/MagicMirror/js/electron.js 1|MagicMirror | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 1|MagicMirror | - 1|MagicMirror | at Module._resolveFilename (internal/modules/cjs/loader.js:627:15) 1|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16) 1|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 1|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:531:27) 1|MagicMirror | at Module.require (internal/modules/cjs/loader.js:685:19) 1|MagicMirror | at require (internal/modules/cjs/helpers.js:16:16) 1|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PGA/OWGR.js:3:15) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:786:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:645:32) 1|MagicMirror | [2020-12-05 17:02:23.105] [ERROR] Whoops! There was an uncaught exception... 1|MagicMirror | [2020-12-05 17:02:23.106] [ERROR] 1|MagicMirror | Error: Cannot find module 'jsdom' 1|MagicMirror | Require stack: 1|MagicMirror | - /home/pi/MagicMirror/modules/MMM-PGA/OWGR.js 1|MagicMirror | - /home/pi/MagicMirror/modules/MMM-PGA/node_helper.js 1|MagicMirror | - /home/pi/MagicMirror/js/app.js 1|MagicMirror | - /home/pi/MagicMirror/js/electron.js 1|MagicMirror | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js 1|MagicMirror | - 1|MagicMirror | at Module._resolveFilename (internal/modules/cjs/loader.js:627:15) 1|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:41:16) 1|MagicMirror | at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29) 1|MagicMirror | at Function.Module._load (internal/modules/cjs/loader.js:531:27) 1|MagicMirror | at Module.require (internal/modules/cjs/loader.js:685:19) 1|MagicMirror | at require (internal/modules/cjs/helpers.js:16:16) 1|MagicMirror | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-PGA/OWGR.js:3:15) 1|MagicMirror | at Module._compile (internal/modules/cjs/loader.js:786:30) 1|MagicMirror | at Object.Module._extensions..js (internal/modules/cjs/loader.js:798:10) 1|MagicMirror | at Module.load (internal/modules/cjs/loader.js:645:32) { 1|MagicMirror | code: 'MODULE_NOT_FOUND', 1|MagicMirror | requireStack: [ 1|MagicMirror | '/home/pi/MagicMirror/modules/MMM-PGA/OWGR.js', 1|MagicMirror | '/home/pi/MagicMirror/modules/MMM-PGA/node_helper.js', 1|MagicMirror | '/home/pi/MagicMirror/js/app.js', 1|MagicMirror | '/home/pi/MagicMirror/js/electron.js', 1|MagicMirror | '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js', 1|MagicMirror | undefined 1|MagicMirror | ] 1|MagicMirror | } 1|MagicMirror | [2020-12-05 17:02:23.119] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 1|MagicMirror | [2020-12-05 17:02:23.120] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
-
@swvalenti go to the module folder
npm install jsdom -
@sdetweil Yea sorry thought I deleted that I figured it out after the fact. Thanks!