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.

    MMM-Fuel does not show any data

    Scheduled Pinned Locked Moved Troubleshooting
    9 Posts 5 Posters 1.4k Views 5 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.
    • P Offline
      phistix
      last edited by sdetweil

      Hi there,

      I am quite new to MagicMirror and added some modules successfully, but currently I am struggling with MMM-Fuel. No gas stations are shown at all.

      This is my config:

      {
      module: "MMM-Fuel",
      position: "top_right",
      config: {
      //types: ["diesel"],
      //provider: "tankerkoenig",
      api_key: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxx",
      lat: "52.285583",
      lng: "6.835616"
      }
      },
      

      I can not find any errors in the development window

      1 Reply Last reply Reply Quote 0
      • R Offline
        requiemmg
        last edited by

        Uncomment (remove) the // from types and provider.
        I suppose you registered on tankerkoenig.de and obtained an actual API key and are not running with xxxxxxx-xxx-xxx API key?

        1 Reply Last reply Reply Quote 0
        • P Offline
          phistix
          last edited by

          Hey,

          yes, I’ve tried to remove the // parts and the API is inserted as well.
          It still does not work :-(

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

            @phistix so, lets look at the logs. how do you start mm? npm start or pm2

            if pm2, then
            pm2 logs --lines=100
            will show the node_helper messages

            if npm start, then the messages will be shown in the terminal window where u issued the npm start command.
            u may have to minimize mm to see that window (alt-spacebar, n to minimize)

            we also need to look at the browser messages, by opening the developers window. ctrl-shift-i, then select the tab labeled console and scroll up to see any error messages. you can also filter messages to a particular module, by putting part of the module name in the filter field, fuel, in this case.

            did u do the npm install after doing the git clone?, as the module depends on some libraries not avail by just install

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • C Offline
              CanbiZ
              last edited by

              Hey!

              Have you confirmed the e-mail? Otherwise the API key cannot be used. I just did it yesterday for my test project on a VM, it worked without problems.
              I can send you a screenshot to show you. I guess you must have made a little mistake somewhere.

              I just sat down and requested a new API key, this one works too.

              It’s my first post, so I had to wait 10 minutes. In this time I made a screenshot for you :-)

              alt text

              (im an German, if you are too, you can write me in german :-P )

              1 Reply Last reply Reply Quote 0
              • P Offline
                phistix
                last edited by phistix

                Hey,

                thanks for the answers.

                I start mm via pm2.
                pm2 logs --lines=100 shows me no errors.
                Development windows doesn’t show me errors as well.

                I tried with a second API key, but still not working. And yes I confirmed the email.
                spritpreise.png

                I installed manually “fs-extra” and “node-fetch” and I did a npm install in the MMM-Fuel folder, but it did not change anything.
                Can I somehow “uninstall” the module and the needed packets to restart from scratch?

                Und ja, ich bin deutsch @CanbiZ :-)

                1 Reply Last reply Reply Quote 0
                • thgmirrorT Offline
                  thgmirror
                  last edited by

                  Hi @phistix ,

                  when I check your “lat” and “lng” you have in your config, it looks you are located in the netherlands…may be therefor, tankerkönig has no data for this place. So please check it again:-)

                  Greetings from Bonn
                  Thomas

                  C 1 Reply Last reply Reply Quote 0
                  • C Offline
                    CanbiZ @thgmirror
                    last edited by

                    @thgmirror

                    Exactly, that would have been my next theory, check the coordinates and I think you have to specify a type (diesel).

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      phistix
                      last edited by

                      Thank you all for your help.

                      It finally worked,
                      I don’t know why, but my coordinates were wrong.
                      I thought I copied them correctly from another source, but I did not.

                      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