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 @strawberry 3.141
      last edited by

      Version 2.2.0

      Thanks to @TheDuffman85 for his contribution to this release. This version allows either to search by radius, specific station, or a combination of those two for provider Tankerkönig (Germany).

      Added

      • Config option stationIds to check prices of specific gas stations (Tankerkönig only)
      • Github actions

      Changed

      • 3rd decimal is now superscripted
      • Price and distance values are now localized based on global config option locale.

      Removed

      • Travis-CI integration

      fuel.png

      https://github.com/fewieden/MMM-Fuel

      [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
      • R Offline
        RIKKO14
        last edited by

        Hello,
        Does this module work for France?

        1 Reply Last reply Reply Quote 0
        • eniacE Offline
          eniac
          last edited by

          Hello … getting this Error with npm start DEV

          [17:08:01.452] [LOG] Error: Error no fuel station detail
          at setStationInfos (/home/pi/MagicMirror/modules/MMM-Fuel/apis/tankerkoenig.js:189:19)
          at process._tickCallback (internal/process/next_tick.js:68:7)

          
              module: "MMM-Fuel",
              position: "top_right",
              config: {
          	//provider: "tankerkoenig",
                  api_key: "xxxxxxxxxxxxxxxxxxxxxx",
          	lat: 50.873798,
                  lng: 8.023410,
                  types: ["E5"],
          	updateInterval: 60000,
          	stationIds: 
          			[
            {
              "id": "9ac83212-c785-476f-9862-34a4b04f6320",
              "name": "BELL Oil",
               ......................................
          

          What could that be ?

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

            @RIKKO14 currently this module only supports Germany, Austria and NSW in Australia.

            If you find an API for data in France the module can be expanded. A guide can be found here.

            @eniac there are a couple of issues.

            1. You have the wrong format for the stationIds. It should be stationIds: ["9ac83212-c785-476f-9862-34a4b04f6320"].
            2. I suggest not going lower than the default update interval of 15min. You currently fetch data every minute, which can lead to a suspension of your API key as other users experienced before. Also see limitations here https://creativecommons.tankerkoenig.de/terms
            3. The fuel type should be lowercase
            4. The fuel station id you tried is inside the default search radius. There seems to be a bug currently, where we still make a request even if the list is empty. I suggest to either disable the radius search or remove the station ids.
            {
              module: "MMM-Fuel",
              position: "top_right",
              config: {
                api_key: "XXXXXXXXXXXX",
                lat: 50.873798,
                lng: 8.023410,
                types: ["e5"],
                stationIds: ["9ac83212-c785-476f-9862-34a4b04f6320"],
                radius: 0
              }
            },
            
            {
              module: "MMM-Fuel",
              position: "top_right",
              config: {
                api_key: "XXXXXXXXXXXX",
                lat: 50.873798,
                lng: 8.023410,
                types: ["e5"]
              }
            },
            

            station.png radius.png

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

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

              Version 2.2.1

              Fixed

              • Filtering of station ids lead to invalid price request for provider tankerkoenig

              Changed

              • Log a warning if no fuel station detail could be fetched
              • Updated provider integration documentation

              https://github.com/fewieden/MMM-Fuel

              [card: fewieden/MMM-Fuel]

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

              1 Reply Last reply Reply Quote 1
              • C Offline
                codac
                last edited by

                With the new update of MM I’m getting the following error:

                0|mm       | [15.04.2021 14:11.21.945] [ERROR] (node:15096) UnhandledPromiseRejectionWarning: Error: Cannot find module 'geolib'
                0|mm       | Require stack:
                0|mm       | - /home/pi/MagicMirror/modules/MMM-Fuel/apis/tankerkoenig.js
                0|mm       | - /home/pi/MagicMirror/modules/MMM-Fuel/node_helper.js
                0|mm       | - /home/pi/MagicMirror/js/app.js
                0|mm       | - /home/pi/MagicMirror/js/electron.js
                0|mm       | - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                
                1 Reply Last reply Reply Quote 0
                • C Offline
                  Commander @strawberry 3.141
                  last edited by

                  @strawberry-3-141
                  Hello, i want to check prices of only 3 specific gas stations, but it doesn`t work.

                  code_text: 
                  
                         config: {
                                 api_key: "XXXXXXXXXXXXX-XXX-XXXX-XXXXXXXXXXXX",
                                 types: ["e5"],
                         	       rotate: true,
                         	       showDistance:false,
                         	       lat: 50.8634,
                                 lng: 8.03944,
                                 stationIds: ["238715f9-60d6-4f7a-9e74-c40fdb71a79d"],
                                 radius: 0,
                         	       lat: 50.8708534,
                                 lng: 8.014519,
                                 stationIds: ["1b41801e-ee5e-490e-86d6-474bafec5dc4"],
                                 radius: 0,
                         	       lat: 50.871715,
                         	       lng: 8.012415,
                                 stationIds: ["4b9763df-8cce-426f-a1d5-2b44d413550a"],
                                 radius: 0,
                         		
                         		
                         		
                                 // all your config options, which are different than their default values
                             }
                  

                  I try to set stationIds like that:

                  stationIds: ["238715f9-60d6-4f7a-9e74-c40fdb71a79d,1b41801e-ee5e-490e-86d6-474bafec5dc4,4b9763df-8cce-426f-a1d5-2b44d413550a"],
                  

                  but it also doesn`t work.
                  Could you explaine how set specific gas stations?

                  Thanks

                  JalibuJ 1 Reply Last reply Reply Quote 0
                  • JalibuJ Offline
                    Jalibu Module Developer @Commander
                    last edited by

                    @commander said in MMM-Fuel:

                    stationIds: [“238715f9-60d6-4f7a-9e74-c40fdb71a79d,1b41801e-ee5e-490e-86d6-474bafec5dc4,4b9763df-8cce-426f-a1d5-2b44d413550a”],

                    try

                    stationIds: ["238715f9-60d6-4f7a-9e74-c40fdb71a79d", "1b41801e-ee5e-490e-86d6-474bafec5dc4", "4b9763df-8cce-426f-a1d5-2b44d413550a"],
                    
                    C 1 Reply Last reply Reply Quote 1
                    • C Offline
                      Commander @Jalibu
                      last edited by

                      @jalibu said in MMM-Fuel:

                      stationIds: [“238715f9-60d6-4f7a-9e74-c40fdb71a79d”, “1b41801e-ee5e-490e-86d6-474bafec5dc4”, “4b9763df-8cce-426f-a1d5-2b44d413550a”],

                      Oh yes tanks !

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

                        Hello,

                        is it possible to sort by distance without rotation?

                        {
                        			module: "MMM-Fuel",
                        			position: "top_right",
                        			config: {
                        				api_key: "my_key",
                        				showAddress: false,
                        				rotate: false,
                        				lat: my_lat,
                        				lng: my_lng,
                        				shortenText: false,
                        				types: ["e5"],
                        				sortBy: "e5", //possible to sort by distance? e.g. sortBy: "distance"
                        					}
                        

                        Thank you

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

                          @seansation this is currently not supported, feel free to send a pr.

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

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

                            Now also supporting fuel prices in the USA. Take a look at https://github.com/cowboysdude/MMM-Gas for different style of the same information.

                            2.3.0

                            MagicMirror² version >= 2.15.0 required.

                            Added

                            • Provider: autoblog
                            • Config option: showBrand
                            • Integrated MagicMirror logger on server side
                            • Dependency: node-html-parser
                            • Config option excludeStationIds to exclude gas stations from radius (Tankerkönig only)

                            Changed

                            • Updated Github config files
                            • Updated dependencies

                            Removed

                            • Dependency: fs-extra
                            • Dependency: geolib

                            Link to module https://github.com/fewieden/MMM-Fuel

                            autoblog.png

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

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

                              2.3.1

                              Fixed

                              • Tankerkoenig prices for requests with stationIds

                              Link to module https://github.com/fewieden/MMM-Fuel

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

                              1 Reply Last reply Reply Quote 0
                              • JerryPJ Offline
                                JerryP
                                last edited by

                                Is this also running for the Dutch petrol prices???

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

                                  This is a great app. Good job well done
                                  is there a way to add a favorite gas station
                                  or make it a future project
                                  I’m in the United States so I’m using that configuration

                                  1 Reply Last reply Reply Quote 0
                                  • cowboysdudeC Offline
                                    cowboysdude Module Developer @strawberry 3.141
                                    last edited by

                                    @strawberry-3-141 Looks great!

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

                                      @JerryP currently only Germany, Austria, USA and parts of Australia are covered by the module. If you find an API for fuel prices in the Netherlands I’m happy to integrate it. Please create an issue for the Github repository so it doesn’t get lost https://github.com/fewieden/MMM-Fuel/issues

                                      @Ray currently it is only possible for Germany to select specific gas stations. The source for the USA doesn’t provide IDs that you can request for. Please create an issue for the Github repository so we can discuss some posibilities https://github.com/fewieden/MMM-Fuel/issues

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

                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        NSpr
                                        last edited by

                                        Would the below API provide support for the UK and more in one?
                                        https://developer.here.com/documentation/fuel-prices/dev_guide/topics/example-fuel-price.html

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

                                          @NSpr I was looking into the here API before since it would cover multiple countries at once, but sadly Note: Please note that the Fuel Prices service is only available to automotive OEMs for in-vehicle applications.

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

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

                                            Alternative provider for the USA and also supporting Canada and Tasmania (Australia) now.

                                            2.4.0

                                            Added

                                            • Provider: gasbuddy
                                            • Config option: fade
                                            • Config option: showAddressCity

                                            Changed

                                            • Migrated provider nsw from API v1 to v2 in order to support new region Tasmania (Australia)
                                            • Dependency update

                                            Link to module https://github.com/fewieden/MMM-Fuel

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

                                            M 1 Reply Last reply Reply Quote 1

                                            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