gismo150 / mmm-googleshoppinglist Goto Github PK
View Code? Open in Web Editor NEWMagicMirror module for displaying Google Shoppinglist
License: MIT License
MagicMirror module for displaying Google Shoppinglist
License: MIT License
Possible future functionality: allow configuration of the maximum number of items to output to the screen. This would help prevent overlap of modules when the list gets too big. Would also be nice to configure output to multiple columns when list gets long (e.g. if list exceeds 15 items wrap the 16th item to column 2).
I was getting the following error
[GSL] Trying to login [GSL] Cookies are saved. [GSL] Landed on the target page. Trying to get list (node:49777) UnhandledPromiseRejectionWarning: Error: Execution context was destroyed, most likely because of a navigation. at rewriteError (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/ExecutionContext.js:161:15) at process._tickCallback (internal/process/next_tick.js:68:7) -- ASYNC -- at ExecutionContext.<anonymous> (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/helper.js:110:27) at ExecutionContext.evaluate (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/ExecutionContext.js:48:31) at ExecutionContext.<anonymous> (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/helper.js:111:23) at DOMWorld.evaluate (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/DOMWorld.js:112:20) -- ASYNC -- at Frame.<anonymous> (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/helper.js:110:27) at Page.evaluate (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/Page.js:782:43) at Page.<anonymous> (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_modules/puppeteer/lib/helper.js:111:23) at get (/Users/jszuslik/Personal/electron/mm2/MagicMirror/modules/MMM-GoogleShoppingList/node_helper.js:101:29) (node:49777) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:49777) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
I updated the puppeteer version to 1.15.0 and rebuilt. This resolved the issue.
Module was loading, but after few second of loading on the screen my shopping list is Always empty
Hi,
For some reason it never stops loading. Perhaps it is broken?
Hi
I have tested the ShoppingList module successfully in autumn and wanted to reactivate it now. I get the following error:
/home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_helper.js:54
async function get(browserOption) {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
at loadNextModule (/home/pi/MagicMirror/js/app.js:161:5)
Whoops! There was an uncaught exception...
/home/pi/MagicMirror/modules/MMM-GoogleShoppingList/node_helper.js:54
async function get(browserOption) {
^^^^^^^^
SyntaxError: Unexpected token function
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at loadModule (/home/pi/MagicMirror/js/app.js:127:17)
at loadNextModule (/home/pi/MagicMirror/js/app.js:161:5)
MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
Internet connection is ok.
I'm loving this module not sure if I should've asked here but is there a way to make the Grey label black or transparent please.
Hey mate, trying this module out and I've got it loaded, but it only displays 'loading' and my list never shows-up.
When I watch my pm2 logs, I can see the following error come out:
mm > [GSL] Trying to login mm > (node:4600) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Evaluation failed: TypeError: Cannot read property 'click' of null at __puppeteer_evaluation_script__:2:44
MM Version: Current
Node Version: 9.11.2
PM2 Version: 3.2.2
Chromium Version: Version installed with current MM
Let me know if you need any other info.
Thanks
Do you know why the module only show Loading...?
I think the module slow down the system as well.
module: "MMM-GoogleShoppingList",
position: "top_right",
header: "My Shopping List",
config: {
creds: {
email: "my google adress",
password: "my google password",
},
scanInterval: 1000*60,
displayImage: false, //if you set, you can get image of items. but very ugly. I don't recommend.
}
},
If 2fa is enabled it isn't able to display my grocery list.
hello
i had this module running before with no issues
been trying several ways to make this work the past few day without any success
i reinstall many times, setup a new gmail account, started from a fresh custom.css and config.json file and the module doesn't show any data, just the loading page.
any suggestion?
I have turned off 2-Factor-Authentication but it does not load. Any idea?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.