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.
    • B Offline
      bjoern
      last edited by

      sorry, my mistake. I had no provider deposited. after I deposited Tankerkoenig everything works again now.

      1 Reply Last reply Reply Quote 0
      • K Offline
        killing joke @strawberry 3.141
        last edited by

        @strawberry-3-141 said in MMM-Fuel:

        @killing-joke you wrote postion instead of position

        Thank you very much. I checked a lot of times the comma and the spaces and braces but didn´t checked the writing.
        It works fine. Cheers.

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

          I refactored the module and switched to nunjuck templates.

          I’m looking for people who are willing to test prices

          • tankerkoenig germany
          • spritpreisrechner austria

          how to test:

          • if not already done, clone the repository to your modules cd ~/MagicMirror/modules/ && git clone https://github.com/fewieden/MMM-Fuel.git
          • go to the module cd ~/MagicMirror/modules/MMM-Fuel
          • run git checkout develop
          • run npm i
          • test various config options

          [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
            rakostamas
            last edited by

            Hey, I have just installed the module, but I realized one minor mistake. The distances in the table have too much numbers after the decimal point. Where can I change it to just one decimal number?

            1 Reply Last reply Reply Quote 0
            • O Offline
              othomys
              last edited by

              Hello,

              I use the tankerkoenig-api to let me see the German fuel prices. Unfortunately, the special characters (ä, ö, ü, ß, …) are not displayed correctly. At which point can I adapt the encoding?

              Thank you in advance.

              1 Reply Last reply Reply Quote 0
              • D Offline
                dazza120
                last edited by

                Is there anyway to to get this for UK fuel prices?

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

                  @rakostamas I try to adjust it in the next update.
                  @othomys I think that’s a problem with the nunjuck templates that I didn’T figure out yet.
                  @dazza120 is there a public api for it?

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

                  D R 2 Replies Last reply Reply Quote 0
                  • D Offline
                    dazza120 @strawberry 3.141
                    last edited by

                    @strawberry-3-141 doesn’t look like the UK does have an api for fuel prices

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

                      @strawberry-3-141
                      I reinstalled the mirror and installed the module again, however it stopped working. (It’s shows only “loading”) I’m using the same config file as before. Every module beside this working :/ Is it possible, that there is a bug in the module?

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

                        @rakostamas which branch are you using? Develop or master? On develop I’m working on a refactoring, so bugs are definetly possible. Master was probably not changed in a year.

                        Any errors in the console?
                        Did you install the dependencies?
                        Can you post your confit part without the API key and a bit modified gps position?

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

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

                          @strawberry-3-141
                          here is my config:

                                         {
                          			module: "MMM-Fuel",
                          			position: "top_right",
                          			config: {
                          				provider: "spritpreisrechner",
                          				lat: 47.041194,
                          				lng: 15.453377,
                          				types: ["e5", "diesel"],
                          				radius: 6,
                          				max: 4,
                          				sortBy: "e5",
                          				open: true,
                          			}
                          		},
                          

                          The mirror only displays the header and loading…
                          I have installed it in the following way:
                          0_1548077951413_55d0023a-5dc3-4eb9-b35c-1f4a10820528-image.png

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @rakostamas
                            last edited by

                            @rakostamas run

                            npm start dev
                            

                            to open the development screen, select the console tab… are there any errors (in red) shown?

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            R 2 Replies Last reply Reply Quote 0
                            • R Offline
                              rakostamas @sdetweil
                              last edited by

                              @sdetweil
                              0_1548086564608_e3aeafbd-7460-4673-99f6-8977b3d7a7c7-image.png
                              Yes it seems :D

                              1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil
                                last edited by

                                wrong folder… in MagicMirror always for start. not module folder

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  rakostamas @sdetweil
                                  last edited by

                                  @sdetweil

                                  0 info it worked if it ends with ok
                                  1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start', 'dev' ]
                                  2 info using npm@6.6.0
                                  3 info using node@v9.11.2
                                  4 verbose stack Error: missing script: start
                                  4 verbose stack     at run (/usr/lib/node_modules/npm/lib/run-script.js:155:19)
                                  4 verbose stack     at /usr/lib/node_modules/npm/lib/run-script.js:63:5
                                  4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
                                  4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:418:5
                                  4 verbose stack     at checkBinReferences_ (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:373:45)
                                  4 verbose stack     at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:416:3)
                                  4 verbose stack     at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
                                  4 verbose stack     at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:364:12
                                  4 verbose stack     at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:90:16
                                  4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:525:3)
                                  5 verbose cwd /home/pi/MagicMirror/modules/MMM-Fuel
                                  6 verbose Linux 4.14.79-v7+
                                  7 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" "dev"
                                  8 verbose node v9.11.2
                                  9 verbose npm  v6.6.0
                                  10 error missing script: start
                                  11 verbose exit [ 1, true ]
                                  
                                  
                                  S strawberry 3.141S 2 Replies Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @rakostamas
                                    last edited by

                                    @rakostamas said in MMM-Fuel:

                                    /home/pi/MagicMirror/modules/MMM-Fuel

                                    please do

                                    cd ~/MagicMirror
                                    

                                    then

                                    npm start dev
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

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

                                      Yes I got errors.

                                      GET http://localhost:8080/modules/MMM-Fuel//MMM-Fuel.js net : : ERR_CACHE_READ_FAILURE
                                      Error on loading script: modules/MMM-Fuel//MMM-Fuel.js
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil
                                        last edited by

                                        sorry, I do not know why reading from the local disk would fail with cache read failure error

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

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

                                          @rakostamas as @sdetweil already mentioned you need to start the mirror not the module.

                                          cd ~/MagicMirror && npm start dev

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

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

                                            @strawberry-3-141
                                            yes, I have opened it, and I got the errors what I wrote in my last comment

                                            strawberry 3.141S 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
                                            • 5 / 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