Read the statement by Michael Teeuw here.
Requesting assistance with GroceryApp module
-
@CurlyQ12391 also, many of the calls u are making, are not synchronous
(they return with data only when done)but async, they return now(immediately) , and also later when the actual work completes.
but you assumed u got the answer,you could add debugging to the ok (not error) path to trace the calls happening
-
@CurlyQ12391 i made a git repo of this…
https://github.com/sdetweil/MMM-GroceryAppa few problems
the functions at the end of node_helper use self, but it wasn’t defined
the socket notification “config” sends back results, but you haven’t got them yetbut getData() has a flow error… accessToken not defined…
don’t know what you were trying to do
I also added the dummy ‘Loading…’ at the end of getDom() (else {'…})
-
@sdetweil, firstly I’d like to apologize for the gap in my response! I broke my main config shortly after posting this and ended up having to re-flashing my SD card and rebuilding my mirror back up the way I had it from scratch.
I really appreciate you taking the time to answer my question.
My intent with this module was to basically house my grocery cart, similar to the interface I have on my phone or visiting the website. I think that an easier approach might be to use an iFrame module for the website, but I was really wanting to utilize the authorization token process to prevent having to login each time - since the end goal is to have the Mirror up on the wall without a keyboard/mouse.
-
@CurlyQ12391 i understood the intent of the module…
but looking at the specific code in node_helper trying to setup the call to get the data is where I don’t understand your plan
-
@sdetweil my apologies.
The code within the node_helper is mostly from the Kroger Developer documentation. However, I am very new to all this and there is a very good chance that I transferred the documentation over incorrectly or in a way that wont work. I may have incorrectly assumed that by using the Kroger Docs/code it would result in getting similar data to what I’d see upon logging into the mobile/desktop site.
-
@CurlyQ12391 np. I was just trying to help you make progress. I know nothing about the API. but couldnt find anything similar to the code in the helper