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

    Scheduled Pinned Locked Moved Transport
    fuel pricegas stationpetrol stationvoice-controltankerkoenigspritpreisrechnernsw
    178 Posts 48 Posters 542.2k Views 48 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.
    • F Offline
      FreddeHamm
      last edited by FreddeHamm

      @strawberry-3.141 I have some issues getting this thing fired up. I have a working api and found my location. But for some reason, the magic mirror won’t show the Fuel List.

      {
        module: "MMM-Fuel",
        position: "bottom_right",
        config: {
          api_key: 'Just My API',
          lat: 51.674177,
          lng: 6.460384,
          types: ["diesel"],
          sortBy: "diesel",
          radius: 10,
          colored: true,
          open: true,
          rotate: false
        }
      },  
      

      Where is my mistake?!

      strawberry 3.141S 1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer @FreddeHamm
        last edited by

        @FreddeHamm you should remove the api key from your post, it’s kind of a password.

        I have to look on this on the weekend, can’t spot something obvious right now

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • F Offline
          FreddeHamm
          last edited by

          any news?

          strawberry 3.141S 1 Reply Last reply Reply Quote 0
          • strawberry 3.141S Offline
            strawberry 3.141 Project Sponsor Module Developer @FreddeHamm
            last edited by

            @FreddeHamm sorry, forgot about you. cant reproduce your issue though, i did a refresh install of mmm-fuel on my machine and inserted your config which resulted in the following state

            0_1507967001234_Bildschirmfoto vom 2017-10-14 09-38-41.png

            can you spot any errors in the logs (electron or terminal, pm2)? did you try to disable all other modules to reduce side effects?

            Please create a github issue if you need help, so I can keep track

            1 Reply Last reply Reply Quote 0
            • F Offline
              FreddeHamm
              last edited by

              Thanks for your help. If i open the magic mirror site via browser (my.rasperry.pi.ip:8080) i see the module. But its not shown on the screen of the mirror itself…

              strawberry 3.141S 1 Reply Last reply Reply Quote 0
              • strawberry 3.141S Offline
                strawberry 3.141 Project Sponsor Module Developer @FreddeHamm
                last edited by

                @FreddeHamm any errors?

                Please create a github issue if you need help, so I can keep track

                1 Reply Last reply Reply Quote 0
                • F Offline
                  FreddeHamm
                  last edited by

                  noob-question: how can i see the log?

                  strawberry 3.141S 1 Reply Last reply Reply Quote 0
                  • strawberry 3.141S Offline
                    strawberry 3.141 Project Sponsor Module Developer @FreddeHamm
                    last edited by

                    @FreddeHamm in the terminal where you start the mirror or pm2 logs, and in the electron console(start the mirror with npm start dev)

                    Please create a github issue if you need help, so I can keep track

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      FreddeHamm
                      last edited by

                      i found this

                      ** Message: console message: http://localhost:8080/modules/MMM-Fuel//MMM-Fuel.js @117: SyntaxError: Unexpected token ‘(’. Expected a ‘:’ following the property name 'getTranslati$

                      strawberry 3.141S 1 Reply Last reply Reply Quote 0
                      • F Offline
                        FreddeHamm
                        last edited by

                        if i use npm start dev i get this…

                        1 verbose cli [ ‘/usr/local/bin/node’, ‘/usr/local/bin/npm’, ‘start’, ‘dev’ ]
                        2 info using npm@5.5.1
                        3 info using node@v8.3.0
                        4 verbose config Skipping project config: /home/pi/.npmrc. (matches userconfig)
                        5 verbose stack Error: ENOENT: no such file or directory, open ‘/home/pi/package.json’
                        6 verbose cwd /home/pi
                        7 verbose Linux 4.9.35+
                        8 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “start” “dev”
                        9 verbose node v8.3.0
                        10 verbose npm v5.5.1
                        11 error path /home/pi/package.json
                        12 error code ENOENT
                        13 error errno -2
                        14 error syscall open
                        15 error enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
                        16 error enoent This is related to npm not being able to find a file.
                        17 verbose exit [ -2, true ]

                        I did try to set up another mm … Same problem. only the fuel module doesnt show up. But if i use the browser on my pc it shows up…

                        yawnsY 1 Reply Last reply Reply Quote 0
                        • yawnsY Offline
                          yawns Moderator @FreddeHamm
                          last edited by

                          @FreddeHamm
                          Looks like you are not in the MagicMirror folder when running npm start dev
                          Please try

                          cd ~/MagicMirror
                          npm start dev
                          
                          1 Reply Last reply Reply Quote 1
                          • strawberry 3.141S Offline
                            strawberry 3.141 Project Sponsor Module Developer @FreddeHamm
                            last edited by

                            @FreddeHamm sounds like you are using midori browser or something similar which doesnt support es6 syntax

                            Please create a github issue if you need help, so I can keep track

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

                              Hi

                              great module!
                              I wanted to use my own header for your module to get the same look as the other moduled.

                              Unfortunately I don‘t understand how to disable the view of your implemented header.

                              At the moment I have two headers :)

                              Thanks.

                              Best regards

                              strawberry 3.141S 1 Reply Last reply Reply Quote 0
                              • strawberry 3.141S Offline
                                strawberry 3.141 Project Sponsor Module Developer @rrrene
                                last edited by

                                @rrrene custom.css .MMM-Fuel header.align-left { display: none; }

                                Please create a github issue if you need help, so I can keep track

                                R 1 Reply Last reply Reply Quote 1
                                • D Offline
                                  DamienWakeford1
                                  last edited by

                                  Hi guys I’m from South Africa, I have just started playing with the magic mirror today I have managed to the calendar weather and news for South Africa I would really like to add fuel prices and email notifications to it but don’t know how and can find any videos showing how to do it just that they did it if that makes sence

                                  strawberry 3.141S D 2 Replies Last reply Reply Quote 0
                                  • strawberry 3.141S Offline
                                    strawberry 3.141 Project Sponsor Module Developer @DamienWakeford1
                                    last edited by

                                    @DamienWakeford1 this module supports only germany and austria, not sure if it is possible to get the same information for your country via an api

                                    Please create a github issue if you need help, so I can keep track

                                    1 Reply Last reply Reply Quote 0
                                    • D Offline
                                      doubleT Module Developer @DamienWakeford1
                                      last edited by

                                      @DamienWakeford1

                                      Do you have a favorite station or brand and do they have a website with live feed of the prices? If they have an API, maybe I have something, if it’s accessable.

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        rrrene @strawberry 3.141
                                        last edited by

                                        @strawberry-3.141 said in MMM-Fuel:

                                        @rrrene custom.css .MMM-Fuel header.align-left { display: none; }

                                        Working perfect! Thank you m8.

                                        Have a nice evening.

                                        Best regards,
                                        René

                                        1 Reply Last reply Reply Quote 0
                                        • X Offline
                                          xray2607
                                          last edited by

                                          Chaps,
                                          Pethaps again a newbie question, but how do I configure this module for Austria, spritpreisrechner?
                                          Anything ‘special’ to consider?
                                          I do not get an error message for the config.js, but I also do not get a populated list for my Diesel.
                                          Do I need to specify the provider, or does the module do the look up based on my location?
                                          Any hint/help is greatly appreciated.
                                          Many thanks,
                                          XR

                                          strawberry 3.141S 1 Reply Last reply Reply Quote 0
                                          • strawberry 3.141S Offline
                                            strawberry 3.141 Project Sponsor Module Developer @xray2607
                                            last edited by strawberry 3.141

                                            @xray2607 you need to specify provider: 'spritpreisrechner', also spritpreisrechner changed the api, so you might want to use the develop branch git checkout develop

                                            Please create a github issue if you need help, so I can keep track

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 9 / 9
                                            • 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