Read the statement by Michael Teeuw here.
MMM-GoogleShoppingList
-
@tismepaulo
Sorry, This module is not completed. I’ve found a big issue on this module, I tried to patch but not get a success. sorry again. -
@sean OK, no worries. I’ll keep an eye out for updates
-
@tismepaulo
I think I’ve fixed issues. Could you test it for me? (Re-install required. See the github) -
Hi, nice module, for my wife :-)
Has someone tested it?
I see the module “Loading” but I don’t see the shopping list.
In console I receive this message:[GSL] Landed on the target page. Trying to get list
[GSL] Tried. (when even failed) : 8Some suggest?
Many thanks -
@piluke
I think there are 8 items in your shopping list, right? If so, there could be front-end error (even caused by my module or others).
Can you trynpm start dev
insteadpm2
? (stoppm2 stop mm
then executenpm start dev
in your MagicMirror directory) Then you can see the dev panel on MM screen. And if there be any suspicious front-end error, the red text will be shown there.dev-panel looks like this (the right side);
-
@sean
I didn’t know this working mode of MM, thanks for your answer.
It’s right my list has 8 items.
I disable all module except clock and start “dev” mode.
There is only one red error but it’s from this module:MMM-GoogleShoppingList.js:70 Uncaught TypeError: Cannot read property '1' of null at items.forEach.item (MMM-GoogleShoppingList.js:70) at Array.forEach (<anonymous>) at Class.drawItems (MMM-GoogleShoppingList.js:54) at Class.socketNotificationReceived (MMM-GoogleShoppingList.js:46) at module.js:246 at r.<anonymous> (socketclient.js:25) at r.emit (index.js:133) at r.onevent (socket.js:270) at r.MMSocket.self.socket.onevent (socketclient.js:19) at r.onpacket (socket.js:228)
After few minutes the same error came again…
-
Thanks for reply. Would you send me a mail address? Mine is
eouia0819@gmail.com
. I’ll send a test file to catch what is wrong. (But here is late night, so I’ll send you 10 hours later) -
I become this Error…
[GSL] Trying to login
(node:17281) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Evaluation failed:
TypeError: Cannot read property ‘click’ of null
at puppeteer_evaluation_script:2:44
(node:17281) [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. -
@sebi76
Google hasn’t released its official API for ShoppingList yet. My approach is screen scrapping with Puppeteer. Most of case it works well. My module would login your ShoppingList homepage and surf for getting information in hidden browser.
But by some unknown reason, Someone might see DIFFERENT PAGE with others with same URL. Only Google knows why and what. In that case, my module doesn’t know WHAT IS LOGIN BUTTON and other things. I’ve already known that issue but there is no way to solve it.
Maybe waiting official API release is a better solution. -
Does this module work today?