MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Requesting assistance with GroceryApp module

    Scheduled Pinned Locked Moved Development
    8 Posts 2 Posters 584 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @CurlyQ12391
      last edited by

      @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

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @CurlyQ12391
        last edited by

        @CurlyQ12391 i made a git repo of this…
        https://github.com/sdetweil/MMM-GroceryApp

        a 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 yet

        but 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 {'…})

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          CurlyQ12391 @sdetweil
          last edited by

          @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.

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @CurlyQ12391
            last edited by

            @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

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            C 1 Reply Last reply Reply Quote 0
            • C Offline
              CurlyQ12391 @sdetweil
              last edited by

              @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.

              S 1 Reply Last reply Reply Quote 1
              • S Offline
                sdetweil @CurlyQ12391
                last edited by

                @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

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                Enjoying MagicMirror? Please consider a donation!
                MagicMirror created by Michael Teeuw.
                Forum managed by Sam, technical setup by Karsten.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy