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.
    • strawberry 3.141S Offline
      strawberry 3.141 Project Sponsor Module Developer @Dom1n1c
      last edited by

      @Dom1n1c I commented on your changes

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

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

        Is it possible to choose other typs of fuel like non-leaded supergrade plus petrol or premium?

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

          @reaper81 the api only provides diesel e5 and e10 sorry

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

          1 Reply Last reply Reply Quote 0
          • J Offline
            jayjay2017
            last edited by jayjay2017

            Hi

            If I take the example with a matching token,
            “Node serveronly” does not start.

            Loading config …
            Loading module helpers …
            WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
            Loading module helpers …
            Whoops! There was an uncaught exception…
            [SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode]
            MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
            If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

            var config = {
            port: 8070,
            ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “192.168.1.22”],

            language: 'de',
            timeFormat: 24,
            units: 'metric',
            

            modules: [
            {
            module: ‘MMM-Fuel’,
            position: ‘top_right’,
            config: {
            api_key: ‘f9fXXXXXXX’,
            lat: 51.899177,
            lng: 10.184662,
            types: [‘diesel’],
            }
            }
            ]
            };

            yawnsY strawberry 3.141S 2 Replies Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator @jayjay2017
              last edited by

              @jayjay2017 please post your config without api keys or check your config on jshint.com

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

                @jayjay2017 sounds like your node version doesnt support es6 which node version are you using?

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

                1 Reply Last reply Reply Quote 0
                • J Offline
                  jayjay2017
                  last edited by

                  The version of node was the point. I had Version 4.2.6, now updated to V7.7.2.

                  It works now.

                  Thank you very much.

                  1 Reply Last reply Reply Quote 0
                  • S Offline
                    sindbad6
                    last edited by sindbad6

                    Hi, have an issue with the shortenText parameter. When I use it, the address is max shorter(in px) then the name of the gas station. That’s a little bit anoying if more then one station is shown from the big companies and I can’t see the complete address, even if there is still enough place. Any idea, how I can change it? In the custom.css for example.
                    0_1489269011731_upload-acb11020-7933-41d5-a659-9402199ec1a1

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

                      @sindbad6 looks strange, your name gets cut after 35 chars and your address after ~19 can you send me your geo data you’re using in config as a private message?

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

                      S 1 Reply Last reply Reply Quote 0
                      • S Offline
                        sindbad6 @strawberry 3.141
                        last edited by sindbad6

                        @strawberry-3.141 Sorry, I’m a complete newbie and can’t see how to send a private message. I tried it over the chat button. I hope you meant this.

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

                          @sindbad6 do a git pull in ~/MagicMirror/modules/MMM-Fuel

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

                          S 1 Reply Last reply Reply Quote 0
                          • S Offline
                            sindbad6 @strawberry 3.141
                            last edited by

                            @strawberry-3.141 Thanks a lot. That’s much better.

                            1 Reply Last reply Reply Quote 0
                            • S Offline
                              Stabber
                              last edited by

                              A great modul!!

                              What should I do to see the map? I have google maps API, but I don’t know where to add it.

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

                                @Stabber Currently the map can only be shown with my voice module https://github.com/fewieden/MMM-voice

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

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sindbad6
                                  last edited by

                                  Hi, I made a change in my MM-Fuel.js to implement an additional parameter for shortening the address of a gas station. It is not a big thing, but I would like if it would be integrated in the repository. The point is, I never have done it before. In between I got an account at github, but know? Can somebody give me a link where I can find belonging infos?

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

                                    @sindbad6 in short:

                                    • fork the repository
                                    • make your changes
                                    • push them to the fork
                                    • create a pull request

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

                                    S 1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      sindbad6 @strawberry 3.141
                                      last edited by

                                      @strawberry-3.141 Ok, I did it now. I’m not sure if I did right. Please inform me if something was wrong. I’m a little bit surprised, to get the possibility to merge my changes.

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

                                        @sindbad6 you closed your pull request and deleted the branch so there is no possibility to merge your changes

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

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sindbad6 @strawberry 3.141
                                          last edited by

                                          @strawberry-3.141 That’s what I was afraid of. I will try to correct it.

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

                                            Changelog v1.1.0

                                            • API provider development Guide.
                                            • API provider spritpreisrechner.at.
                                            • Disabled markdownlint rule MD026 (no-trailing-punctuation)
                                            • Disabled eslint rule no-console
                                            • Documentation
                                            • Doclets.io integration
                                            • Contributing guidelines
                                            • Issue template
                                            • Pull request template

                                            [card:fewieden/MMM-Fuel]

                                            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
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 4 / 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